[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[Home]
Re: Upgrade from gnujsp 0.9.10 to 1.0
>Finally! I successfully created gnujsp10.jar! I copied it into the same directory
>where gnujsp.jar currently resides. I configured httpd.conf to use gnujsp10.jar for
>.jsp10 pages. However, when I try to call up the .jsp10 page, I get:
You didn't said anything about where the jsdk jar-files are set.
You have to add servlet.jar from jsdk 2.1 AFTER jsdk20.jar .
I promise to add an apache install today.
>
>Not Found
>The requested URL /servlets/org.gjt.jsp10.JSP10Servlet was not found on this server.
>
>Here is what I put in httpd.conf:
>
>ApJServAction .jsp /servlets/org.gjt.jsp.JSPServlet
>ApJServAction .jsp10 /servlets/org.gjt.jsp10.JSP10Servlet
>
>In jserv.properties, I put:
>
>wrapper.classpath=/usr/src/gnujsp-0.9.10/lib/gnujsp.jar
>wrapper.classpath=/usr/src/gnujsp-0.9.10/lib/gnujsp10.jar
>
>And, this is what is in live.properties (and servlet.properties):
>
>repositories=/home/servlets/classes, /usr/src/gnujsp-0.9.10/lib/gnujsp10.jar
>
>servlets.startup=org.gjt.jsp.JSPServlet
>servlets.startup=org.gjt.jsp10.JSP10Servlet
>
>servlet.org.gjt.jsp.JSPServlet.initArgs=repository=/tmp/jserv
>servlet.org.gjt.jsp10.JSP10Servlet.initArgs=scratchdir=/tmp/jserv
>
>servlet.gnujsp.code=org.gjt.jsp.JSPServlet
>servlet.gnujsp.initArgs=repository=/home/servlets/classes
>
>servlet.gnujsp.code=org.gjt.jsp10.JSP10Servlet
>servlet.gnujsp.initArgs=scratchdir=/home/servlets/classes
>
>I cannot figure, for the life of me, why gnujsp.jar works and gnujsp10.jar won't.
>Any suggestions for this last leg of the journey? Thanks much.
>
>-ron
>
>Wes Biggs wrote:
>
>> Quoting Ron Parker <sysop@scbbs.com>:
>>
>> > Here is my environment: Linux RedHat 5.2, Apache 1.3.3, JDK 1.1.7a, JSWDK
>> > 1.0,
>> > JSDK 2.0, Apache JServ 1.0, gnujsp 0.9.1 9 (and trying to get to gnujsp
>> > 1.0cvs).
>> >
>> > I added all .jar files from jswdk 1.0 to my classpath. Here are the
>> > compile
>> > errors I get when trying to javac org/gjt/jsp10/*.java:
>> >
>> > [host2:/usr/src/java#] javac org/gjt/jsp10/*.java
>> > org/gjt/jsp10/PageContextImpl.java:120: Method
>> > setAttribute(java.lang.String, ja
>> > va.lang.Object) not found in interface javax.servlet.ServletRequest.
>> > request.setAttribute(name, attribute);
>> > ^
>>
>> Ron,
>>
>> You need to compile GNUJSP10 against the JSDK 2.1 classes (servlet.jar from
>> JSWDK). Use that in your classpath when compiling instead of jsdk.jar from the
>> JSDK 2.0 package.
>>
>> To further complicate things, when you run Apache + JServ, you'll want to do the
>> opposite -- use the JSDK 2.0 jar instead of the JSDK 2.1 one.
>>
>> I know this is confusing, we should update the INSTALL and README files.
>>
>> Wes
>>
>> -----------------------------------------------------
>> This mail sent through IMP: http://web.horde.org/imp/
>
>--
>Ron Parker
>Software Creations http://www.scbbs.com
>TradeWinds Publishing http://www.intl-trade.com
>TradePoint Los Angeles http://www.tradepointla.org
>SiteDirector Security Server http://livepublish.scbbs.com
>Civil War Online Library http://civilwar.scbbs.com
>
>
Ciao,
Carsten Heyl
Carsten Heyl Heyl@NADS.De
NADS - Solutions on Nets http://www.nads.de/
NADS GmbH http://www.pixelboxx.de/
Hildebrandtstr. 4E Tel.: +49 211 933 02-90
D-40215 Duesseldorf Fax.: +49 211 933 02-93