[jdom-interest] any ideas??
Sridhar Gopu
sgopu2 at uky.edu
Fri Oct 24 17:18:00 PDT 2003
Hi,
Thanks Rob, I made the changes and placed the .class files in the right path:
mywebapp/WEB-INF/classes/hansen/playground
and .java files in
mywebapp/WEB-INF/src/hansen/playground
I got rid of the import package not found error, but it when i open the jsp file in the browser it gives an error saying
Error: 500
Location: /mywebapp/ctllist.jsp
Internal Servlet Error:
java.lang.NoClassDefFoundError: org/jdom/JDOMException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
at java.lang.Class.getConstructor0(Class.java:1762)
at java.lang.Class.newInstance0(Class.java:276)
at java.lang.Class.newInstance(Class.java:259)
at java.beans.Beans.instantiate(Beans.java:204)
at java.beans.Beans.instantiate(Beans.java:48)
at ctllist_2._jspService(ctllist_2.java:68)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:536)
any suggestions, ideas, I need to use this a base to a project, please help me out. I'll eagerly look out for your replies.
Thanks,
Sridhar.
-----Original Message-----
From: "Ritchie, Rob" <rdritchi at bechtel.com>
To: jdom-interest at jdom.org, sgopu2 at uky.edu
Date: Thu, 23 Oct 2003 10:58:23 -0400
Subject: RE: [jdom-interest] any suggestions please??
I had a quick look at the samples they put in, and all their code is in the
package "hansen.playground"
this means that you need to put the compiled class files (from step 1) into
the classpath for the jsp engine that you have.
typically in a directory like \webapps\your app name\WEB-INF\lib\ - (For
Tomcat - off the top of my head)
it would be wise to JAR your class files and put them in the root of this
directory.
Alternatively you could manually build the structure:
\webapps\your app name\WEB-INF\lib\hansen\playground\
and copy your files into this directory...
The above directory structure is something like Tomcat uses, so it would
depend on what app server you are using.
Then try going to the page and it should find the classes and be able to
compile them.
Rob.
-----Original Message-----
From: Alex Rosen [mailto:arosen at novell.com]
Sent: Thursday, 23 October 2003 11:59 PM
To: jdom-interest at jdom.org; sgopu2 at uky.edu
Subject: Re: [jdom-interest] any suggestions please??
It sounds like their sample application is broken. (JDOM doesn't use
anything named "hansen.playground".) I think you'll have to contact the
sample's author.
Alex
>>> "Sridhar Gopu" <sgopu2 at uky.edu> 10/22/2003 6:21:30 PM >>>
Hi,
I came across a tutorial on JDOM at
http://javaboutique.internet.com/tutorials/JDOM/application.html.
There is a web application implemented using JSP, JDOM.
I'm facing trouble when I tried to run this application, can you please
help me out??.
The files are zipped and are at RESOURCES section(The code for all the
examples in the article ) at the above URL.
I compiled all the java files( thanks to Brad for helping me out) and
now when I look for the ctlist.jsp file from my local machine it says
http://localhost:8080/mywebapp/ctllist.jsp?command=file&name=c:\Ex4.xml
Error: 500
Location: /mywebapp/ctllist.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile Note:
sun.tools.javac.Main has been deprecated.
C:\tomcat\work\DEFAULT\mywebapp\ctllist_1.java:5: Package
hansen.playground not found in import.
import hansen.playground.*;
^
1 error, 1 warning
at
org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:898)
at
org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:73
3)
at
org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:506)
at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968
)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:87
5)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10I
nterceptor.java:176)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:516)
at java.lang.Thread.run(Thread.java:536)
I'm unable to figure out how the Package hansen.playground not foung in
import...?
I need your valuable suggestions on this example application. I'll
eagerly look forward for your replies. Thanks in advance.
-sridhar.
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com
More information about the jdom-interest
mailing list