NoClassDefFoundError at runtime
Hi, everybody:
I am a new commer to Java programming. I recently downloaded and installed the Java JDK 1.3.1 version on my Windows 98 and Windows 2000 computers without any installation problem. I wrote a very simple program and compiled from command prompt without any error. But when I ran the compiled program from command prompt, I got the following error in both Windows 98 and Windows 2000 computers:
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp
Before I compiled and ran the program, I had checked the PATH and CLASSPATH system variables in the startup AUTOECEC.BAT just to make sure the system enviroment setting is correct. The program I wrote was simple enough just to include a class and main declaration that will display "Hello" on the command prompt.
Can somebody offer any solution for this? please respond your helpful advice to
[email protected]
6-10-2002
Thanks.
hi,
make sure that classpath is set to your current working directory like the following :
set CLASSPATH=.;%CLASSPATH%
note : there is a dot after = sign and before (semicolon)
Similar Messages
-
Java.lang.NoClassDefFoundError in Runtime Workbench
Hello,
I am getting java.lang.NoClassDefFoundError: com/sap/aii/rwb/rtcheck/rtcserver/Processor error while trying to run Component Monitoring in runtime workbench.
Please advise!!
Thanks a lot
Edited by: Chanakya Sharma on Jun 13, 2010 9:47 AMDear Mark,
Thansk a lot. Even I was thinking on those lines.
But not sure, is their any way we can undeploy SP5 patch and come revert back to SP4?
I am facing one more issue in the following thread, I think it is also because of the same SP mismatch issue. Could you please have a look and post your expert comments there as well?
HTTP 500 Internal Server Error in SXMB_MONI
Thanks for support!! -
Bug:WEB-INF/lib JARs not added to runtime classpath of WebLogic Server
The JAR files packaged in the WEB-INF/lib directory of an application do not get installed to the runtime classpath of the Weblogic server.
Edited by: dvohra16 on Feb 28, 2013 9:24 AMSome posts in which an external jar, usually a JDBC jar, had to be added to the startWebLogic script to be added to the runtime classpath of WebLogic server.
Re: jdbc problem on MS SQL Server
Re: MySQL JDBC driver w/11.1.2 where too now?
Re: ADF Parameter form - java.lang.NoClassDefFoundError: sqlj/runtime/ref/Defa
Re: Cannot load driver class: com.microsoft.sqlserver.jdbc.SQLServerDriver
Re: deploy a shared library
Re: Cannot load driver class: com.microsoft.sqlserver.jdbc.SQLServerDriver
Re: Help need in Adding External jar files.
Re: NoClassDefFoundError while Testing a JAX-WS Web Service
Re: Unable to connect to SQL server 2008 from a deployed Weblogic application
Re: Howo to add external jar - quick question
Re: MySql connection with JDev 11.1.2.2 issues
Re: Integration of MySQL with ADF application -
When I run my application without creating a jar file, the
application runs well. When I make a jar file and attempt to run
the application from the jar file, I get "Exception in thread
"main" java.lang.NoClassDefFoundError:
sqlj/runtime/profile/RTResultSet
My classpath points to the runtime12.jar file, and of course
works with the non archived version.
Any help would be appreciated.hi,
Make sure that you have translator.zip also in the classpath -
im getting the error
Exception in thread "main" java.lang.NoClassDefFoundError:
during runtime the programs compile no problem.
i'm trying to get the basic secure socket client server programs supplied with jsse1.0.2
running
but i always end up with the same error no matter what sample program i try to run
i have the jar files jcert,jnet and jsse in my classpath
i'd appreciate any help
thanksDid you read the installation instructions that came with JSSE 1.0.2? Here is an abstract:
3) Install the JSSE jar files.
The JSSE lib subdirectory contains the extension files jsse.jar,
jcert.jar, and jnet.jar. You can either install these files in
the JDK/JRE ("installed extension") or bundle them with your
applet or application ("bundled extension"). If you
wish to install them as an installed extension, place
them in the following directory:
<java-home>/lib/ext
Note that on Windows you have to install the JAR files in C:\Program Files\JavaSoft\JRE\1.3.1\lib\ext also (if you use J2SE 1.3.1).
By the way, JSSE is built-in in J2SE 1.4, so you could also upgrade to 1.4 so that you don't need to install JSSE separately.
Jesper -
Java_cup/runtime/Scanner
I'm really new to Java. I run someone else's old java application, but got the following error message:
java.lang.NoClassDefFoundError:java_cup/runtime/Scanner
I have all the class files (including Scanner.class) from java_cup/runtime distribution in the directory where I launch my java application.
Any clue/help will greatly be appreciated.
thanks.assuming "." is in your classpath, you need to put Scanner.class in the subdirectory, ./java_cup/runtime
-
Problem starting weblogic server
Can I use third party libraries with the evaluation copy of the weblogic
server?
I am having problems starting the weblogic server with third party
libraries (i.e. oralce's sqlj's translator.zip, runtime.zip and
classes2.zip). The following exception is thrown when the server is
initialising:
Can someone explain what is wrong please?
Many thanks
Gilbert Owusu
15:17:10 GMT 2000:<I> <System Props> weblogic.system.home = C:\weblog
ic
Mon Jun 19 15:17:10 GMT 2000:<I> <WebLogicServer> Loaded License :
C:/weblogic/l
icense/WebLogicLicense.xml
Mon Jun 19 15:17:10 GMT 2000:<I> <WebLogicServer> Server loading from
weblogic.c
lass.path. EJB redeployment enabled.
java.lang.Exception: Problem with X509 certificate: fingerprint =
5ebfaa56b17289
3f050b19ae79d80547, not before = Fri Apr 28 22:03:47 GMT 2000, not after
= Sun M
ay 28 22:03:47 GMT 2000, holder = C=US SP=California L=San Francisco
O=BEA WebLo
gic CN=weblogic.beasys.com [email protected] , issuer = C=US
SP=Califor
nia L=San Francisco O=WebLogic OU=Security CN=Demo Certificate Authority
Email=s
[email protected] , key = modulus length=65 exponent length=3,
java.lang.Exc
eption: Certificate expired or not yet valid: fingerprint =
5ebfaa56b172893f050b
19ae79d80547, not before = Fri Apr 28 22:03:47 GMT 2000, not after = Sun
May 28
22:03:47 GMT 2000, holder = C=US SP=California L=San Francisco O=BEA
WebLogic CN
=weblogic.beasys.com [email protected] , issuer = C=US
SP=California L=
San Francisco O=WebLogic OU=Security CN=Demo Certificate Authority
Email=securit
[email protected] , key = modulus length=65 exponent length=3
at
weblogic.t3.srvr.SSLListenThread.insertIntoCAChain(SSLListenThread.ja
va:206)
at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java,
Compile
d Code)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
at weblogic.NTServiceHelper.run(NTServiceHelper.java:19)
at java.lang.Thread.run(Thread.java:479)
Mon Jun 19 15:17:16 GMT 2000:<E> <SSLListenThread> Security
Configuration Proble
m with SSL server certificate file (C:\weblogic\myserver\democert.pem),
java.lan
g.Exception: Problem with X509 certificate: fingerprint =
5ebfaa56b172893f050b19
ae79d80547, not before = Fri Apr 28 22:03:47 GMT 2000, not after = Sun
May 28 22
:03:47 GMT 2000, holder = C=US SP=California L=San Francisco O=BEA
WebLogic CN=w
eblogic.beasys.com [email protected] , issuer = C=US
SP=California L=Sa
n Francisco O=WebLogic OU=Security CN=Demo Certificate Authority
Email=security@
weblogic.com , key = modulus length=65 exponent length=3,
java.lang.Exception:
Certificate expired or not yet valid: fingerprint =
5ebfaa56b172893f050b19ae79d8
0547, not before = Fri Apr 28 22:03:47 GMT 2000, not after = Sun May 28
22:03:47
GMT 2000, holder = C=US SP=California L=San Francisco O=BEA WebLogic
CN=weblogi
c.beasys.com [email protected] , issuer = C=US SP=California
L=San Fran
cisco O=WebLogic OU=Security CN=Demo Certificate Authority
Email=security@weblog
ic.com , key = modulus length=65 exponent length=3
Mon Jun 19 15:17:17 GMT 2000:<I> <Security> Not listening for SSL:
java.io.IOExc
eption: Security Configuration Problem with SSL server certificate file
(C:\webl
ogic\myserver\democert.pem), java.lang.Exception: Problem with X509
certificate:
fingerprint = 5ebfaa56b172893f050b19ae79d80547, not before = Fri Apr 28
22:03:4
7 GMT 2000, not after = Sun May 28 22:03:47 GMT 2000, holder = C=US
SP=Californi
a L=San Francisco O=BEA WebLogic CN=weblogic.beasys.com
[email protected]
om , issuer = C=US SP=California L=San Francisco O=WebLogic OU=Security
CN=Demo
Certificate Authority [email protected] , key = modulus
length=65 exp
onent length=3, java.lang.Exception: Certificate expired or not yet
valid: finge
rprint = 5ebfaa56b172893f050b19ae79d80547, not before = Fri Apr 28
22:03:47 GMT
2000, not after = Sun May 28 22:03:47 GMT 2000, holder = C=US
SP=California L=Sa
n Francisco O=BEA WebLogic CN=weblogic.beasys.com
[email protected] , i
ssuer = C=US SP=California L=San Francisco O=WebLogic OU=Security
CN=Demo Certif
icate Authority [email protected] , key = modulus length=65
exponent
length=3
Mon Jun 19 15:17:19 GMT 2000:<I> <WebLogicServer> Invoking main-style
startup we
blogic.jdbc.common.internal.JdbcStartup
weblogic.jdbc.common.internal.JdbcStartu
p
Mon Jun 19 15:17:19 GMT 2000:<I> <JMS> Beginning startup process
Mon Jun 19 15:17:19 GMT 2000:<I> <JMS> Init JMS Security
Mon Jun 19 15:17:20 GMT 2000:<I> <JMS> Initializing from
weblogic.properties
Mon Jun 19 15:17:20 GMT 2000:<I> <JMS> Startup process complete. JMS is
active
Mon Jun 19 15:17:20 GMT 2000:<I> <JMS> Bound SessionPoolManager as
weblogic.jms.
SessionPoolManager
Mon Jun 19 15:17:20 GMT 2000:<I> <JMS> Bound ConnectionConsumerManager
as weblog
ic.jms.ConnectionConsumerManager
Mon Jun 19 15:17:21 GMT 2000:<I> <WebLogicServer> Invoking main-style
startup RM
I Registry weblogic.rmi.internal.RegistryImpl
Mon Jun 19 15:17:21 GMT 2000:<I> <RMI> Registry started
Mon Jun 19 15:17:21 GMT 2000:<I> <EJB> Enterprise JavaBeans initializing
The WebLogic Server did not start up properly.
Exception raised: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException:
java.lang.NoClassDefFoundError: sql
j/runtime/ConnectionContext
at java.lang.ClassLoader.resolveClass0(Native Method)
at java.lang.ClassLoader.resolveClass(ClassLoader.java:545)
at
weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
cClassLoader.java, Compiled Code)
at
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:172)
at
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:146)
at
weblogic.ejb.internal.EJBJarLoader.loadClass(EJBJarLoader.java:95)
at
weblogic.ejb.internal.EJBHomeImpl.loadClass(EJBHomeImpl.java:617)
at weblogic.ejb.internal.EJBHomeImpl.setup(EJBHomeImpl.java:533)
at
weblogic.ejb.internal.EJBDeploymentImpl.setupBeanHome(EJBDeploymentIm
pl.java:576)
at
weblogic.ejb.internal.EJBDeploymentImpl.deployBeans(EJBDeploymentImpl
.java, Compiled Code)
at
weblogic.ejb.internal.EJBDeploymentImpl.deploy(EJBDeploymentImpl.java
:335)
at
weblogic.ejb.internal.EJBJarDeployment.deploy(EJBJarDeployment.java:2
31)
at
weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java, Comp
iled Code)
at
weblogic.ejb.internal.EJBManagerImpl.deployNew(EJBManagerImpl.java:35
2)
at
weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:319)
at
weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
Compiled Code)
at
weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
at weblogic.NTServiceHelper.run(NTServiceHelper.java:19)
at java.lang.Thread.run(Thread.java:479)
java.lang.NoClassDefFoundError: sqlj/runtime/ConnectionContext
at java.lang.ClassLoader.resolveClass0(Native Method)
at java.lang.ClassLoader.resolveClass(ClassLoader.java:545)
at
weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
cClassLoader.java, Compiled Code)
at
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:172)
at
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:146)
at
weblogic.ejb.internal.EJBJarLoader.loadClass(EJBJarLoader.java:95)
at
weblogic.ejb.internal.EJBHomeImpl.loadClass(EJBHomeImpl.java:617)
at weblogic.ejb.internal.EJBHomeImpl.setup(EJBHomeImpl.java:533)
at
weblogic.ejb.internal.EJBDeploymentImpl.setupBeanHome(EJBDeploymentIm
pl.java:576)
at
weblogic.ejb.internal.EJBDeploymentImpl.deployBeans(EJBDeploymentImpl
.java, Compiled Code)
at
weblogic.ejb.internal.EJBDeploymentImpl.deploy(EJBDeploymentImpl.java
:335)
at
weblogic.ejb.internal.EJBJarDeployment.deploy(EJBJarDeployment.java:2
31)
at
weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java, Comp
iled Code)
at
weblogic.ejb.internal.EJBManagerImpl.deployNew(EJBManagerImpl.java:35
2)
at
weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:319)
at
weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
Compiled Code)
at
weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
at weblogic.NTServiceHelper.run(NTServiceHelper.java:19)
at java.lang.Thread.run(Thread.java:479)
WebLogic Server terminated with an abnormal condition of 1
Hit return to continue...>>>>>>>>>It appears that you have two different problems:
1 -- you are using an expired certificate. You should download the
latest version of the evaluation to get a new certificate.
2 -- you should check out the documentation on using the
Weblogic.class.path. That is where you should put all of your user
classes including those that you get from Oracle.
Thanks,
Michael
G Owusu wrote:
>
Can I use third party libraries with the evaluation copy of the weblogic
server?
I am having problems starting the weblogic server with third party
libraries (i.e. oralce's sqlj's translator.zip, runtime.zip and
classes2.zip). The following exception is thrown when the server is
initialising:
Can someone explain what is wrong please?
Many thanks
Gilbert Owusu
15:17:10 GMT 2000:<I> <System Props> weblogic.system.home = C:\weblog
ic
Mon Jun 19 15:17:10 GMT 2000:<I> <WebLogicServer> Loaded License :
C:/weblogic/l
icense/WebLogicLicense.xml
Mon Jun 19 15:17:10 GMT 2000:<I> <WebLogicServer> Server loading from
weblogic.c
lass.path. EJB redeployment enabled.
java.lang.Exception: Problem with X509 certificate: fingerprint =
5ebfaa56b17289
3f050b19ae79d80547, not before = Fri Apr 28 22:03:47 GMT 2000, not after
= Sun M
ay 28 22:03:47 GMT 2000, holder = C=US SP=California L=San Francisco
O=BEA WebLo
gic CN=weblogic.beasys.com [email protected] , issuer = C=US
SP=Califor
nia L=San Francisco O=WebLogic OU=Security CN=Demo Certificate Authority
Email=s
[email protected] , key = modulus length=65 exponent length=3,
java.lang.Exc
eption: Certificate expired or not yet valid: fingerprint =
5ebfaa56b172893f050b
19ae79d80547, not before = Fri Apr 28 22:03:47 GMT 2000, not after = Sun
May 28
22:03:47 GMT 2000, holder = C=US SP=California L=San Francisco O=BEA
WebLogic CN
=weblogic.beasys.com [email protected] , issuer = C=US
SP=California L=
San Francisco O=WebLogic OU=Security CN=Demo Certificate Authority
Email=securit
[email protected] , key = modulus length=65 exponent length=3
at
weblogic.t3.srvr.SSLListenThread.insertIntoCAChain(SSLListenThread.ja
va:206)
at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java,
Compile
d Code)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
at weblogic.NTServiceHelper.run(NTServiceHelper.java:19)
at java.lang.Thread.run(Thread.java:479)
Mon Jun 19 15:17:16 GMT 2000:<E> <SSLListenThread> Security
Configuration Proble
m with SSL server certificate file (C:\weblogic\myserver\democert.pem),
java.lan
g.Exception: Problem with X509 certificate: fingerprint =
5ebfaa56b172893f050b19
ae79d80547, not before = Fri Apr 28 22:03:47 GMT 2000, not after = Sun
May 28 22
:03:47 GMT 2000, holder = C=US SP=California L=San Francisco O=BEA
WebLogic CN=w
eblogic.beasys.com [email protected] , issuer = C=US
SP=California L=Sa
n Francisco O=WebLogic OU=Security CN=Demo Certificate Authority
Email=security@
weblogic.com , key = modulus length=65 exponent length=3,
java.lang.Exception:
Certificate expired or not yet valid: fingerprint =
5ebfaa56b172893f050b19ae79d8
0547, not before = Fri Apr 28 22:03:47 GMT 2000, not after = Sun May 28
22:03:47
GMT 2000, holder = C=US SP=California L=San Francisco O=BEA WebLogic
CN=weblogi
c.beasys.com [email protected] , issuer = C=US SP=California
L=San Fran
cisco O=WebLogic OU=Security CN=Demo Certificate Authority
Email=security@weblog
ic.com , key = modulus length=65 exponent length=3
Mon Jun 19 15:17:17 GMT 2000:<I> <Security> Not listening for SSL:
java.io.IOExc
eption: Security Configuration Problem with SSL server certificate file
(C:\webl
ogic\myserver\democert.pem), java.lang.Exception: Problem with X509
certificate:
fingerprint = 5ebfaa56b172893f050b19ae79d80547, not before = Fri Apr 28
22:03:4
7 GMT 2000, not after = Sun May 28 22:03:47 GMT 2000, holder = C=US
SP=Californi
a L=San Francisco O=BEA WebLogic CN=weblogic.beasys.com
[email protected]
om , issuer = C=US SP=California L=San Francisco O=WebLogic OU=Security
CN=Demo
Certificate Authority [email protected] , key = modulus
length=65 exp
onent length=3, java.lang.Exception: Certificate expired or not yet
valid: finge
rprint = 5ebfaa56b172893f050b19ae79d80547, not before = Fri Apr 28
22:03:47 GMT
2000, not after = Sun May 28 22:03:47 GMT 2000, holder = C=US
SP=California L=Sa
n Francisco O=BEA WebLogic CN=weblogic.beasys.com
[email protected] , i
ssuer = C=US SP=California L=San Francisco O=WebLogic OU=Security
CN=Demo Certif
icate Authority [email protected] , key = modulus length=65
exponent
length=3
Mon Jun 19 15:17:19 GMT 2000:<I> <WebLogicServer> Invoking main-style
startup we
blogic.jdbc.common.internal.JdbcStartup
weblogic.jdbc.common.internal.JdbcStartu
p
Mon Jun 19 15:17:19 GMT 2000:<I> <JMS> Beginning startup process
Mon Jun 19 15:17:19 GMT 2000:<I> <JMS> Init JMS Security
Mon Jun 19 15:17:20 GMT 2000:<I> <JMS> Initializing from
weblogic.properties
Mon Jun 19 15:17:20 GMT 2000:<I> <JMS> Startup process complete. JMS is
active
Mon Jun 19 15:17:20 GMT 2000:<I> <JMS> Bound SessionPoolManager as
weblogic.jms.
SessionPoolManager
Mon Jun 19 15:17:20 GMT 2000:<I> <JMS> Bound ConnectionConsumerManager
as weblog
ic.jms.ConnectionConsumerManager
Mon Jun 19 15:17:21 GMT 2000:<I> <WebLogicServer> Invoking main-style
startup RM
I Registry weblogic.rmi.internal.RegistryImpl
Mon Jun 19 15:17:21 GMT 2000:<I> <RMI> Registry started
Mon Jun 19 15:17:21 GMT 2000:<I> <EJB> Enterprise JavaBeans initializing
The WebLogic Server did not start up properly.
Exception raised: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException:
java.lang.NoClassDefFoundError: sql
j/runtime/ConnectionContext
at java.lang.ClassLoader.resolveClass0(Native Method)
at java.lang.ClassLoader.resolveClass(ClassLoader.java:545)
at
weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
cClassLoader.java, Compiled Code)
at
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:172)
at
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:146)
at
weblogic.ejb.internal.EJBJarLoader.loadClass(EJBJarLoader.java:95)
at
weblogic.ejb.internal.EJBHomeImpl.loadClass(EJBHomeImpl.java:617)
at weblogic.ejb.internal.EJBHomeImpl.setup(EJBHomeImpl.java:533)
at
weblogic.ejb.internal.EJBDeploymentImpl.setupBeanHome(EJBDeploymentIm
pl.java:576)
at
weblogic.ejb.internal.EJBDeploymentImpl.deployBeans(EJBDeploymentImpl
.java, Compiled Code)
at
weblogic.ejb.internal.EJBDeploymentImpl.deploy(EJBDeploymentImpl.java
:335)
at
weblogic.ejb.internal.EJBJarDeployment.deploy(EJBJarDeployment.java:2
31)
at
weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java, Comp
iled Code)
at
weblogic.ejb.internal.EJBManagerImpl.deployNew(EJBManagerImpl.java:35
2)
at
weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:319)
at
weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
Compiled Code)
at
weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
at weblogic.NTServiceHelper.run(NTServiceHelper.java:19)
at java.lang.Thread.run(Thread.java:479)
java.lang.NoClassDefFoundError: sqlj/runtime/ConnectionContext
at java.lang.ClassLoader.resolveClass0(Native Method)
at java.lang.ClassLoader.resolveClass(ClassLoader.java:545)
at
weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
cClassLoader.java, Compiled Code)
at
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:172)
at
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:146)
at
weblogic.ejb.internal.EJBJarLoader.loadClass(EJBJarLoader.java:95)
at
weblogic.ejb.internal.EJBHomeImpl.loadClass(EJBHomeImpl.java:617)
at weblogic.ejb.internal.EJBHomeImpl.setup(EJBHomeImpl.java:533)
at
weblogic.ejb.internal.EJBDeploymentImpl.setupBeanHome(EJBDeploymentIm
pl.java:576)
at
weblogic.ejb.internal.EJBDeploymentImpl.deployBeans(EJBDeploymentImpl
.java, Compiled Code)
at
weblogic.ejb.internal.EJBDeploymentImpl.deploy(EJBDeploymentImpl.java
:335)
at
weblogic.ejb.internal.EJBJarDeployment.deploy(EJBJarDeployment.java:2
31)
at
weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java, Comp
iled Code)
at
weblogic.ejb.internal.EJBManagerImpl.deployNew(EJBManagerImpl.java:35
2)
at
weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:319)
at
weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
Compiled Code)
at
weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:242)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
at weblogic.NTServiceHelper.run(NTServiceHelper.java:19)
at java.lang.Thread.run(Thread.java:479)
WebLogic Server terminated with an abnormal condition of 1
Hit return to continue...>>>>>>>>> -
JAR files for SQLJ and JDBC drivers: what is the best practice?
starting a migration from IAS 10 to WebLogic 11g.
Apparently the jar files for SQLJ are not on the classpath by default.
java.lang.NoClassDefFoundError: sqlj/runtime/ref/DefaultContextwhich is the better practice: putting the SQLJ runtime jar into the lib subdirectory of the domain directory, or using a shared library reference? (usage of SQLJ is pretty prevalent in our apps, though we may be getting away from it)
are the Oracle JDBC drivers on the classpath by default?
if not, then the same question: put them into the lib subdirectory of the domain directory, or use a shared library reference?I'm looking at the setDomainEnv, especially the big note at the top:
>
# WARNING: This file is created by the Configuration Wizard.
# Any changes to this script may be lost when adding extensions to this configuration.
>
and am getting squeamish about editing it...
http://www.bea-weblogic.com/how-do-i-disable-wls-automatically-adding-to-classpath.html looks like the default behaviour is for WebLogic to put $DOMAIN/lib;$WL_HOME/common/lib/ext;$WL_HOME/server/lib/ext on the classpath; there is also a reference to setting weblogic.ext.dirs= when starting weblogic (which means I set the WEBLOGIC_EXTENSION_DIRS environment variable).
http://download.oracle.com/docs/cd/E12840_01/wls/docs103/programming/libraries.html#wp1067450 also refers at the bottom to using the domain /lib subdirectory.
so am I correct that a good practice is to just put the jars I think I will globally need into $DOMAIN/lib, rather than putting them in $WL_HOME/common/lib/ext, $WL_HOME/server/lib/ext, or fiddling with the WEBLOGIC_EXTENSION_DIRS environment variable?
Edited by: user8652010 on Feb 10, 2011 1:08 PM -
Error while calling SQLJ procedure
Hi all,
I am using a datasource created in WebSphere to call the SQLJ procedure from an EJB. I am getting the following error trace while instanting the SQLJ procedure class.
I am using Spring's DAO Service-config to get the Datasource and thus the Connection.
java.sql.Connection connection = org.springframework.jdbc.core.support.JdbcDaoSupport.getConnection();
SCProc sCProc = new sCProc(connection);
00000028 ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "searchConnections" on bean "BeanId(foundation-ear#foundation-service.jar#CustomerService, null)". Exception data: java.lang.NoClassDefFoundError: sqlj.runtime.ConnectionContext
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:59)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)
at com.customer.persistence.db2.CustomerServiceDB2DAO.searchConnections(CustomerServiceDB2DAO.java)
at com.customer.CustomerServiceProvider.searchConnections(CustomerServiceProvider.java:73)
at com.customer.CustomerServiceEJB.searchConnections(CustomerServiceEJB.java:52)
at com.customer.EJSLocalStatelessCustomerService_0c82ead1.searchConnections(EJSLocalStatelessCustomerService_0c82ead1.java:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.integration.soa.locator.JdkDynamicProxy.invokeUsingReflection(JdkDynamicProxy.java:77)
at com..integration.soa.locator.JdkDynamicProxy.invoke(JdkDynamicProxy.java:106)
at $Proxy3.searchConnections(Unknown Source)
at com.customer.CustomerServiceDelegate.searchConnections(CustomerServiceDelegate.java)
at com.presentation.customer.pagecode.SearchConnectionPageCode.searchConnections(SearchConnectionPageCode.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:127)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:73)
at javax.faces.component.UICommand.broadcast(UICommand.java:312)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:298)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:412)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:77)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at com.presentation.framework.servlet.filter.FacesServletFilter.doFilter(FacesServletFilter.java:74)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:701)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:646)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:92)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:274)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
Kindly help me out.This is likely being caused by a problem that we've seen a number of times. You'll have namespace issues and problems with NULLs if your JDev is 10.1.3.1 and SOA is 10.1.3.3 (or vice-versa). You MUST synchronize JDev 10.1.3.3 (or higher) with SOA 10.1.3.3 (or higher). It doesn't matter if you mix 10.1.3.3 and 10.1.3.4. You just need to get away from 10.1.3.1.
-
Verify a jar's manifest class-path
I want to verify a jar file's manifest class-path. By that I mean I want to verify that every import of every class in the jar file is reachable on the classpath specified in the jar file's manifest. I tried using a ClassLoader to load every class in the jar file and that does indeed catch a few errors (imported classes that are not on the classpath), but it does not catch them all -- I have situations where loading the class works fine, but when the code is executed, I get NoClassDefFoundError because an imported class is missing from the classpath. I have tried things like calling getDeclaredMethod() on the loaded class to sortof force all the imports to be resolved, but that apparently does not work.
So, can someone tell me how to sortof "force" a loaded class to reference/validate all its imports?
Thanks,
LeeWell yes, I know that executing the code would do it. But I'm not in a position to execute the code -- I'm doing this during a build and want to verify that I've built all the jars properly and have all the right classpaths. It's actually quite easy to use ANT to compile and create jar files that produce NoClassDefFoundError at runtime, due to leaving needed classes from the jar, or from bogus classpaths in the jar's manifest.
So, I was hoping there was some other way to do this. Perhaps I need to do something ugly like examining the bytecodes of each method...
Thanks,
Lee -
Installing Doug Lea's concurrent Package (easy)
Hi,
I'm having trouble getting Doug's package to work, probably because I didn't install correctly. I unzipped into the folder "C:\Java", which created "C:\Java\concurrent", containing all the files. I added this latter folder to my classpath and compiled, from the concurrent directory, using "javac *.java" which successfully created all the .class files. However, a simple test program which begins with the recommended import statement:
import EDU.oswego.cs.dl.util.concurrent.*;
refuses to compile, giving this error:
$ javac Test.java
Test.java:1: package EDU.oswego.cs.dl.util.concurrent does not exist
import EDU.oswego.cs.dl.util.concurrent.*;
^
Test.java:6: cannot access QueuedExecutor
bad class file: C:\Java\concurrent\QueuedExecutor.class
class file contains wrong class: EDU.oswego.cs.dl.util.concurrent.QueuedExecutor
Please remove or make sure it appears in the correct subdirectory of the classpa
th.
QueuedExecutor exec = new QueuedExecutor();
^
2 errors
Can anyone tell me what I'm doing wrong?
Thanks,
JohnI created the directory structure and got my test class to compile. However, I'm now getting a NoClassDefFoundError at runtime at the line where I first create my QueuedExecutor. Test code follows. Thanks for any hints on how to fix it.
John
import EDU.oswego.cs.dl.util.concurrent.*;
public class Test {
public static void main (String[] args) {
QueuedExecutor myExec = new QueuedExecutor();
try {
myExec.execute(new MyRunnable("hello"));
} catch (InterruptedException ignored) {}
try {
myExec.execute(new MyRunnable("hi"));
} catch (InterruptedException ignored) {}
class MyRunnable implements Runnable {
private String mMessage;
public MyRunnable(String str) {
mMessage = str;
public void run() {
for (int i=0; i<1000; i++) {
System.out.println(mMessage); -
Problem in intermedia Please help me!
I am University student in South Korea. I'm major in Computer Engineering. I'm using Oracle 9i. And then I'm using 'intermedia' package. I'm interesting in Content-based retrieval. Among them, I'm interesting in Image retrieval.
But problem is happened in Oracle and Java linked. Problem class is 'getCustumDatum'. Error message came out 'this class can't using' What can I do? Please help me.
Error message : Exception in thread "main" java.lang.NoClassDefFoundError: sqlj/runtime/ref/DefaultContext
P.S) Please excuse me, I am not good at in English.Please cut and paste the exact message in a reply.
Most likely, your CLASSPATH is wrong.
Larry -
Hi,
I have a project that I migrated from 11gTp4 to 11g, in this project we use some oracle packages imported as java classes, well, in the previous version it runs perfectlly but now when I try to create the package object this error is returned:
javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError: sqlj/runtime/ref/DefaultContext
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:458)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:763)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:640)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:275)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:175)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:61)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:278)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Any help!?
thanksOne thing to check (happed to me too) is if the library which contains the jar with the missing class has the field 'automatic deploy' checked.
If not you can compile without errors but get a ClassNotFound exception when running the app. This is because jdev11r1 deploys the app to the wls server and the jar is then not deployed automatically to the wls server.
Timo -
IPod nano formatted in BootCamp, can it be re-authorized on another PC?
If I've formatted an iPod nano in BootCamp on my mac I am assuming that means the hard drive is formatted for PCs... is that correct?
basically, I'd like to load songs and video on an iPod nano that I can take with me on vaction and enjoy. at the end of the trip however, i'd like to give the nano to someone as a gift. most likely, they will want to add to it meaning they would have to wipe it clean... is that correct?
so if I gave them a DVD with whatever I've preloaded, they can wipe the iPod clean on their PC (reauthorizing it to be used on that PC) and then reload whatever they'd like to reload.
does any of this make sense? I hope so. I just don't want to create too much of a headache for wiping the iPod clean and restarting it.Wesjohnson,
It pretty much depends on what enviroment and development tool you are using. The simplest way would be to add it into your system CLASSPATH, but that's not really the preferred way of doing things. If you are using any IDE, it should allow you to add required libraries for your current project, and then these would be used in the compilation stage.
Or if you are using ANT to build your application, then the build.xml should define the classpath used for the <javac>-task somewhere.
Don't forget that you need to ship the libraries with your application as well, otherwise you'll be getting lots of NoClassDefFoundErrors at runtime.
.P. -
Pb deploying applet using sqlj
Hi,
I'm trying to deploy an applet I have just created. This applet connects to an Oracle 8.1.7 database using this kind of command:
Oracle.connect("jdbc:oracle:thin:@ ... );
Then the applet uses SQLJ class to deal with the datas.
And after deploying my applet (I have checked all the dependancies to make sure I have everything), when I try to open the html file, I get the following error in the java console:
java.lang.NoClassDefFoundError: sqlj/runtime/ref/ConnectionContextImpl
at mypackage5.AppInvest.<init>(AppInvest.java:44)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Line 44 corresponds to the construction of the sqlj class instanciation.
I would appreciate any help on this,
Thanks
EricOK, you were right ! In fact, I was missing all the jar files in my ARCHIVE tag, but I though that jdevelopper was taking care of all that when deploying the applet. So I don't really see what the advantage of using deploy ...
However, now, I have another pb. I can launch the applet on my local machine with a www browser. But when trying to connect from other machines, after the loading of jar files, the html page fails on loading my applet itself which is located in mypackage5/AppInvest.class.
The applet tag is the following:
<APPLET CODE="mypackage5.AppInvest" ARCHIVE="jdev-rt.jar, runtime12.jar, classes12.jar, nls_charset12.jar" HEIGHT="1000" WIDTH="1000" ALIGN="bottom">This browser does not appear to support Applets.</APPLET>
I know this is more a html - java pb, but if you have any idea ...
Thks,
Eric
Maybe you are looking for
-
My iPad is locked and says it needs to be backed up
My iPad is locked and says that it needs to be backed up. My home is wi-fi hotspot, so the iPad is constantly connected. I am having problems getting to merely turn-off. Was there a software change recently?
-
Object reference NULL exception is occuring at the time of iterating the projectCustomFieldRows
Hi , I'm gettign object reference NULL exception in the following for each statement. Please help me to resolve this issue. foreach (SvcProject.ProjectDataSet.ProjectCustomFieldsRow row in prjDataSetValues.ProjectCustomFields.Rows)
-
Report painter: Cost Centers: Absorption costing - functioanl area
Hello guys, i need to add under report 1VK the report which would show me in columns functional area taken from master data of cost centers plus the actuals for each period and the last with finak amount for the whole year in rows we have cost center
-
Anybody know why my Linksys WRT54GS won't connect wirelessly with my laptop (PowerBook G4 1 GHz Power PC from like 2001 running on 10.2.8) the router connects fine with my two 2.16 GHz Intel Core 2 Duo but not with this. Any advice would be great!
-
Hi, Good day all My question is , I need to give a DB link to hit my table to other system for fetching some data. Now confusion is, should I create a view of that table to should I give direct table access, there is only one table involved Apart fro