This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 204572 - Cannot deploy maven Java EE 6 web project to WebLogic
Summary: Cannot deploy maven Java EE 6 web project to WebLogic
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-02 10:38 UTC by Jiri Skrivanek
Modified: 2011-11-07 08:26 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2011-11-02 10:38:17 UTC
It is not possible to deploy maven Java EE 6 project to WebLogic server. To reproduce:

- install WebLogic 12.1.1 server
- register WebLogic to IDE
- create maven web project
- open project properties, go to Run category and provide context path (workaround for bug 202662)
- run project but it is not deployed

Deploying D:\Development\builds\nbUserdir-20111101121827\mavenproject1\target\mavenproject1-1.0-SNAPSHOT
Deployment failed. The message was: weblogic.management.DeploymentException: [J2EE:160177]The application at "D:\Development\builds\nbUserdir-20111101121827\mavenproject1\target\mavenproject1-1.0-SNAPSHOT" was not recognized as a valid application type. If this is an EAR file, please ensure the META-INF/application.xml exists. EJB-JARs should have a META-INF/ejb-jar.xml or corresponding annotations exist. If this is an exploded WAR, the name of directory must be end with ".war". RARs require a META-INF/ra.xml. A JMS deployment should be an XML file whose name ends with "-jms.xml". A JDBC deployment should be an XML file whose name ends with "-jdbc.xml". For other application types, consult the WebLogic Server documentation.
The module has not been deployed.
See the server log for details.
	at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:210)
	at org.netbeans.modules.maven.j2ee.ExecutionChecker.performDeploy(ExecutionChecker.java:177)
	at org.netbeans.modules.maven.j2ee.ExecutionChecker.executionResult(ExecutionChecker.java:129)
	at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:211)
	at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)

Product Version: NetBeans IDE Dev (Build 201111010600)
Java: 1.7.0_01; Java HotSpot(TM) Client VM 21.1-b02
System: Windows XP version 5.1 running on x86; Cp1250; en_US (nb)
Comment 1 Petr Hejl 2011-11-02 13:46:22 UTC
The inability to detect app is already reported as WL issue. For the meantime, maven project should create the empty DD as requested by DeploymnetDescriptorConfiguration.isDescriptorRequired().

https://bug.oraclecorp.com/pls/bug/webbug_print.show?c_rptno=10111723
Comment 2 Martin Janicek 2011-11-03 15:19:48 UTC
Just to be sure - we want to create web.xml immediately when creating new Maven Web or Maven Enterprise project, right?
Comment 3 Martin Janicek 2011-11-05 17:59:33 UTC
Fixed in: http://hg.netbeans.org/web-main/rev/d4f512bdd6d1
Comment 4 Martin Janicek 2011-11-05 18:02:41 UTC
Btw: Can someone verified that the project is deployable?.. I'm not able to deploy the project anyway because of issue 204673, so the only think that I've tested is that web.xml is created in proper situations.
Comment 5 Quality Engineering 2011-11-06 16:23:25 UTC
Integrated into 'main-golden', will be available in build *201111060600* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/d4f512bdd6d1
User: Martin Janicek <mjanicek@netbeans.org>
Log: #204572 - Cannot deploy maven Java EE 6 web project to WebLogic