You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Harish Kumar <ha...@india.hp.com> on 2002/07/11 08:42:10 UTC

Using Pre-Compiled JSPs.

Hi Guys,

I am finding problem in deploying / configuring precompiled jsp's on tomcat.

The problem is as follows,

1. I have /opt/jakarta-tomcat-3.2.2/webapps/sample/HelloWorld.jsp
2. I start tomcat /opt/jakarta-tomcat-3.2.2/bin/startup.sh
3. It compiles HelloWorld.jsp file and creates .java and class files under
work directory when I browse for the first time.
	they are,

/opt/jakarta-tomcat-3.2.2/work/localhost_8080%2Fsample/_0002fHelloWorld_0002
ejspHelloWorld_jsp_0.java

/opt/jakarta-tomcat-3.2.2/work/localhost_8080%2Fsample/_0002fHelloWorld_0002
ejspHelloWorld.class
4. Now I move /opt/jakarta-tomcat-3.2.2/webapps/sample/HelloWorld.jsp	to
/opt/jakarta-tomcat-3.2.2/webapps/sample/HelloWorld.jsp.bak
5. Refresh the browser, getting the following error,
Not Found (404)
Original request: /sample/HelloWorld.jsp

Not found request: /sample/HelloWorld.jsp
6. I understand that the file is not existing, but is there any way that I
can configure tomcat to access .class files directly,
/opt/jakarta-tomcat-3.2.2/work/localhost_8080%2Fsample/_0002fHelloWorld_0002
ejspHelloWorld.class file.

I need to configure tomcat to look for only .class files (like
_0002fHelloWorld_0002ejspHelloWorld.class) because I don't have jsp files
with me.

Thanks in Advance ...

Regards
-Harish








--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Cannot load mod_jk.dll into server!

Posted by "Nikolas A. Rathert" <ni...@igd.fhg.de>.
Hi,
I had the same problem yesterday and I couldn't fix it. So if there is a 
solution there will be two happy people.

Nick

Gunter D'Hondt wrote:
> I've copied mod_jk.dll into c:\apache\modules\ and added the include
> statement in my httpd.conf for the tomcat\conf\auto\mod_jk.conf but when
> running apache -t I get this:
> 
> C:\Apache\bin>apache -t
> Syntax error on line 4 of C:/Program Files/Apache Tomcat
> 4.0/conf/auto/mod_jk.conf:
> Cannot load C:/Apache/modules/mod_jk.dll into server: The specified module
> could not be found.
> 
> My include statement after the loadmodule statements:
> Include c:\progra~1\apache~1.0\conf\auto\mod_jk.conf
> 
> Is apache having troubles with the "/" and "\"?
> I'm following the guide on
> http://www.galatea.com/flashguides/apache-tomcat-24-win32.xml and adjusted
> Tomcat already which starts up fine but Apache not.
> 
> Soft: nt4, apache2.0.39, tomcat4.0.4, jdk1.22
> 
> Gunter
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 


-- 
Nikolas A. Rathert
Fraunhofer Institute for Computer Graphics
e-Learning & Knowledge Management

Fraunhoferstrasse 5
D-64283 Darmstadt
Germany
Fon +49 6151 155 552
Fax +49 6151 155 569
email: nikolas.rathert@igd.fhg.de
www: http://www.igd.fhg.de


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Cannot load mod_jk.dll into server!

Posted by Gunter D'Hondt <gu...@sofico.be>.
I've copied mod_jk.dll into c:\apache\modules\ and added the include
statement in my httpd.conf for the tomcat\conf\auto\mod_jk.conf but when
running apache -t I get this:

C:\Apache\bin>apache -t
Syntax error on line 4 of C:/Program Files/Apache Tomcat
4.0/conf/auto/mod_jk.conf:
Cannot load C:/Apache/modules/mod_jk.dll into server: The specified module
could not be found.

My include statement after the loadmodule statements:
Include c:\progra~1\apache~1.0\conf\auto\mod_jk.conf

Is apache having troubles with the "/" and "\"?
I'm following the guide on
http://www.galatea.com/flashguides/apache-tomcat-24-win32.xml and adjusted
Tomcat already which starts up fine but Apache not.

Soft: nt4, apache2.0.39, tomcat4.0.4, jdk1.22

Gunter


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>