Getting issue-java.lang.NoClassDefFoundError:NucleusServletResourceBundle
Hi I am new in ATG,
i am trying to deploy the "QuincyFunds" throw webconsole, at deployment time getting bellow exception. where i am wrong?
java.lang.NoClassDefFoundError: atg/nucleus/servlet/NucleusServletResourceBundle
at atg.nucleus.servlet.NucleusServlet.<clinit>(NucleusServlet.java:123)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at weblogic.servlet.internal.WebComponentContributor.getNewInstance(WebComponentContributor.java:225)
at weblogic.servlet.internal.WebComponentContributor.createServletInstance(WebComponentContributor.java:249)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:255)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1985)
at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1959)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1878)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Thanks in advance
Make sure that all the weblogic jars are imported in the config path. You application misses some jars.
Thanks,
Mathew.
Similar Messages
-
Very Strange java.lang.NoClassDefFoundError. Class exists in classpath
Dear Forum:
Occasionally, I run into strange java.lang.NoClassDefFoundErrors.
Here is an example: I have two different classes Class1.class and Class2.class in different jars. Both use a common class: AppContext in third jar file.
If Class1 tries to use AppContext, it works just fine. However, if Class1 instantiates Class2 and Class2 tries to use AppContext, you get the nasty java.lang.NoClassDefFoundError, in the same thread.
After a struggle and trying out different orders in class / library paths, the error goes away. However, I do want to know what is the better way to understand and resolve this issue?
Here is a sample code, for illustration purposes only:
File:Class1.java_
Public class Class1
Public Class1 ()
AppContext.getLogger().logDebug(�test1�);
//the above line works just fine.
try
Class2 something = new Class2();
catch(Error ex)
//here we get a java.lang.NoClassDefFoundError for AppContext, which works just fine from Class1.java
ex.printstackTrace();
File:Class2.java:_
Public class Class2
Public Class2()
AppContext.getLogger().logDebug("test2");
}I think I have answer to this mystery.
This was an issue with the jdeveloper, where the jar file throwing the class not found exception was loaded by a different classloader and the jar file which could find the class was loaded by another classloader.
I forgot to mention that this was a j2ee application being run by the internal j2ee server of Jdeveloper. -
Java.lang.NoClassDefFoundError while calling a java class from BPEL
Hi,
I'm calling a java class to convert JSON to XML using BPEL. I have imported all the necessary jar files in the project and compiling done successfully.
But at runtime , i get the java.lang.NoClassDefFoundError: net/sf/json/JSON error.
For this i placed all the necessary jars under FUSION_HOME/Oracle_SOA1/soa/modules/oracle.soa.ext_11.1.1/ path and restarted the server.
But still i'm getting the same error at runtime.
Did i missed any step? Let me know the procedure to solve this.
Do i have to run ant or edit Manifest file after placing the jar?
in one site i find we have to place the jars under <DOMAIN HOME>/lib directory. Is this correct?
We are using SOA suite 11.1.1.6.
Thanks,
TerryHi Karan,
I have done placing the jars at FUSION_HOME/Oracle_SOA1/soa/modules/oracle.soa.ext_11.1.1/ and ran ant -f build.xml .The build was successful without any error.
I have even placed the jars in <DOMAIN HOME>/lib (/us2001/fmw/11.1.1.6/user_projects/domains/ohsdomain/lib) and did a server restart.
After these activities, when i execute the composite, i still get the error in em console,
Message
got RuntimeException
Supplemental Detail
oracle.fabric.common.FabricException: Could not create object of class 'packageName.className'; nested exception is:
java.lang.NoClassDefFoundError: net/sf/json/JSON
at oracle.integration.platform.blocks.wsif.WsifReference.request(WsifReference.java:698)
at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:139)
at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:182)
Any help on this.
Thanks,
Terry -
Argh! "java.lang.NoClassDefFoundError"! help!
I am a student and only just started programming in Java. When I installed the SDK on my home computer i discovered that everytime i try and run a program i have written, no matter how basic, i get a "java.lang.NoClassDefFoundError". I did a search on the forum and found lots of stuff about something called classpath, but i have no idea what it is or how to do it, despite the explanations ive read. If someone could please take me through it step by step id be VERY greatful.
I'm running it on Windows XP home edition.
Thanks alot
JonI tried the tutorial you showed me, thanks. However, it doesnt seem to have worked, when i did the "set CLASSTEST=" in the directory i was in then it worked, but only temporarily. But when I tried changing the Path variable in Environment Variables (Control Panel\System --> Advanced --> Environment Variables, it didnt seems to work. I added "C:\j2sdk1.4.2_02\bin" to both the user variables and system variables.
Anyway, this is what I tried, from the beginning...
I wrote the code in TextPad, the code is as follows -
public class HelloWorld {
public static void main( String[] args ) {
System.out.println( "hello world" );
(as i understand, it couldnt be any simpler!)
I then compiled this in TextPad and got no errors.
I then tried then run it, also through TextPad (Tools --> Run Java Application) and got this error (word for word) -
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
Press any key to continue . . .
I also tried running it from the command prompt and just got the same error, even when i switched to the right directory (C:\Documents and Settings\Jon\Desktop\Uni_stuff). The commands i entered were "java HelloWorld".
If anyone can help me with this, id be greatful as its getting pretty urgent.
Thanks
Jon Britton -
Portal Service - java.lang.NoClassDefFoundError
Hi all,
I've a Web Dynpro project which uses a portal service we wrote.
I added the service's name to the "Sharing References" of the project and the project runs.
However, after each restart to the server I get 'java.lang.NoClassDefFoundError' for the portal service. Redeploying the service solves the problem until next restart...
After doing a lot of checking I've came to the conclusion that the problem is in the initialization of the service in the component controller.
The component controller has 3 methods. In each of this methods the service is called
ISqlService sqlservice = (ISqlService)WDPortalUtils.getServiceReference(ISqlService.KEY);
After commenting this lines and moving the initialization line to "begin others" segment the problem seems to be solved (I've done some restarts to the server and the application ran without a problem)
My question is: if none of the methods of the controller is called on application startup then why do I get the java.lang.NoClassDefFoundError?
Also, when does the Web Dynpro framework load the portal service? isn't it supposed to be first time the service is called?
Regards,
OmriHi Umesh,
Try declaring a runtime reference for the service you are using in the project properties.
Please explore the options:
Project properties -> WebDynpro References -> Service References & Sharing References
For ex:In my application, i use KM functionality.Even though Ive KM jars in the classpath (as external lib DCs), I mentioned a runtime reference in "Sharing References" as PORTAL:sap.com/com.sap.km.application.
Similarly, I remember seeing somewhere mentioning the service you're trying to access as a Service Reference in the DC properties.
something like: PORTAL:mycompany.com/com.....MyService
A common portal service that is used in WebDynpro DCs is URLGenerator service. Probably if you search on it, you might find a clue.
Regards,
Rajit Srinivas -
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp
I have set the path, classpath and also compiled the HelloWorldApp.java file and my main is public static void main.
public class HelloWorldApp
public static void main(String[] args)
// Display "Hello World!"
System.out.println("Hello World!");
I still get this error
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldAppFor better understanding:
I have set the classpath in the autoexec.bat following:
set CLASSPATH="C:\TEST;.;";
and I have a userdefined class in c:\jdk1.3.1_01\jre\lib\ext\myclass.jar
compiling works, but when I run the program in c:\TEST\Hello.java I get the java.lang.NoClassDefFoundError Message.
My source code looks like this:
import myclass.*;
public class Hello extends MyClass{
public static void main(String[] args) {
System.out.println("Hello"); -
When get into ESR ,,error - java.lang.NoClassDefFoundError
Hi expert!!
I got the error ( java.lang.NoClassDefFoundError) when getting into ESR..
for the detail , occured after clicking logon buttom.
the error occured when getting into ESR only. no problem with ID, RWB, SR, SLD, NWA.
i used JDK 1.6 with my laptop, but once got the above error,
i tried to change JDK 1.6.0_24 to 1.5.0_22, but same happened.
restore achives and generate new signature didn't help this error.
all of host on exchange proflie used FQDN.
the following is for components info regarding PI 7.1
=========================================================================================
sap.com SAP-XIAFC 1000.7.11.0.0.20081028231200 SAP AG
sap.com SAP_BUILDT 1000.7.11.0.0.20081028231700 SAP AG
sap.com SAP_XIAF 1000.7.11.0.0.20081209013800 SAP AG
sap.com SAP_XIESR 1000.7.11.0.0.20081209013800 SAP AG
sap.com SAP_XIGUI 1000.7.11.0.0.20081028231200 SAP AG
sap.com SAP_XITOOL 1000.7.11.0.0.20081209013800 SAP AG
thanks
bangbangHi,
Please clarify:
Are you getting this error in a freshly installed system or in the system which was working fine earlier?
Have you done any patching or upgaradationd recently?
Please refer to the sap notes below which may help to resolve your issue:
#1515991
#1452561
Regards,
Naveen. -
Can't get by Exception in thread "main" java.lang.NoClassDefFoundError:
With the help of someone on the Forum, I resolved the class reference that was giving me fits. But I'm still getting
Exception in thread "main" java.lang.NoClassDefFoundError: jform_example
This is all the information that I get. It compiles and runs from SunOne IDE, but not from command line. What Class reference or whatever am I missing? I don't know that my environment variables are correct. I've tried to find a comprehensive list of steps to do so, but without success. So I've been winging it.
What information should I provide that will help you help me. I'm spending WAY to much time on this issue.
Help!
GaryThis error occurs when the java.exe program can not find the class whose name was specified on the command line. Note that the argument to java.exe is the class name not a file name. java.exe tried to find a file whose name is jform_example.class. It searched the directories that were in your system's Classpath environment variable at the time of command execution. It didn't find the file.
So the file jform_example.class must exist, must be named exactly as specified (java is case sensitive so Jform_Example won't work), the source code must not start with a package statement (a package statement means the class name is package_name.jform_example), and the jform_example.class must be in a directory that's in your Classpath.
Try to CD to the directory where jform_example.class is located and use the command "java -classpath . jform_example" This uses the current directory as the Classpath during execution. -
Well, now I'm pulling my hair out even more because I can't get it to resolve anything in jaxws-rt.jar at runtime. Note: compile-time still works FINE.
I was messing with classpaths and stuff (and the endorsed dirs option of course) and it was "working" to the extent I had posted before, but then I kept playing with it and at some point I said, this isn't working and I need to reset all this stuff back to the way it was.
... so I did that. And now it won't resolve "PolicyException:"
java.lang.NoClassDefFoundError: com/sun/xml/ws/policy/PolicyException
This doesn't mean anything to you guys I bet, but that happens when it FIRST gets inside the web service code, which references PolicyException (doesn't even use it at that point.. I'm assuming the import is screwing it up when it's in the constructor). So now it won't resolve at all. Before, it was getting past this point and telling me the "method not found" error on the next line or this same error for WSBindingProvider two lines down, when it's actually being used. AWESOME.
I downloaded the latest jaxws-rt.jar and all its dependencies, shoved that into my lib folder, and set the endorsed dir to that folder (There's kind of a web of dependencies here. jaxws-rt.jar expects all its dependencies to be in the same folder, it seems, so I don't know how it was "working" before when I just copied jaxws-rt.jar into my separate endorsed dir - but I can't move all of those files to endorsed because I need them in my project (which expects them to be in the lib folder)). What happened? It went back to my original "String" error (first error in the first post), which means it's not getting endorsed at all from that location.
What a mess.
Can someone tell me what the heck I'm supposed to do with this jar file? -
Hi,
system i am using for Oracle SOA is :
Windows 64 Bit
i5 Processor
6 GB RAM
29 GB on C Drive is already free after installation of all SOA related products.
I have installed wlserver_10.3 for SOA 11g Development purpose and followed exact installation sequence and procedure as mention in oracle documentation
i created domain also and every thing look correct but after installation procedure there are "Additional actions required just after every thing installed" :
setting memory limit
starting weblogic server (Admin Server)
starting weblogic managed server
and so on
now Problem is when i execute C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin startWebLogic.cmd
as mention in oracle documentation i am getting following error message : (i have only included last error lines instead of complete console log)
oConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1036\profiles\default\
sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_oepe180\profiles\default\syse
xt_manifest_classpath;C:\Oracle\MIDDLE~1\patch_ocp371\profiles\default\sysext_ma
nifest_classpath;C:\Oracle\MIDDLE~1\patch_adfr1111\profiles\default\sysext_manif
est_classpath weblogic.Server
Listening for transport dt_socket at address: 8453
Exception in thread "main" java.lang.NoClassDefFoundError: vXmx512m
Caused by: java.lang.ClassNotFoundException: vXmx512m
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: ++Xmx512m. Program will exit.
Now to resolve this what i already tried are :
I change JAVA_HOME and PATH to jdk6 which came with web logic installer
Location is at :
JAVA_HOME : C:\Oracle\Middleware\jdk160_29
PATH : C:\Oracle\Middleware\jdk160_29\bin
The above dose not include any space between path
I ran the startWebLogic.cmd and got same error
After that I also added
CLASSPATH : C:\Oracle\Middleware\jdk160_29\lib\tool.jar;C:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar;C:\Oracle\Middleware\jdk160_29\bin
WL_HOME: C:\Oracle\Middleware\wlserver_10.3
I ran the startWebLogic.cmd and got same error
I also used earlier path which I used with eclipse when I was working on other java development.
JAVA_HOME : C:\Program Files\Java\jdk1.7.0_21
PATH : C:\Program Files\Java\jdk1.7.0_21\bin
I ran the startWebLogic.cmd and got same error
Then I also gave PATH: C:\Oracle\Middleware\wlserver_10.3\server\lib (including the existing one using ; )
I ran the startWebLogic.cmd and got same error
Now may be there is a file called setSOADomainEnv.cmd in
< C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin\ setSOADomainEnv.cmd>
That include some values for memory set :
set JAVA_OPTIONS=%JAVA_OPTIONS%
set DEFAULT_MEM_ARGS=-Xms512m –Xmx512m
set PORT_MEM_ARGS=-Xms512m –Xmx768m
if "%JAVA_VENDOR%" == "Oracle" goto OracleJVM
set DEFAULT_MEM_ARGS=%DEFAULT_MEM_ARGS% -XX:PermSize=128m -XX:MaxPermSize=768m
set PORT_MEM_ARGS=%PORT_MEM_ARGS% -XX:PermSize=256m -XX:MaxPermSize=768m
now as I change the red highlighted value to 512 value because I have less memory resource and I checked in installation documentation to change the above red highlighted value to 512 original is 1024 which is too high and it was crating problem and showing memory space problem so I change it to 512 and now I am not getting that memory space problem error but may be the above error is related with change value in setSOADomainEnv.cmd file or not
Following are my domain, weblogic and soa home directory path and all these path are exactly what it suppose to be according to Oracle Installation Documentation:
WebLogic :
C:\Oracle\Middleware\wlserver_10.3
C:\Oracle\Middleware\coherence_3.7
C:\Oracle\Middleware\oepe_11.1.1.8.0
SOA Oracle Home Directory :
C:\Oracle\Middleware\Oracle_SOA1
OSB Home Location :
C:\Oracle\Middleware\Oracle_OSB1
Domain name : soa_div_domain
Domain Location : C:\Oracle\Middleware\user_projects\domains
Application Location : C:\Oracle\Middleware\user_projects\applications
Domain Location: C:\Oracle\Middleware\user_projects\domains\soa_div_domain
form here i am trying to start weblogic : C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin\startWebLogic.cmd
Please tell me any body want more details.
Thanks.I think you are missing a character '-'
USER_MEM_ARGS="Xms512m -Xmx512m -XX:MaxPermSize=128m"Add this character like follows
"-Xms512m -Xmx512m -XX:MaxPermSize=128m" -
My WLS is 8.1 SP2. I try to run the CGI/PL program in my server and I install the servlet in the web.xml file. After I run one CGI/PL program I get
" Error 500--Internal Server Error "
And I check with the log file. I get those error message:
<Jan 6, 2005 11:53:52 AM PST> <Error> <HTTP> <BEA-101017> <[ServletContext(id=20
41638322,name=PORTAL,context-path=)] Root cause of ServletException.
java.lang.NoClassDefFoundError
at weblogic.servlet.CGIServlet.init(CGIServlet.java:74)
at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(Servl
etStubImpl.java:993)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
118)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:869)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
Impl.java:848)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:787)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:518)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:362)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
Anyone have idea how does this happen and how to fix it?
Thanks advance
AllenHi Allen,
Even I am facing the same problem. Did you received any reply from anyone? or Did you found any solution for the same? I am using WebLogic Server 8.1 SP5
If someone from BEA team helps as this being a reported problem.
Thanks in Advance,
Raghuram -
i have compile and run my program. First time the program can run. But after that when i run, come out error messege as below:
java.lang.NoClassDefFoundError: FormPoster (wrong name: search/FormPoster)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
Exception in thread "main"
what can i do? thank very muchHello,
i have compile and run my program. First time theprogram can run.
But after that when i run, come out error messegeas below:
java.lang.NoClassDefFoundError: FormPoster (wrongname: search/FormPoster)
Check your FormPoster class: the classname has to be
the same as
the file name and the class should be stored in its
correct directory
(the sub directory structure should reflect the
package name).
kind regards,
JosYou should also check your clsspath if you are using packages. -
Always get java.lang.NoClassDefFoundError
I run some very simple class to more complex but always receive the same error at execution "Exception in thread "main" java.lang.NoClassDefFoundError".
For example p1.java file says:
public class p1 {
static public void main(String[] args) {
System.out.println("Go");
i compile : javac p1.java then i run with java p1Looks like you don't have a system environment variable set. E.g., on Windows set JAVA_HOME to where you installed your JDK.
-
Java.lang.NoClassDefFoundError when running the Junit method
Hi Friends
I am stuck in this typical Junit problem for a copule of days but still not able to find any solution for it.The problem is as below.
I have written Junit test case for 1 method that has been added in the session bean. the code is as below.
public void testfindResponses() {
ClientManager cMgr = null;
Collection retvalue= new ArrayList();
try {
System.out.println("Before");
cMgr = EJBHomeUtilities.getClientManagerHome().create();
System.out.println("After" + cMgr.toString());
// retvalue=cMgr.findSurveyResponses(clientPk,startTime,endTime);
}catch (RemoteException e) {
//logger.error(e.getMessage());
throw new EJBException(e.getMessage());
} catch (CreateException e) {
// logger.error(e.getMessage());
throw new EJBException(e.getMessage());
} finally {
EJBHomeUtilities.removeSessionBean(cMgr);
//return retvalue;
when i run this using the Junit consol;e on the eclipse i am getting
java.lang.NoClassDefFoundError
at sun.reflect.GeneratedSerializationConstructorAccessor35.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.io.ObjectStreamClass.newInstance(ObjectStreamClass.java:869)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1698)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:120)
at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:227)
at org.jboss.invocation.MarshallingInvokerInterceptor.invoke(MarshallingInvokerInterceptor.java:37)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:169)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
at $Proxy0.create(Unknown Source)
at com.march.hth.test.client.ClientManagerBeanTest.testfindSurveyResponses(ClientManagerBeanTest.java:3918)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
The remote reference that i get seems to not work atall.i tried to put debug statements to see if i am getting the remote reference,but the control seems to not go there itself.
The same method if i write for another session bean it is working fine without any errors.
Please let me know whats wrong here as i am stuck up with this issue for a long time .waiting for positive replies from your side.
Thanks & Regards
Vikram KI also came across this error . . . the exception message seemed to indicate a problem in the HTML file. In mine, I had the HEIGHT and WIDTH attributes set to 100% -- something that is nonsensical outside of a browser context. I changed those values to some number of pixels (800 and 600, say), and the exception did not reoccur. I suggest you try the same.
--john -
Error Launching BPEL Console - java.lang.NoClassDefFoundError
Hi All,
After Installed standard SOA Basic install
I am able to launch the below consoles
- Application Server
- ESB
- Rules Author
- Web Services Manager
but when i launch the BPEL console i get the below error
Oracle BPEL Process Manager Full Cycle
An unexpected error has occurred while executing your request. This is most likely related to a defect in the Oracle BPEL Process Manager product. We apologize you can post the error to the OTN forum and we will get back to you as soon as possible.
Attachments:
Build Information:
Oracle BPEL Server version 10.1.3.1.0
Build: 0
Build time: Mon Oct 09 08:44:49 PDT 2006
Build type: release
Source tag: PCBPEL_10.1.3.1.0_GENERIC_061009.0802
Exception Message:
[java.lang.NoClassDefFoundError]
org/apache/log4j/Category
Exception Trace:
java.lang.NoClassDefFoundError: org/apache/log4j/Category
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.getConstructor(Class.java:1629)
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
at org.collaxa.thirdparty.apache.axis.components.logger.LogFactory.getLog(LogFactory.java:37)
at org.collaxa.thirdparty.apache.axis.encoding.TypeMappingImpl.(TypeMappingImpl.java:68)
at com.collaxa.cube.engine.deployment.TypeSoapRegistry.registerHeaderTypes(TypeSoapRegistry.java:251)
at com.collaxa.cube.engine.deployment.TypeSoapRegistry.load(TypeSoapRegistry.java:79)
at com.collaxa.cube.engine.core.TypeRegistry.load(TypeRegistry.java:126)
at com.collaxa.cube.engine.CubeEngine.__load(CubeEngine.java:613)
at com.collaxa.cube.engine.CubeEngine.load(CubeEngine.java:474)
at com.collaxa.cube.admin.ServerManager.loadDomain(ServerManager.java:1111)
at com.collaxa.cube.admin.ServerManager.loadAllDomains(ServerManager.java:924)
at com.collaxa.cube.admin.ServerManager.init(ServerManager.java:111)
at com.collaxa.cube.ejb.impl.ServerBean.init(ServerBean.java:254)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:396)
at com.evermind.server.ThreadState.runAs(ThreadState.java:622)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxNotSupportedInterceptor.invoke(TxNotSupportedInterceptor.java:43)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at ServerBean_RemoteProxy_4bin6i8.init(Unknown Source)
at com.collaxa.cube.admin.CXLoaderServlet.init(CXLoaderServlet.java:60)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2361)
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4810)
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4734)
at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4922)
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1134)
at com.evermind.server.http.HttpApplication.(HttpApplication.java:738)
at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414)
at com.evermind.server.Application.getHttpApplication(Application.java:545)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1990)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.(HttpSite.java:1909)
at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:645)
at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:290)
at com.evermind.server.http.HttpServer.setSites(HttpServer.java:270)
at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:177)
at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2450)
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:998)
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
at java.lang.Thread.run(Thread.java:595)
any pointers in how to resolve the issue or what is causing it ?
thanksone way of overcoming the error is to include the below entry in server.xml
<code-source path="D:\product\10.1.3.1\OracleAS_1\bpel/lib/orabpel-thirdparty.jar"/>
Maybe you are looking for
-
Itunes 9.1 for windows causes visual c++ runtime error r6034
howdy y'all, my setup ... os = win xp pro, sp3, current patches installed itunes = 9.1.0.79 the original update was thru the apple software updater. after the error showed up on 1st start of itunes, i ... = rebooted the system = no fixee = uninstalle
-
How do we chcek change Logs for any stndrd transaction
Hi gurus, Are there any tables to check change Logs for any SAp standard t-code ? Thanks Kylie
-
Order to cash cycle - IDocs Involved
Hi experts, Im a XI consultant and ive been given the job of creating a business package in XI for the Order to Cash process. Since i cant directly execute TCODEs from XI i will map all the required data to all the IDocs involved in the Order to cash
-
I know it's impractical to use a MacBook Pro (Early 2011) as a server, but for the hobbyist/tester would Lion Server install and run on a MacBook Pro?
-
I've created a playlist on my computer to put videos in, but the ipod doesn't show the playlist to update it, basically, how do I upload music video playlist into the ipod ????