Skip to main content

JavaHelpDemo in WSAD

1 reply [Last post]
dbuchwal
Offline
Joined: 2004-01-22
Points: 0

I have downloaded JavaHelp 2.0 and I am trying to get the Servlet Sample
(jh2.0\demos\serverhelp\*) working in WSAD 4
Everything compiles OK, but when I run it, I get:
Servlet Error: Could not parse
Got an IOException
(http://localhost:8080/JavaHelpDemo/animals/Animals.hs)
Parsing failed for null: java.lang.RuntimeException: Could not parse
Got an IOException (http://localhost:8080/JavaHelpDemo/animals/Animals.hs)
Parsing failed for null

I suspect it can't find the Animals.hs file (which is in the animals.jar
file). I added this jar to my WEB-INF\lib folder, but it still isn't
found. I looked at the animals.jar file and the Animals.hs files exists,
but isn't under an animals subdirectroy (as the error seems to indicate).

Anyone else run into this problem (or anyone else have this sample working
in WSAD)?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Roger Brinkley

java-help@JAVADESKTOP.ORG wrote:
> I have downloaded JavaHelp 2.0 and I am trying to get the Servlet Sample
> (jh2.0\demos\serverhelp\*) working in WSAD 4
> Everything compiles OK, but when I run it, I get:
> Servlet Error: Could not parse
> Got an IOException
> (http://localhost:8080/JavaHelpDemo/animals/Animals.hs)
> Parsing failed for null: java.lang.RuntimeException: Could not parse
> Got an IOException (http://localhost:8080/JavaHelpDemo/animals/Animals.hs)
> Parsing failed for null
>
> I suspect it can't find the Animals.hs file (which is in the animals.jar
> file). I added this jar to my WEB-INF\lib folder, but it still isn't
> found. I looked at the animals.jar file and the Animals.hs files exists,
> but isn't under an animals subdirectroy (as the error seems to indicate).
>
> Anyone else run into this problem (or anyone else have this sample working
> in WSAD)?

Not in WSAD but I believe you need to extract the Animals.jar file along
with Invertebrates and Vertebrates files to make this work correctly.
Look at the build.xml (ant script) to see how the extractions are done.

Binky

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.