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 206259 - Deploy to weblogic server doesn't work
Summary: Deploy to weblogic server doesn't work
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebLogic (show other bugs)
Version: 7.1
Hardware: PC All
: P2 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-12 10:56 UTC by Petr Cyhelsky
Modified: 2012-06-01 08:00 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
zipped messages log and various outputs (14.85 KB, application/octet-stream)
2011-12-12 11:28 UTC, Petr Cyhelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cyhelsky 2011-12-12 10:56:20 UTC
Product Version: NetBeans IDE 7.1 (Build 201112062100)
Java: 1.7.0_02; Java HotSpot(TM) 64-Bit Server VM 22.0-b10
System: Linux version 2.6.38-13-generic running on amd64; UTF-8; en_US (nb)

When trying to deploy simple webapp to wl server, it fails with following output:

init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
In-place deployment at /home/petr/NetBeansProjects/WebApplication3/build/web
Deploying /home/petr/NetBeansProjects/WebApplication3/build/web
Deployment failed. The message was: 	... 1 more
/home/petr/NetBeansProjects/WebApplication3/nbproject/build-impl.xml:747: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 1 second)

server output is the same as if it is just started via start command on the node in services tab.
Comment 1 Petr Hejl 2011-12-12 11:13:28 UTC
Please provide a reproducible use case. I'm missing WebLogic version, the domain configuration, the JDK configured for the domain.

You can also use -J-Dorg.netbeans.modules.j2ee.weblogic9.deploy.CommandBasedDeployer.showConsole=true to get more details.
Comment 2 Petr Hejl 2011-12-12 11:18:23 UTC
Installer version or zip build?
Comment 3 Petr Cyhelsky 2011-12-12 11:28:15 UTC
Created attachment 114041 [details]
zipped messages log and various outputs
Comment 4 Petr Cyhelsky 2011-12-12 11:30:35 UTC
I am using installed 12.1.1 the domain is created via the bundled domain creator wizard with default settings

also if I deploy the app manually via admin console it works ok, so i doubt the error is with the server configuration...
Comment 5 Petr Cyhelsky 2011-12-12 14:15:45 UTC
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/utils/Debug
	at weblogic.Deployer.<clinit>(Deployer.java:24)
Caused by: java.lang.ClassNotFoundException: weblogic.utils.Debug
	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
	... 1 more
Comment 6 Petr Cyhelsky 2011-12-12 14:21:21 UTC
MANIFEST.MF inside weblogic.jar:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: R28.2.0-79-146777-1.6.0_29-20111005-1808-windows-ia32 (Ora
 cle Corporation)
Main-Class: weblogic.Server
Implementation-Vendor: BEA Systems
Implementation-Title: WebLogic Server 12.1.1.0  Wed Dec 7 08:40:57 PST
  2011 1445491 
Implementation-Version: 12.1.1.0
Class-Path: ../../../modules/features/weblogic.server.modules_12.1.1.0
 .jar schema/weblogic-domain-binding.jar schema/weblogic-domain-bindin
 g-compatibility.jar schema/diagnostics-binding.jar schema/diagnostics
 -image-binding.jar wlcipher.jar webservices.jar xmlx.jar ojdbc6.jar o
 ns.jar ucp.jar aqapi.jar EccpressoAsn1.jar EccpressoCore.jar Eccpress
 oJcae.jar mysql-connector-java-commercial-5.1.17-bin.jar cryptoj.jar 
  wlsqlserver.jar wldb2.jar wlsybase.jar wlinformix.jar fmwgenerictoke
 n.jar wlw-langx.jar jcom.jar weblogic-L10N.jar



server installation : /space/servers/wlserver_12.1
domain: /home/petr/Oracle/Middleware/user_projects/domains/base_domain2
Comment 7 Petr Cyhelsky 2011-12-12 15:12:00 UTC
it seems the problem is with installing weblogic into non-default location see the bug https://bug.oraclecorp.com/pls/bug/webbug_print.show?c_rptno=13491297
Comment 8 Petr Hejl 2011-12-12 16:18:48 UTC
Workarounded at web-main 455ea338bc40.

PetreC, Jirko can you verify for both standard and customized directory layout? I did it and it seems to work.

As I don't think this is typical WL installation layout, I'm closing as P2. Feel free to disagree.
Comment 9 Petr Hejl 2011-12-12 16:25:43 UTC
BTW I think this bug has to be present and reproducible since NB 6.9 and WLS 10.3.
Comment 10 Petr Cyhelsky 2011-12-12 16:28:44 UTC
will verify when it gets to nightly build

FYI  comments on the weblogic bug :)  : 

SFELTS 12/12/11 07:24 am ***                                                    
@ We should not be allowing the user to specify the location of WebLogic Server 
@ (this definately won't be allowed in 12.1.2).
Comment 11 Quality Engineering 2011-12-14 12:10:00 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/455ea338bc40
User: Petr Hejl <phejl@netbeans.org>
Log: #206259 Deploy to weblogic server doesn't work
Comment 12 Jiri Skrivanek 2011-12-19 11:31:44 UTC
It works with default installation. With non default installation deployment works but some jars are missing on classpath (bug 206528).
Comment 13 Petr Cyhelsky 2012-01-09 07:49:27 UTC
verified on:
Product Version: NetBeans IDE Dev (Build 201201080601)
Java: 1.7.0_02; Java HotSpot(TM) Client VM 22.0-b10
System: Linux version 2.6.38-13-generic running on i386; UTF-8; en_US (nb)
Comment 14 Quality Engineering 2012-02-09 02:37:16 UTC
Integrated into 'releases', will be available in build *201202082200* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/202eb445f858
User: Petr Hejl <phejl@netbeans.org>
Log: #206259 Deploy to weblogic server doesn't work
(transplanted from 455ea338bc40eb07b2679a09b278e4cb3a6c9024)
Comment 15 colmmchugh 2012-05-31 13:35:22 UTC
(In reply to comment #12)
> It works with default installation. With non default installation deployment
> works but some jars are missing on classpath (bug 206528).

What is meant by "default installation"? Is it installation of WL12 as described in the README.txt that comes with the wls1211_dev.zip installation package? (and also described here: http://tamanmohamed.blogspot.com/2011/12/how-to-setup-test-oracle-weblogic.html)

Im about to embark on using WL with my netbeans, just want to check it's possible to do a "Default installation" with the wls1211_dev.zip  WL installation package (this does not come with any UI wizard, u just run a script as described in the above blog).

Many thanks,
C
Comment 16 Petr Cyhelsky 2012-06-01 08:00:18 UTC
"default installation" means to only use default paths - weblogic server doesn't support and afaik doesn't even plan to support installation into non-default paths.