logs

2000-12-11 Thread Carlos

i have the tomcat only working, without apache (in linux).
how can i logs the web entries?, 
in apoache there is very easy bit in tomcat?




Initial Context

2000-12-11 Thread Christian_Kogler

Hi guys,

i use Tomcat as a Servlet Engine and want to create a Initial Context...but
what is the Initial Context Factory i have to USE?

ciao
Chriss




RE: Tomcat Unix autostart

2000-12-11 Thread Jan Stevens

Hi,
I tried starting tomcat before apache. I see the startupscript
being executed, but tomcat doesn't start.
Has anybody working Unix startupscripts for Tomcat?
Jan

-Original Message-
From: AC [mailto:[EMAIL PROTECTED]]
Sent: maandag 11 december 2000 8:58
To: [EMAIL PROTECTED]
Subject: Re: Tomcat Unix autostart


Tomcat should start  after Apache during reboot. Also remember to set your 
classpath in the startup script.

andrea

At 08.44 11/12/2000 +0100, you wrote:
Hi,
I'm trying to start Tomcat whith rebooting a Unix machine.
Tomcat seems to start for a moment and then dissappears.
I have a startup script in /sbin/rc3.d
I'm using an Alpha1000 with Tru64 unix 4.0D
Who can help me.

Regards,
Jan Stevens
Software Developer
CMG Maastricht B.V. -Telecom Products
*   Adelbert van Scharnlaan 170A*   043 - 6018185
 6224 JX Maastricht  *
043
- 6018169
*   mailto:[EMAIL PROTECTED]




Servlet and pathinfo with jsp in Tomcat 3.2

2000-12-11 Thread Lipner, Tomas

The below code runs servlet "myservlet" with pathinfo "pages/welcome.jsp".
frame NAME="main" SRC="%= context %/servlet/myservlet/pages/welcome.jsp"
NORESIZE 

It functions correctly with Tomcat 3.1, but Tomcat 3.2 returns error message
"The page cannot be found".
Tomcat 3.2 doesn't interpret it as 'myservlet' with path info
'pages/welcome.jsp', but wants to open page
"/servlet/myservlet/pages/welcome.jsp" directly.


When I use:
/servlet/myservlet/servlet/anotherservlet 

it functions correctly, i.e. myservlet is called with path info
'servlet/anotherservlet'

Tomas





Problem staring tomcat again //FATAL:java.net.BindException: Address already in use

2000-12-11 Thread Mohammed Akacem

Hello,

bear with me please if my mail is a bit too long.

I am using apache + tomcat (Linux) for few days  and until now every
thing worked Ok.
yesterday I stopped tomcat(./shutdown.sh)and started tomcat
again(./startup.sh). I got the following error Message
(FATAL:java.net.BindException: Address already in use).

can someone please help?

Mohammed.

aka@scratchy-ppc:/usr/local/tomcat/bin$ ./startup.sh
Using classpath:
.:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.ja
r:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat

/lib/webserver.jar:/usr/local/tomcat/lib/xml.jar:/usr/local/java/lib/tools.jar

aka@scratchy-ppc:/usr/local/tomcat/bin$ Failed to generate automatic
apache conf
iguration java.io.FileNotFoundException:
/usr/local/jakarta-tomcat/conf/tomcat-a
pache.conf (Permission denied)
Starting tomcat. Check logs/tomcat.log for error messages
Unable to open log file: /usr/local/jakarta-tomcat/logs/tomcat.log!
Using stder
r as the default.
Unable to open log file: /usr/local/jakarta-tomcat/logs/jasper.log!
Using stder
r as the default.
Unable to open log file: /usr/local/jakarta-tomcat/logs/servlet.log!
Using stde
rr as the default.
Context log: path="/examples" Adding context path="/examples"
docBase="webapps/
examples"
Context log: path="" Adding context path=""  docBase="webapps/ROOT"
Context log: path="/test" Adding context path="/test"
docBase="webapps/test"
Starting tomcat install="/usr/local/tomcat"
home="/usr/local/jakarta-tomcat" cla
ssPath=".:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/lo

cal/tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webs

erver.jar:/usr/local/tomcat/lib/xml.jar:/usr/local/java/lib/tools.jar"
Context log: path="/admin" Automatic context load
docBase="/usr/local/jakarta-to
mcat/webapps/admin"
Context log: path="/admin" Adding context path="/admin"
docBase="/usr/local/jak
arta-tomcat/webapps/admin"
Context log path="/admin" :tomcat.errorPage: init
Context log path="/admin" :jsp: init
JASPER_LOG Mon Dec 11 10:35:16 CET 2000 The scratchDir you specified:
/usr/loc
al/jakarta-tomcat/work/localhost_8080%2Fadmin is unusable./JASPER_LOG
JASPER_LOG Mon Dec 11 10:35:16 CET 2000 Scratch dir for the JSP engine
is: /us
r/local/jakarta-tomcat/work/localhost_8080%2Fadmin/JASPER_LOG
JASPER_LOG Mon Dec 11 10:35:17 CET 2000 IMPORTANT: Do not modify the
generated
 servlets/JASPER_LOG
Context log path="/admin" :default: init
Context log path="/examples" :tomcat.errorPage: init
Context log path="/examples" :jsp: init
JASPER_LOG Mon Dec 11 10:35:19 CET 2000 The scratchDir you specified:
/usr/loc
al/jakarta-tomcat/work/localhost_8080%2Fexamples is
unusable./JASPER_LOG
Context log path="/examples" :default: init
Context log path="/test" :tomcat.errorPage: init
Context log path="/test" :jsp: init
JASPER_LOG Mon Dec 11 10:35:22 CET 2000 The scratchDir you specified:
/usr/loc
al/jakarta-tomcat/work/localhost_8080%2Ftest is unusable./JASPER_LOG
Context log path="/test" :default: init
Context log path="" :tomcat.errorPage: init
Context log path="" :jsp: init
JASPER_LOG Mon Dec 11 10:35:24 CET 2000 The scratchDir you specified:
/usr/loc
al/jakarta-tomcat/work/localhost_8080 is unusable./JASPER_LOG
FATAL:java.net.BindException: Address already in use
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:386)
at java.net.ServerSocket.init(ServerSocket.java:169)
at java.net.ServerSocket.init(ServerSocket.java:120)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Default
ServerSocketFactory.java:97)
at
org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEn
dpoint.java:186)
at
org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector
.java:142)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:253)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)




RE: does tomcat jsp runtime require jdk ?

2000-12-11 Thread Stubenrauch,Andreas

Yes you need tools.jar from the jdk to compile jsp

 -Original Message-
 From: Sanjay Gulabani [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 08, 2000 7:25 AM
 To: [EMAIL PROTECTED]
 Subject: does tomcat jsp runtime require jdk ?
 
 
 Does  Tomcat release of jsp runtime require production environments to
 have jdk installed separately. This was the case with older reference
 implementations from Sun/Javasoft of jswdk1.0 releases. My question is
 again do they need jdk and not jre. If the answer is yes, I would
 appreciate if someone can tell me what specific reason does 
 tomcat need
 a separate jdk (is it javac?)
 
 thanks in advance,
 Sanjay
 
 
 
 
 _
 
 Do You Yahoo!?
 
 Get your free @yahoo.com address at http://mail.yahoo.com
 
 



test do not read

2000-12-11 Thread Mohammed Akacem

Hello




Problem starting tomcat again//FATAL:java.net.BindException: Address already in use

2000-12-11 Thread Mohammed Akacem

Hello,

bear with me please if my mail is a bit too long.

I am using apache + tomcat (Linux) for few days  and until now every
thing worked Ok.
yesterday I stopped tomcat(./shutdown.sh)and started tomcat
again(./startup.sh). I got the following error Message
(FATAL:java.net.BindException: Address already in use).

can someone please help?

Mohammed.

aka@scratchy-ppc:/usr/local/tomcat/bin$ ./startup.sh
Using classpath:
.:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.ja
r:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat

/lib/webserver.jar:/usr/local/tomcat/lib/xml.jar:/usr/local/java/lib/tools.jar

aka@scratchy-ppc:/usr/local/tomcat/bin$ Failed to generate automatic
apache conf
iguration java.io.FileNotFoundException:
/usr/local/jakarta-tomcat/conf/tomcat-a
pache.conf (Permission denied)
Starting tomcat. Check logs/tomcat.log for error messages
Unable to open log file: /usr/local/jakarta-tomcat/logs/tomcat.log!
Using stder
r as the default.
Unable to open log file: /usr/local/jakarta-tomcat/logs/jasper.log!
Using stder
r as the default.
Unable to open log file: /usr/local/jakarta-tomcat/logs/servlet.log!
Using stde
rr as the default.
Context log: path="/examples" Adding context path="/examples"
docBase="webapps/
examples"
Context log: path="" Adding context path=""  docBase="webapps/ROOT"
Context log: path="/test" Adding context path="/test"
docBase="webapps/test"
Starting tomcat install="/usr/local/tomcat"
home="/usr/local/jakarta-tomcat" cla
ssPath=".:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/lo

cal/tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webs

erver.jar:/usr/local/tomcat/lib/xml.jar:/usr/local/java/lib/tools.jar"
Context log: path="/admin" Automatic context load
docBase="/usr/local/jakarta-to
mcat/webapps/admin"
Context log: path="/admin" Adding context path="/admin"
docBase="/usr/local/jak
arta-tomcat/webapps/admin"
Context log path="/admin" :tomcat.errorPage: init
Context log path="/admin" :jsp: init
JASPER_LOG Mon Dec 11 10:35:16 CET 2000 The scratchDir you specified:
/usr/loc
al/jakarta-tomcat/work/localhost_8080%2Fadmin is unusable./JASPER_LOG
JASPER_LOG Mon Dec 11 10:35:16 CET 2000 Scratch dir for the JSP engine

is: /us
r/local/jakarta-tomcat/work/localhost_8080%2Fadmin/JASPER_LOG
JASPER_LOG Mon Dec 11 10:35:17 CET 2000 IMPORTANT: Do not modify the
generated
 servlets/JASPER_LOG
Context log path="/admin" :default: init
Context log path="/examples" :tomcat.errorPage: init
Context log path="/examples" :jsp: init
JASPER_LOG Mon Dec 11 10:35:19 CET 2000 The scratchDir you specified:
/usr/loc
al/jakarta-tomcat/work/localhost_8080%2Fexamples is
unusable./JASPER_LOG
Context log path="/examples" :default: init
Context log path="/test" :tomcat.errorPage: init
Context log path="/test" :jsp: init
JASPER_LOG Mon Dec 11 10:35:22 CET 2000 The scratchDir you specified:
/usr/loc
al/jakarta-tomcat/work/localhost_8080%2Ftest is unusable./JASPER_LOG
Context log path="/test" :default: init
Context log path="" :tomcat.errorPage: init
Context log path="" :jsp: init
JASPER_LOG Mon Dec 11 10:35:24 CET 2000 The scratchDir you specified:
/usr/loc
al/jakarta-tomcat/work/localhost_8080 is unusable./JASPER_LOG
FATAL:java.net.BindException: Address already in use
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:386)
at java.net.ServerSocket.init(ServerSocket.java:169)
at java.net.ServerSocket.init(ServerSocket.java:120)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Default
ServerSocketFactory.java:97)
at
org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEn
dpoint.java:186)
at
org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector
.java:142)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:253)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)







tomcat and mod_rewrite

2000-12-11 Thread Peter . Fuhrmann



Hi all,
is there already any workaround or solution to the problem described in
bugreport #64  "URLs changed by mod_rewrite are not taken into account by
AjpConnectionHandler"? I'm currently using tomcat 3.2: the problem is still
there... Thanks Peter





very urgent

2000-12-11 Thread Sonal Agarwal

I am using tomcat for running servlets using jdk1.2.
I am trying to connect to orcale using the driver :
oracle.jdbc.driver.OracleDriver
But it is giving me an error that driver not found.
How can i solve the problem? Please help me.
Thanks
Sonal Agarwal.





Re: Version 3.1 works and 3.2 doesn't

2000-12-11 Thread Christian Sell



This may or may not concern your 
problem:

One change that I have noticed and that had me 
wondering for an hour or two was the fact that 3.2 treats paths and filenames 
case-sensitive under Windows OSs. With me, a taglib wasn't found because my 
META-INF directory was in fact named "Meta-inf". Bummer.

regards, Chris

  - Original Message - 
  From: 
  David Cittadini 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, December 11, 2000 4:38 
  AM
  Subject: Version 3.1 works and 3.2 
  doesn't
  
  
  I had 
  Tomcat working well under version 3.1 (except for a memory leak). However, when I change to version 3.2 
  with no modifications to the JSPs, directory locations etc, I get the 
  following error "Bad file argument to include". It seems to generate this error 
  when one JSP calls another JSP and it fails when it reaches a %@include file="afile.jsp" %. If I change this 
  to use jsp:include page="afile.jsp"/ then I get the error message 
  "invalid jsp:include tag".
  
  Does 
  anyone have any idea why it would work on one version but not the 
  other?
  
  Regards, 
  David.
  


RE: Problem starting tomcat again//FATAL:java.net.BindException: Address already in use

2000-12-11 Thread Stubenrauch,Andreas

There are two issues here:
First: check the permissions of your installation. Especially the
$TOMCAT_HOME/work and $TOMCAT_HOME/conf directory has to be writeable by the
user tomcat is running as (you?)
Second: Another App is running on Port 8080 propably tomcat is already
started.

Regards,
Andreas

 -Original Message-
 From: Mohammed Akacem [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 11, 2000 11:53 AM
 To: [EMAIL PROTECTED]
 Subject: Problem starting tomcat again//FATAL:java.net.BindException:
 Address already in use
 
 
 Hello,
 
 bear with me please if my mail is a bit too long.
 
 I am using apache + tomcat (Linux) for few days  and until now every
 thing worked Ok.
 yesterday I stopped tomcat(./shutdown.sh)and started tomcat
 again(./startup.sh). I got the following error Message
 (FATAL:java.net.BindException: Address already in use).
 
 can someone please help?
 
 Mohammed.
 
 aka@scratchy-ppc:/usr/local/tomcat/bin$ ./startup.sh
 Using classpath:
 .:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.ja
 r:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test
 :/usr/local/tomcat
 
 /lib/webserver.jar:/usr/local/tomcat/lib/xml.jar:/usr/local/ja
 va/lib/tools.jar
 
 aka@scratchy-ppc:/usr/local/tomcat/bin$ Failed to generate automatic
 apache conf
 iguration java.io.FileNotFoundException:
 /usr/local/jakarta-tomcat/conf/tomcat-a
 pache.conf (Permission denied)
 Starting tomcat. Check logs/tomcat.log for error messages
 Unable to open log file: /usr/local/jakarta-tomcat/logs/tomcat.log!
 Using stder
 r as the default.
 Unable to open log file: /usr/local/jakarta-tomcat/logs/jasper.log!
 Using stder
 r as the default.
 Unable to open log file: /usr/local/jakarta-tomcat/logs/servlet.log!
 Using stde
 rr as the default.
 Context log: path="/examples" Adding context path="/examples"
 docBase="webapps/
 examples"
 Context log: path="" Adding context path=""  docBase="webapps/ROOT"
 Context log: path="/test" Adding context path="/test"
 docBase="webapps/test"
 Starting tomcat install="/usr/local/tomcat"
 home="/usr/local/jakarta-tomcat" cla
 ssPath=".:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/
 jasper.jar:/usr/lo
 
 cal/tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/loc
 al/tomcat/lib/webs
 
 erver.jar:/usr/local/tomcat/lib/xml.jar:/usr/local/java/lib/tools.jar"
 Context log: path="/admin" Automatic context load
 docBase="/usr/local/jakarta-to
 mcat/webapps/admin"
 Context log: path="/admin" Adding context path="/admin"
 docBase="/usr/local/jak
 arta-tomcat/webapps/admin"
 Context log path="/admin" :tomcat.errorPage: init
 Context log path="/admin" :jsp: init
 JASPER_LOG Mon Dec 11 10:35:16 CET 2000 The scratchDir you 
 specified:
 /usr/loc
 al/jakarta-tomcat/work/localhost_8080%2Fadmin is 
 unusable./JASPER_LOG
 JASPER_LOG Mon Dec 11 10:35:16 CET 2000 Scratch dir for the 
 JSP engine
 
 is: /us
 r/local/jakarta-tomcat/work/localhost_8080%2Fadmin/JASPER_LOG
 JASPER_LOG Mon Dec 11 10:35:17 CET 2000 IMPORTANT: Do not modify the
 generated
  servlets/JASPER_LOG
 Context log path="/admin" :default: init
 Context log path="/examples" :tomcat.errorPage: init
 Context log path="/examples" :jsp: init
 JASPER_LOG Mon Dec 11 10:35:19 CET 2000 The scratchDir you 
 specified:
 /usr/loc
 al/jakarta-tomcat/work/localhost_8080%2Fexamples is
 unusable./JASPER_LOG
 Context log path="/examples" :default: init
 Context log path="/test" :tomcat.errorPage: init
 Context log path="/test" :jsp: init
 JASPER_LOG Mon Dec 11 10:35:22 CET 2000 The scratchDir you 
 specified:
 /usr/loc
 al/jakarta-tomcat/work/localhost_8080%2Ftest is unusable./JASPER_LOG
 Context log path="/test" :default: init
 Context log path="" :tomcat.errorPage: init
 Context log path="" :jsp: init
 JASPER_LOG Mon Dec 11 10:35:24 CET 2000 The scratchDir you 
 specified:
 /usr/loc
 al/jakarta-tomcat/work/localhost_8080 is unusable./JASPER_LOG
 FATAL:java.net.BindException: Address already in use
 java.net.BindException: Address already in use
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:386)
 at java.net.ServerSocket.init(ServerSocket.java:169)
 at java.net.ServerSocket.init(ServerSocket.java:120)
 at
 org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Default
 ServerSocketFactory.java:97)
 at
 org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEn
 dpoint.java:186)
 at
 org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector
 .java:142)
 at
 org.apache.tomcat.core.ContextManager.start(ContextManager.java:253)
 at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157)
 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
 
 
 
 



AW: Problem starting tomcat again//FATAL:java.net.BindException: Address already in use

2000-12-11 Thread Ralph Einfeldt

Tomcat didn't shut down properly the last time.

It looks like your starting tomcat from a different account than last
time:

/usr/local/jakarta-tomcat/conf/tomcat-apache.conf (Permission denied)


Verify with 

ls -l /usr/local/jakarta-tomcat/conf/tomcat-apache.conf 
id

Make shure you have the right permissions to shutdown tomcat
and restart it.

If the bind exception persists try as root:
lsof -i :8007 (Default internal tomcat port)
lsof -i :8080 (Default tomcat port for hhtp)
lsof -i :80   (Default apache port)

Or apply this command to any other port you have configured.


 -Ursprüngliche Nachricht-
 Von: Mohammed Akacem [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 11. Dezember 2000 11:53
 An: [EMAIL PROTECTED]
 Betreff: Problem starting tomcat again//FATAL:java.net.BindException:
 Address already in use
 
 
 Hello,
 
 bear with me please if my mail is a bit too long.
 
 I am using apache + tomcat (Linux) for few days  and until now every
 thing worked Ok.
 yesterday I stopped tomcat(./shutdown.sh)and started tomcat
 again(./startup.sh). I got the following error Message
 (FATAL:java.net.BindException: Address already in use).
 
 can someone please help?
 
 Mohammed.
 
 aka@scratchy-ppc:/usr/local/tomcat/bin$ ./startup.sh
 Using classpath:
 .:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.ja
 r:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test
 :/usr/local/tomcat
 
 /lib/webserver.jar:/usr/local/tomcat/lib/xml.jar:/usr/local/ja
 va/lib/tools.jar
 
 aka@scratchy-ppc:/usr/local/tomcat/bin$ Failed to generate automatic
 apache conf
 iguration java.io.FileNotFoundException:
 /usr/local/jakarta-tomcat/conf/tomcat-a
 pache.conf (Permission denied)
 Starting tomcat. Check logs/tomcat.log for error messages
 Unable to open log file: /usr/local/jakarta-tomcat/logs/tomcat.log!
 Using stder
 r as the default.
 Unable to open log file: /usr/local/jakarta-tomcat/logs/jasper.log!
 Using stder
 r as the default.
 Unable to open log file: /usr/local/jakarta-tomcat/logs/servlet.log!
 Using stde
 rr as the default.
 Context log: path="/examples" Adding context path="/examples"
 docBase="webapps/
 examples"
 Context log: path="" Adding context path=""  docBase="webapps/ROOT"
 Context log: path="/test" Adding context path="/test"
 docBase="webapps/test"
 Starting tomcat install="/usr/local/tomcat"
 home="/usr/local/jakarta-tomcat" cla
 ssPath=".:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/
 jasper.jar:/usr/lo
 
 cal/tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/loc
 al/tomcat/lib/webs
 
 erver.jar:/usr/local/tomcat/lib/xml.jar:/usr/local/java/lib/tools.jar"
 Context log: path="/admin" Automatic context load
 docBase="/usr/local/jakarta-to
 mcat/webapps/admin"
 Context log: path="/admin" Adding context path="/admin"
 docBase="/usr/local/jak
 arta-tomcat/webapps/admin"
 Context log path="/admin" :tomcat.errorPage: init
 Context log path="/admin" :jsp: init
 JASPER_LOG Mon Dec 11 10:35:16 CET 2000 The scratchDir you 
 specified:
 /usr/loc
 al/jakarta-tomcat/work/localhost_8080%2Fadmin is 
 unusable./JASPER_LOG
 JASPER_LOG Mon Dec 11 10:35:16 CET 2000 Scratch dir for the 
 JSP engine
 
 is: /us
 r/local/jakarta-tomcat/work/localhost_8080%2Fadmin/JASPER_LOG
 JASPER_LOG Mon Dec 11 10:35:17 CET 2000 IMPORTANT: Do not modify the
 generated
  servlets/JASPER_LOG
 Context log path="/admin" :default: init
 Context log path="/examples" :tomcat.errorPage: init
 Context log path="/examples" :jsp: init
 JASPER_LOG Mon Dec 11 10:35:19 CET 2000 The scratchDir you 
 specified:
 /usr/loc
 al/jakarta-tomcat/work/localhost_8080%2Fexamples is
 unusable./JASPER_LOG
 Context log path="/examples" :default: init
 Context log path="/test" :tomcat.errorPage: init
 Context log path="/test" :jsp: init
 JASPER_LOG Mon Dec 11 10:35:22 CET 2000 The scratchDir you 
 specified:
 /usr/loc
 al/jakarta-tomcat/work/localhost_8080%2Ftest is unusable./JASPER_LOG
 Context log path="/test" :default: init
 Context log path="" :tomcat.errorPage: init
 Context log path="" :jsp: init
 JASPER_LOG Mon Dec 11 10:35:24 CET 2000 The scratchDir you 
 specified:
 /usr/loc
 al/jakarta-tomcat/work/localhost_8080 is unusable./JASPER_LOG
 FATAL:java.net.BindException: Address already in use
 java.net.BindException: Address already in use
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:386)
 at java.net.ServerSocket.init(ServerSocket.java:169)
 at java.net.ServerSocket.init(ServerSocket.java:120)
 at
 org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Default
 ServerSocketFactory.java:97)
 at
 org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEn
 dpoint.java:186)
 at
 org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector
 .java:142)
 at
 org.apache.tomcat.core.ContextManager.start(ContextManager.java:253)
 at 

MissingResourceException in examples - 3.2 en_GB locale

2000-12-11 Thread Steve Quail

 I'm a Tomcat user in the UK, I'm just upgrading to 3.2. When I run the 
 servlet examples (e.g. Hello) they all crash with error 500 
 "java.util.MissingResourceException: can't find resource for 
 LocalStrings_en_GB".
 
 I've unzipped the war file and created a LocalStrings_en_GB.properties 
 file by copying one of the others - doesn't help. 
 
 Oddly by chance I opened a new window in my browser (IE 5.0) and the 
 servlet renders properly in the new window - until you hit refresh 
 when you get the error 500 - I presume this is a feature of IE 5.0 not 
 properly setting the locale when a new window opens ???
 
 By the way - anyone know how you change the locale IE sends in the 
 request ? Being Microsoft I guess it comes from the OS (NT 4)??
 
 Steve Quail.
 
 [My views are mine, mine alone and do not represent in any way the 
 views of my employer, and all that].



Re: AW: Problem starting tomcat again//FATAL:java.net.BindException: Address already in use

2000-12-11 Thread Mohammed Akacem

hello,
Thanks for your help, tomcat was still running, I killed the process and
started again , now it's OK.

Mohammed

Ralph Einfeldt schrieb:

 Tomcat didn't shut down properly the last time.

 It looks like your starting tomcat from a different account than last
 time:

 /usr/local/jakarta-tomcat/conf/tomcat-apache.conf (Permission denied)

 Verify with

 ls -l /usr/local/jakarta-tomcat/conf/tomcat-apache.conf
 id

 Make shure you have the right permissions to shutdown tomcat
 and restart it.

 If the bind exception persists try as root:
 lsof -i :8007 (Default internal tomcat port)
 lsof -i :8080 (Default tomcat port for hhtp)
 lsof -i :80   (Default apache port)

 Or apply this command to any other port you have configured.





Re: very urgent

2000-12-11 Thread Bhavesh Vakil

Hi

Put your oracle driver file your classpath variable. (normally this driver
file is classes111.zip or classes12.zip)
Normally this file found on ORACLE_HOME/jdbc/lib directory.

In WinNT or 98 System.

set CLASSPATH =
%CLASSPATH%;c:\Oracle\Ora81\jdbc\lib\classes12.zip;c:\Oracle\Ora81\jdbc\nls_
charset12.zip;

On linux machine

CLASSPATH=$CLASSPATH:/software/oracle/ora81/jdbc/lib/classes12.zip;/software
/oracle/ora81/jdbc/nls_charset12.zip
export CLASSPATH


Regards,
Bhavesh Vakil.


- Original Message -
From: Sonal Agarwal [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 11, 2000 9:48 AM
Subject: very urgent


 I am using tomcat for running servlets using jdk1.2.
 I am trying to connect to orcale using the driver :
 oracle.jdbc.driver.OracleDriver
 But it is giving me an error that driver not found.
 How can i solve the problem? Please help me.
 Thanks
 Sonal Agarwal.



__
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com



Re: very urgent

2000-12-11 Thread John Clark L. Naldoza

Sonal Agarwal wrote:
 
 I am using tomcat for running servlets using jdk1.2.
 I am trying to connect to orcale using the driver :
 oracle.jdbc.driver.OracleDriver
 But it is giving me an error that driver not found.
 How can i solve the problem? Please help me.
 Thanks
 Sonal Agarwal.

This is an ugly patch...;-)

try to unjar the contents of your jdbc's driver jar file to your apps.

WEB-INF/classes directory...;-)

it's ugly...  But it works for me...

If anyone has a better solution, I'd really like to hear it...;-)

hope that helps.


Cheers,


John Clark
-- 
 /) John Clark Naldoza y Lopez   (\
/ )Software Design Engineer II   ( \
  _( (__  Web-Application Development_) )_
 (((\ \  /_Cable Modem Network Management System _\  / /)))
 ( \_/ / NEC Telecom Software Phils., Inc.  \ \_/ )
  \   /  \   /
   \_/  phone: (+63 32) 233-9142 loc. 3112\_/
   /   /  cellphone: (+63 919) 813-6274 \   \
  /   / email: [EMAIL PROTECTED]\   \



Re: very urgent

2000-12-11 Thread Sam Terburg

The designated location for things like odbc_drivers is /WEB-INF/lib
so unjar your oracle driver to that path.


- Original Message - 
From: "John Clark L. Naldoza" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 11, 2000 11:35 AM
Subject: Re: very urgent


 Sonal Agarwal wrote:
  
  I am using tomcat for running servlets using jdk1.2.
  I am trying to connect to orcale using the driver :
  oracle.jdbc.driver.OracleDriver
  But it is giving me an error that driver not found.
  How can i solve the problem? Please help me.
  Thanks
  Sonal Agarwal.
 
 This is an ugly patch...;-)
 
 try to unjar the contents of your jdbc's driver jar file to your apps.
 
 WEB-INF/classes directory...;-)
 
 it's ugly...  But it works for me...
 
 If anyone has a better solution, I'd really like to hear it...;-)
 
 hope that helps.
 
 
 Cheers,
 
 
 John Clark
 -- 
  /) John Clark Naldoza y Lopez   (\
 / )Software Design Engineer II   ( \
   _( (__  Web-Application Development_) )_
  (((\ \  /_Cable Modem Network Management System _\  / /)))
  ( \_/ / NEC Telecom Software Phils., Inc.  \ \_/ )
   \   /  \   /
\_/  phone: (+63 32) 233-9142 loc. 3112\_/
/   /  cellphone: (+63 919) 813-6274 \   \
   /   / email: [EMAIL PROTECTED]\   \
 




context-param: illegal char

2000-12-11 Thread Sam Terburg



with this code in web.xml:

 
context-param 
param-namedatabase_dsn/param-name 
param-valuejdbc:mysql://localhost/test?user=testpassword=test/param-value 
/context-param


i get this error:

Starting tomcat. Check logs/tomcat.log for error 
messages ERROR reading /home/jsp/forum/WEB-INF/web.xmlAt Next character 
must be ";" terminating reference to entity "password".

ERROR reading 
/home/jsp/forum/WEB-INF/web.xmljava.lang.NullPointerException 
at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java, Compiled 
Code) at 
org.apache.tomcat.context.WebXmlReader.processFile(WebXmlReader.java, Compiled 
Code) at 
org.apache.tomcat.context.WebXmlReader.contextInit(WebXmlReader.java, Compiled 
Code) at 
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java, Compiled 
Code) at 
org.apache.tomcat.core.ContextManager.init(ContextManager.java:201) 
at 
org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:156) 
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)

and

ERROR reading /home/jsp/forum/WEB-INF/web.xmlAt Illegal character or 
entity reference syntax.

and

bash: syntax error near unexpected token 
`password=test/param-value'



apparently  is an illegal character.
but how do i solve this problem?
i've thought of url_encoding this, but that's an ugly sollution.
anybody got a better idea?

Greets,

Sam.




Re: Session snooper

2000-12-11 Thread Kief Morris

Craig R. McClanahan typed the following on 11:40 08/12/2000 -0800
 I'm need to create a simple tool for Tomcat so that I can see how many users
 have active sessions for the available Contexts.  e.g. how many sessions are
 active for /admin with details for each.
...
Under a servlet 2.3 environment (Tomcat 4.x), you can use an application event
listener to do stuff like this in a generic way.

I'm writing a 2.3 servlet which does this, both to demonstrate various session related 
events in the 2.3 spec and as a debugging/system monitoring tool. I'll put the code up
when it's finished. It's not very complex, but it's not at the top of my work queue at
the moment, so it may be this weekend. I'll contribute it to the Jakarta project if 
there's
interest.

The architecture is a class which implements the listener interfaces and maintains
a list of active sessions, and also logs various attribute related events. A separate
servlet class makes use of this class to display current session data.

Kief

---
  bitBull makes the Internet bite: http://www.bitBull.com/demos/




Re: context-param: illegal char

2000-12-11 Thread Jon Skeet

 apparently  is an illegal character.
 but how do i solve this problem?
 i've thought of url_encoding this, but that's an ugly sollution.
 anybody got a better idea?

No, you need to *xml* encode it - use amp; instead of .

Jon



Include File Problem with Tomcat 3.1

2000-12-11 Thread Bhavesh Vakil

Hello,

I have one jsp page say index.jsp. I use Apache 1.3.12 and Tomcat 3.1
version on win98.
code for index.jsp is below.

html
head
titleInclude Problem/title
/head
body
h2some html + jsp code/h2

!-- myinclude.jsp - Start --
%@ include file="include/myinclude.jsp" %
!-- myinclude.jsp - End --

h2some html + jsp code/h2

!-- myinclude.jsp - Start --
%@ include file="include/myinclude.jsp" %
!-- myinclude.jsp - End --

h2some html + jsp code/h2
/body
/html

Problem :

my problem is, in above code I include same file (myinclude.jsp) twice. So
when I execute this JSP, then I got error message like,

"Seen File \include\myinclude.jsp already, maybe this is a recursive include
?!"

This error shows, only once I include some particular file (in my case
myinclude.jsp) in current jsp page. IS THIS CORRECT ?

To solve this problem I copy myinclude.jsp to myinclude1.jsp and
myinclude2.jsp (both 1  2 file content is same).

Then I modify my code like this way.

html
head
titleInclude Problem/title
/head
body
h2some html + jsp code/h2

!-- myinclude.jsp - Start --
%@ include file="include/myinclude1.jsp" %
!-- myinclude.jsp - End --

h2some html + jsp code/h2

!-- myinclude.jsp - Start --
%@ include file="include/myinclude2.jsp" %
!-- myinclude.jsp - End --

h2some html + jsp code/h2
/body
/html


IS THERE ANY OTHER SOLUTION TO THIS PROBLEM ?


Regards,
Bhavesh Vakil.
[EMAIL PROTECTED]



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




RE: context-param: illegal char

2000-12-11 Thread Nacho

Sorroundthe data, with a CDATA tag your web.xml excerpert will look
like:

 context-param
 param-namedatabase_dsn/param-name

param-value![CDATA[jdbc:mysql://localhost/test?user=testpassword=test]]/
param-value
 /context-param



Saludos ,
Ignacio J. Ortega

-Mensaje original-
De: Sam Terburg [mailto:[EMAIL PROTECTED]]
Enviado el: lunes 11 de diciembre de 2000 11:50
Para: [EMAIL PROTECTED]
Asunto: context-param: illegal char


with this code in web.xml:

 context-param
 param-namedatabase_dsn/param-name

param-valuejdbc:mysql://localhost/test?user=testpassword=test/param-valu
e
 /context-param


i get this error:

Starting tomcat. Check logs/tomcat.log for error messages 
ERROR reading /home/jsp/forum/WEB-INF/web.xml
At Next character must be ";" terminating reference to entity
"password".

ERROR reading /home/jsp/forum/WEB-INF/web.xml
java.lang.NullPointerException
 at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java,
Compiled Code)
 at
org.apache.tomcat.context.WebXmlReader.processFile(WebXmlReader.java,
Compiled Code)
 at
org.apache.tomcat.context.WebXmlReader.contextInit(WebXmlReader.java,
Compiled Code)
 at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java,
Compiled Code)
 at org.apache.tomcat.core.ContextManager.init(ContextManager.java:201)
 at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:156)
 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)

and

ERROR reading /home/jsp/forum/WEB-INF/web.xml
At Illegal character or entity reference syntax.

and

bash: syntax error near unexpected token `password=test/param-value'



apparently  is an illegal character.
but how do i solve this problem?
i've thought of url_encoding this, but that's an ugly sollution.
anybody got a better idea?

Greets,

Sam.






Re: context-param: illegal char

2000-12-11 Thread Sam Terburg

Thanx, it workes.

Sam.



- Original Message - 
From: "Jon Skeet" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 11, 2000 11:50 AM
Subject: Re: context-param: illegal char


  apparently  is an illegal character.
  but how do i solve this problem?
  i've thought of url_encoding this, but that's an ugly sollution.
  anybody got a better idea?
 
 No, you need to *xml* encode it - use amp; instead of .
 
 Jon
 




RE: context-param: illegal char

2000-12-11 Thread G.Nagarajan



 
param-valuejdbc:mysql://localhost/test?user=testpassword=test/param-value
I 
think the  character is causing the problem, try replacing 
it
with 
amp;

Regards
Nagaraj.

  -Original Message-From: Sam Terburg 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, December 11, 2000 
  11:50 AMTo: [EMAIL PROTECTED]Subject: 
  context-param: illegal char
  with this code in 
  web.xml:
  
   
  context-param 
  param-namedatabase_dsn/param-name 
  param-valuejdbc:mysql://localhost/test?user=testpassword=test/param-value 
  /context-param
  
  
  i get this error:
  
  Starting tomcat. Check logs/tomcat.log for error 
  messages ERROR reading /home/jsp/forum/WEB-INF/web.xmlAt Next 
  character must be ";" terminating reference to entity "password".
  
  ERROR reading 
  /home/jsp/forum/WEB-INF/web.xmljava.lang.NullPointerException 
  at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java, Compiled 
  Code) at 
  org.apache.tomcat.context.WebXmlReader.processFile(WebXmlReader.java, Compiled 
  Code) at 
  org.apache.tomcat.context.WebXmlReader.contextInit(WebXmlReader.java, Compiled 
  Code) at 
  org.apache.tomcat.core.ContextManager.initContext(ContextManager.java, 
  Compiled Code) at 
  org.apache.tomcat.core.ContextManager.init(ContextManager.java:201) 
  at 
  org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:156) 
  at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
  
  and
  
  ERROR reading /home/jsp/forum/WEB-INF/web.xmlAt Illegal character or 
  entity reference syntax.
  
  and
  
  bash: syntax error near unexpected token 
  `password=test/param-value'
  
  
  
  apparently  is an illegal character.
  but how do i solve this problem?
  i've thought of url_encoding this, but that's an ugly sollution.
  anybody got a better idea?
  
  Greets,
  
  Sam.
  
  


Reroute the output of a processed jsp page into a String or StringBuffer object

2000-12-11 Thread NINA.de Internet Service Agentur

Hello,

is it possible to reroute the output of a processed jsp page into a String
or
StringBuffer object in order to send it as an email message with the Java
Mail API?

We use Tomcat 3.2 final with beans and jsp pages and want to use the parse
mechanism
of jsp pages of Tomcat to generate user defined email messages. The contents
of the
messages are provided by beans with sessionwide scope.

Any ideas ?

Regards,
Ralf.D. Zimmerer





Re: Is it ever possible?

2000-12-11 Thread Tomas Marek

Craig,
thanks a lot, easy solution indeed!





RE: Tomcat Unix autostart

2000-12-11 Thread Mario Beekwilder

All,

When the startup-script is run at server-boot-time, tomcat starts
(errors.log is created  filled normaly) but immediately afterwards tomcat
is killed.
This we can see at the server's display when booting the machine.

When the machine has finished booting and the script is run from the
command-line-prompt, tomcat runs fine.
Could this be related to any rights, paths, special cases, etc when the
script is run at boot-time? Which settings/environment variables should I
look at?
The CLASSPATH-variable is set in tomcat.sh.

The order of booting doesn't seem to be the problem. First apache then
tomcat or vice versa, makes no difference.
Apache starting with the boot-script works fine.

Regards,
Mario Beekwilder
CMG - TP Maastricht


-Original Message-
From: AC [mailto:[EMAIL PROTECTED]]
Sent: maandag 11 december 2000 8:58
To: [EMAIL PROTECTED]
Subject: Re: Tomcat Unix autostart


Tomcat should start after Apache during reboot. Also remember to set your 
classpath in the startup script.

andrea

At 08.44 11/12/2000 +0100, you wrote:
Hi,
I'm trying to start Tomcat whith rebooting a Unix machine.
Tomcat seems to start for a moment and then dissappears.
I have a startup script in /sbin/rc3.d
I'm using an Alpha1000 with Tru64 unix 4.0D
Who can help me.

Regards,
Jan Stevens
Software Developer
CMG Maastricht B.V. -Telecom Products
*   Adelbert van Scharnlaan 170A*   043 - 6018185
 6224 JX Maastricht  *
043
- 6018169
*   mailto:[EMAIL PROTECTED]



Re: very urgent

2000-12-11 Thread boppana VENKE

Hi ,

I am not sure about tomact..
But u can connect to oracle driver by writing the 
classpath of classes111.zip in ur autoexec file..
This classes111.zip is in oracle -- jdbc-lib
directory..
so give a trial with this i hope it works for u...

regards
boppana


--- "John Clark L. Naldoza" [EMAIL PROTECTED]
wrote:
 Sonal Agarwal wrote:
  
  I am using tomcat for running servlets using
 jdk1.2.
  I am trying to connect to orcale using the driver
 :
  oracle.jdbc.driver.OracleDriver
  But it is giving me an error that driver not
 found.
  How can i solve the problem? Please help me.
  Thanks
  Sonal Agarwal.
 
 This is an ugly patch...;-)
 
 try to unjar the contents of your jdbc's driver jar
 file to your apps.
 
 WEB-INF/classes directory...;-)
 
 it's ugly...  But it works for me...
 
 If anyone has a better solution, I'd really like to
 hear it...;-)
 
 hope that helps.
 
 
 Cheers,
 
 
 John Clark
 -- 
  /) John Clark Naldoza y Lopez  
 (\
 / )Software Design Engineer II  
 ( \
   _( (__  Web-Application Development   
 _) )_
  (((\ \  /_Cable Modem Network Management
 System _\  / /)))
  ( \_/ / NEC Telecom Software Phils.,
 Inc.  \ \_/ )
   \   / 
 \   /
\_/  phone: (+63 32) 233-9142 loc. 3112  
  \_/
/   /  cellphone: (+63 919) 813-6274 
\   \
   /   / email: [EMAIL PROTECTED]   
 \   \


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



AW: Tomcat 3.2 stability

2000-12-11 Thread Amrhein, Thomas

Hi Jose,

I except with NT Workstation the problem will never be fixed... :-(
Perhaps it is in SP 6.a but I don't think so.
NT Workstation is no server OS!
NT Workstation therefore should never used as heavyly used webserver.

Try Linux. It's nice and cheap and works fine.

regards,

Thomas

-Ursprüngliche Nachricht-
Von: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Gesendet am: Freitag, 8. Dezember 2000 21:37
An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: RES: Tomcat 3.2 stability

-BEGIN PGP SIGNED MESSAGE-

Dear Thomas,
is there any problem if i use TomCat 3.1 under NT 4.0/SP 6.a?
Jackarta's site doesnt write anything about it
Now, i am developing a small system with this environment
Best Regards,

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
[EMAIL PROTECTED]
http://euclides.8m.com


- -Mensagem original-
De: Amrhein, Thomas [SMTP:[EMAIL PROTECTED]]
Enviada em: Sexta-feira, 8 de Dezembro de 2000 08:36
Para:   [EMAIL PROTECTED]
Assunto:AW: Tomcat 3.2 stability

Hi,

we are running tomcat 3.2 with jdk 1.2.2 on linux
and we have no problems.
Except our test tool, which sometimes brakes down when making too heavy
stress tests for hours. :-( and :-)

We had stability problems with tomcat 3.1 on NT Workstation and noticed
the same problems that you have now.
Which NT do you use? NT Workstation or NT Server? And the newest Service
Pack?
There is a known feature, that NT Workstation does not handle more than
six (perhaps a bit more) parallel HTTP-Connections correctly.
The feature is, that you have to use NT Server instead, which is a bit
more expensive or (my opinion) better use a linux system.

regards, 

Thomas


- -Ursprüngliche Nachricht-
Von: Matthew Preston [mailto:[EMAIL PROTECTED]]
Gesendet am: Donnerstag, 7. Dezember 2000 14:36
An: tomcat user
Betreff: Tomcat 3.2 stability

Has anyone noticed any stability problems with the recently relesaed Tomcat
3.2?

The situation:

After running a couple of web apps for ~4 days with light/moderate usage
Tomcat becomes very slow and starts using 100% cpu.  This never happened
with Tomcat 3.1.

This was seen running on a resonably fast P3 computer with 128 megs ram and
NT4 with jdk 1.3.

Is this a known problem?

Cheers,
Matt
-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOjFgV90YhuJ3BUxtAQFlwAQAps/WWplDljjhytnZPG6ElFYvzNpc1ruS
vtYOlQrJCNcu4aqyg+/HYSkfQzOEM8uh7R/Wis+fmEgwlr3Hrcz/AxsSR6yVpVOB
1hFP5xW0AkDmVCJZMUGYeKjzMHpY0jcSu7Pni3RW8lxz5FcfHjblW+1zQd/XXGlH
zZt7FaypqTU=
=58DM
-END PGP SIGNATURE-



Servlet Mapping

2000-12-11 Thread Joseph Wong

I want to use Apache + Tomcat to run JSP AND Servlet programs such that 
http://server-ip/jsp/*.jsp will map to JSP directory AND 
http://server-ip/servlet/* will map to servlet directory.

How to do this???

Joseph
_

Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com




Re: Servlet Mapping

2000-12-11 Thread AC

I use this configuration...

...
JkMount /tf/*.jsp ajp13
JkMount /tf/*.Svlt ajp13

...
where tf is the name of my webapp. I use for each  servlet the servlet 
mapping config in web.xml. I've found a great performance improvement using 
this configuration!!

andrea


At 20.51 11/12/2000 +0800, you wrote:
I want to use Apache + Tomcat to run JSP AND Servlet programs such that 
http://server-ip/jsp/*.jsp will map to JSP directory AND 
http://server-ip/servlet/* will map to servlet directory.

How to do this???

Joseph
_

Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com





Re: logs

2000-12-11 Thread AC

At 09.19 11/12/2000 +0100, you wrote:
i have the tomcat only working, without apache (in linux).

You should not..
andrea




Forward problems servlet to JSP in 3.2

2000-12-11 Thread Steve Quail

 I'm using using forward to pass a request from my servlet to a JSP 
 page i.e.ServletContext.getRequestDispatcher ("my.jsp").forward(req, 
 res).
 
 This is fine (the JSP gets displayed no problem) but any relative 
 links in the JSP get messed up with a "/servlet" in the middle - e.g. 
 a graphic referenced as "images/mygif.gif" becomes a link to 
 "contextname/servlet/images/mygif.gif" rather than 
 "contextname/images.mygif.gif", links to HTML files similarly get 
 "/servlet" inserted.
 
 Help ! There must be a simple solution I'm missing here.
 
 Steve Quail.



RE: Forward problems servlet to JSP in 3.2

2000-12-11 Thread Kitching Simon

Hi,

I just have a little bit extra to add to Andrea's email:

The problem is that when a browser has loaded a page containing
relative urls to other files, the *browser* resolves these into absolute
references by merging them with the URL that it *thinks* the
parent page was loaded from.

Because a "forward" operation within the tomcat webserver (or
any other webserver for that matter) is totally invisible to the
browser, it thinks that the parent page came from 
/contextname/servlet/something, and therefore uses that
url to figure out what absolute page "images/mygif.gif"
should be loaded from.

The solutions (as far as I know) are

(a) 
andrea's solution of mapping the servlet url, so that
the servlet doing the forwarding appears to be in the
same directory as the file it eventually forwards to.
(but this won't work if you might be forwarding to
files in different directories)

(b) 
to use absolute paths for all links

Neither of these solutions really appeals to me.

Anyone else out there (Craig??) got a better solution?

PS: I expect that this is a really common problem
for Struts users, because forwarding is very common.
Any comments, Struts users??


 -Original Message-
 From: AC [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, December 11, 2000 3:10 PM
 To:   [EMAIL PROTECTED]
 Subject:  Re: Forward problems servlet to JSP in 3.2
 
 You should use servlet mapping. If you have http://myhost/myjsp.jsp the 
 servlet that call your jsp should be mapped as http://myhost/myservlet .
 In 
 this way all the relative links are still good.
 An additional hint.. if you map your servlet with an extension, for 
 instance myservlet.Svlt and use a configuration such as
 JkMount /tf/*.jsp ajp13
 JkMount /tf/*.Svlt ajp13
 
 all the request not related to tomcat are served by Apache
 
 andrea
 
 
 At 13.48 11/12/2000 +, you wrote:
   I'm using using forward to pass a request from my servlet to a JSP
   page i.e.ServletContext.getRequestDispatcher
 ("my.jsp").forward(req,
   res).
 
   This is fine (the JSP gets displayed no problem) but any relative
   links in the JSP get messed up with a "/servlet" in the middle -
 e.g.
   a graphic referenced as "images/mygif.gif" becomes a link to
   "contextname/servlet/images/mygif.gif" rather than
   "contextname/images.mygif.gif", links to HTML files similarly get
   "/servlet" inserted.
 
   Help ! There must be a simple solution I'm missing here.
 
   Steve Quail.



Re: Forward problems servlet to JSP in 3.2

2000-12-11 Thread AC

You should use servlet mapping. If you have http://myhost/myjsp.jsp the 
servlet that call your jsp should be mapped as http://myhost/myservlet . In 
this way all the relative links are still good.
An additional hint.. if you map your servlet with an extension, for 
instance myservlet.Svlt and use a configuration such as
JkMount /tf/*.jsp ajp13
JkMount /tf/*.Svlt ajp13

all the request not related to tomcat are served by Apache

andrea


At 13.48 11/12/2000 +, you wrote:
  I'm using using forward to pass a request from my servlet to a JSP
  page i.e.ServletContext.getRequestDispatcher ("my.jsp").forward(req,
  res).

  This is fine (the JSP gets displayed no problem) but any relative
  links in the JSP get messed up with a "/servlet" in the middle - e.g.
  a graphic referenced as "images/mygif.gif" becomes a link to
  "contextname/servlet/images/mygif.gif" rather than
  "contextname/images.mygif.gif", links to HTML files similarly get
  "/servlet" inserted.

  Help ! There must be a simple solution I'm missing here.

  Steve Quail.




RE: Forward problems servlet to JSP in 3.2

2000-12-11 Thread Lacerda, Wellington (AFIS)

Try "/my.jsp" - if it is at the context root.

Wellington

-Original Message-
From:   AC [mailto:[EMAIL PROTECTED]]
Sent:   11 December 2000 15:10
To: [EMAIL PROTECTED]
Subject:Re: Forward problems servlet to JSP in 3.2

You should use servlet mapping. If you have
http://myhost/myjsp.jsp the 
servlet that call your jsp should be mapped as
http://myhost/myservlet . In 
this way all the relative links are still good.
An additional hint.. if you map your servlet with an
extension, for 
instance myservlet.Svlt and use a configuration such as
JkMount /tf/*.jsp ajp13
JkMount /tf/*.Svlt ajp13

all the request not related to tomcat are served by
Apache

andrea


At 13.48 11/12/2000 +, you wrote:
  I'm using using forward to pass a request from my
servlet to a JSP
  page i.e.ServletContext.getRequestDispatcher
("my.jsp").forward(req,
  res).

  This is fine (the JSP gets displayed no problem) but
any relative
  links in the JSP get messed up with a "/servlet" in
the middle - e.g.
  a graphic referenced as "images/mygif.gif" becomes a
link to
  "contextname/servlet/images/mygif.gif" rather than
  "contextname/images.mygif.gif", links to HTML files
similarly get
  "/servlet" inserted.

  Help ! There must be a simple solution I'm missing
here.

  Steve Quail.



NullPointerException

2000-12-11 Thread William Au

I am getting the following with Tomcat 3.2 but things seem to work.
Should I worry?

java.lang.NullPointerException
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.init(Compiled Code)
at java.lang.Exception.init(Compiled Code)
at java.lang.RuntimeException.init(Compiled Code)
at java.lang.NullPointerException.init(Compiled Code)
at java.util.Hashtable.put(Compiled Code)
at
org.apache.jasper.runtime.PageContextImpl.setAttribute(Compiled Code)
at
org.apache.jasper.runtime.PageContextImpl._initialize(Compiled Code)
at org.apache.jasper.runtime.PageContextImpl.initialize(Compiled
Code)
at
org.apache.jasper.runtime.JspFactoryImpl.getPageContext(Compiled Code)
at _0002f_00031_00030k_0002ejsp10k_jsp_0._jspService(Compiled
Code)
at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.doService(Compiled
Code)
at org.apache.tomcat.core.Handler.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
at
org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled
Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled
Code)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)


Bill




RE: Environment entries?

2000-12-11 Thread Stubenrauch,Andreas

An Enviroment variable is not a java parmeter so you have to set them before
you start Tomcat.
$TOMCAT_HOME/bin/startup.sh might be a good place.

Regards,
Andreas
 -Original Message-
 From: Catherine Jung [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 11, 2000 12:58 PM
 To: [EMAIL PROTECTED]
 Subject: Environment entries?
 
 
 Hi, one of my servlets needs to open a connection to a 
 database, now, if I
 were accessing this database in a normal java program I'd 
 need to have set
 an environment variable LD_LIBRARY_PATH to point to it's native
 librarys. How can I do something similar in a servlet?
 
 It doesn't work just with the normal environment entries I 
 would use for a
 plain java app, and it doesn't work using the following in my web.xml
 file. So can anyone enlighten me as to what I've done wrong/should be
 doing?
 
 env-entry
   descriptionpath to the objy librarys/description
   env-entry-nameLD_LIBRARY_PATH/env-entry-name
   
 env-entry-value/opt/share/object5.2.3/solaris7/lib//env-ent
 ry-value
   env-entry-typejava.lang.String/env-entry-type
 /env-entry
 
 Thanks, 
 
 Catherine
 



Apache-Tomcat on SOLARIS...

2000-12-11 Thread Jean-Luc BEAUDET


Hi every user !
Actually i have a Apache-Tomcat server runnin' well with mod_jk installed.
Apache 1.3.14
Tomcat 3.2 final Rel.
I am newbie in Java servers as whith Apache... but i completed out my
job !
My pb is followin':
I set UserDir at www in Apache, and my users have each a directory in
/home/user(1-n)/www
It goes right with Apache intended that my DocumentRoot is
/home/Project
In Tomcat i declared:
!-- - Contexte ajoute par JLB le 7/12/00 - -->
 Context path="/Projet"

docBase="/home/Projet"

crossContext="false"

debug="1"

reloadable="true" >
 /Context>
 Context path="/~user1"

docBase="/home/user1/www"

crossContext="false"

debug="1"

reloadable="true" >
 /Context>
and added:
 JkMount /~user1/servlet/* ajp12
 JkMount /~user1/*.jsp ajp12
 JkMount /~user2/servlet/* ajp12
 JkMount /~user2/*.jsp ajp12
 JkMount /~usern/servlet/* ajp12
 JkMount /~usern/*.jsp ajp12
in Apache.
It seems it's not very easy to maintain as far as many users could
ask for an account...
So My Question is : Is there another solution ta
achieve this???
Many thanks to all answers!
JLB;o(







RE: Forward problems servlet to JSP in 3.2

2000-12-11 Thread Russell Freeman

I had this problem too and have resolved it with help from people here.
However the solution is not nice.

For forwards via the RequestDispatcher you can place a / in front of the
resource name and the servlet container correctly works out that the path is
relative to the context root ( the name of your web app ). Links in your web
pages however have to be fully qualified with the context name which is naff
if you need to change your context name but I haven't lost sleep over it
yet. 

I personally haven't had any luck using the BASE property successfully.

Russ

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 11 December 2000 13:48
To: [EMAIL PROTECTED]
Subject: Forward problems servlet to JSP in 3.2


 I'm using using forward to pass a request from my servlet to a JSP 
 page i.e.ServletContext.getRequestDispatcher ("my.jsp").forward(req, 
 res).
 
 This is fine (the JSP gets displayed no problem) but any relative 
 links in the JSP get messed up with a "/servlet" in the middle - e.g. 
 a graphic referenced as "images/mygif.gif" becomes a link to 
 "contextname/servlet/images/mygif.gif" rather than 
 "contextname/images.mygif.gif", links to HTML files similarly get 
 "/servlet" inserted.
 
 Help ! There must be a simple solution I'm missing here.
 
 Steve Quail.



tomcat startup directory - causing problems

2000-12-11 Thread e e

I have a servlet that works without any problems if i
run the Tomcat startup.sh script from the directory 
where the main class of the servlet is
(webapps/etc/WEB-INF/classes) However, if I run the
startup.sh 
script from the tomcat-home directory
(/usr/local/tomcat/bin), I get the error below when
trying to access the page. I tried explicity adding
the directory where 
the class is to the system classpath ENV, but that
didn't work.

Anyone know what's going on here?
TIA.

(I'm not subscribed to the list - please cc me with
any response - thanks)

java.lang.NoSuchMethodError: org.w3c.dom.Node: method
getLocalName()Ljava/lang/String; not found
 at
org.apache.xerces.dom.DocumentImpl.importNode(Compiled
Code)
 at vvs.Releases.makePage(Compiled Code)
 at PressReleases.service(Compiled Code)
 at javax.servlet.http.HttpServlet.service(Compiled
Code)
 at
org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
Code)
 at
org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
Code)
 at
org.apache.tomcat.servlets.InvokerServlet.service(Compiled
Code)
 at javax.servlet.http.HttpServlet.service(Compiled
Code)
 at
org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
Code)
 at
org.apache.tomcat.core.ContextManager.service(Compiled
Code)
 at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Compiled
Code)
 at
org.apache.tomcat.service.TcpConnectionThread.run(Compiled
Code)
 at java.lang.Thread.run(Compiled Code)




__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



Multipart and mod_jk

2000-12-11 Thread AC

I've got a servlet that use the O'Reilly package to manage multipart 
request. If I use mod_jserv everything works fine. Once I use mod_jk the 
same servlet fails!!!

Any solutions??

andrea




Re: Initial Context

2000-12-11 Thread Cyril Bouteille

Christian,

 i use Tomcat as a Servlet Engine and want to create a Initial Context...but
 what is the Initial Context Factory i have to USE?

Tomcat 3.x does not include a JNDI server yet, so you can't use any
InitialContext unless you use a third-party naming service such as
WebLogic Server.

Hope it helps,

begin:vcard 
n:Bouteille;Cyril
tel;work:(415) 247-9494 x 305
x-mozilla-html:FALSE
url:http://www.hotwire.com
org:a href=http://www.hotwire.comimg border=0 src=http://www.hotwire.com/assets/logo_white.gif/a
version:2.1
email;internet:[EMAIL PROTECTED]
title:Senior J2EE Software Engineer
note:a href=http://calendar.yahoo.com/cyrilbouteilleView my agenda/a
adr;quoted-printable:;;333 Market St=0D=0ASuite #100;San Francisco;California;94105;USA
x-mozilla-cpt:;-6160
fn:Cyril Bouteille
end:vcard

 S/MIME Cryptographic Signature


RE: Multipart and mod_jk

2000-12-11 Thread Stubenrauch,Andreas

This a known bug it seems fixed in the 3.3 branch and will hopefully be
integrated into a 3.2.x maintainace release.

 -Original Message-
 From: AC [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 11, 2000 5:49 PM
 To: [EMAIL PROTECTED]
 Subject: Multipart and mod_jk
 
 
 I've got a servlet that use the O'Reilly package to manage multipart 
 request. If I use mod_jserv everything works fine. Once I use 
 mod_jk the 
 same servlet fails!!!
 
 Any solutions??
 
 andrea
 



RE: documentation for jk_nt_service.exe

2000-12-11 Thread Susmitha Vuyyuru



Hi 
Betty,

Link to 
jk_nt_service.exe documentation:

http://jakarta.apache.org/cvsweb/index.cgi/jakarta-tomcat/src/doc/NT-Service-howto.html
and select the 
hyperlinkRevision 1.2/ (as text)

-- 
Susmitha 
Vuyyuru 
Developermailto:[EMAIL PROTECTED] 
1.650.314.0936
Portal Wave, Inc.The Fastest Track to 
Integrated e-Businesswww.portalwave.com 

  -Original Message-From: Betty Chang 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, December 08, 2000 10:52 
  PMTo: [EMAIL PROTECTED]Subject: 
  documentation for jk_nt_service.exe
  Hi -- where in the apache.org site is the documentation for 
  how to use jk_nt_service.exe?
  
  Thanks
  


Re: 3.X and 4.X Information

2000-12-11 Thread Sean Kroah



I've not seen any design docs on the site anywhere, so Ijust downloaded
www.togetherj.com, the free whiteboard edition and imported the tomcat
source. This gave me some
useful UML diagrams. Good luck.

Sean Kroah

Sean wrote:

Developers or other users ...
I was wondering if anyone knew of any benchmarks that compare Tomcats
performance to other JSP Containers? I was also wondering if there
were any Benchmark goals for each release or is the only goal of Tomcat
to create a reference implementation? I know that Apache is pretty
much the defacto webserver (within reason) in reguard to speed at most
organizations. Is the goal of Tomcat to be the defacto JSP Container
and Servlet Runner or to be the standard reference implementation on which
others are measured? I would think the ultimate goal is both but
I don't see that outlined as a "specific" goal on any of the sites ...
they seem to only highlight it as the reference implementation.
Also ... is there a design documentation repository somewhere that I
can look at to see the overall design and architecture of the 3.X and 4.X
product line?
I am interested in helping the development of Tomcat but I want to get
my head wrapped around the 1.1 and 1.2 specification as well as the current
Jakarta subprojects. I appreciate the help with these questions and
look forward to helping out in the future 
Thanks again ...
Sean

--
Sean Kroah T:503.222.9660
 F:503.241.5682
WireX Communications, Inc.
Software Engineer, [EMAIL PROTECTED]





Re: Servlet and pathinfo with jsp in Tomcat 3.2

2000-12-11 Thread Craig R. McClanahan

"Lipner, Tomas" wrote:

 The below code runs servlet "myservlet" with pathinfo "pages/welcome.jsp".
 frame NAME="main" SRC="%= context %/servlet/myservlet/pages/welcome.jsp"
 NORESIZE

 It functions correctly with Tomcat 3.1, but Tomcat 3.2 returns error message
 "The page cannot be found".
 Tomcat 3.2 doesn't interpret it as 'myservlet' with path info
 'pages/welcome.jsp', but wants to open page
 "/servlet/myservlet/pages/welcome.jsp" directly.


It looks like the change to an interceptor version of the invoker broke the
previous ordering of mapping a request URI to a servlet -- now it is picking up
the "*.jsp" match for the JSP servlet before checking for the path match.

Note that the "invoker" concept (/servlet/*) is not part of the servlet
specification, so you are not guaranteed that it will work identically -- or
even be present -- on any given servlet container.  As a portable mechanism to
do what you want, I suggest adding the following to your web.xml file:

servlet
servlet-namemyservlet/servlet-name
!-- Change this to the fully qualified class name of your servlet --
servlet-classmyservlet/servlet-class
/servlet

servlet-mapping
servlet-namemyservlet/servlet-name
url-pattern/servlet/myservlet/*/url-pattern
/servlet-mapping

This inserts a path-based mapping back into the way Tomcat works, which occurs
ahead of the extension mapping (due to the rules in the servlet spec).  As an
extra added bonus, you can map this servlet to any URL you like -- it doesn't
have to start with "/servlet/myservlet" if you would prefer something else).




 When I use:
 /servlet/myservlet/servlet/anotherservlet

 it functions correctly, i.e. myservlet is called with path info
 'servlet/anotherservlet'

 Tomas

Craig McClanahan





Re: Version 3.1 works and 3.2 doesn't

2000-12-11 Thread Craig R. McClanahan

Christian Sell wrote:

 This may or may not concern your problem: One change that I have noticed and
 that had me wondering for an hour or two was the fact that 3.2 treats paths
 and filenames case-sensitive under Windows OSs. With me, a taglib wasn't found
 because my META-INF directory was in fact named "Meta-inf". Bummer.

It's also good practice to get you set up for future versions.  The servlet 2.3
spec requires all matches inside the web application's document root to be done
case sensitively, even on non-case-sensitive platforms like Windows.

In the 3.2 case, this one change closed a very large number of security
vulnerabilities as well.

Craig McClanahan





How do you compile ?

2000-12-11 Thread Adress, David S.

I have a util.java that has a function get_html_header to return "HTML
etc..."
I would like to call that function from inside another servlet...

Other Servlet:

Package util;

util.get_html_header()


How do I compile this servlet so it should know what  where that function
is?



Tomcat 3.2 + Apache 1.3.14 + Windows NT 4 + mod_jk

2000-12-11 Thread Hernandez, Rey

Hi all,
 
I know this has probably been addressed before, but I can't find
documentation on this anywhere, I checked the list archive, I've looked in
the documentation, I've checked the readmes and I've looked at the mod_jk
documentation very closely.  I can get Tomcat up and running just fine as a
standalone.  I can get it running with apache when I use the mod_jserv
module.  When I try to get Tomcat running with Apache using mod_jk, apache
won't start and I can't find errors in any of the log files.  I'm sure
someone has run into this problem at some point and I would appreciate a
little light to be shed on this situation.
 
Thanks in advance,
Rey

-Original Message-
From: Duane Morse [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 11:56 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Error Messages


I think you can get errors of this type if the user clicks the STOP button
on the browser before the
response is completely transmitted (or, equivalently, when the user closes
the browser prematurely).
 

Duane Morse, Eldorado Computing Inc., Phoenix AZ 

-Original Message-
From: Parayali, Jayesh 1065 [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 12:40 PM
To: '[EMAIL PROTECTED]'
Subject: Error Messages



I am running tomcat 3.2 on windows NT workstation 

I am getting the below messages 

2000-12-08 11:08:38 - Ctx( ): IOException in: R(  + /00.jpg + null)
Connection aborted by peer: socket write error 

Anybody encountered this problem? 

Thanks, 
Jayesh 




Re: Tomcat 3.2 + Apache 1.3.14 + Windows NT 4 + mod_jk

2000-12-11 Thread mf12

When you start apache from the command line what does 
it tell you? I am guessing you have Tomcat in 
standalone pointing to the same port as apache wants to 
use. Check your tomcat.conf.

Quoting "Hernandez, Rey" [EMAIL PROTECTED]:

 Hi all,

 I know this has probably been addressed before, 
but I can't find
 documentation on this anywhere, I checked the list 
archive, I've looked in
 the documentation, I've checked the readmes and I've 
looked at the mod_jk
 documentation very closely.  I can get Tomcat up and 
running just fine as a
 standalone.  I can get it running with apache when I 
use the mod_jserv
 module.  When I try to get Tomcat running with Apache 
using mod_jk, apache
 won't start and I can't find errors in any of the log 
files.  I'm sure
 someone has run into this problem at some point and I 
would appreciate a
 little light to be shed on this situation.

 Thanks in advance,
 Rey

 -Original Message-
 From: Duane Morse [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 08, 2000 11:56 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Error Messages


 I think you can get errors of this type if the user 
clicks the STOP button
 on the browser before the
 response is completely transmitted (or, equivalently, 
when the user closes
 the browser prematurely).


 Duane Morse, Eldorado Computing Inc., Phoenix AZ

 -Original Message-
 From: Parayali, Jayesh 1065 
[mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 08, 2000 12:40 PM
 To: '[EMAIL PROTECTED]'
 Subject: Error Messages



 I am running tomcat 3.2 on windows NT workstation

 I am getting the below messages

 2000-12-08 11:08:38 - Ctx( ): IOException in: R(  
+ /00.jpg + null)
 Connection aborted by peer: socket write error

 Anybody encountered this problem?

 Thanks,
 Jayesh

 




Tomcat Build Problem on Solaris

2000-12-11 Thread Stephen F. Kispersky




Dear Tomcatters,

I tried to update my Apache/JServ installation to Tomcat, and had some
problems. Could you please comment??

Thanks,

Steve Kispersky



Environment:

- Solaris 7, SPARC Ultra 5
- Tomcat 3.2 source
- Apache 1.3.12

Problems:

- In the README, "servletapi" is referenced, but it is not to be found on the
  Tomcat site that I could see. I tried substituting the JSAPI classes on
  Sun site (version 2.2).

- After untaring the Tomcat source, I found the shell scripts to be lacking
  the executable file mode, and also had to translate them to Unix file
  format before they would run!

- My build came up with compile errors (see listing below)


Build Listing:

# ./build.sh
Searching for build.xml ...
Buildfile: /usr/local/jakarta/jakarta-tomcat-3.2-src/build.xml

prepare:

tomcat:
[javac] Compiling 26 source files to /usr/local/jakarta/build/tomcat/classes
[javac] 
/usr/local/jakarta/jakarta-tomcat-3.2-src/src/share/org/apache/jasper/compiler/JspCompiler.java:136:
 Method getClassName(java.lang.String) not found in class 
org.apache.jasper.compiler.ClassName.
[javac] realClassName = ClassName.getClassName( getClassFileName() );
[javac]   ^
[javac] 
/usr/local/jakarta/jakarta-tomcat-3.2-src/src/share/org/apache/jasper/compiler/JspCompiler.java:137:
 Exception org.apache.jasper.JasperException is never thrown in the body of the 
corresponding try statement.
[javac] } catch( JasperException ex) {
[javac]   ^
[javac] 
/usr/local/jakarta/jakarta-tomcat-3.2-src/src/share/org/apache/jasper/compiler/JspParseEventListener.java:867:
 Wrong number of arguments in constructor.
[javac] = new GeneratorWrapper(new ForwardGenerator(start, attrs, 
param),
[javac]^
[javac] 
/usr/local/jakarta/jakarta-tomcat-3.2-src/src/share/org/apache/jasper/compiler/JspParseEventListener.java:877:
 Wrong number of arguments in constructor.
[javac] = new GeneratorWrapper(new IncludeGenerator(start, attrs, 
param),
[javac]^
[javac] 
/usr/local/jakarta/jakarta-tomcat-3.2-src/src/share/org/apache/jasper/servlet/JspServlet.java:462:
 Method compile() not found in class org.apache.jasper.compiler.Compiler.
[javac] outDated = compiler.compile();
[javac]^
[javac] 
/usr/local/jakarta/jakarta-tomcat-3.2-src/src/share/org/apache/jasper/servlet/JspServlet.java:467:
 Method compile() not found in class org.apache.jasper.compiler.Compiler.
[javac] outDated = compiler.compile();
[javac]^
[javac] 
/usr/local/jakarta/jakarta-tomcat-3.2-src/src/share/org/apache/jasper/servlet/JspServlet.java:471:
 Exception java.io.FileNotFoundException is never thrown in the body of the 
corresponding try statement.
[javac] } catch (FileNotFoundException ex) {
[javac]   ^
[javac] 
/usr/local/jakarta/jakarta-tomcat-3.2-src/src/share/org/apache/jasper/servlet/JspServlet.java:473:
 Exception org.apache.jasper.JasperException is never thrown in the body of the 
corresponding try statement.
[javac] } catch (JasperException ex) {
[javac]   ^
[javac] 
/usr/local/jakarta/jakarta-tomcat-3.2-src/src/share/org/apache/jasper/JspC.java:367: 
Method compile() not found in class org.apache.jasper.compiler.CommandLineCompiler.
[javac] clc.compile();
[javac]^
[javac] 
/usr/local/jakarta/jakarta-tomcat-3.2-src/src/share/org/apache/tomcat/request/JspInterceptor.java:205:
 Method compile() not found in class org.apache.jasper.compiler.Compiler.
[javac] compiler.compile();
[javac] ^
[javac] Note: 3 files use or override a deprecated API.  Recompile with 
"-deprecation" for details.
[javac] 10 errors, 1 warning

BUILD FAILED




RE: Tomcat 3.2 + Apache 1.3.14 + Windows NT 4 + mod_jk

2000-12-11 Thread guyr

Note that with mod_jk, you have to start Tomcat first, then Apache.  If you
followed the directions in the howto, you'll see that you include in
httpd.conf a file that is not present until Tomcat is running.

-Original Message-
From: Hernandez, Rey [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 11, 2000 1:37 PM
To: '[EMAIL PROTECTED]'
Subject: Tomcat 3.2 + Apache 1.3.14 + Windows NT 4 + mod_jk


Hi all,
 
I know this has probably been addressed before, but I can't find
documentation on this anywhere, I checked the list archive, I've looked in
the documentation, I've checked the readmes and I've looked at the mod_jk
documentation very closely.  I can get Tomcat up and running just fine as a
standalone.  I can get it running with apache when I use the mod_jserv
module.  When I try to get Tomcat running with Apache using mod_jk, apache
won't start and I can't find errors in any of the log files.  I'm sure
someone has run into this problem at some point and I would appreciate a
little light to be shed on this situation.
 
Thanks in advance,
Rey

-Original Message-
From: Duane Morse [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 11:56 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Error Messages


I think you can get errors of this type if the user clicks the STOP button
on the browser before the
response is completely transmitted (or, equivalently, when the user closes
the browser prematurely).
 

Duane Morse, Eldorado Computing Inc., Phoenix AZ 

-Original Message-
From: Parayali, Jayesh 1065 [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 12:40 PM
To: '[EMAIL PROTECTED]'
Subject: Error Messages



I am running tomcat 3.2 on windows NT workstation 

I am getting the below messages 

2000-12-08 11:08:38 - Ctx( ): IOException in: R(  + /00.jpg + null)
Connection aborted by peer: socket write error 

Anybody encountered this problem? 

Thanks, 
Jayesh 



RE: Tomcat 3.2 + Apache 1.3.14 + Windows NT 4 + mod_jk

2000-12-11 Thread Hernandez, Rey

Hi all,

Well, with the help of the comments I figured out the problem.  I
did not wish to use the auto-generated file because I wanted to change a few
things manually.  I thought that I had copied enough from the auto-conf to
have my manual conf work.  The problem was this:

I set these two directives:
IfModule mod_jk.c
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log

The auto-conf set them this way:
IfModule mod_jk.c
JkWorkersFile "C:/web/apache/conf/workers.properties"
JkLogFile "C:/web/apache/logs/mod_jk.log"

It seems that when I set them using relative paths that Apache did not know
where to find them, even though relative paths work elsewhere in my
httpd.conf file.  Does anyone know why my way didn't work?

Anyway, thanks for the help, I knew it had to be a simple user error.

Rey
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 11, 2000 11:59 AM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat 3.2 + Apache 1.3.14 + Windows NT 4 + mod_jk


Note that with mod_jk, you have to start Tomcat first, then Apache.  If you
followed the directions in the howto, you'll see that you include in
httpd.conf a file that is not present until Tomcat is running.

-Original Message-
From: Hernandez, Rey [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 11, 2000 1:37 PM
To: '[EMAIL PROTECTED]'
Subject: Tomcat 3.2 + Apache 1.3.14 + Windows NT 4 + mod_jk


Hi all,
 
I know this has probably been addressed before, but I can't find
documentation on this anywhere, I checked the list archive, I've looked in
the documentation, I've checked the readmes and I've looked at the mod_jk
documentation very closely.  I can get Tomcat up and running just fine as a
standalone.  I can get it running with apache when I use the mod_jserv
module.  When I try to get Tomcat running with Apache using mod_jk, apache
won't start and I can't find errors in any of the log files.  I'm sure
someone has run into this problem at some point and I would appreciate a
little light to be shed on this situation.
 
Thanks in advance,
Rey

-Original Message-
From: Duane Morse [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 11:56 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Error Messages


I think you can get errors of this type if the user clicks the STOP button
on the browser before the
response is completely transmitted (or, equivalently, when the user closes
the browser prematurely).
 

Duane Morse, Eldorado Computing Inc., Phoenix AZ 

-Original Message-
From: Parayali, Jayesh 1065 [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 12:40 PM
To: '[EMAIL PROTECTED]'
Subject: Error Messages



I am running tomcat 3.2 on windows NT workstation 

I am getting the below messages 

2000-12-08 11:08:38 - Ctx( ): IOException in: R(  + /00.jpg + null)
Connection aborted by peer: socket write error 

Anybody encountered this problem? 

Thanks, 
Jayesh 



RE: How do you compile ?

2000-12-11 Thread Jon Skeet

 How do I compile this servlet so it should know what  where 
 that function is?

I think you'd be better off learning Java first, *then* going into 
servlets - trying to learn both at once may well be much trickier
than learning one at a time.

Jon



RE: How do you compile ?

2000-12-11 Thread Adress, David S.

I basically want to know if a servlet is using a function in another package
how do you compile that servlet? What tags do I include or how do I
reference the package when I compile.

Thanks

-Original Message-
From: Jon Skeet [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 11, 2000 3:39 PM
To: [EMAIL PROTECTED]
Subject: RE: How do you compile ?


 How do I compile this servlet so it should know what  where 
 that function is?

I think you'd be better off learning Java first, *then* going into 
servlets - trying to learn both at once may well be much trickier
than learning one at a time.

Jon



Re: Tomcat Unix autostart

2000-12-11 Thread jdunn

Jan, I'm using tomcat  apache on a Linux machine which uses a Unix SysV type
init .
Here's how I start it at boot time. Created a symlink in /etc/init.d called
'tomcat' that links
to the tomcat.sh script wherever you put the tomcat/bin directory.
Then in each rcX.d subdirectory (where X is a number 0 thru 6) I put
another symlink to the previous file tomcat in /etc/init.d  using the format
K   or  S,  then a two digit number then the name 'tomcat'
The K instructs the init process to kill and the S to start.
All links in these directories are started by the init process in
the ascending order depending on the two digit number.
tomcat must be started before your webserver -httpd or apache or
whatever.  The rc0.d  rc6.d subdirectorys must contain a Kill
command. I just guessed that you should Kill the webserver before
you Kill tomcat and it seems to work OK. Note that the K or S
must be upper case. There's more to get it running OK, but that's how
to get it started at boot time  killed at shutdown.



Jan Stevens wrote:

 Hi,
 I'm trying to start Tomcat whith rebooting a Unix machine.
 Tomcat seems to start for a moment and then dissappears.
 I have a startup script in /sbin/rc3.d
 I'm using an Alpha1000 with Tru64 unix 4.0D
 Who can help me.

 Regards,
 Jan Stevens
 Software Developer
 CMG Maastricht B.V. -Telecom Products
 *   Adelbert van Scharnlaan 170A*   043 - 6018185
 6224 JX Maastricht  *   043
 - 6018169
 *   mailto:[EMAIL PROTECTED]




Re: NullPointerException

2000-12-11 Thread Mark Koscak

This sounds to me like your program is attempting to reference an array
element that is out of bounds.

It would be worth the effort to track the problem down.

Mark.

- Original Message -
From: William Au [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 12, 2000 2:34 AM
Subject: NullPointerException


 I am getting the following with Tomcat 3.2 but things seem to work.
 Should I worry?

 java.lang.NullPointerException
 at java.lang.Throwable.fillInStackTrace(Native Method)
 at java.lang.Throwable.fillInStackTrace(Compiled Code)
 at java.lang.Throwable.init(Compiled Code)
 at java.lang.Exception.init(Compiled Code)
 at java.lang.RuntimeException.init(Compiled Code)
 at java.lang.NullPointerException.init(Compiled Code)
 at java.util.Hashtable.put(Compiled Code)
 at
 org.apache.jasper.runtime.PageContextImpl.setAttribute(Compiled Code)
 at
 org.apache.jasper.runtime.PageContextImpl._initialize(Compiled Code)
 at org.apache.jasper.runtime.PageContextImpl.initialize(Compiled
 Code)
 at
 org.apache.jasper.runtime.JspFactoryImpl.getPageContext(Compiled Code)
 at _0002f_00031_00030k_0002ejsp10k_jsp_0._jspService(Compiled
 Code)
 at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
 at javax.servlet.http.HttpServlet.service(Compiled Code)
 at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
 Code)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
 Code)
 at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
 at javax.servlet.http.HttpServlet.service(Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.doService(Compiled
 Code)
 at org.apache.tomcat.core.Handler.service(Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
 at
 org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
 at org.apache.tomcat.core.ContextManager.service(Compiled Code)
 at

org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compi
led
 Code)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled
 Code)
 at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
 at java.lang.Thread.run(Compiled Code)


 Bill




Isapi redirector

2000-12-11 Thread Dave Finch

Hi,

I am using the isapi redirector with IIS4. it is all configured and works
fine.

the problem is I get a 404 error from IIS on the isapi_redirect.dll when I
have more than 3 or 4 concurrent users. if the user hits refresh the
jsp/servlet is usually shown fine.

is anyone else having this problem? or maybe you are and didn't know it.

I have looked through the other postings but not found a solution.

TIA

Dave Finch



RE: How do you compile ?

2000-12-11 Thread Jon Skeet

 I basically want to know if a servlet is using a function in 
 another package how do you compile that servlet? What tags do
 I include or how do I reference the package when I compile.

And what I've said, and what I'll repeat, is that you should learn Java
*first*. If you knew Java, you'd know the answer to this question. This
is
not the best place to discuss general Java matters.

You can't expect to write even half-decent servlets without learning the
language first. Fumbling about, trying to guess the syntax from other
servlets, is going to take you *far* longer than reading a good tutorial
on Java.

Jon



RE: Tomcat 3.2 + Apache 1.3.14 + Windows NT 4 + mod_jk

2000-12-11 Thread Maureen Fisher

it says right in the tomcat docs that windows does not support relative 
paths. I should have thought of that ;-)

At 12:35 PM 12/11/2000 -0800, Hernandez, Rey wrote:
Hi all,

 Well, with the help of the comments I figured out the problem.  I
did not wish to use the auto-generated file because I wanted to change a few
things manually.  I thought that I had copied enough from the auto-conf to
have my manual conf work.  The problem was this:

I set these two directives:
IfModule mod_jk.c
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log

The auto-conf set them this way:
IfModule mod_jk.c
JkWorkersFile "C:/web/apache/conf/workers.properties"
JkLogFile "C:/web/apache/logs/mod_jk.log"

It seems that when I set them using relative paths that Apache did not know
where to find them, even though relative paths work elsewhere in my
httpd.conf file.  Does anyone know why my way didn't work?

Anyway, thanks for the help, I knew it had to be a simple user error.

Rey
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 11, 2000 11:59 AM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat 3.2 + Apache 1.3.14 + Windows NT 4 + mod_jk


Note that with mod_jk, you have to start Tomcat first, then Apache.  If you
followed the directions in the howto, you'll see that you include in
httpd.conf a file that is not present until Tomcat is running.

-Original Message-
From: Hernandez, Rey [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 11, 2000 1:37 PM
To: '[EMAIL PROTECTED]'
Subject: Tomcat 3.2 + Apache 1.3.14 + Windows NT 4 + mod_jk


Hi all,

 I know this has probably been addressed before, but I can't find
documentation on this anywhere, I checked the list archive, I've looked in
the documentation, I've checked the readmes and I've looked at the mod_jk
documentation very closely.  I can get Tomcat up and running just fine as a
standalone.  I can get it running with apache when I use the mod_jserv
module.  When I try to get Tomcat running with Apache using mod_jk, apache
won't start and I can't find errors in any of the log files.  I'm sure
someone has run into this problem at some point and I would appreciate a
little light to be shed on this situation.

Thanks in advance,
Rey

-Original Message-
From: Duane Morse [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 11:56 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Error Messages


I think you can get errors of this type if the user clicks the STOP button
on the browser before the
response is completely transmitted (or, equivalently, when the user closes
the browser prematurely).


Duane Morse, Eldorado Computing Inc., Phoenix AZ

-Original Message-
From: Parayali, Jayesh 1065 [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 12:40 PM
To: '[EMAIL PROTECTED]'
Subject: Error Messages



I am running tomcat 3.2 on windows NT workstation

I am getting the below messages

2000-12-08 11:08:38 - Ctx( ): IOException in: R(  + /00.jpg + null)
Connection aborted by peer: socket write error

Anybody encountered this problem?

Thanks,
Jayesh




RE: How do you compile ?

2000-12-11 Thread Bryan Basham


 I basically want to know if a servlet is using a function in another package
 how do you compile that servlet? What tags do I include or how do I
 reference the package when I compile.

These are the main techniques.

  * If the "other package" exists as a JAR, then use:
  
javac -classpath otherPackage.jar:$CLASSPATH MyServlet.java

  * If the "other package" exists as a class file, then use:
  
javac -classpath otherPackageRootDirectory:$CLASSPATH MyServlet.java

  * If the "other package" exists as a source file, then use:
  
javac -sourcepath packageRootSourceDirectory MyServlet.java

If you are using ANT, look for the appropriate attributes on the javac
task item that map to these command-line arguments.

Good luck,
Bryan




Tomcat is creating compiled JSP filenames of lenght 250 characters

2000-12-11 Thread Alex Muc

Hi,

Looking through the archives I've only foudn a little discussion about 
this problem, so hopefully this message isn't something that has been 
discussed to death already.

I'm running with Tomcat 3.1 on Windows 98 for some development work that 
I'm doing.  I am running in cases where the compilation of JSP pages 
(handled by the "jasper sub-component) is creating file names which are 
longer than 250 characters which is the limit of the entire file name 
(path + filename) on windows.

Every time this occurs Tomcat then throws an exception like the following:

Included servlet error: 500
Location: /cc/module1design/SLElSet.jsp
Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for JSPerror: 
Can't write: 
D:\java\jakarta-tomcat\work\localhost_8080%2Fcc\module_00031design\_0005f_0005f\query\ClauseChain\_0005f_0005f\ClauseStart\_0002fmodule_00031design_0002f_0002e_0002e_0002fquery_0002fClauseChain_0002f_0002e_0002e_0002fClauseStart_0002fCreate_0002ejspCreate_jsp_0.class
1 error

   at org.apache.jasper.compiler.Compiler.compile(Compiler.java, 
Compiled Code)
   at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java, 
Compiled Code)
   at 
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java,
 
Compiled Code)
   at 
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java, 
Compiled Code)
   at 
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java, 
Compiled Code)
   at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, 
Compiled Code)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
  
snip

I've looked through the source code for Tomcat and the relevant class 
seems to be org.apache.jasper.compiler.JSPCompiler.  This class 
implements the org.apache.jasper.compiler.Mangler interface which is 
what does the translations between classes mentioned in a JSP pae and 
what is generated by the JSP compiler.  It seems relatively straightforward.

The questions I have are the following:
1) Is it possible to specify (in a configuration file somewhere) the 
name of the class to use as the JSP compiler?  Or if I make changes to 
the class org.apache.japser.compiler.JSPCompiler will I have to 
recompile/recreate the tomcat.jar file?
2) Can anyone shed some light on the reasons behind the current Mangler 
implementation (ideally the guy who wrote it).  If I am to try and 
improve the implementation then it'd be nice to know what the pitfalls are.
3) Is there any way to shorten down the lenght of the names of the 
compiled classes that I'm not aware of?  The compiler seems to throw in 
a lot of strings like "_0002f" and "_0002e" for no apparent reason
4) Anyone know what the file name limits on Unix/Linux are?
5) Is this a problem which has been fixed in Tomcat 3.2 or the early 4.0 
releases?

Thanks for you help
Alex.




ServletContext.getResourceAsStream() in 3.2?

2000-12-11 Thread Sean Dowd

I'm trying to load a properties file at startup in a servlet by doing a 

ClassLoader loader = Thread.currentThread().getContextClassLoader();
InputStream is = null;
is = getServletContext().getResourceAsStream( propFileName );
while(loader != null  is == null) {
  is = loader.getResourceAsStream( propFileName );
  loader = loader.getParent();
}

This is returning null under tomcat 3.2 but worked fine under 3.1.  The
file
exists in my classes directory under WEB-INF.

I've tried this with a leading / on the file name and without a leading
/ with the
same results.  The web app is defined in my server.xml and resides
outside of 
$TOMCAT_HOME/webapps.

Is anyone else having the same problem?

(Sun JDK 1.2.2_05, solaris 2.6)



problem with non-english characters on solaris

2000-12-11 Thread Jyoti Bansal



Hi 
all,

I am using some 
non-english characters in HTTP request POST data. When I post it to the servlet 
and do a request.getParameter() in the servlet code, I get all the non-English 
characters replaced by a '?'.

This is happening 
when the Tomcat is running on Solaris. I have tried using Tomcat with Apache and 
also Tomcat standalone.
If I run the same 
servlet on Windows NT and use the same non-English characters it works 
fine.

Can you please 
suggest me what can be wrong? 
I am using 
internationalized version of JDK and have made sure that i18n.jar is in 
classpath , if that could be a reason.

Has anyone seen such 
a problem before?

Thanks

Jyoti K. 
Bansal
Software 
Engineer
NetLens 
Inc.



path problem

2000-12-11 Thread Cherie Yoon

Hi,

I got apache-tomcat working on linux. now i would like to load jsp page
without having to type the parent folder. i.e. (without making change in
existing directory structure)

localhost/myApp/test.jsp - localhost/test.jsp 

I made some changes on server.xml and tomcat.conf file (Context path,
Alias...etc), but it didn't work.  
for example, i changed the line in tomcat.conf file
Alias /myApp "/usr/local/jakarta-tomcat-3.2/webapps/myApp"
to
Alias / "/usr/local/jakarta-tomcat-3.2/webapps/myApp"
Then i got error.
Anybody knows how to do this? 

thanks in advance,
cherie

FYI:Error msg:
Error:500 Internal Servlet Error

java.lang.NullPointerException: 
at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289)
at org.apache.tomcat.core.Context.getAbsolutePath(Context.java:257)
at org.apache.tomcat.core.Context.getRealPath(Context.java:791)
at
org.apache.tomcat.facade.ServletContextFacade.getRealPath(ServletContextFaca
de.java:136)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:381)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:475)





Re: Environment entries?

2000-12-11 Thread John Clark L. Naldoza

Catherine Jung wrote:
 
 Hi, one of my servlets needs to open a connection to a database, now, if I
 were accessing this database in a normal java program I'd need to have set
 an environment variable LD_LIBRARY_PATH to point to it's native
 librarys. How can I do something similar in a servlet?
 
 It doesn't work just with the normal environment entries I would use for a
 plain java app, and it doesn't work using the following in my web.xml
 file. So can anyone enlighten me as to what I've done wrong/should be
 doing?
 
 env-entry
 descriptionpath to the objy librarys/description
 env-entry-nameLD_LIBRARY_PATH/env-entry-name
 env-entry-value/opt/share/object5.2.3/solaris7/lib//env-entry-value
 env-entry-typejava.lang.String/env-entry-type
 /env-entry
 
 Thanks,
 
 Catherine

Hello Cat,


Perhaps you can try to load the library during the init method of your
main servlet...

i.e.

init()
{
 try
 {

System.load.("/opt/share/object5.2.3/solaris7/lib/libwhatever.so");
 }
 catch( Exception e )
 {
 e.printStackTrace();
 }
}


Just a suggestion...;-)


Cheers,


John Clark
-- 
 /) John Clark Naldoza y Lopez   (\
/ )Software Design Engineer II   ( \
  _( (__  Web-Application Development_) )_
 (((\ \  /_Cable Modem Network Management System _\  / /)))
 ( \_/ / NEC Telecom Software Phils., Inc.  \ \_/ )
  \   /  \   /
   \_/  phone: (+63 32) 233-9142 loc. 3112\_/
   /   /  cellphone: (+63 919) 813-6274 \   \
  /   / email: [EMAIL PROTECTED]\   \



RE: path problem

2000-12-11 Thread Dave Newton

 I made some changes on server.xml and tomcat.conf file (Context path,
 Alias...etc), but it didn't work.  for example, i changed the line in
 tomcat.conf file Alias /myApp
"/usr/local/jakarta-tomcat-3.2/webapps/myApp"
 to Alias / "/usr/local/jakarta-tomcat-3.2/webapps/myApp" Then i got error.

I did this by putting the following in my server.xml file, but I'm a newbie,
so I don't know if this is a Good Way to do This-any comments?

Host name="127.0.0.1"
Context path=""
 docBase="/usr/local/apache/htdocs"
 debug="0" /
/Host

so that I could serve JSP pages from the same place I was serving PHP etc.
pages~but like I said, I have no idea if this was a cool idea.

Dave




RE: Tomcat Unix autostart

2000-12-11 Thread David Bussenschutt

I tried starting tomcat before apache. I see the startupscript
being executed, but tomcat doesn't start.
Has anybody working Unix startupscripts for Tomcat?

Tomcat should start  after Apache during reboot. Also remember to set your 
classpath in the startup script.

I'm trying to start Tomcat whith rebooting a Unix machine.
Tomcat seems to start for a moment and then dissappears.
I have a startup script in /sbin/rc3.d

My Install on solaris:  (with tomcat installed into /opt/tomcat)

/etc/init.d/tomcat:
-8-cut-here---8---
#!/bin/sh
CLASSPATH=/enter/your/classpath/here
export CLASSPATH
/opt/tomcat/bin/tomcat.sh $@# run as root
# su nobody -c "/opt/tomcat/bin/tomcat.sh $@"  # or run as nobody
-8-cut-here---8---

and:
cd /etc/rc2.d/
ln -s ../init.d/tomcat S95tomcat
cd /etc/rc1.d/
ln -s ../init.d/tomcat K25tomcat

Note that if you use the auto-include mod_jk or mod_jserv files in the
apache httpd.conf file, then you should start tomcat BEFORE apache, otherwise
you'll always be reading the old version of the gererated configuration
file, if you don't use the auto-generated one, it doesn't really matter
which order you start them in.

In my case, APACHE is started/stopped with the symbolic links of S99apache
and K25apache, so that (9599) tomcat always starts first, and (25=25)
always gets stopped at the same time.


Another just as acceptable method would be to just add the tomcat startup
command to the apache start-up script

edit the /etc/init.d/apache (or equivalent - maybe apache.server or apachectl)

and right after the line:
start)
add:
/opt/tomcat/bin/startup.sh
and right after the line:
stop)
add:
/opt/tomcat/bin/shutdown.sh


In both these cases, the script that eventually gets called is always
/opt/tomcat/bin/tomcat.sh , and you need to make sure that when you run
that script manually (with option of 'start') it doesn't actually gererate
any errors.To be on the safe side, I added two lines to that script (at
the top before any real code) that defined the TOMCAT_HOME and JAVA_HOME
environment variables:

TOMCAT_HOME=/opt/tomcat ; export TOMCAT_HOME
JAVA_HOME=/usr/java ; export JAVA_HOME

Note that in many cases this isn't really necessary as the tomcat.sh script
is fairly good at figuring them out, but I like to play it safe.

Hope this helps someone.

David.



At 10:08 AM 12/11/00 +0100, you wrote:
Hi,

Regards,
Jan Stevens
Software Developer
CMG Maastricht B.V. -Telecom Products
*   Adelbert van Scharnlaan 170A*   043 - 6018185
 6224 JX Maastricht  *
043
- 6018169
*   mailto:[EMAIL PROTECTED]




David Bussenschutt  Email: [EMAIL PROTECTED]
Senior Computing Support Officer  Systems Administrator/Programmer
Location: Griffith University. Information Technology Services
  Brisbane Qld. Aust.  (TEN bldg. rm 1.33) Ph: (07)38757079




RE: very urgent

2000-12-11 Thread Iwan Eising

You don't have to unjar the file. It works in a zip or jar file just the
same.

Iwan

: -Original Message-
: From: Sam Terburg [mailto:[EMAIL PROTECTED]]
: Sent: Monday, December 11, 2000 5:44 AM
: To: [EMAIL PROTECTED]
: Subject: Re: very urgent
:
:
: The designated location for things like odbc_drivers is /WEB-INF/lib
: so unjar your oracle driver to that path.
:
:
: - Original Message -
: From: "John Clark L. Naldoza" [EMAIL PROTECTED]
: To: [EMAIL PROTECTED]
: Sent: Monday, December 11, 2000 11:35 AM
: Subject: Re: very urgent
:
:
:  Sonal Agarwal wrote:
:  
:   I am using tomcat for running servlets using jdk1.2.
:   I am trying to connect to orcale using the driver :
:   oracle.jdbc.driver.OracleDriver
:   But it is giving me an error that driver not found.
:   How can i solve the problem? Please help me.
:   Thanks
:   Sonal Agarwal.
: 
:  This is an ugly patch...;-)
: 
:  try to unjar the contents of your jdbc's driver jar file to your apps.
: 
:  WEB-INF/classes directory...;-)
: 
:  it's ugly...  But it works for me...
: 
:  If anyone has a better solution, I'd really like to hear it...;-)
: 
:  hope that helps.
: 
: 
:  Cheers,
: 
: 
:  John Clark
:  --
:   /) John Clark Naldoza y Lopez   (\
:  / )Software Design Engineer II   ( \
:_( (__  Web-Application Development_) )_
:   (((\ \  /_Cable Modem Network Management System _\  / /)))
:   ( \_/ / NEC Telecom Software Phils., Inc.  \ \_/ )
:\   /  \   /
: \_/  phone: (+63 32) 233-9142 loc. 3112\_/
: /   /  cellphone: (+63 919) 813-6274 \   \
:/   / email: [EMAIL PROTECTED]\   \
: 
:
:




Re: Environment entries?

2000-12-11 Thread Filip Hanik

I think you may be confusing environment with environment.
The env-entry describes an entry for the Java environment.
But the LD_LIBRARY_PATH is a Unix environment variable similar to PATH on a
windows system.

to set this path, you will have to modify the tomcat.sh script.
on top of the script just set

 LD_LIBRARY_PATH="${LD_LIBRARY_PATH}":/opt/share/object5.2.3/solaris7/lib

so the process that looks in the path, will use the global LD_LIBRARY_PATH
variable

Filip

- Original Message -
From: "John Clark L. Naldoza" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 11, 2000 3:45 PM
Subject: Re: Environment entries?


Catherine Jung wrote:

 Hi, one of my servlets needs to open a connection to a database, now, if I
 were accessing this database in a normal java program I'd need to have set
 an environment variable LD_LIBRARY_PATH to point to it's native
 librarys. How can I do something similar in a servlet?

 It doesn't work just with the normal environment entries I would use for a
 plain java app, and it doesn't work using the following in my web.xml
 file. So can anyone enlighten me as to what I've done wrong/should be
 doing?

 env-entry
 descriptionpath to the objy librarys/description
 env-entry-nameLD_LIBRARY_PATH/env-entry-name

env-entry-value/opt/share/object5.2.3/solaris7/lib//env-entry-value
 env-entry-typejava.lang.String/env-entry-type
 /env-entry

 Thanks,

 Catherine

Hello Cat,


Perhaps you can try to load the library during the init method of your
main servlet...

i.e.

init()
{
 try
 {

System.load.("/opt/share/object5.2.3/solaris7/lib/libwhatever.so");
 }
 catch( Exception e )
 {
 e.printStackTrace();
 }
}


Just a suggestion...;-)


Cheers,


John Clark
--
 /) John Clark Naldoza y Lopez   (\
/ )Software Design Engineer II   ( \
  _( (__  Web-Application Development_) )_
 (((\ \  /_Cable Modem Network Management System _\  / /)))
 ( \_/ / NEC Telecom Software Phils., Inc.  \ \_/ )
  \   /  \   /
   \_/  phone: (+63 32) 233-9142 loc. 3112\_/
   /   /  cellphone: (+63 919) 813-6274 \   \
  /   / email: [EMAIL PROTECTED]\   \




RE: how to execute servlets using tomcat

2000-12-11 Thread Kotturi, Rajendra

hi madhu,
I have the web.xml in the WEB-INF directory and i also tried by adding
servlet mappings but still I am not able to execute the servlets at all. But
if I have my apps in the tomcat/webapps dir the servlets are running fine.
Is there anything i have to do in the apache server ? 

thanks
Rajnedra

-Original Message-
From: Madhu Narasa [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 09, 2000 2:03 PM
To: [EMAIL PROTECTED]
Subject: Re: how to execute servlets using tomcat 


There is no mention made of the web.xml file, this
should be in the WEB-INF directory with the correct
servlet mappings.

--- "Kotturi, Rajendra" [EMAIL PROTECTED]
wrote:
 Hi ,
  I have  Tomcat installed along with the apache
 server on an Solaris
 Machine. We already have an application (JSP based)
 running on this apche -
 tomcat config. 
 Now I want to execute some servlets on it. I already
 have the context 
 defined for this application in the server.xml in
 the tomcat/conf directory.
 
 I have created a sub dir called "classes" in the
 WEB-INF directory of my
 application (called "spa"). And I have copied the
 .class servlet files into
 these directories. 
 Here is the hierarchy stucture of my application :
   my application path = "/devel/webdata/sites/spa" 
 and my classes directory is
 "/devel/webdata/sites/spa/WEB-INF/classes"  
  
 Now my problem is that I am not able to execute the
 servlets from the
 browser. I have tried it using
 http://domainname/aliasname/servlet/filename
 http://domainname/aliasname/servlet/filename 
 However I am able to execute the servlets in
 tomcat/webapps/example/WEB-INF/classes and also any
 servlet, is located in
 the tomcat/webapps/.../WEB-INF/classes
 Now how can I make these servlets run from the
 directory where my app is
 located. Should my app. located in the Tomcat
 directory only in order to
 execute the servlets.
 or should I do any config in the apache for this. 
 I would be really greatful if any body could help me
 solve this problem
 thanks
  
 Rajendra


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



Re: very urgent

2000-12-11 Thread John Clark L. Naldoza

Iwan Eising wrote:
 
 You don't have to unjar the file. It works in a zip or jar file just the
 same.
 
 Iwan
 

May I inquire as to how?

-- 
 /) John Clark Naldoza y Lopez   (\
/ )Software Design Engineer II   ( \
  _( (__  Web-Application Development_) )_
 (((\ \  /_Cable Modem Network Management System _\  / /)))
 ( \_/ / NEC Telecom Software Phils., Inc.  \ \_/ )
  \   /  \   /
   \_/  phone: (+63 32) 233-9142 loc. 3112\_/
   /   /  cellphone: (+63 919) 813-6274 \   \
  /   / email: [EMAIL PROTECTED]\   \



Re: Apache-Tomcat on SOLARIS...

2000-12-11 Thread David Bussenschutt


Here's a simple one, don't be afraid to answer me more than once! (better
than not at all)

If I want every *.jsp in the entire directory tree to be redirected from
apache to tomcat, but still have the jsp files in the apache htdocs area,
what would my server.xml look like?
(i'm not interested in servlets currently)

1) do I set the ROOT context of tomcat to be the same location as apache?
OR
2) do I have some sort of obscure global mod_rewrite rule ?
OR
3) do I symlink $TOMCAT_HOME/webapps to $APACHE_HOME/htdocs?
OR
4) something else entirely? 

AND, will this work with ~username server references?

Thanks in advance,
David.

P.S. Running on:  Solaris 2.6/apache 1.3.14/Tomcat 3.2final/mod_jk. (apps
installed yesterday).




David Bussenschutt  Email: [EMAIL PROTECTED]
Senior Computing Support Officer  Systems Administrator/Programmer
Location: Griffith University. Information Technology Services
  Brisbane Qld. Aust.  (TEN bldg. rm 1.33) Ph: (07)38757079




Re: ServletContext.getResourceAsStream() in 3.2?

2000-12-11 Thread Craig R. McClanahan

Sean Dowd wrote:

 I'm trying to load a properties file at startup in a servlet by doing a

 ClassLoader loader = Thread.currentThread().getContextClassLoader();
 InputStream is = null;
 is = getServletContext().getResourceAsStream( propFileName );
 while(loader != null  is == null) {
   is = loader.getResourceAsStream( propFileName );
   loader = loader.getParent();
 }

 This is returning null under tomcat 3.2 but worked fine under 3.1.  The
 file
 exists in my classes directory under WEB-INF.

 I've tried this with a leading / on the file name and without a leading
 / with the
 same results.  The web app is defined in my server.xml and resides
 outside of
 $TOMCAT_HOME/webapps.


If you want to load a file that is under WEB-INF, you don't need to involve the
class loader at all.  Simply use:

InputStream is =
  getServletContext().getResourceAsStream("/WEB-INF/myprops.properties");

Craig McClanahan





RE: very urgent

2000-12-11 Thread Dave Newton

 You don't have to unjar the file. It works in a zip or jar file just the
same.
 May I inquire as to how?

You  may. Java understands zip files.

Dave




on solaris 2.6 I used -lposix4 for mod_jk

2000-12-11 Thread David Bussenschutt

I don't know if anyone else has encountered this problem before, but going
by the number of mod_jk compile problems, it can only help!

With: Solaris 2.6/Apache 1.3.14/Tomcat 3.2Final/mod_jk

I found that the suggested apxs command for building mod_jk didn't work
properly. The compile went perfectly, and built a mod_jk.so with no errors
at all when using the suggested command of:

/opt/apache/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include
-I/usr/java/include/solaris -c *.c ../jk/*.c

BUTCopying it to apache's libexec directory and configuring apache to
load it caused a ld linker error at start-up time. It was trying to
reference something from the posix4 library so I had to do this:

/opt/apache/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include
-I/usr/java/include/solaris -lposix4 -c *.c ../jk/*.c

( note the addition of -lposix4 )

and it fixed it!

David.


David Bussenschutt  Email: [EMAIL PROTECTED]
Senior Computing Support Officer  Systems Administrator/Programmer
Location: Griffith University. Information Technology Services
  Brisbane Qld. Aust.  (TEN bldg. rm 1.33) Ph: (07)38757079




Question about Linux install of Tomcat 3.2 (is there an RPM yet)

2000-12-11 Thread David Thompson

I am a linux newbie so this might be a stupid question but...
I have linux 6.2 installed (using Redhat).
I have Apache 1.3.14 running well.
I have JDK 1.3 installed and working.
Now to get to where I want to be, I want to get Tomcat 3.2 running with
Apache. There are no RPM's for it as of last night (at least not at
redhat.com) and I do not want to mess with the older version. Can I install
the unix tars from apache.org on my system without building it myself? I
would assume there are system specific things that would require a rebuild
but I really do not want to deal with that right now. How long does it
normally take to get RPMs on redhat.com for something like this?
Any advice would be appreciated.
thanks,
dt



RE: Servlet Mapping

2000-12-11 Thread Iwan Eising

This is described in the user-document of Tomcat. You set it in one of the
.conf files.

Iwan

: -Original Message-
: From: Joseph Wong [mailto:[EMAIL PROTECTED]]
: Sent: Monday, December 11, 2000 7:51 AM
: To: [EMAIL PROTECTED]
: Subject: Servlet Mapping
:
:
: I want to use Apache + Tomcat to run JSP AND Servlet programs such that
: http://server-ip/jsp/*.jsp will map to JSP directory AND
: http://server-ip/servlet/* will map to servlet directory.
:
: How to do this???
:
: Joseph
: _
: 
:
: Get more from the Web.  FREE MSN Explorer download :
: http://explorer.msn.com
:
:




Re: Question about Linux install of Tomcat 3.2 (is there an RPM yet)

2000-12-11 Thread Filip Hanik

Tomcat is a pure Java application.
there is a tar on the jakarta.apache.org website.
just un-tar it and you are installed. so no need for an RPM since tomcat
works of the relative directory structure.

Filip

- Original Message -
From: "David Thompson" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 11, 2000 4:40 PM
Subject: Question about Linux install of Tomcat 3.2 (is there an RPM yet)


I am a linux newbie so this might be a stupid question but...
I have linux 6.2 installed (using Redhat).
I have Apache 1.3.14 running well.
I have JDK 1.3 installed and working.
Now to get to where I want to be, I want to get Tomcat 3.2 running with
Apache. There are no RPM's for it as of last night (at least not at
redhat.com) and I do not want to mess with the older version. Can I install
the unix tars from apache.org on my system without building it myself? I
would assume there are system specific things that would require a rebuild
but I really do not want to deal with that right now. How long does it
normally take to get RPMs on redhat.com for something like this?
Any advice would be appreciated.
thanks,
dt




tomcat configuration problem, i guess... HELP ME!!!...

2000-12-11 Thread Ing . José A . Alcázar Willis

Hi,

  I have troubles with tomcat 3.1

  I tried to configure a new path or URL for my application and I think I
did something wrong and now tomcat tell  me very frecuently:

Context log: path="/inscripciones" Error in default service() : There is no
proc
ess to read data written to a pipe.
 java.io.IOException: There is no process to read data written to a pipe.
at java.net.SocketOutputStream.write(Compiled Code)
at
org.apache.tomcat.service.http.HttpResponseAdapter.doWrite(Compiled C
ode)
at
org.apache.tomcat.core.BufferedServletOutputStream.doWrite(Compiled C
ode)
at
org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(Compil
ed Code)
at org.apache.tomcat.core.BufferedServletOutputStream.write(Compiled
Cod
e)
at
org.apache.tomcat.servlets.DefaultServlet.serveStreamAsStream(Compile
d Code)
at org.apache.tomcat.servlets.DefaultServlet.serveStream(Compiled
Code)
at org.apache.tomcat.servlets.DefaultServlet.serveFile(Compiled
Code)
at org.apache.tomcat.servlets.DefaultServlet.doGet(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(Compiled Code)
at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)


And now I have 1000 people access my application... some body can help
me???...

Thanks!...
Jose.




Re: Question about Linux install of Tomcat 3.2 (is there an RPM yet)

2000-12-11 Thread John Clark L. Naldoza

David Thompson wrote:
 
 I am a linux newbie so this might be a stupid question but...
 I have linux 6.2 installed (using Redhat).
 I have Apache 1.3.14 running well.
 I have JDK 1.3 installed and working.
 Now to get to where I want to be, I want to get Tomcat 3.2 running with
 Apache. There are no RPM's for it as of last night (at least not at
 redhat.com) and I do not want to mess with the older version. Can I install
 the unix tars from apache.org on my system without building it myself? I
 would assume there are system specific things that would require a rebuild
 but I really do not want to deal with that right now. How long does it
 normally take to get RPMs on redhat.com for something like this?
 Any advice would be appreciated.
 thanks,
 dt

In essence you can...  As long as you have a supported JVM...;-)

-- 
 /) John Clark Naldoza y Lopez   (\
/ )Software Design Engineer II   ( \
  _( (__  Web-Application Development_) )_
 (((\ \  /_Cable Modem Network Management System _\  / /)))
 ( \_/ / NEC Telecom Software Phils., Inc.  \ \_/ )
  \   /  \   /
   \_/  phone: (+63 32) 233-9142 loc. 3112\_/
   /   /  cellphone: (+63 919) 813-6274 \   \
  /   / email: [EMAIL PROTECTED]\   \



Solaris 2.8 build of mod_jk Command failed with rc=16711680

2000-12-11 Thread Ryan Petty

I am trying to compile mod_jk on Solaris 2.8.  I have installed Java, Apache with DSO
support etc.

I issue the following command per the instructions at:

http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html


# /usr/apache/bin/apxs -o mod_jk.so -DSOLARIS \
-I../jk -I/usr/java/include -I/usr/java/include/solaris \
-lposix4 -c *.c ../jk/*.c
gcc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -Kpic -I/usr/apache/include -I../jk
-I/usr/java/include -I/usr/java/include/solaris -DSOLARIS  -c mod_jk.c
apxs:Break: Command failed with rc=16711680

Any help is appreciated.  I saw similar problems in the past, and have read several
HOWTOs, but to no avail.

Ryan



RE: Question about Linux install of Tomcat 3.2 (is there an RPM yet)

2000-12-11 Thread David Thompson

What about the mod_jserv.so or whatever that connects Apache to Tomcat?
dt

-Original Message-
From: John Clark L. Naldoza [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 11, 2000 4:56 PM
To: [EMAIL PROTECTED]
Subject: Re: Question about Linux install of Tomcat 3.2 (is there an RPM
yet)


David Thompson wrote:
 
 I am a linux newbie so this might be a stupid question but...
 I have linux 6.2 installed (using Redhat).
 I have Apache 1.3.14 running well.
 I have JDK 1.3 installed and working.
 Now to get to where I want to be, I want to get Tomcat 3.2 running with
 Apache. There are no RPM's for it as of last night (at least not at
 redhat.com) and I do not want to mess with the older version. Can I
install
 the unix tars from apache.org on my system without building it myself? I
 would assume there are system specific things that would require a rebuild
 but I really do not want to deal with that right now. How long does it
 normally take to get RPMs on redhat.com for something like this?
 Any advice would be appreciated.
 thanks,
 dt

In essence you can...  As long as you have a supported JVM...;-)

-- 
 /) John Clark Naldoza y Lopez   (\
/ )Software Design Engineer II   ( \
  _( (__  Web-Application Development_) )_
 (((\ \  /_Cable Modem Network Management System _\  / /)))
 ( \_/ / NEC Telecom Software Phils., Inc.  \ \_/ )
  \   /  \   /
   \_/  phone: (+63 32) 233-9142 loc. 3112\_/
   /   /  cellphone: (+63 919) 813-6274 \   \
  /   / email: [EMAIL PROTECTED]\   \



Re: Question about Linux install of Tomcat 3.2 (is there an RPM yet)

2000-12-11 Thread Jeff Turner

There's RPMs for Tomcat (and a lot of other Apache stuff) listed at
http://rpmized.free.fr/ It's also indexed at http://rpmfind.net.

Specifically, you can get tomcat at 
ftp://ftp.falsehope.com/home/gomez/tomcat/

Once you've installed the RPM, fix and run `/etc/rc.d/init.d/tomcat
start`, point your browser at http://localhost:8080 and you're away.

--Jeff


On Mon, 11 Dec 2000, David Thompson wrote:

 I am a linux newbie so this might be a stupid question but...
 I have linux 6.2 installed (using Redhat).
 I have Apache 1.3.14 running well.
 I have JDK 1.3 installed and working.
 Now to get to where I want to be, I want to get Tomcat 3.2 running with
 Apache. There are no RPM's for it as of last night (at least not at
 redhat.com) and I do not want to mess with the older version. Can I install
 the unix tars from apache.org on my system without building it myself? I
 would assume there are system specific things that would require a rebuild
 but I really do not want to deal with that right now. How long does it
 normally take to get RPMs on redhat.com for something like this?
 Any advice would be appreciated.
 thanks,
 dt
 




RE: Question about Linux install of Tomcat 3.2 (is there an RPM yet)

2000-12-11 Thread Ed Gomolka

Try here for RPM's:
http://rpmized.free.fr

 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 11, 2000 6:46 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Question about Linux install of Tomcat 3.2 (is there an RPM
 yet)


 Tomcat is a pure Java application.
 there is a tar on the jakarta.apache.org website.
 just un-tar it and you are installed. so no need for an RPM since tomcat
 works of the relative directory structure.

 Filip

 - Original Message -
 From: "David Thompson" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, December 11, 2000 4:40 PM
 Subject: Question about Linux install of Tomcat 3.2 (is there an RPM yet)


 I am a linux newbie so this might be a stupid question but...
 I have linux 6.2 installed (using Redhat).
 I have Apache 1.3.14 running well.
 I have JDK 1.3 installed and working.
 Now to get to where I want to be, I want to get Tomcat 3.2 running with
 Apache. There are no RPM's for it as of last night (at least not at
 redhat.com) and I do not want to mess with the older version. Can
 I install
 the unix tars from apache.org on my system without building it myself? I
 would assume there are system specific things that would require a rebuild
 but I really do not want to deal with that right now. How long does it
 normally take to get RPMs on redhat.com for something like this?
 Any advice would be appreciated.
 thanks,
 dt





Re: Question about Linux install of Tomcat 3.2 (is there an RPM yet)

2000-12-11 Thread John Clark L. Naldoza

David Thompson wrote:
 
 What about the mod_jserv.so or whatever that connects Apache to Tomcat?
 dt
 

it's now mod_jk.so..;-)

-- 
 /) John Clark Naldoza y Lopez   (\
/ )Software Design Engineer II   ( \
  _( (__  Web-Application Development_) )_
 (((\ \  /_Cable Modem Network Management System _\  / /)))
 ( \_/ / NEC Telecom Software Phils., Inc.  \ \_/ )
  \   /  \   /
   \_/  phone: (+63 32) 233-9142 loc. 3112\_/
   /   /  cellphone: (+63 919) 813-6274 \   \
  /   / email: [EMAIL PROTECTED]\   \



[ANN] Metamata Debug Tomcat Edition

2000-12-11 Thread Louis Tribble

Metamata is pleased to announce Metamata Debug Tomcat Edition. This is
a version of Metamata Debug 2.0 that enables several key features from 
our Enterprise Edition for use with Tomcat:

* JSP source level debugging
* servlet output stream monitoring
* customized servlet API object browsing
* debugging by attachment (no captive launch from debugger required)

Metamata Debug Tomcat Edition works with Tomcat 3.1 and 3.2, JDK 1.1, 
1.2, and 1.3 and Windows, Solaris, and Linux. You can see a feature
matrix at http://charlie.metamata.com/metamata/matrix.html
 
Metamata Debug Tomcat Edition is priced at $49.95 and available here:
http://www.metamata.com/tomcat_debug.html

Thanks for reading,
Louis Tribble
-


Metamata, Inc.   http://www.metamata.com
Tools for serious Java developers.   +1 510 796 0915




RE: Multipart and mod_jk

2000-12-11 Thread Kwan, Kenneth Y

Use mod_jk with AJP12 (not AJP13) will work

Kenneth Kwan

-Original Message-
From:   AC [mailto:[EMAIL PROTECTED]]
Sent:   Tuesday, December 12, 2000 12:49 AM
To: [EMAIL PROTECTED]
Subject:Multipart and mod_jk

I've got a servlet that use the O'Reilly package to manage multipart

request. If I use mod_jserv everything works fine. Once I use mod_jk
the 
same servlet fails!!!

Any solutions??

andrea



Java VJM won't quit - More Info

2000-12-11 Thread Matt White

Mailing List;

Okay, I've done some digging around.

If I disable the JIT compiler, it works. (Very quickly too, I might add.)  I'm not 
sure why this helps, but it's a workaround I can live with.

I'll try upgrading to JDK 1.3 sometime in the future and see if this allows me to run 
with the JIT compiler active.

- Matt