[jdom-interest] any suggestions please??

Ritchie, Rob rdritchi at bechtel.com
Thu Oct 23 07:58:23 PDT 2003


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