cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with WAS

Former Member
0 Kudos

Hi All,

I am getting the following error while accessing the Webservice from the WebService Navigator. But when i click on Webservice name and clicks on TEST to access the methods in that webservice the follwing Error is dispalying.

An error has occurred: Cannot get endpoints from http://192.168.1.75:50000/ZInvoiceSchedulerWS/Config1?wsdl: Compilation fails... CompilerOracle: exclude com/sapportals/portal/pb/layout/taglib/ContainerTag addIviewResources CompilerOracle: exclude com/sap/engine/services/keystore/impl/security/CodeBasedSecurityConnector getApplicationDomain CompilerOracle: exclude com/sap/engine/services/rmi_p4/P4StubSkeletonGenerator generateStub CompilerOracle: exclude com/sapportals/portal/prt/util/StringUtils escapeToJS CompilerOracle: exclude com/sapportals/portal/prt/core/broker/PortalServiceItem startServices CompilerOracle: exclude com/sap/engine/services/webservices/server/deploy/WSConfigurationHandler downloadFile CompilerOracle: exclude com/sapportals/portal/prt/jndisupport/util/AbstractHierarchicalContext lookup java.lang.NoClassDefFoundError: com/sun/tools/javac/Main Exception in thread "main" .

The Same Webservice was worked fine till now. And from now all the Webservices returning the same error when i clicks on Test to access the methods.

I tried to deploy the same EJB again from the SAP NWDS. But it is giving the deployment Error.

ERROR: Not updated. Deploy Service returned ERROR:

java.rmi.RemoteException: Cannot deploy application sap.com/InvoiceSchedulerEAR..

Reason: Errors while compiling:

java.lang.NoClassDefFoundError: com/sun/tools/javac/Main

Exception in thread "main" ; nested exception is:

com.sap.engine.services.ejb.exceptions.deployment.EJBFileGenerationException: Errors while compiling:

java.lang.NoClassDefFoundError: com/sun/tools/javac/Main

Exception in thread "main"

at com.sap.engine.services.deploy.server.DeployServiceImpl.update(DeployServiceImpl.java:592)

at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1278)

at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)

at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)

at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)

at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)

Caused by: com.sap.engine.services.ejb.exceptions.deployment.EJBFileGenerationException: Errors while compiling:

java.lang.NoClassDefFoundError: com/sun/tools/javac/Main

Exception in thread "main"

at com.sap.engine.services.ejb.util.AdminUtils.compile(AdminUtils.java:476)

at com.sap.engine.services.ejb.deploy.DeployAdmin.deploySingleJar(DeployAdmin.java:625)

at com.sap.engine.services.ejb.deploy.DeltaDeployAdmin.makeUpdate(DeltaDeployAdmin.java:185)

at com.sap.engine.services.ejb.EJBAdmin.makeUpdate(EJBAdmin.java:529)

at com.sap.engine.services.deploy.server.application.UpdateTransaction.makeComponents(UpdateTransaction.java:376)

at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:379)

at com.sap.engine.services.deploy.server.application.UpdateTransaction.begin(UpdateTransaction.java:148)

at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:290)

at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:323)

at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3033)

at com.sap.engine.services.deploy.server.DeployServiceImpl.update(DeployServiceImpl.java:580)

... 10 more

Caused by: com.sap.engine.compilation.CompilerException: Compilation Failed! Exit Code=1 ;Error stream contains:"java.lang.NoClassDefFoundError: com/sun/tools/javac/Main

Exception in thread "main" "

at com.sap.engine.compilation.ExternalCompiler.compile(ExternalCompiler.java:103)

at com.sap.engine.services.ejb.util.AdminUtils.compile(AdminUtils.java:471)

... 20 more

What may be the Error.

Thanks in Advance

RAMU.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

This error means there is a problem woth the javac executable on that machine and it cannot be found.

Doublecheck whether the environment variable JAVA_HOME is set, if not set it. Also check if path to jdk bin directory is added to the PATH variable of the user with which the j2ee engine is running.

Also check for javac.exe in winnt\System32 or any winnt subdirectories (if engine is running on Windows) if it is present remove it.

I hope this helps.

Myriana