Re: servlet question

2003-09-21 Thread Bruno Costacurta
It seems you miss J2EE.
After installation (from www.java.sun.com/j2ee) 
you should find j2ee.jar (under $J2EE_HOME/lib/) which contain javax.servlet.*
Hope it helps.

On Saturday 20 September 2003 17:45, water autumn wrote:
 hello:
My environment is follow:
   JDK :  j2sdk_1.4.2_01
   Web Server :  TOMCAT 5.0.0
When i devloped servlet program, such as test.java, while i typed this 
 line :
 import javax.servlet.*;, javac tell me the error:
 
 F:\JAVA\upload\AccUpload.java:8: package javax.servlet.http does not exist
 import javax.servlet.http.*;
 
 why? can you tell me how i can resolve it?
 i can't find serlet.jar in directoryTOMCAT\common\lib
 
water autumn
 
 _
  MSN Messenger:  http://messenger.msn.com/cn  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: servlet question

2003-09-21 Thread BAO RuiXian
Bruno Costacurta wrote:
 It seems you miss J2EE.
 After installation (from www.java.sun.com/j2ee) 
 you should find j2ee.jar (under $J2EE_HOME/lib/) which contain javax.servlet.*
 Hope it helps.

Maybe. But, there should also be a servlet.jar in
%TOMCATHOME%/common/lib directory. At least I have it for my tomcat
4.18. And water autumn cannot find it in TOMCAT 5.0.0

Best

Bao

 On Saturday 20 September 2003 17:45, water autumn wrote:
 
hello:
   My environment is follow:
  JDK :  j2sdk_1.4.2_01
  Web Server :  TOMCAT 5.0.0
   When i devloped servlet program, such as test.java, while i typed this 
line :
import javax.servlet.*;, javac tell me the error:

F:\JAVA\upload\AccUpload.java:8: package javax.servlet.http does not exist
import javax.servlet.http.*;

why? can you tell me how i can resolve it?
i can't find serlet.jar in directoryTOMCAT\common\lib

   water autumn



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: servlet question

2003-09-21 Thread Bruno Costacurta
Indeed.
There is a servlet-api.jar under $TOMCAT_HOME/common/lib/
My Tomcat version is 5.0.0

On Sunday 21 September 2003 11:42, BAO RuiXian wrote:
 Bruno Costacurta wrote:
  It seems you miss J2EE.
  After installation (from www.java.sun.com/j2ee) 
  you should find j2ee.jar (under $J2EE_HOME/lib/) which contain 
javax.servlet.*
  Hope it helps.
 
 Maybe. But, there should also be a servlet.jar in
 %TOMCATHOME%/common/lib directory. At least I have it for my tomcat
 4.18. And water autumn cannot find it in TOMCAT 5.0.0
 
 Best
 
 Bao
 
  On Saturday 20 September 2003 17:45, water autumn wrote:
  
 hello:
My environment is follow:
   JDK :  j2sdk_1.4.2_01
   Web Server :  TOMCAT 5.0.0
When i devloped servlet program, such as test.java, while i typed this 
 line :
 import javax.servlet.*;, javac tell me the error:
 
 F:\JAVA\upload\AccUpload.java:8: package javax.servlet.http does not exist
 import javax.servlet.http.*;
 
 why? can you tell me how i can resolve it?
 i can't find serlet.jar in directoryTOMCAT\common\lib
 
water autumn
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Administration Tool

2003-09-21 Thread David Solbach
Hi,

I just installed Tomcat 4 and I'm wondering what the login for the
administration tool might be. Didn't find anything in the Documentation.

Thanks,

David



--
David Solbach

public key ID: 6372ED85
http://wwwkeys.pgp.net/
--


pgp0.pgp
Description: PGP signature


RE: Administration Tool

2003-09-21 Thread Joseph Krasnov
User name is: admin
Password : admin

Default.

-Original Message-
From: David Solbach [mailto:[EMAIL PROTECTED] 
Sent: Sunday, September 21, 2003 10:00 AM
To: [EMAIL PROTECTED]
Subject: Administration Tool

Hi,

I just installed Tomcat 4 and I'm wondering what the login for the
administration tool might be. Didn't find anything in the Documentation.

Thanks,

David



--
David Solbach

public key ID: 6372ED85
http://wwwkeys.pgp.net/
--



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Administration Tool

2003-09-21 Thread Tim Funk
With the default tomcat install, the manager and admin are not configured 
with default userids/passwords. Doing so is a massive security flaw.

http://jakarta.apache.org/tomcat/faq/security.html#login

-Tim

Joseph Krasnov wrote:

User name is: admin
Password : admin
Default.

-Original Message-
From: David Solbach [mailto:[EMAIL PROTECTED] 
Sent: Sunday, September 21, 2003 10:00 AM
To: [EMAIL PROTECTED]
Subject: Administration Tool

Hi,

I just installed Tomcat 4 and I'm wondering what the login for the
administration tool might be. Didn't find anything in the Documentation.
Thanks,

David 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Administration Tool

2003-09-21 Thread David Solbach
Thanks a lot!

David

On Sun, 21 Sep 2003 11:44:48 -0400
Tim Funk [EMAIL PROTECTED] wrote:

 With the default tomcat install, the manager and admin are not
 configured with default userids/passwords. Doing so is a massive
 security flaw.
 
 http://jakarta.apache.org/tomcat/faq/security.html#login
 
 -Tim
 
 
 Joseph Krasnov wrote:
 
  User name is: admin
  Password : admin
  
  Default.
  
  -Original Message-
  From: David Solbach [mailto:[EMAIL PROTECTED] 
  Sent: Sunday, September 21, 2003 10:00 AM
  To: [EMAIL PROTECTED]
  Subject: Administration Tool
  
  Hi,
  
  I just installed Tomcat 4 and I'm wondering what the login for the
  administration tool might be. Didn't find anything in the
  Documentation.
  
  Thanks,
  
  David 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-- 
--
David Solbach

public key ID: 6372ED85
http://wwwkeys.pgp.net/
--


pgp0.pgp
Description: PGP signature


Re: Administration Tool - Problem 2

2003-09-21 Thread David Solbach
Ok, edited the files as described in the documentation.
Now I get the following error-message when I try to log on:

---
HTTP Status 403 - Access to the requested resource has been denied

type Status report

message Access to the requested resource has been denied

description Access to the specified resource (Access to the requested
resource has been denied) has been forbidden. Apache Tomcat/4.1.27
---

any idea?

David



--
David Solbach

public key ID: 6372ED85
http://wwwkeys.pgp.net/
--


pgp0.pgp
Description: PGP signature


controlling file save location

2003-09-21 Thread Fam. Ruijters-Verberne
Hello,

Although I started reading through the first free chapters of  How Tomcat Works, by 
Budi Kurniawan, in an approach to understand tomcat more in general, I  still have 
not find an answer to the following:

If there is a specific basic tomcat setting  to point out where files must be stored 
when invoking a PrintWriter println command, where/how should I set this.

Thanks

Pierre





a beginner pb

2003-09-21 Thread itsme reda
Hallo 
i am beginner to servlets and tomcat , i ve installed
Tomcat 4.1.27 under linux

i ve specified all variables CATALINA_HOME AND
JAVA_HOME, i ve no pb in executing servlets that are
coming with tomcat (in the example folder). 

but i ve a pb to run some servlets that i ve put in a
test folder under webapps . every thing is correct
because i got those servlet from a cd of a book. the
pb that i get when i call this servlet from the
browser- knowing that the url introduced is correct
-is 404
can anyone help me to resolve this pb

THanks you

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: servlet question

2003-09-21 Thread Ben Souther

In order to compile servlets with javac, you will need to include all of the 
jar files found in ...common/lib in your classpath.   Tomcat will include 
them automatically when it starts up for running the servlets but you will 
need to do set up your environment manually in order to compile with javac.

Remember, each jar file needs to be explicitly added to your classpath. Don't 
just add the directory that they are under.






On Sunday 21 September 2003 06:26 am, you wrote:
 Indeed.
 There is a servlet-api.jar under $TOMCAT_HOME/common/lib/
 My Tomcat version is 5.0.0

 On Sunday 21 September 2003 11:42, BAO RuiXian wrote:
  Bruno Costacurta wrote:
   It seems you miss J2EE.
   After installation (from www.java.sun.com/j2ee)
   you should find j2ee.jar (under $J2EE_HOME/lib/) which contain

 javax.servlet.*

   Hope it helps.
 
  Maybe. But, there should also be a servlet.jar in
  %TOMCATHOME%/common/lib directory. At least I have it for my tomcat
  4.18. And water autumn cannot find it in TOMCAT 5.0.0
 
  Best
 
  Bao
 
   On Saturday 20 September 2003 17:45, water autumn wrote:
  hello:
 My environment is follow:
JDK :  j2sdk_1.4.2_01
Web Server :  TOMCAT 5.0.0
 When i devloped servlet program, such as test.java, while i typed
   this line :
  import javax.servlet.*;, javac tell me the error:
  
  F:\JAVA\upload\AccUpload.java:8: package javax.servlet.http does not
   exist import javax.servlet.http.*;
  
  why? can you tell me how i can resolve it?
  i can't find serlet.jar in directoryTOMCAT\common\lib
  
 water autumn
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



admin and manager default password

2003-09-21 Thread Dan McCullough
Anyone know what they are or how to set them?
thanks

=

Theres no such thing as a problem unless the servers are on fire!


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Catalina.stop: java.net.ConnectException: Connection refused

2003-09-21 Thread Ilja
Tomcat suddenly stopped working without any obvious reason...

Config:

Tomcat 5.09
Mac OSX 10.2.6

error:

Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.init(Socket.java:291)
at java.net.Socket.init(Socket.java:119)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Anyone?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: a beginner pb

2003-09-21 Thread Peter Harrison
On Mon, 22 Sep 2003 00:51, itsme reda wrote:

 but i ve a pb to run some servlets that i ve put in a
 test folder under webapps . every thing is correct
 because i got those servlet from a cd of a book. the
 pb that i get when i call this servlet from the
 browser- knowing that the url introduced is correct
 -is 404
 can anyone help me to resolve this pb

First of all putting some servlets in a folder under webapps won't nessasarily 
work. At the very least you need the following structure:

/WEB-INF directory
/WEB-INF/classes directory
/WEB-INF/web.xml file

The web.xml file can be very minimal, but is required in order for tomcat to 
recognise it as a web application. Also, how are you calling the servlet? If 
you want to call a servlet directly it usually looks somthing like:

http://localhost:8080/test/servlet/com.foo.MyTestServlet

However, if you want to have a more friendly URL you can create a mapping in 
the web.xml file like this:

servlet
servlet-nametest/servlet-name
servlet-classcom.foo.MyTestServlet/servlet-class
/servlet

servlet-mapping
servlet-nametest/servlet-name
url-patterntest/url-pattern
/servlet-mapping

Regards,
Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Fwd: Delivery problems: Catalina.stop: java.net.ConnectException: Connection refused

2003-09-21 Thread Ilja
Why do I always get this message when I send an email to this list?

1) I subscribed to the list and confirmed it as well, even got a
confirmation from the mailinglist deamon
2) the messages still do seem to arrive
3) I've send an email to the emailadres in this email, but nothing has
changed yet...

On 21 Sep 2003 15:53:57 -0400, MAILER-DAEMON [EMAIL PROTECTED]
said:
 This is an unknown user on this system.  Please check the address.  If
 you think there is a problem on our end, please send a message to
 [EMAIL PROTECTED] Please include the email address. Thank
 You.
 
 Warning, delivery failure! This is a status message indicating that a
 message could not be delivered to 1 or more recipients.
 
 Original message subject: Catalina.stop: java.net.ConnectException:
 Connection refused
 Date received: 21-Sep-2003 15:53:50 -0400
 
 
 Recipients and delivery history
 
 [EMAIL PROTECTED]
  Transcript of session follows ---
 21-Sep-2003 15:53:49 -0400 Received via SMTP from ASG.CHIINC.COM
 21-Sep-2003 15:53:57 -0400 [EMAIL PROTECTED] is unknown
 


Attachment2
Description: application/unknown
---BeginMessage---
Tomcat suddenly stopped working without any obvious reason...

Config:

Tomcat 5.09
Mac OSX 10.2.6

error:

Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.init(Socket.java:291)
at java.net.Socket.init(Socket.java:119)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Anyone?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---End Message---
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

trouble access admin

2003-09-21 Thread Dan McCullough
Added the admin and manager to the tomcat-users.xml file.

went to login and this is what I got
type Status report
message Invalid direct reference to form login page
description The request sent by the client was syntactically incorrect (Invalid direct 
reference
to form login page).

any thoughts


=

Theres no such thing as a problem unless the servers are on fire!


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Catalina.stop: java.net.ConnectException: Connection refused

2003-09-21 Thread Ilja
Tomcat suddenly stopped working without any obvious reason...
 
 Config:
 
 Tomcat 5.09
 Mac OSX 10.2.6
 
 error:
 
 Catalina.stop: java.net.ConnectException: Connection refused
 java.net.ConnectException: Connection refused
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
 at
 java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
 at java.net.Socket.connect(Socket.java:426)
 at java.net.Socket.connect(Socket.java:376)
 at java.net.Socket.init(Socket.java:291)
 at java.net.Socket.init(Socket.java:119)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
 at
 org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
 at
 org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 
 Anyone? 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: trouble access admin

2003-09-21 Thread Micael
Hi, Dan,

I assume that you tried to login with your admin or manager id and then got 
the status report listed.  That indicates that the code on the page is 
mistaken.  Sounds like a bug.  What version of tomcat are you talking 
about?  Mine worked out of the box, so yours must be a newer version.

Micael

At 01:24 PM 9/21/2003 -0700, you wrote:
Added the admin and manager to the tomcat-users.xml file.

went to login and this is what I got
type Status report
message Invalid direct reference to form login page
description The request sent by the client was syntactically incorrect 
(Invalid direct reference
to form login page).

any thoughts

=

Theres no such thing as a problem unless the servers are on fire!
__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: trouble access admin

2003-09-21 Thread Dan McCullough
Yes, after somemore digging I found that if you try and access the admin by going 
directly to the
admin page via favorite or something similar rather then accessing it via link you 
will get that
error.  I tested that by going to the favorite and trying it that way, then using the 
link of the
default tomcat page and was in.
--- Micael [EMAIL PROTECTED] wrote:
 Hi, Dan,
 
 I assume that you tried to login with your admin or manager id and then got 
 the status report listed.  That indicates that the code on the page is 
 mistaken.  Sounds like a bug.  What version of tomcat are you talking 
 about?  Mine worked out of the box, so yours must be a newer version.
 
 Micael
 
 At 01:24 PM 9/21/2003 -0700, you wrote:
 Added the admin and manager to the tomcat-users.xml file.
 
 went to login and this is what I got
 type Status report
 message Invalid direct reference to form login page
 description The request sent by the client was syntactically incorrect 
 (Invalid direct reference
 to form login page).
 
 any thoughts
 
 
 =
 
 Theres no such thing as a problem unless the servers are on fire!
 
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
 http://sitebuilder.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 LEGAL NOTICE
 
 This electronic mail  transmission and any accompanying documents contain 
 information belonging to the sender which may be confidential and legally 
 privileged.  This information is intended only for the use of the 
 individual or entity to whom this electronic mail transmission was sent as 
 indicated above. If you are not the intended recipient, any disclosure, 
 copying, distribution, or action taken in reliance on the contents of the 
 information contained in this transmission is strictly prohibited.  If you 
 have received this transmission in error, please delete the message.  Thank 
 you  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


=

Theres no such thing as a problem unless the servers are on fire!


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Fwd: Delivery problems: Catalina.stop: java.net.ConnectException: Connection refused

2003-09-21 Thread Kwok Peng Tuck
It's not complaining about you, just about some address registered on 
the list.  It looks like the tomcat list tried to forward a email to a user
at  chiinc.com but was unable to do so for the reason listed below.  I 
get that from time to time as well.

Ilja wrote:

Why do I always get this message when I send an email to this list?

1) I subscribed to the list and confirmed it as well, even got a
confirmation from the mailinglist deamon
2) the messages still do seem to arrive
3) I've send an email to the emailadres in this email, but nothing has
changed yet...
On 21 Sep 2003 15:53:57 -0400, MAILER-DAEMON [EMAIL PROTECTED]
said:
 

This is an unknown user on this system.  Please check the address.  If
you think there is a problem on our end, please send a message to
[EMAIL PROTECTED] Please include the email address. Thank
You.
Warning, delivery failure! This is a status message indicating that a
message could not be delivered to 1 or more recipients.
Original message subject: Catalina.stop: java.net.ConnectException:
Connection refused
Date received: 21-Sep-2003 15:53:50 -0400
Recipients and delivery history

[EMAIL PROTECTED]
    Transcript of session follows ---
21-Sep-2003 15:53:49 -0400 Received via SMTP from ASG.CHIINC.COM
21-Sep-2003 15:53:57 -0400 [EMAIL PROTECTED] is unknown
   



Subject:
Catalina.stop: java.net.ConnectException: Connection refused
From:
Ilja [EMAIL PROTECTED]
Date:
Sun, 21 Sep 2003 21:53:30 +0200
To:
[EMAIL PROTECTED]
Tomcat suddenly stopped working without any obvious reason...

Config:

Tomcat 5.09
Mac OSX 10.2.6
error:

Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
   at
   java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
   at java.net.Socket.connect(Socket.java:426)
   at java.net.Socket.connect(Socket.java:376)
   at java.net.Socket.init(Socket.java:291)
   at java.net.Socket.init(Socket.java:119)
   at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
   at
   org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
   at
   org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at
   
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Anyone?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: article on tomcat performance

2003-09-21 Thread Peter Lin
 
Here is a quick update. I plan to release the finished article thursday or friday. tim 
and mike were kind enough to review it. I'm still waiting for the other reviewers. My 
question is what format would people like?
 
word
openoffice
pdf
 
peter
 


Peter Lin [EMAIL PROTECTED] wrote:



It looks like the tomcat performance book probably won't happen, so I am writing a 
short article based on some of the benchmark results. I should have a draft done in a 
week. Anyone interested in reviewing it?





peter lin


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Config Error ??

2003-09-21 Thread David OBrien
I'm having a bit of a crisis on a web app i'm trying to setup using mod_jk 
and apache
I get the following 404 error:

type Status report
message /naccrrajsp/servlet/naccrra.servlets.LoginServlet
description The requested resource 
(/naccrrajsp/servlet/naccrra.servlets.LoginServlet) is not available.

Some Information relevant to the installation:

Web Application Root on server:
/naccrraware/tomcat/webapps/naccrrajsp
Actual Servlet lives at
/naccrraware/tomcat/webapps/naccrrajsp/WEB-INF/classes/naccrra/servlets/LoginServlet.class
Using the Following as the web.xml in
/naccrraware/tomcat/webapps/naccrrajsp/WEB-INF

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN 
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
servlet
servlet-nameLoginServlet/servlet-name
servlet-classnaccrra.servlets.LoginServlet/servlet-class
/servlet
servlet-mapping
servlet-nameLoginServlet/servlet-name
url-pattern/Login/url-pattern
/servlet-mapping
/web-app


Using the following jk config in httpd.conf
--
#
# NACCRRAware Configuration
#
JkWorkersFile   conf/workers.properties
JkLogFile   logs/mod_jk.log
JkLogLevel  info
JkMount /naccrrajsp ajp13
JkMount /naccrrajsp/* ajp13
JkMount /naccrrajsp/servlet/* ajp13

Using the following server.xml
--
Server port=8005 shutdown=SHUTDOWN debug=9
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=/naccrraware/modules/mod_jk.so
jkDebug=debug
workersConfig=/naccrraware/tomcat/conf/jk/workers.properties
jkLog=/naccrraware/logs/mod_jk.log /
  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
  /GlobalNamingResources
  Service name=Tomcat-Standalone
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=9/
Engine name=Standalone defaultHost=localhost debug=9 jvmRoute=OK
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true/
  Host name=localhost debug=9 appBase=webapps
   unpackWARs=true autoDeploy=true
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  append=true /
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
timestamp=true/
Context path=/naccrrajsp docBase=naccrrajsp debug=9 
reloadable=true 
  Logger className=org.apache.catalina.logger.FileLogger 
prefix=naccrrajsp_log. suffix=.txt timestamp=true/
/Context
  /Host
/Engine
  /Service
/Server
--

I need an extra set of eyes. Anyone see anthing amiss? Have any ideas or 
suggestions?
examples manager and admin worked fine.

-Dave




tomcat won't read classes unless in explicit packages

2003-09-21 Thread Luke Vanderfluit
Hi,

Does anyone have a solution or workaround for the following problem.

I'm running an application under /tomcat/webapps. The application
consists of a number of JSPs, servlets and bean classes,

The package structure looks like this

/tomcat/tutorialbeans
  |
 ---
 | |
  WEB-INF JSPs(.jsp files)
 |
   
   |   |
web.xml(file)   classes(dir)
   |
  tutorialbeans
   |
  tb(dir)
   |
    
||
  classes(src and class files)   tbbeans(dir)
 | 
 -
 |   |
  classes(files)tb2(dir)
 |
  classes(files)



Initially with tomcat 4.0 it was possible to have all the class
files(servlets and beans) in one directory, namely WEB-INF/classes,
however trying to run the exact same application with tomcat 4.1.x
results in compilation errors.
It seems 4.1.x needs explicitly stipulated packages in order to work.

I've had to devise the above package structure to get the application to
run under 4.1.x

QUESTION:
Is there any workaround or other way to get tomcat 4.1.xx to run the
application with all classes in one directory, be it the default package
or explicitly specified?

I've read about this problem, but not to the extent that a solution or
workaround or has been presented.

Any input is appreciated,
kind regards,
Luke

-- 

when my computer smiles, I'm happy
===.~ ~,
Luke Vanderfluit   |'/']
Mobile: 0421 276 282\~/`


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: article on tomcat performance

2003-09-21 Thread Prabhakar, Achal
PDF

-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 21, 2003 8:44 PM
To: Tomcat Users List
Subject: Re: article on tomcat performance


 
Here is a quick update. I plan to release the finished article thursday or
friday. tim and mike were kind enough to review it. I'm still waiting for
the other reviewers. My question is what format would people like?
 
word
openoffice
pdf
 
peter
 


Peter Lin [EMAIL PROTECTED] wrote:



It looks like the tomcat performance book probably won't happen, so I am
writing a short article based on some of the benchmark results. I should
have a draft done in a week. Anyone interested in reviewing it?





peter lin


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Directory generator beginner's question

2003-09-21 Thread Faehndrich Philippe
Hello,

I wish I could display the content of a directory, as we can do with a
directory generator. The problem is, I don't want to display the file
names, or creation or modification times, or sizes, but some elements
that are part of these files, like what is in the TITLE, AUTHOR and
KEYWORDS tags.

Is there a simple and easy way to do this through a pipeline?

Thanks for help
 
Philippe Faehndrich
Lausanne - Switzerland

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Blocking html

2003-09-21 Thread John Wallis
Hi users,

The html pages are of the web and are not mine. My server somehow acts
like a proxy giving my callers access to the web. I want to prevent this.

In server.xml there are no proxyname/host settings -- ??

Any suggestions

Thank You

John Wallis

On Fri, 19 Sep 2003, Tim Funk wrote:

 1) Delete the html pages
 2) If the html pages are masked behind the html pages (via a forward on
 include) - Move the pages somewhere under WEB-INF
 3) There is an Valve for restrict requests by address - you might be able to
 use or adapt that

 -Tim

 John Wallis wrote:
  Hi Folks,
 
  I have a site that provides jsp/java pages only.
 
  Problem is: people can visit my site (costing me money)
  and gain access to the www (html pages).
 
  I don't have any proxy settings in server.xml
  How can I block this?
 
  Thank You,
 
  John Wallis
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




***
* Dr. John Wallis *
* *
* SFB 359: Reaktive Stromungen, Diffusion *
* und Transport   *
* Universität Heidelberg  *
* Im Neuenheimer Feld 294 *
* 69120 Heidelberg*
* *
* Tel. : +49 6221 54 4986 *
* Email: [EMAIL PROTECTED] *
***




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]