alorsetar2000
asked on
rt.jar?? what is this?
i am running(testing) eclipse with my strust 1.1 but i found this error at the first place.
Exception during startup processing
java.lang.reflect.Invocati onTargetEx ception: java.lang.NoClassDefFoundE rror: org/xml/sax/helpers/Defaul tHandler
at java.lang.ClassLoader.defi neClass0(N ative Method)
at java.lang.ClassLoader.defi neClass(Un known Source)
at java.security.SecureClassL oader.defi neClass(Un known Source)
at java.net.URLClassLoader.de fineClass( Unknown Source)
at java.net.URLClassLoader.ac cess$100(U nknown Source)
at java.net.URLClassLoader$1. run(Unknow n Source)
at java.security.AccessContro ller.doPri vileged(Na tive Method)
at java.net.URLClassLoader.fi ndClass(Un known Source)
at java.lang.ClassLoader.load Class(Unkn own Source)
Then the ClassLoader.class come up from the IDE and telling me the Source Not Found. Then i click the Change Attached Source, then it's asking me to located the rt.jar.
But what is this rt.jar? If i am running eclipse 3.0 with Tomcat 4.1.27, can it be run? This is because most of the sample struts application i downloaded can not be run in this enviornment.
What do you think?
Thank you.
Exception during startup processing
java.lang.reflect.Invocati
at java.lang.ClassLoader.defi
at java.lang.ClassLoader.defi
at java.security.SecureClassL
at java.net.URLClassLoader.de
at java.net.URLClassLoader.ac
at java.net.URLClassLoader$1.
at java.security.AccessContro
at java.net.URLClassLoader.fi
at java.lang.ClassLoader.load
Then the ClassLoader.class come up from the IDE and telling me the Source Not Found. Then i click the Change Attached Source, then it's asking me to located the rt.jar.
But what is this rt.jar? If i am running eclipse 3.0 with Tomcat 4.1.27, can it be run? This is because most of the sample struts application i downloaded can not be run in this enviornment.
What do you think?
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you can download Xerces4J to get JAXP classes, for instance
ASKER
how to set my classpath to point to my runtime?
in my system, i have already set this:
JAVA_HOME C:\jdk1.3.1_07
CLASSPATH C:\jt400\jt400.jar
CATALINA_HOME C:\Program Files\Apache Group\Tomcat 4.1
is that i need to add this in?
CLASSPATH C:\jdk1.3.1_07 ??
in my system, i have already set this:
JAVA_HOME C:\jdk1.3.1_07
CLASSPATH C:\jt400\jt400.jar
CATALINA_HOME C:\Program Files\Apache Group\Tomcat 4.1
is that i need to add this in?
CLASSPATH C:\jdk1.3.1_07 ??
You don't have to set your class path to your run time.. its already done when you specify JAVA_HOME parameter.
As dualsoul said above, you are missing JAXP package ( which is XML parser classes) in your system... Go to http://xml.apache.org/xerces2-j/index.html and download xrecs to your system and try again..
Hope this helps
As dualsoul said above, you are missing JAXP package ( which is XML parser classes) in your system... Go to http://xml.apache.org/xerces2-j/index.html and download xrecs to your system and try again..
Hope this helps
if you want Xerces, to be installed standalone, somewhere on your file system, just set:
CLASSPATH=C:\jt400\jt400.j ar;path_to _xerces_ja r_file
but, i recommend you to download and install JAXP package from java.sun.com
CLASSPATH=C:\jt400\jt400.j
but, i recommend you to download and install JAXP package from java.sun.com
ASKER
dualsoul, i have downloaded the files you recomanded into C:\Xerces-J-bin.2.5.0\xerc es-2_5_0
and i have set my classpath to point to that folder,
CLASSPATH =C:\Xerces-J-bin.2.5.0\xer ces-2_5_0
but i am still getting the problem.
Anyway, do you think you can provide me the link for this JAXP package location in the java.sun.com?
And this is the same error i am getting when i start my Tomcat appserver in eclipse environment
Exception during startup processing
java.lang.reflect.Invocati onTargetEx ception: java.lang.NoClassDefFoundE rror: org/xml/sax/helpers/Defaul tHandler
at java.lang.ClassLoader.defi neClass0(N ative Method)
at java.lang.ClassLoader.defi neClass(Un known Source)
at java.security.SecureClassL oader.defi neClass(Un known Source)
at java.net.URLClassLoader.de fineClass( Unknown Source)
at java.net.URLClassLoader.ac cess$100(U nknown Source)
at java.net.URLClassLoader$1. run(Unknow n Source)
at java.security.AccessContro ller.doPri vileged(Na tive Method)
at java.net.URLClassLoader.fi ndClass(Un known Source)
at java.lang.ClassLoader.load Class(Unkn own Source)
at sun.misc.Launcher$AppClass Loader.loa dClass(Unk nown Source)
at java.lang.ClassLoader.load Class(Unkn own Source)
at org.apache.catalina.loader .StandardC lassLoader .loadClass (StandardC lassLoader .java:941)
at org.apache.catalina.loader .StandardC lassLoader .loadClass (StandardC lassLoader .java:857)
at org.apache.catalina.loader .StandardC lassLoader .loadClass (StandardC lassLoader .java:941)
at org.apache.catalina.loader .StandardC lassLoader .loadClass (StandardC lassLoader .java:857)
at java.lang.ClassLoader.load ClassInter nal(Unknow n Source)
at org.apache.catalina.startu p.Catalina .createSta rtDigester (Catalina. java:280)
at org.apache.catalina.startu p.Catalina .start(Cat alina.java :441)
at org.apache.catalina.startu p.Catalina .execute(C atalina.ja va:400)
at org.apache.catalina.startu p.Catalina .process(C atalina.ja va:180)
at java.lang.reflect.Method.i nvoke(Nati ve Method)
at org.apache.catalina.startu p.Bootstra p.main(Boo tstrap.jav a:203)
But when I start my appserver OUTSIDE the eclipse, things are working just fine......
and i have set my classpath to point to that folder,
CLASSPATH =C:\Xerces-J-bin.2.5.0\xer
but i am still getting the problem.
Anyway, do you think you can provide me the link for this JAXP package location in the java.sun.com?
And this is the same error i am getting when i start my Tomcat appserver in eclipse environment
Exception during startup processing
java.lang.reflect.Invocati
at java.lang.ClassLoader.defi
at java.lang.ClassLoader.defi
at java.security.SecureClassL
at java.net.URLClassLoader.de
at java.net.URLClassLoader.ac
at java.net.URLClassLoader$1.
at java.security.AccessContro
at java.net.URLClassLoader.fi
at java.lang.ClassLoader.load
at sun.misc.Launcher$AppClass
at java.lang.ClassLoader.load
at org.apache.catalina.loader
at org.apache.catalina.loader
at org.apache.catalina.loader
at org.apache.catalina.loader
at java.lang.ClassLoader.load
at org.apache.catalina.startu
at org.apache.catalina.startu
at org.apache.catalina.startu
at org.apache.catalina.startu
at java.lang.reflect.Method.i
at org.apache.catalina.startu
But when I start my appserver OUTSIDE the eclipse, things are working just fine......
>CLASSPATH =C:\Xerces-J-bin.2.5.0\xer ces-2_5_0
you should point classpath to .jar files, which contain classes you need, not directory
use some zip tool to view contens of .jar files, and find which contains org/xml/sax/helpers/Defaul tHandler
or even better, include all .jar from your Xerces:
CLASSPATH =C:\Xerces-J-bin.2.5.0\xer ces-2_5_0\ lib\some.j ar;C:\Xerc es-J-bin.2 .5.0\xerce s-2_5_0\li b\some2.ja r
and so on...
Start search JAXP from here:
http://java.sun.com/xml/jaxp/index.html
you should point classpath to .jar files, which contain classes you need, not directory
use some zip tool to view contens of .jar files, and find which contains org/xml/sax/helpers/Defaul
or even better, include all .jar from your Xerces:
CLASSPATH =C:\Xerces-J-bin.2.5.0\xer
and so on...
Start search JAXP from here:
http://java.sun.com/xml/jaxp/index.html
>But when I start my appserver OUTSIDE the eclipse, things are working just fine......
hm...may be eclipse ignore system CLASSPATH setting, and use it's own.
Try to search, where to set up CLASSPATH in Eclipse
hm...may be eclipse ignore system CLASSPATH setting, and use it's own.
Try to search, where to set up CLASSPATH in Eclipse
ASKER
OK....