aspose file tools*
The moose likes BEA/Weblogic and the fly likes Compiler failed executable.exec(java.lang.String[javac - ERROR during deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Compiler failed executable.exec(java.lang.String[javac - ERROR during deployment" Watch "Compiler failed executable.exec(java.lang.String[javac - ERROR during deployment" New topic
Author

Compiler failed executable.exec(java.lang.String[javac - ERROR during deployment

Pramod Pradhan
Greenhorn

Joined: Jun 09, 2008
Posts: 4
Hi there,

I am using Weblogic 7.0 with SP6. I know this is a very old version, but my company has a few apps on this sever and they don't want to upgrade.
I am trying to deploy an EAR and I am hitting the below error. The same ear is deployed on another box on Weblogic 7 too and it works just fine there.

Can some please help and throw me some more light on the error.

preparing application quickorderapp on qoprod3
preparing application quickorderapp on qoprod2
preparing application quickorderapp on qoprod1
Exception caught for task Activate application quickorderapp on qoprodcluster: Prepare failed. Task Id = 4

Start server side stack trace:
weblogic.management.ApplicationException: Prepare failed. Task Id = 4
{
Module Name: usermanagerwebservices.jar, Error: Exception preparing module: EJBModule(usermanagerwebservices.jar,status=NEW)


Unable to deploy EJB: usermanagerwebservices.jar from usermanagerwebservices.jar:


Compiler failed executable.exec(java.lang.String[javac, -nowarn, -classpath, D:\bea_qo\user_projects\qoprod\tmp_ejbftwp1lwqsua01v.us1.northcentralnetworks.com9901qoprod1\k8tq4yxosas5;D:\bea_qo\user_projects\qoprod\tmp_ejbftwp1lwqsua01v.us1.northcentralnetworks.com9901qoprod1\1hyope2v59hqj;D:\bea_qo\user_projects\qoprod\tmp_ejbftwp1lwqsua01v.us1.northcentralnetworks.com9901qoprod1\-1c8sm0wpktvws;D:\bea_qo\user_projects\qoprod\tmp_ejbftwp1lwqsua01v.us1.northcentralnetworks.com9901qoprod1\ciq0gm4jhdcs;D:\bea_qo\user_projects\qoprod\tmp_ejbftwp1lwqsua01v.us1.northcentralnetworks.com9901qoprod1\-15jfa1xndtmp4;D:\bea_qo\user_projects\qoprod\tmp_ejbftwp1lwqsua01v.us1.northcentralnetworks.com9901qoprod1\-5klg9r1covvc;D:\bea_qo\user_projects\qoprod\tmp_ejbftwp1lwqsua01v.us1.northcentralnetworks.com9901qoprod1\-1lmdnxdzqxgh7;D:\bea_qo\user_projects\qoprod\tmp_ejbftwp1lwqsua01v.us1.northcentralnetworks.com9901qoprod1\1hvt7p07sqqug;D:\bea_qo\user_projects\qoprod\tmp_ejbftwp1lwqsua01v.us1.northcentralnetworks.com9901qoprod1\-t3fwp54rcm3f;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\xerces.jar;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\framework1.6.2.jar;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\frameworkbean1.6.2.jar;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\irep.jar;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\jdom.jar;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\log4j-core.jar;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\log4j.jar;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\oraclass12.jar;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\baseclasses.jar;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\quickorderclasses.jar;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\usermanagerwebservices.jar;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\messagedrivenbean.jar;D:\bea_qo\jdk131_14\jre\lib\rt.jar;D:\bea_qo\jdk131_14\jre\lib\i18n.jar;D:\bea_qo\jdk131_14\jre\lib\sunrsasign.jar;D:\bea_qo\jdk131_14\jre\classes;D:\bea_qo\jdk131_14\jre\lib\ext\sunjce_provider.jar;D:\bea_qo\jdk131_14\jre\lib\ext\jce1_2_2.jar;D:\bea_qo\jdk131_14\jre\lib\ext\US_export_policy.jar;D:\bea_qo\jdk131_14\jre\lib\ext\local_policy.jar;D:\bea_qo\jdk131_14\lib\tools.jar;D:\bea_qo\weblogic700\server\lib\weblogic_sp.jar;D:\bea_qo\weblogic700\server\lib\weblogic.jar;D:\bea_qo\weblogic700\server\bin\classes\qs.jar;D:\bea_qo\jdk131_14\bin;D:\bea_qo\weblogic700\server\ext\jdbc\oracle\920\classes12.zip;D:\bea_qo\weblogic700\server\bin\classes\framework1.6.8.jar;D:\bea_qo\weblogic700\server\bin\classes\frameworkbean1.6.8.jar;D:\bea_qo\weblogic700\server\bin\classes\log4j.jar;D:\bea_qo\weblogic700\server\bin\classes\log4j-core.jar;D:\bea_qo\weblogic700\server\bin\classes\irep.jar;D:\bea_qo\weblogic700\server\bin\classes\baseclasses.jar;D:\bea_qo\weblogic700\server\bin\classes\qs.jar;D:\bea_qo\weblogic700\server\bin\classes\regexp.jar;D:\bea_qo\weblogic700\server\bin\classes\jsse.jar;C:\Progra~1\IBM\sqllib\java\db2java.zip;C:\Progra~1\IBM\sqllib\function;C:\Progra~1\IBM\sqllib\java\runtime.zip;, -d, tmp_ejbftwp1lwqsua01v.us1.northcentralnetworks.com9901qoprod1\k8tq4yxosas5, @C:\WINDOWS\TEMP\compileList36013.tmp])


Start server side stack trace:

Compiler failed executable.exec(java.lang.String[javac, -nowarn, -classpath, D:\bea_qo\user_projects\qoprod\tmp_ejbftwp1lwqsua01v.us1.northcentralnetworks.com9901qoprod1\k8tq4yxosas5;D:\bea_qo\user_projects\qoprod\tmp_ejbftwp1lwqsua01v.us1.northcentralnetworks.com9901qoprod1\1hyope2v59hqj;D:\bea_qo\user_projects\qoprod\tmp_ejbftwp1lwqsua01v.us1.northcentralnetworks.com9901qoprod1\-1c8sm0wpktvws;D:\bea_qo\user_projects\qoprod\tmp_ejbftwp1lwqsua01v.us1.northcentralnetworks.com9901qoprod1\ciq0gm4jhdcs;D:\bea_qo\user_projects\qoprod\tmp_ejbftwp1lwqsua01v.us1.northcentralnetworks.com9901qoprod1\-15jfa1xndtmp4;D:\bea_qo\user_projects\qoprod\tmp_ejbftwp1lwqsua01v.us1.northcentralnetworks.com9901qoprod1\-5klg9r1covvc;D:\bea_qo\user_projects\qoprod\tmp_ejbftwp1lwqsua01v.us1.northcentralnetworks.com9901qoprod1\-1lmdnxdzqxgh7;D:\bea_qo\user_projects\qoprod\tmp_ejbftwp1lwqsua01v.us1.northcentralnetworks.com9901qoprod1\1hvt7p07sqqug;D:\bea_qo\user_projects\qoprod\tmp_ejbftwp1lwqsua01v.us1.northcentralnetworks.com9901qoprod1\-t3fwp54rcm3f;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\xerces.jar;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\framework1.6.2.jar;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\frameworkbean1.6.2.jar;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\irep.jar;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\jdom.jar;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\log4j-core.jar;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\log4j.jar;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\oraclass12.jar;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\baseclasses.jar;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\quickorderclasses.jar;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\usermanagerwebservices.jar;D:\bea_qo\user_projects\qoprod\.\qoprod1\stage\quickorderapp\messagedrivenbean.jar;D:\bea_qo\jdk131_14\jre\lib\rt.jar;D:\bea_qo\jdk131_14\jre\lib\i18n.jar;D:\bea_qo\jdk131_14\jre\lib\sunrsasign.jar;D:\bea_qo\jdk131_14\jre\classes;D:\bea_qo\jdk131_14\jre\lib\ext\sunjce_provider.jar;D:\bea_qo\jdk131_14\jre\lib\ext\jce1_2_2.jar;D:\bea_qo\jdk131_14\jre\lib\ext\US_export_policy.jar;D:\bea_qo\jdk131_14\jre\lib\ext\local_policy.jar;D:\bea_qo\jdk131_14\lib\tools.jar;D:\bea_qo\weblogic700\server\lib\weblogic_sp.jar;D:\bea_qo\weblogic700\server\lib\weblogic.jar;D:\bea_qo\weblogic700\server\bin\classes\qs.jar;D:\bea_qo\jdk131_14\bin;D:\bea_qo\weblogic700\server\ext\jdbc\oracle\920\classes12.zip;D:\bea_qo\weblogic700\server\bin\classes\framework1.6.8.jar;D:\bea_qo\weblogic700\server\bin\classes\frameworkbean1.6.8.jar;D:\bea_qo\weblogic700\server\bin\classes\log4j.jar;D:\bea_qo\weblogic700\server\bin\classes\log4j-core.jar;D:\bea_qo\weblogic700\server\bin\classes\irep.jar;D:\bea_qo\weblogic700\server\bin\classes\baseclasses.jar;D:\bea_qo\weblogic700\server\bin\classes\qs.jar;D:\bea_qo\weblogic700\server\bin\classes\regexp.jar;D:\bea_qo\weblogic700\server\bin\classes\jsse.jar;C:\Progra~1\IBM\sqllib\java\db2java.zip;C:\Progra~1\IBM\sqllib\function;C:\Progra~1\IBM\sqllib\java\runtime.zip;, -d, tmp_ejbftwp1lwqsua01v.us1.northcentralnetworks.com9901qoprod1\k8tq4yxosas5, @C:\WINDOWS\TEMP\compileList36013.tmp])

at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:249)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:344)
at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:490)
at weblogic.ejb20.deployer.EJBDeployer.compileEJB(EJBDeployer.java:820)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1271)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:235)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:1786)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:747)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:561)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1128)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:796)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:261)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:223)
End server side stack trace


Thank you in advance.

Pramod Pradhan
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

javac is missing from your path ?

Check this -> http://h71000.www7.hp.com/partners/bea/weblogic_faqs.html


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Pramod Pradhan
Greenhorn

Joined: Jun 09, 2008
Posts: 4
@Deepak - thanks for helping me out.
I am running my weblogic on Windows and I have set my path = %JAVA_HOME%\bin during the start up of the servers.
I still get the same error and also the error throws out a lot of jar's I have mentioned in my classpath.

Any idea on where to look?

thanks
~pramod
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

Well weblogic EJB compiler probably takes your files, makes custom implementation java files and then tries to compile them. Compilation fails when this process takes place because javac is not in the path. hmmm... at least that is what it looks like. When you run your WL server are you pointing to a JRE or JDK ? You are probably pointing to a JRE and thus it is unable to find javac during compilation operations ?
Pramod Pradhan
Greenhorn

Joined: Jun 09, 2008
Posts: 4
@Deepak, I am pointing to a JDK. The JDK which comes in during the installation of WL.
I have the JDK @ c:\bea\jdk and my path is set to C:\bea\jdk\bin.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

Well thats weird then. Can you confirm from the console what your path looks like ?

Never seen a WL 7 console before (is it like WL 6 ?) but does the EJB module have a configuration screen of its own where you can see logging information ?
Pramod Pradhan
Greenhorn

Joined: Jun 09, 2008
Posts: 4
from the batch file I start, I had mentioned the path as pointing to JAVAHOME\bin...
but after you asked me to look into the console, there I saw the path was not set properly. I have set it and it worked this time

Thanks a ton Deepak! I really appreciate it!

thanks,
Pramod Pradhan
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

Glad to know the problem is resolved
 
 
subject: Compiler failed executable.exec(java.lang.String[javac - ERROR during deployment