Re: Problem with Tomcat Upgrade 4.0 to 5.5

2005-03-25 Thread QM
On Fri, Mar 25, 2005 at 09:08:15AM -0500, Beau Hebert wrote:
: I am in the processs of upgrading from Tomcat 4.0 to Tomcat 5.5. I have an
: application that runs on Linux-Java-Tomcat-MySQL.
: [snip]
: javax.servlet.ServletException: javax/mail/Message

As someone else already pointed out, you no longer have to (nor should)
set your own classpath.

Second, Tomcat no longer ships with the JavaMail JARs; either copy those
from your old install or just download new ones from java.sun.com.

Third, I have a brief Tomcat 4.x -> 5.x upgrade guide on my website:

http://www.brandxdev.net/misc/index.site

Feel free to give that a skim.

-QM


-- 

software   -- http://www.brandxdev.net/
tech news  -- http://www.RoarNetworX.com/
code scan  -- http://www.JxRef.org/

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



Re: Problem with Tomcat Upgrade 4.0 to 5.5

2005-03-25 Thread Beau Hebert
Thanks for the response Jason. I've removed my classpath, but still getting 
the same error. Any other suggestions?

Rgds,
Beau
- Original Message - 
From: "Jason Bainbridge" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Friday, March 25, 2005 10:23 AM
Subject: Re: Problem with Tomcat Upgrade 4.0 to 5.5


On Fri, 25 Mar 2005 09:08:15 -0500, Beau Hebert
<[EMAIL PROTECTED]> wrote:
Hello -

exception:
javax.servlet.ServletException: javax/mail/Message
root cause:
java.lang.NoClassDefFoundError: javax/mail/Message
I'm not sure, but it seems that the compiler (or is it the container?) 
can't find the class. My CLASSPATH is the following:

.;C:\tomcat5\common\lib\servlet-api.jar;C:\tomcat5\common\lib\jsp-api.jar;c:\jdk\bin;c:\jdk\lib\tools.jar;
Let Tomcat take care of setting the classpath don't set it yourself,
it is finding your class but more than one and getting confused as a
result.
Regards,
--
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com
-
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: Problem with Tomcat Upgrade 4.0 to 5.5

2005-03-25 Thread Jason Bainbridge
On Fri, 25 Mar 2005 09:08:15 -0500, Beau Hebert
<[EMAIL PROTECTED]> wrote:
> Hello -

> exception:
> javax.servlet.ServletException: javax/mail/Message
> 
> root cause:
> java.lang.NoClassDefFoundError: javax/mail/Message
> 
> I'm not sure, but it seems that the compiler (or is it the container?) can't 
> find the class. My CLASSPATH is the following:
> 
> .;C:\tomcat5\common\lib\servlet-api.jar;C:\tomcat5\common\lib\jsp-api.jar;c:\jdk\bin;c:\jdk\lib\tools.jar;

Let Tomcat take care of setting the classpath don't set it yourself,
it is finding your class but more than one and getting confused as a
result.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Problem with Tomcat Upgrade 4.0 to 5.5

2005-03-25 Thread Beau Hebert
Hello -

I am in the processs of upgrading from Tomcat 4.0 to Tomcat 5.5. I have an 
application that runs on Linux-Java-Tomcat-MySQL. Before I think about 
upgrading the production environment, I am configuring the development 
environment first, which runs on Windows XP and not Linux. I've installed 
Apache Tomcat 5.5.5 using JDK 1.4.2_06 along with the compat classes for JDK 
1.4. (BTW, I still have Tomcat 4.0.1 installed, but as a different service and 
it is not running). I've updated my CATALINA_HOME & TOMCAT_HOME variables to 
reflect the new Tomcat install (c:\tomcat5). The Tomcat homepage runs nicely 
along with the examples and the manager console. The application that I am 
trying to get up and running works flawlessly on Tomcat 4. However, when I 
build the application to the Tomcat5 directrory, and configure the new context 
and whatnot, I receive the follwing error upon browsing to the index page:

exception:
javax.servlet.ServletException: javax/mail/Message

root cause:
java.lang.NoClassDefFoundError: javax/mail/Message

I'm not sure, but it seems that the compiler (or is it the container?) can't 
find the class. My CLASSPATH is the following:

.;C:\tomcat5\common\lib\servlet-api.jar;C:\tomcat5\common\lib\jsp-api.jar;c:\jdk\bin;c:\jdk\lib\tools.jar;

There should not be a problem with the code as I am using the same jdk and the 
app runs on Tomcat4. I have the full stack trace available if necessary.

Any help or suggestions is appreciated.
Thanks,
Beau 

Re: Tomcat upgrade to 4.1.7

2004-12-14 Thread Ben Souther
Other than the release notes that ship with TC, I don't think you'll
find much.

Out of curiosity, why are you upgrading to 4.1.7?  
The current 4x is 4.1.31.



On Tue, 2004-12-14 at 14:26, john corcoran wrote:
> Hello,
> 
> I 've searched the tomcat website and could not find any instructions for 
> upgrading Tomcat 4.0.5
> to Tomcat 4.1.7
> 
> Can anybody help me out ?  Looking for some tpye of cook book or detail 
> instructions .
> 
> Thanks
> -John Corcoran
> 
> _
> FREE pop-up blocking with the new MSN Toolbar  get it now! 
> http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
> 
> 
> -
> 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: Tomcat upgrade to 4.1.7

2004-12-14 Thread john corcoran
That was the request from the application owner.
Thanks for your input
-John
From: Ben Souther <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Subject: Re: Tomcat upgrade to 4.1.7
Date: Tue, 14 Dec 2004 16:00:35 -0500
Other than the release notes that ship with TC, I don't think you'll
find much.
Out of curiosity, why are you upgrading to 4.1.7?
The current 4x is 4.1.31.

On Tue, 2004-12-14 at 14:26, john corcoran wrote:
> Hello,
>
> I 've searched the tomcat website and could not find any instructions 
for
> upgrading Tomcat 4.0.5
> to Tomcat 4.1.7
>
> Can anybody help me out ?  Looking for some tpye of cook book or detail
> instructions .
>
> Thanks
> -John Corcoran
>
> _
> FREE pop-up blocking with the new MSN Toolbar  get it now!
> http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>
>
> -
> 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]
_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/

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


Tomcat upgrade to 4.1.7

2004-12-14 Thread john corcoran
Hello,
I 've searched the tomcat website and could not find any instructions for 
upgrading Tomcat 4.0.5
to Tomcat 4.1.7

Can anybody help me out ?  Looking for some tpye of cook book or detail 
instructions .

Thanks
-John Corcoran
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

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


RE: Tomcat Upgrade

2004-03-31 Thread Shapira, Yoav

Hi,

>   I am looking to upgrade from Tomcat 4.0.3 to Tomcat version
4.1.30.
>Is there any easy way to upgrade or do I have to install the software
and
>reconfigure the server.xml, web.xml,ssl and copy things from the old
>version
>to new.

There's no "easy way".  You have to do a new install, setup server.xml
as you like, and deploy your application again. I put "easy way" in
quotation marks because if your webapp is strictly designed according to
the servlet specification, any migration is easy.  The more you rely on
server-specific configuration and features, the harder you make your own
work.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Tomcat Upgrade

2004-03-31 Thread Reis, Tom
I am looking to upgrade from Tomcat 4.0.3 to Tomcat version 4.1.30.
Is there any easy way to upgrade or do I have to install the software and
reconfigure the server.xml, web.xml,ssl and copy things from the old version
to new.

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



Tomcat Upgrade/Install problems

2003-06-13 Thread JSF
Hello Everyone,

   I am trying to install the latest stable
version of Tomcat (4.1.24) on Mac OS X SERVER 10.2.3.

Due to some reason the startup fails with exception 
posted at the end of this message 


I tried Aaron Faby's Tomcat installer package as well
as binary from tomcat's website. I worked really
instantly on a regular os x machine. I am pretty
comfortable installing tomcat on any platform but I
just can't get it to run on X-SERVE.

I also tried some obvious solutions such as adding the

tomcat-coyote.jar file to classpath in startup
scripts.
But because of some strange I still get the same
reason. I made sure that the class file in question is
actually present in tomcat-coyote.jar



Did anyone sucessfully install latest version of
Tomcat? If yes, could you provide
suggestions/pointers.

Thanks.

-Rahul.

ERROR MESSAGE FROM LOG FILE:


ERROR reading /opt/Tomcat/conf/server.xml
At Line 99 /Server/Service/Connector/
className=org.apache.coyote.tomcat4.CoyoteConnector
port=8080 minProcessors=5 maxProcess
ors=75 enableLookups=true redirectPort=8443
acceptCount=100 debug=0 connectionTimeout=2
useURIValidationHack=false disable
UploadTimeout=true

Catalina.start: java.lang.ClassNotFoundException:
org.apache.coyote.tomcat4.CoyoteConnector
java.lang.ClassNotFoundException:
org.apache.coyote.tomcat4.CoyoteConnector
at
java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at
java.security.AccessController.doPrivileged(Native
Method)
at
java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at


=
I used to be indecisive; now I'm not sure.

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



Re: Tomcat Upgrade question

2002-05-01 Thread Jacob Kjome

Hello Scott,

I would only pull in your own webapps rather than all of them.  The
reason is that the examples, tomcat-docs, admin, etc... that come with
tomcat also get updated each release.

Jake

Wednesday, May 01, 2002, 12:02:30 PM, you wrote:

SP> Hello,

SP> I am running Tomcat 4.0.3 on NT, and I am going to upgrade the version. Up to this 
point, when I upgraded, I basically copied my old version to a bak.version and copied 
the web-apps folder over.
SP> Is this the best way to do a upgrade, or is the sw intelligent enough to just 
upgrade on top of itself.?


SP> I have quite a bit of sites running and was curious the best way to go from one 
version to another.

SP> Thanks,
SP> Scott

SP> --
SP> To unsubscribe:   
SP> For additional commands: 
SP> Troubles with the list: 



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat Upgrade question

2002-05-01 Thread Scott Purcell

Hello,

I am running Tomcat 4.0.3 on NT, and I am going to upgrade the version. Up to this 
point, when I upgraded, I basically copied my old version to a bak.version and copied 
the web-apps folder over. Is this the best way to do a upgrade, or is the sw 
intelligent enough to just upgrade on top of itself.?


I have quite a bit of sites running and was curious the best way to go from one 
version to another.

Thanks,
Scott

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tomcat upgrade on Debian fails..

2002-02-04 Thread Gregory Guthrie

At 10:29 AM 02/04/2002 +0100, JavaNet developer wrote:
>Two stupid check hoping helps:
>1- Check: Tomcat must start first, than start Apache. 
>(..PoolTcpEndpoint Endpoint 
>ServerSocket[addr=localhost/127.0.0.1,port=0,localport=8009.)

-- Thanks, I'll have to see how to force this on Debian.
  (Seems like their installer should (and may) have guaranteed this...)

>2- Check your path 
>(./usr/share/tomcat/work/DEFAULT/examples/webxmlval.txt.)

-- Thanks, yes, DEFAULTS was ROOT access only.
(Should have noticed this, sorry! - Thanks.)

>finally check permission in your tomcat dir. As I see :
>
>..Unable to open log file: 
>/usr/share/tomcat/logs/servlet-${MMdd}.log!  Using stderr as the default.
>> Unable to open log file: 
>> /usr/share/tomcat/logs/jasper-${MMdd}.log!  Using stderr as the default.
>
>.this can be a permission problem...

-- It can write to the stdout file there, so permissions should be   OK.

Hmm, now a few days later, it is writing files there. Sunspots?


>let me know
>
>Eli Spizzichino
>
>
>At 20.11 03/02/2002 -0600, you wrote:
>>I have a problem with Apache(1.3.22)+Tomcat(3.3) after a recent update:
>>
>>I have a working Linux (Debian 2.2.17) system, and am running Apache+Tomcat.
>>
>>Having not used it for awhile, or updated in 4-6 months, I did an 
>>"apt-get install" of tomcat and Apache, to get the most current versions. 
>>It did an update, and now it is broken.  -(
>>
>>Apache seems to work fine, and has the prescribed tomcat attachments in 
>>/etc/apache/httpd.conf, but tomcat fails. Browser symptoms: all .jsp 
>>pages give "not found".
>>
>>1) At first none of the servlet or JSP pages worked.
>>Once the first request is made, tomcat keeps getting errors, about one 
>>per second, like this (forever)
>>
>>PoolTcpEndpoint Endpoint 
>>ServerSocket[addr=localhost/127.0.0.1,port=0,localport
>>=8009] ignored exception java.net.SocketException Socket closed
>>java.net.SocketException Socket closed
>> at java.net.PlainSocketImpl.close(PlainSocketImpl.java408)
>> at java.net.Socket.close(Socket.java383)
>> at java.net.ServerSocket.implAccept(ServerSocket.java206)
>> at java.net.ServerSocket.accept(ServerSocket.java181)
>> at 
>> org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(Unknown Source)
>> at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
>> at 
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
>> at java.lang.Thread.run(Thread.java)
>>PoolTcpEndpoint Endpoint 
>>ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8081] ignored 
>>exception java.net.SocketException Socket closed
>>java.net.SocketException Socket closed
>> at java.net.PlainSocketImpl.close(PlainSocketImpl.java408)
>> at java.net.Socket.close(Socket.java383)
>> at java.net.ServerSocket.implAccept(ServerSocket.java206)
>> at java.net.ServerSocket.accept(ServerSocket.java181)
>> at 
>> org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(Unknown Source)
>>
>>I found that the workers.properties file was not in the right (referenced 
>>in config files), so I repaired that.
>>   (why did the (re-)install goof this up?)
>>
>>2) Now the servlet examples work, all html works, either through Apache 
>>or directly by tomcat (:8081),
>> but all .Jsp examples fail: "page not found"
>> omega/etc/tomcat/logs# more mod_jk.log
>> [jk_uri_worker_map.c (335)]: 
>> jk_uri_worker_map_t::uri_worker_map_close, NULL parameter
>> [jk_uri_worker_map.c (185)]: In 
>> jk_uri_worker_map_t::uri_worker_map_free, NULL parameters
>> ...
>>
>>and log/stdout.log shows:
>> Unable to open log file: 
>> /usr/share/tomcat/logs/servlet-${MMdd}.log!  Using stderr as the default.
>> Unable to open log file: 
>> /usr/share/tomcat/logs/jasper-${MMdd}.log!  Using stderr as the default.
>> Unable to open log file: 
>> /usr/share/tomcat/logs/examples.log!  Using stderr as the default.
>> Unable to open log file: 
>> /usr/share/tomcat/logs/servlet_examples.log!  Using stderr as the default.
>>
>>and in stdout, a bunch of good startup stuff, and then:
>>2002-01-11 14:18:28 - /examples: Error creating validation mark  - 
>>java.io.FileNotFoundException: 
>>/usr/share/tomcat/work/DEFAULT/examples/webxmlval.txt
>> at java.io.FileOutputStream.(FileOutputStream.java)
>> at java.io.FileOutputStream.(FileOutputStream.java)
>> at 
>> org.apache.tomcat.facade.WebXmlReader.processWebXmlFile(Unknown Source)
>> at org.apache.tomcat.facade.WebXmlReader.contextInit(Unknown Source)
>> at org.apache.tomcat.core.Context.init(Unknown Source)
>> at org.apache.tomcat.core.ContextManager.init(Unknown Source)
>> at 
>> org.apache.tomcat.startup.EmbededTomcat.initContextManager(Unknown Source)
>> at org.apache.tomcat.startup.EmbededTomcat.execut

Re: Tomcat upgrade on Debian fails..

2002-02-04 Thread JavaNet developer

Two stupid check hoping helps:
1- Check: Tomcat must start first, than start Apache. 
(..PoolTcpEndpoint Endpoint 
ServerSocket[addr=localhost/127.0.0.1,port=0,localport=8009.)
2- Check your path 
(./usr/share/tomcat/work/DEFAULT/examples/webxmlval.txt.)

finally check permission in your tomcat dir. As I see :

..Unable to open log file: 
/usr/share/tomcat/logs/servlet-${MMdd}.log!  Using stderr as the default.
> Unable to open log file: 
> /usr/share/tomcat/logs/jasper-${MMdd}.log!  Using stderr as the default.

.this can be a permission problem...


let me know

Eli Spizzichino


At 20.11 03/02/2002 -0600, you wrote:
>I have a problem with Apache(1.3.22)+Tomcat(3.3) after a recent update:
>
>I have a working Linux (Debian 2.2.17) system, and am running Apache+Tomcat.
>
>Having not used it for awhile, or updated in 4-6 months, I did an "apt-get 
>install" of tomcat and Apache, to get the most current versions. It did an 
>update, and now it is broken.  -(
>
>Apache seems to work fine, and has the prescribed tomcat attachments in 
>/etc/apache/httpd.conf, but tomcat fails. Browser symptoms: all .jsp pages 
>give "not found".
>
>1) At first none of the servlet or JSP pages worked.
>Once the first request is made, tomcat keeps getting errors, about one per 
>second, like this (forever)
>
>PoolTcpEndpoint Endpoint 
>ServerSocket[addr=localhost/127.0.0.1,port=0,localport
>=8009] ignored exception java.net.SocketException Socket closed
>java.net.SocketException Socket closed
> at java.net.PlainSocketImpl.close(PlainSocketImpl.java408)
> at java.net.Socket.close(Socket.java383)
> at java.net.ServerSocket.implAccept(ServerSocket.java206)
> at java.net.ServerSocket.accept(ServerSocket.java181)
> at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(Unknown Source)
> at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
> at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
> at java.lang.Thread.run(Thread.java)
>PoolTcpEndpoint Endpoint 
>ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8081] ignored exception 
>java.net.SocketException Socket closed
>java.net.SocketException Socket closed
> at java.net.PlainSocketImpl.close(PlainSocketImpl.java408)
> at java.net.Socket.close(Socket.java383)
> at java.net.ServerSocket.implAccept(ServerSocket.java206)
> at java.net.ServerSocket.accept(ServerSocket.java181)
> at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(Unknown Source)
>
>I found that the workers.properties file was not in the right (referenced 
>in config files), so I repaired that.
>   (why did the (re-)install goof this up?)
>
>2) Now the servlet examples work, all html works, either through Apache or 
>directly by tomcat (:8081),
> but all .Jsp examples fail: "page not found"
> omega/etc/tomcat/logs# more mod_jk.log
> [jk_uri_worker_map.c (335)]: 
> jk_uri_worker_map_t::uri_worker_map_close, NULL parameter
> [jk_uri_worker_map.c (185)]: In 
> jk_uri_worker_map_t::uri_worker_map_free, NULL parameters
> ...
>
>and log/stdout.log shows:
> Unable to open log file: 
> /usr/share/tomcat/logs/servlet-${MMdd}.log!  Using stderr as the default.
> Unable to open log file: 
> /usr/share/tomcat/logs/jasper-${MMdd}.log!  Using stderr as the default.
> Unable to open log file: 
> /usr/share/tomcat/logs/examples.log!  Using stderr as the default.
> Unable to open log file: 
> /usr/share/tomcat/logs/servlet_examples.log!  Using stderr as the default.
>
>and in stdout, a bunch of good startup stuff, and then:
>2002-01-11 14:18:28 - /examples: Error creating validation mark  - 
>java.io.FileNotFoundException: 
>/usr/share/tomcat/work/DEFAULT/examples/webxmlval.txt
> at java.io.FileOutputStream.(FileOutputStream.java)
> at java.io.FileOutputStream.(FileOutputStream.java)
> at 
> org.apache.tomcat.facade.WebXmlReader.processWebXmlFile(Unknown Source)
> at org.apache.tomcat.facade.WebXmlReader.contextInit(Unknown Source)
> at org.apache.tomcat.core.Context.init(Unknown Source)
> at org.apache.tomcat.core.ContextManager.init(Unknown Source)
> at 
> org.apache.tomcat.startup.EmbededTomcat.initContextManager(Unknown Source)
> at org.apache.tomcat.startup.EmbededTomcat.execute1(Unknown Source)
> at org.apache.tomcat.startup.EmbededTomcat$1.run(Unknown Source)
> at org.apache.tomcat.util.compat.Jdk11Compat.doPrivileged(Unknown 
> Source)
> at org.apache.tomcat.startup.EmbededTomcat.execute(Unknown Source)
> at org.apache.tomcat.util.IntrospectionUtils.execute(Unknown Source)
> at org.apache.tomcat.startup.Main.execute(Unknown Source)
> at org.apache.tomcat.startup.Main.main(Unknown Source)
>...
>2002-01-11 14:18:41 - Http10Interceptor: 

Tomcat upgrade on Debian fails..

2002-02-03 Thread Gregory Guthrie

I have a problem with Apache(1.3.22)+Tomcat(3.3) after a recent update:

I have a working Linux (Debian 2.2.17) system, and am running Apache+Tomcat.

Having not used it for awhile, or updated in 4-6 months, I did an "apt-get 
install" of tomcat and Apache, to get the most current versions. It did an 
update, and now it is broken.  -(

Apache seems to work fine, and has the prescribed tomcat attachments in 
/etc/apache/httpd.conf, but tomcat fails. Browser symptoms: all .jsp pages 
give "not found".

1) At first none of the servlet or JSP pages worked.
Once the first request is made, tomcat keeps getting errors, about one per 
second, like this (forever)

PoolTcpEndpoint Endpoint ServerSocket[addr=localhost/127.0.0.1,port=0,localport
=8009] ignored exception java.net.SocketException Socket closed
java.net.SocketException Socket closed
 at java.net.PlainSocketImpl.close(PlainSocketImpl.java408)
 at java.net.Socket.close(Socket.java383)
 at java.net.ServerSocket.implAccept(ServerSocket.java206)
 at java.net.ServerSocket.accept(ServerSocket.java181)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(Unknown 
Source)
 at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
 at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
 at java.lang.Thread.run(Thread.java)
PoolTcpEndpoint Endpoint 
ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8081] ignored exception 
java.net.SocketException Socket closed
java.net.SocketException Socket closed
 at java.net.PlainSocketImpl.close(PlainSocketImpl.java408)
 at java.net.Socket.close(Socket.java383)
 at java.net.ServerSocket.implAccept(ServerSocket.java206)
 at java.net.ServerSocket.accept(ServerSocket.java181)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(Unknown 
Source)

I found that the workers.properties file was not in the right (referenced 
in config files), so I repaired that.
   (why did the (re-)install goof this up?)

2) Now the servlet examples work, all html works, either through Apache or 
directly by tomcat (:8081),
 but all .Jsp examples fail: "page not found"
 omega/etc/tomcat/logs# more mod_jk.log
 [jk_uri_worker_map.c (335)]: 
jk_uri_worker_map_t::uri_worker_map_close, NULL parameter
 [jk_uri_worker_map.c (185)]: In 
jk_uri_worker_map_t::uri_worker_map_free, NULL parameters
 ...

and log/stdout.log shows:
 Unable to open log file: 
/usr/share/tomcat/logs/servlet-${MMdd}.log!  Using stderr as the default.
 Unable to open log file: 
/usr/share/tomcat/logs/jasper-${MMdd}.log!  Using stderr as the default.
 Unable to open log file: 
/usr/share/tomcat/logs/examples.log!  Using stderr as the default.
 Unable to open log file: 
/usr/share/tomcat/logs/servlet_examples.log!  Using stderr as the default.

and in stdout, a bunch of good startup stuff, and then:
2002-01-11 14:18:28 - /examples: Error creating validation mark  - 
java.io.FileNotFoundException: 
/usr/share/tomcat/work/DEFAULT/examples/webxmlval.txt
 at java.io.FileOutputStream.(FileOutputStream.java)
 at java.io.FileOutputStream.(FileOutputStream.java)
 at org.apache.tomcat.facade.WebXmlReader.processWebXmlFile(Unknown 
Source)
 at org.apache.tomcat.facade.WebXmlReader.contextInit(Unknown Source)
 at org.apache.tomcat.core.Context.init(Unknown Source)
 at org.apache.tomcat.core.ContextManager.init(Unknown Source)
 at 
org.apache.tomcat.startup.EmbededTomcat.initContextManager(Unknown Source)
 at org.apache.tomcat.startup.EmbededTomcat.execute1(Unknown Source)
 at org.apache.tomcat.startup.EmbededTomcat$1.run(Unknown Source)
 at org.apache.tomcat.util.compat.Jdk11Compat.doPrivileged(Unknown 
Source)
 at org.apache.tomcat.startup.EmbededTomcat.execute(Unknown Source)
 at org.apache.tomcat.util.IntrospectionUtils.execute(Unknown Source)
 at org.apache.tomcat.startup.Main.execute(Unknown Source)
 at org.apache.tomcat.startup.Main.main(Unknown Source)
...
2002-01-11 14:18:41 - Http10Interceptor: Starting on 8081
2002-01-11 14:18:41 - Ajp12Interceptor: Starting on 8007
2002-01-11 14:18:41 - Ajp13Interceptor: Starting on 8009
2002-01-11 14:18:41 - Ajp12Interceptor: Can't create stop file: 
/usr/share/tomcat/conf/ajp12.id - java.io.FileNotFoundException: 
/usr/share/tomcat/conf/ajp12.id
 at java.io.FileOutputStream.(FileOutputStream.java)
 at java.io.FileOutputStream.(FileOutputStream.java)
 at java.io.FileWriter.(FileWriter.java)
 at 
org.apache.tomcat.modules.server.Ajp12Interceptor.engineState(Unknown Source)
 at org.apache.tomcat.core.ContextManager.setState(Unknown Source)
 at org.apache.tomcat.core.ContextManager.start(Unknown Source)
 at org.apache.tomcat.startup.EmbededTomcat.start(Unknown Sou