|
 |
pro_jsp thread: Nothing works, none of the examples, jar files, nothing.. Appears to be a missing components issue?
Message #1 by "Matt" <charred@m...> on Thu, 5 Jul 2001 16:23:39
|
|
Dear Matt,
(I did analogue adjustments to build.xml :) )
The first error you mentioned:
[javac] C:\Program Files\Apache
Group\projsp\src\com\magiccookie\photodb\PhotoListRequest.java:7: Class
javax.servlet.http.HttpServletRequest not found in import.
seems to come from a missing inclusion for your CLASSPATH (in build.xml)
of servlet.jar though you said it is available from jbuilder.
You should add it at the good place in buildfile (build.xml) directly!
I had a question about that too and got just today an answer
I think that will at least solve
javax.servlet..... errors.
Greetings
Peter
-------- Answer of today ----------
Hi Peter,
The classes...
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
...are present in your servlet.jar file, which is probably in your
common\lib directory in Tomcat. Make sure that this jar file is present in
your classpath when you compile your classes. I have included the file as
an
attachment, just in case you don't have it. I hope this helps...
Regards,
Christian Peak
Technical Editor
Wrox Press
-------------------------------------------
> Hi. I downloaded the projsp.jar of all the source code from the book,
> downloaded ANT, set ant home, java home, tomcat home etc.. all the
> variables set as per instruction, classpath points to standard JRE 1.3,
> plus some parts of teh jbuilder4 class sets.
>
> tried running ANT on the build.xml file from projsp.jar
> error: attribute 'init' unrecognised
>
> ok, so i did a find replace on 'init', swapping it for 'depends'
>
> deleted duplicate 'depends' attributes...
>
> trying to build now, and theres just hundreds of errors:
>
> [javac] C:\Program Files\Apache
> Group\projsp\src\com\magiccookie\photodb\PhotoListRequest.java:7: Class
> javax.servlet.http.HttpServletRequest not found in import.
>
> HTTPServletRequest is part of the jbuilder packages, my classpath points
> there..
>
> also this one:
>
> [javac] C:\Program Files\Apache
> Group\projsp\src\com\magiccookie\photodb\PhotoListRequest.java:3: Class
> com.magiccookie.database.DatabaseException not found in import.
> [javac] import com.magiccookie.database.DatabaseException;
>
> the projsp.jar\src\com\magiccookie directory doesnt contain a
> directory 'database'
>
> only image and photodb
> -
>
> and to cap it all, i only want the chapter 4 example to work.. nothing
to
> do with photodb, its only a simple database logon thing...
>
> thanks ina dvance for any advice
|
|
 |