RE: apache virtual hosting + server.xml + context

2005-10-12 Thread Caldarale, Charles R
> From: sudip shrestha [mailto:[EMAIL PROTECTED] 
> Subject: Re: apache virtual hosting + server.xml + context
> 
> We are having the similar problem,
> but if we place context in server.xml, ( I also have a 
> META-INF/context.xml
> ) and as we are using dbcp connection pool, and it seems that tomcat
> initializes those pool twice

Which is exactly as it's defined to work.  You should only have one
instance for each unique  element, otherwise you will get
multiple deployments and corresponding initializations.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: Getting Apache2 forwarding to tomcat5

2005-10-12 Thread Dan Chesmore
Thank you very much. That did the trick.


On Tue, 2005-10-11 at 16:58 -0700, Lyndon Tiu wrote:
> Hello,
> 
> 
> 1) It is recommended to use mod_jk version 1 as version 2 is deprecated and 
> anything that is new in version 2 has been rolled into version 1.
> 
> 
> 2) All you need is this in server.xml:
> 
>  
>enableLookups="false" redirectPort="8443" debug="0"
> protocol="AJP/1.3" />
> 
> You may comment out the sections about 8080 and 8443 as apache talks to 
> tomcat through 8009.
> 
> 
> 3) If you insist on using mod_jk version 2, here are sample config files that 
> worked for me:
> 
> 
> In httpd.conf:
> 
> LoadModule jk2_module "/usr/local/apache/modules/mod_jk2.so"
> JkSet config.file "/usr/local/apache/config/workers2.properties"
> JkSet shm:file "/usr/local/apache/logs/shm.file"
> JkSet shm:size 1048576
> JkSet shm:disabled 0
> 
> 
> 
> In workers2.properties:
> 
> [channel.socket:server.domain.com:8009]
> info=Ajp13 forwarding over socket
> port=8009
> host=server.domain.com
> [ajp13:server.domain.com:8009]
> channel=channel.socket:server.domain.com:8009
> [uri:/*.jsp]
> worker=ajp13:server.domain.com:8009
> 
> 
> 
> --
> Lyndon Tiu
> 
> On Tue, 11 Oct 2005 18:22:21 -0500 tomcat-user@jakarta.apache.org wrote:
> > I have read about 25 different websites on getting this setup. I have
> > read through this list trying to find the answer I need. I have spent
> > the last 2 days and soon 3rd day trying to get this working. I need
> > Apache to forward port 80 and 443 requests to tomcat to 8080 and 8443. I
> > am working on the non-ssl right now. I get an error in Apache error_log
> > saying:
> > [error] uriEnv.init() map to invalid worker /*.jsp-0
> > ajp13:localhost:8009
> > [error] uriEnv.init() map to invalid worker /patientC
> > onnect-1 ajp13:localhost:8009
> > 
> > Let me give a bit of history and config files.
> > This is running on SLES9 x86-64 version.
> > Apache and tomcat and the connectors are from RPMs that came with SuSE.
> > Everything is installed in SuSE default install location.
> > 
> > 
> > 
> > httpd.conf.local:
> > 
> > LoadModule jk2_module /usr/lib64/apache2/mod_jk2.so
> > 
> > 
> > JkUriSet worker ajp13:localhost:8009
> > 
> > 
> > 
> > JkUriSet worker ajp13:localhost:8009
> > 
> > 
> > 
> > workers2.properties:
> > 
> > [logger]
> > level=DEBUG
> > 
> > [config:]
> > file=/etc/apache2/workers2.properties
> > debug=0
> > debugEnv=0
> > 
> > [uriMap:]
> > info=Maps the requests. Options: debug
> > debug=1
> > 
> > [shm]
> > info=Scoreboard. Required for reconfiguration and status with
> > multiprocess serve
> > rs
> > file=/usr/share/tomcat/logs/jk2.shm
> > size=1048576
> > debug=0
> > disabled=0
> > 
> > [workerEnv:]
> > info=Global server options
> > timing=1
> > debug=0
> > 
> > [status:]
> > info=Status worker, displays runtime informations
> > 
> > [uri:patientconnect.truchart.com/jkstatus/*]
> > info=Display status information and checks the config file for changes.
> > group=status:
> > 
> > [channel.socket:localhost:8009]
> > info=Ajp13 forwarding over socket
> > 
> > # Define the worker
> > [ajp13:localhost:8009]
> > channel=channel.socket:localhost:8009
> > 
> > [uri:patientconnect.truchart.com/patientConnect/*]
> > info=patientConnect
> > 
> > 
> > 
> > Both the workers2.properties and the httpd.conf.local are located
> > in /etc/apache2 directory.
> > 
> > In the /usr/share/tomcat/conf/ directory is the jk2.properties and the
> > server.xml
> > 
> > jk2.properties:
> > 
> > ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
> > ## WHEN YOU EDIT THE FILE.
> > 
> > ## COMMENTS WILL BE _LOST_
> > 
> > ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
> > 
> > # Set the desired handler list
> > # handler.list=apr,request,channelJni
> > #
> > # Override the default port for the socketChannel
> >  channelSocket.port=8009
> > # Default:
> > # channelUnix.file=${jkHome}/work/jk2.socket
> > # Just to check if the the config  is working
> > # shm.file=${jkHome}/work/jk2.shm
> > 
> > # In order to enable jni use any channelJni directive
> > # channelJni.disabled = 0
> > # And one of the following directives:
> > 
> > # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
> > 
> > 
> > # If set to inprocess the mod_jk2 will Register natives itself
> > # This will enable the starting of the Tomcat from mod_jk2
> > # apr.jniModeSo=inprocess
> > 
> > 
> > and the server.xml that was modified:
> > 
> > 
> > 
> >  >maxThreads="150" minSpareThreads="25"
> > maxSpareThreads="75"
> >enableLookups="false" redirectPort="8443"
> > acceptCount="100"
> >debug="0" connectionTimeout="2"
> >disableUploadTimeout="true" />
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >   >enableLookups="false" redirectPort="8443" debug="0"
> >protocol="AJP/1.3" />
> > 
> > 
> > 
> > 
> > 
> > 
> > ...
> > 
> >   

Re: apache virtual hosting + server.xml + context

2005-10-12 Thread sudip shrestha
We are having the similar problem,
but if we place context in server.xml, ( I also have a META-INF/context.xml
) and as we are using dbcp connection pool, and it seems that tomcat
initializes those pool twice

On 10/7/05, gianni dalmasso <[EMAIL PROTECTED]> wrote:
>
> hi list, i have a problem. i have apache 2.0 + tomcat 5.5.
> i have N name based virtual hosts on the same machine managed by apache;
> some of them need to use tomcat (have jsp pages and servlets...)
> if i set a server.xml of tomcat with several hosts, and every host has ist
> context --> it's ok ( but tomcat documentation says "Please note that for
> tomcat 5, unlike tomcat 4.x, it is NOT recommended to place 
> elements directly in the server.xml file")
> if i try to move the context informations in a .xml file in a
> $CATALINA_HOME/conf/[enginename]/[hostname]/ directory, tomcat cannot serve
> anything (it acts as he cannot find files in docBase);
> - which is the right configuration ?
> - is it necessary to define different host in server.xml ?(--> so, when i
> add a new host i need to restart apache and tomcat...)
> thanks in advance
>
> here is the configuration that works..
>
> HTTPD.CONF
> 
> Include /var/jakarta-tomcat-5.5.9/conf/mod_jk.conf
>
> MOD_JK.CONF
> .
>
> NameVirtualHost xx.yy.zz.kk:80
>
> 
>
> DocumentRoot /var/www/html
>
> ServerName web.ccc.com 
>
> 
>
>
>
> 
>
> 
>
> DirectoryIndex index.htm index.html index.jsp
>
> 
>
> ServerName www.aaa.com 
>
> DocumentRoot /var/www/html/aaa
>
> JkMount /*.jsp ajp13
>
> JkMount /servlet/* ajp13
>
> 
>
>
>
> 
>
> 
>
> DirectoryIndex index.htm index.html
>
> 
>
> ServerName www.bbb.com 
>
> DocumentRoot /var/jakarta-tomcat-5.5.9/webapps/bbb
>
> JkMount /*.jsp ajp13
>
> JkMount /servlet/* ajp13
>
> 
>
>
>
> SERVER.XML
>
> 
>
> http://www.aaa.com>">
>
> 
> docBase="/var/www/html/aaa"
>
> debug="0"
>
> reloadable="true" >
>
> 
>
> 
>
>
>
> http://www.bbb.com>">
>
> 
> docBase="/var/jakarta-tomcat-5.5.9/webapps/bbb"
>
> debug="0"
>
> reloadable="true" >
>
> 
>
> 
>
>
>
>
> 
>
>
>
> This for example, don't work
>
>
>
> setting :
>
> SERVER.XML
>
>
>
> 
>
> http://www.aaa.com>">
>
> appBase = /var/www/html/aaa (or similar... )
>
> 
>
>
>
> http://www.bbb.com>">
>
> 
>
>
> the file : $CATALINA_HOME/conf/Catalina/www.aaa.com/aaa.xml
>
> 
> docBase="/var/www/html/aaa"
>
> debug="0"
>
> reloadable="true" >
>
> 
>
>
>
>
>
>
>
> -
> Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3
>


Re: where is a text/html;charset= ?

2005-10-12 Thread Mark
Thanks Jon,

 text/html;charset= is not there yet...

Here what I've got:

HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=95EA4260325D4C1FCBF8196773A4BED3; Path=/
Content-Length: 478
Date: Wed, 12 Oct 2005 20:34:37 GMT
Server: Apache-Coyote/1.1
Connection: close

Hello Test4


Mark.


--- Jon Wingfield <[EMAIL PROTECTED]> wrote:

> You need to submit a valid HTTP request. Yours doesn't have the
> version 
> at the end of the request line.
> 
> Try:
> 
> GET / HTTP/1.0
> 
> 
> (Thats a two linefeeds: one marking the end of the request line and
> one 
> blank line indiating the end of the http headers)
> You should then see the HTTP response, headers and all.
> If you want to submit HTTP/1.1 requests you need to submit some 
> mandatory headers (Host and maybe Date) otherwise you get a 400
> back.
> 
> $ telnet
> telnet> open localhost 8080
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> GET / HTTP/1.1
> 
> HTTP/1.1 400 Bad Request
> Transfer-Encoding: chunked
> Date: Wed, 12 Oct 2005 17:26:36 GMT
> Server: Apache-Coyote/1.1
> Connection: close
> 
> 0
> 
> Alternatively you can use plug-ins for Mozilla/Firefox and IE which
> 
> allow you to see the raw response:
> 
> http://livehttpheaders.mozdev.org/
> http://www.blunck.info/iehttpheaders.html
> 
> HTH,
> 
> Jon
> 
> Mark wrote:
> > Hi everybody,
> > 
> > How can I see the complete output stream for each http request?
> > 
> > I tried:
> > --
> > $telnet localhost 8080
> > Trying 127.0.0.1...
> > Connected to localhost.
> > Escape character is '^]'.
> > GET /
> > Hello Test4
> > -
> > Where is a "text/html;charset=..."? or I'm missing something?
> > 
> > Thanks,
> > Mark.
> > 
> > 
> > 
> > __ 
> > Yahoo! Music Unlimited 
> > Access over 1 million songs. Try it free.
> > http://music.yahoo.com/unlimited/
> > 
> >
>
-
> > 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]
> 
> 





__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



Re: Newbee question on servlet and html - Really frustated with this problem.

2005-10-12 Thread Developer Developer
thanks everybody. I could solve the problem.
 There was a typo in my response text.
 When I changed the following line
response.setContentType("test/html");
 with
 response.setContentType("text/html");
 It jus worked like a charm.
 thanks !


 On 10/10/05, Developer Developer <[EMAIL PROTECTED]> wrote:
>
> does anybody know how to fix this problem.
>   Invocation of servlet prompts a messagebox posing a questions " do you
> want to save this ?" instead of executing it and returing the output in the
> html document.
>  :(
>
>  On 10/10/05, Developer Developer <[EMAIL PROTECTED]> wrote:
> >
> > I wrote my first html and servlet and deployed it on tomcat 5.5. The
> > html
> > works okay when I call it from the browser. The servlet too works okay
> > when
> > I call its doget() method by invoking it from the browser. EG:. 
> > http://localhost:8080/VBeer/BeerSelect
> >
> > However, when i try to invoke the servlet from an html form I get a
> > message
> > box - (file download security warning) - Do you want to save this file ?
> > It has a
> > funny number suffixed to the my servlet name.
> >
> >
> > Not sure what is happening.
> > Here is my HTML code snippet.
> >
> > 
> >
> > Beer selecton Page 
> >
> > 
> >
> > Select Beer Characteristics
> >
> > Thanks !
> >
>
>


Re: Tomcat 5.5.12 and user-agent header

2005-10-12 Thread Jess Holle

Richard Mixon wrote:


Have not tried it with Apache/mod_jk in front - just with Tomcat and
accessing it as http://computername:8080/stars/HomePage.do .

Not sure of your drift. Are you just looking for another date point (that's
good) - or is there some implication as to how user-agent headers work with
Tomcat standalone?
 

I'm wondering whether any issue that exists is Tomcat-wide or specific 
to the HTTP connector (or to the new AJP-based connectors for that matter).


--
Jess Holle

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



RE: Tomcat 5.5.12 and user-agent header

2005-10-12 Thread Richard Mixon
Have not tried it with Apache/mod_jk in front - just with Tomcat and
accessing it as http://computername:8080/stars/HomePage.do .

Not sure of your drift. Are you just looking for another date point (that's
good) - or is there some implication as to how user-agent headers work with
Tomcat standalone?

Thank you - Richard

-Original Message-
From: Jess Holle [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 12, 2005 10:00 AM
To: Tomcat Users List
Subject: Re: Tomcat 5.5.12 and user-agent header

Does this only occur when connecting directly to Tomcat or is it also an
issue when going through Apache and mod_jk?

Richard Mixon wrote:

>OK - yes, it was lack of sleep that was causing the problem to not 
>appear, I was starting Tomcat 5.5.9 instead of 5.5.12, sorry :(
>
>The problem is still there. I even took SiteMesh out of the picture, to 
>make sure it was not the problem (should of done that sooner).
>
>Here are the steps:
>
>1) Request a protected page form my app.
>2) My CMA login page pops up, I enter userid and password.
>3) This POST is issued when I submit it:
> POST /stars/auth/ 
>j_username=user1&j_password=password1&login=Login
>4) HTTPLiveHeaders show all of the GET requests have a user-agent set
>   (I've included all 90 lines of them below).
>5) My page that appears has the following code:
>  <%
>  String _userAgent = request.getHeader("user-agent");
>  out.write("USER-AGENT="+_userAgent);
>  ...
>6) And displays the following on my page:
>  USER-AGENT=null
>
>Unless someone has other ideas I'm thinking it's a but in 5.5.12 at 
>this point and will post it to Bugzilla.
>
>Thanks to Mark and others for their help.
>
> - Richard
>
>START OF HTTPLiveHeaders capture from the above POST:
>
>http://smartfish:8080/stars/auth/
>
>POST /stars/auth/ HTTP/1.1
>Host: smartfish:8080
>User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12)
>Gecko/20050915 Firefox/1.0.7
>Accept:
>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/pla
>in;q=
>0.8,image/png,*/*;q=0.5
>Accept-Language: en-us,en;q=0.5
>Accept-Encoding: gzip,deflate
>Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>Keep-Alive: 300
>Connection: keep-alive
>Referer: http://smartfish:8080/stars/HomePage.do
>Cookie: JSESSIONID=3F6575A5957AC84BCC60FA878ED092A5.srv1; 
>username=user1
>Content-Type: application/x-www-form-urlencoded
>Content-Length: 45
>j_username=user1&j_password=password1&login=Login
>HTTP/1.x 302 Moved Temporarily
>Server: Apache-Coyote/1.1
>Location:
>http://smartfish:8080/stars/j_security_check?j_username=user1&j_passwor
>d=fbc
>e66f99c809283638f344ecb3d50674ea64189
>Content-Length: 0
>Date: Wed, 12 Oct 2005 16:33:46 GMT
>--
>http://smartfish:8080/stars/j_security_check?j_username=user1&j_passwor
>d=fbc
>e66f99c809283638f344ecb3d50674ea64189
>
>GET
>/stars/j_security_check?j_username=user1&j_password=fbce66f99c809283638
>f344e
>cb3d50674ea64189 HTTP/1.1
>Host: smartfish:8080
>User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12)
>Gecko/20050915 Firefox/1.0.7
>Accept:
>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/pla
>in;q=
>0.8,image/png,*/*;q=0.5
>Accept-Language: en-us,en;q=0.5
>Accept-Encoding: gzip,deflate
>Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>Keep-Alive: 300
>Connection: keep-alive
>Referer: http://smartfish:8080/stars/HomePage.do
>Cookie: JSESSIONID=3F6575A5957AC84BCC60FA878ED092A5.srv1; 
>username=user1
>
>HTTP/1.x 302 Moved Temporarily
>Server: Apache-Coyote/1.1
>Location: http://smartfish:8080/stars/HomePage.do
>Content-Length: 0
>Date: Wed, 12 Oct 2005 16:33:46 GMT
>--
>http://smartfish:8080/stars/HomePage.do
>
>GET /stars/HomePage.do HTTP/1.1
>Host: smartfish:8080
>User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12)
>Gecko/20050915 Firefox/1.0.7
>Accept:
>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/pla
>in;q=
>0.8,image/png,*/*;q=0.5
>Accept-Language: en-us,en;q=0.5
>Accept-Encoding: gzip,deflate
>Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>Keep-Alive: 300
>Connection: keep-alive
>Referer: http://smartfish:8080/stars/HomePage.do
>Cookie: JSESSIONID=3F6575A5957AC84BCC60FA878ED092A5.srv1; 
>username=user1
>
>HTTP/1.x 200 OK
>Server: Apache-Coyote/1.1
>Pragma: No-cache
>Cache-Control: no-cache,no-store,max-age=0
>Expires: Thu, 01 Jan 1970 00:00:00 GMT
>Content-Type: text/html;charset=UTF-8
>Content-Language: en
>Content-Length: 2989
>Date: Wed, 

Re: where is a text/html;charset= ?

2005-10-12 Thread Jon Wingfield
You need to submit a valid HTTP request. Yours doesn't have the version 
at the end of the request line.


Try:

GET / HTTP/1.0


(Thats a two linefeeds: one marking the end of the request line and one 
blank line indiating the end of the http headers)

You should then see the HTTP response, headers and all.
If you want to submit HTTP/1.1 requests you need to submit some 
mandatory headers (Host and maybe Date) otherwise you get a 400 back.


$ telnet
telnet> open localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET / HTTP/1.1

HTTP/1.1 400 Bad Request
Transfer-Encoding: chunked
Date: Wed, 12 Oct 2005 17:26:36 GMT
Server: Apache-Coyote/1.1
Connection: close

0

Alternatively you can use plug-ins for Mozilla/Firefox and IE which 
allow you to see the raw response:


http://livehttpheaders.mozdev.org/
http://www.blunck.info/iehttpheaders.html

HTH,

Jon

Mark wrote:

Hi everybody,

How can I see the complete output stream for each http request?

I tried:
--
$telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /
Hello Test4
-
Where is a "text/html;charset=..."? or I'm missing something?

Thanks,
Mark.



__ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.

http://music.yahoo.com/unlimited/

-
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 5.5.12 and user-agent header

2005-10-12 Thread Jess Holle
Does this only occur when connecting directly to Tomcat or is it also an 
issue when going through Apache and mod_jk?


Richard Mixon wrote:


OK - yes, it was lack of sleep that was causing the problem to not appear, I
was starting Tomcat 5.5.9 instead of 5.5.12, sorry :(

The problem is still there. I even took SiteMesh out of the picture, to make
sure it was not the problem (should of done that sooner).

Here are the steps:

1) Request a protected page form my app.
2) My CMA login page pops up, I enter userid and password.
3) This POST is issued when I submit it:
POST /stars/auth/ j_username=user1&j_password=password1&login=Login
4) HTTPLiveHeaders show all of the GET requests have a user-agent set
  (I've included all 90 lines of them below).
5) My page that appears has the following code:
 <%
 String _userAgent = request.getHeader("user-agent");
 out.write("USER-AGENT="+_userAgent);
 ...
6) And displays the following on my page:
 USER-AGENT=null

Unless someone has other ideas I'm thinking it's a but in 5.5.12 at this
point and will post it to Bugzilla.

Thanks to Mark and others for their help.

- Richard

START OF HTTPLiveHeaders capture from the above POST:

http://smartfish:8080/stars/auth/

POST /stars/auth/ HTTP/1.1
Host: smartfish:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12)
Gecko/20050915 Firefox/1.0.7
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://smartfish:8080/stars/HomePage.do
Cookie: JSESSIONID=3F6575A5957AC84BCC60FA878ED092A5.srv1; username=user1
Content-Type: application/x-www-form-urlencoded
Content-Length: 45
j_username=user1&j_password=password1&login=Login
HTTP/1.x 302 Moved Temporarily
Server: Apache-Coyote/1.1
Location:
http://smartfish:8080/stars/j_security_check?j_username=user1&j_password=fbc
e66f99c809283638f344ecb3d50674ea64189
Content-Length: 0
Date: Wed, 12 Oct 2005 16:33:46 GMT
--
http://smartfish:8080/stars/j_security_check?j_username=user1&j_password=fbc
e66f99c809283638f344ecb3d50674ea64189

GET
/stars/j_security_check?j_username=user1&j_password=fbce66f99c809283638f344e
cb3d50674ea64189 HTTP/1.1
Host: smartfish:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12)
Gecko/20050915 Firefox/1.0.7
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://smartfish:8080/stars/HomePage.do
Cookie: JSESSIONID=3F6575A5957AC84BCC60FA878ED092A5.srv1; username=user1

HTTP/1.x 302 Moved Temporarily
Server: Apache-Coyote/1.1
Location: http://smartfish:8080/stars/HomePage.do
Content-Length: 0
Date: Wed, 12 Oct 2005 16:33:46 GMT
--
http://smartfish:8080/stars/HomePage.do

GET /stars/HomePage.do HTTP/1.1
Host: smartfish:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12)
Gecko/20050915 Firefox/1.0.7
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://smartfish:8080/stars/HomePage.do
Cookie: JSESSIONID=3F6575A5957AC84BCC60FA878ED092A5.srv1; username=user1

HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
Pragma: No-cache
Cache-Control: no-cache,no-store,max-age=0
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/html;charset=UTF-8
Content-Language: en
Content-Length: 2989
Date: Wed, 12 Oct 2005 16:33:52 GMT
--
http://smartfish:8080/stars/WEB-INF/pages/%3C%=request.getContextPath()%%3E/
images/cm_fill.gif

GET
/stars/WEB-INF/pages/%3C%=request.getContextPath()%%3E/images/cm_fill.gif
HTTP/1.1
Host: smartfish:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12)
Gecko/20050915 Firefox/1.0.7
Accept: image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://smartfish:8080/stars/HomePage.do
Cookie: JSESSIONID=3F6575A5957AC84BCC60FA878ED092A5.srv1; username=user1

HTTP/1.x 400 Invalid URI
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Date: Wed, 12 Oct 2005 16:33:52 GMT
Connection: close
--




-Original Message-
From: Richard Mixon [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 12, 2005 12:45 AM

To: 'To

RE: Tomcat 5.5.12 and user-agent header

2005-10-12 Thread Richard Mixon
OK - yes, it was lack of sleep that was causing the problem to not appear, I
was starting Tomcat 5.5.9 instead of 5.5.12, sorry :(

The problem is still there. I even took SiteMesh out of the picture, to make
sure it was not the problem (should of done that sooner).

Here are the steps:

1) Request a protected page form my app.
2) My CMA login page pops up, I enter userid and password.
3) This POST is issued when I submit it:
 POST /stars/auth/ j_username=user1&j_password=password1&login=Login
4) HTTPLiveHeaders show all of the GET requests have a user-agent set
   (I've included all 90 lines of them below).
5) My page that appears has the following code:
  <%
  String _userAgent = request.getHeader("user-agent");
  out.write("USER-AGENT="+_userAgent);
  ...
6) And displays the following on my page:
  USER-AGENT=null

Unless someone has other ideas I'm thinking it's a but in 5.5.12 at this
point and will post it to Bugzilla.

Thanks to Mark and others for their help.

 - Richard

START OF HTTPLiveHeaders capture from the above POST:

http://smartfish:8080/stars/auth/

POST /stars/auth/ HTTP/1.1
Host: smartfish:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12)
Gecko/20050915 Firefox/1.0.7
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://smartfish:8080/stars/HomePage.do
Cookie: JSESSIONID=3F6575A5957AC84BCC60FA878ED092A5.srv1; username=user1
Content-Type: application/x-www-form-urlencoded
Content-Length: 45
j_username=user1&j_password=password1&login=Login
HTTP/1.x 302 Moved Temporarily
Server: Apache-Coyote/1.1
Location:
http://smartfish:8080/stars/j_security_check?j_username=user1&j_password=fbc
e66f99c809283638f344ecb3d50674ea64189
Content-Length: 0
Date: Wed, 12 Oct 2005 16:33:46 GMT
--
http://smartfish:8080/stars/j_security_check?j_username=user1&j_password=fbc
e66f99c809283638f344ecb3d50674ea64189

GET
/stars/j_security_check?j_username=user1&j_password=fbce66f99c809283638f344e
cb3d50674ea64189 HTTP/1.1
Host: smartfish:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12)
Gecko/20050915 Firefox/1.0.7
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://smartfish:8080/stars/HomePage.do
Cookie: JSESSIONID=3F6575A5957AC84BCC60FA878ED092A5.srv1; username=user1

HTTP/1.x 302 Moved Temporarily
Server: Apache-Coyote/1.1
Location: http://smartfish:8080/stars/HomePage.do
Content-Length: 0
Date: Wed, 12 Oct 2005 16:33:46 GMT
--
http://smartfish:8080/stars/HomePage.do

GET /stars/HomePage.do HTTP/1.1
Host: smartfish:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12)
Gecko/20050915 Firefox/1.0.7
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://smartfish:8080/stars/HomePage.do
Cookie: JSESSIONID=3F6575A5957AC84BCC60FA878ED092A5.srv1; username=user1

HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
Pragma: No-cache
Cache-Control: no-cache,no-store,max-age=0
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/html;charset=UTF-8
Content-Language: en
Content-Length: 2989
Date: Wed, 12 Oct 2005 16:33:52 GMT
--
http://smartfish:8080/stars/WEB-INF/pages/%3C%=request.getContextPath()%%3E/
images/cm_fill.gif

GET
/stars/WEB-INF/pages/%3C%=request.getContextPath()%%3E/images/cm_fill.gif
HTTP/1.1
Host: smartfish:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.12)
Gecko/20050915 Firefox/1.0.7
Accept: image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://smartfish:8080/stars/HomePage.do
Cookie: JSESSIONID=3F6575A5957AC84BCC60FA878ED092A5.srv1; username=user1

HTTP/1.x 400 Invalid URI
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Date: Wed, 12 Oct 2005 16:33:52 GMT
Connection: close
--




-Original Message-
From: Richard Mixon [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 12, 2005 12:45 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 5.5.12 and user-agent header

Mark,

Thanks - should have thought of that first. Now that

RE: serving content from outside the context

2005-10-12 Thread John Laughton

Thanks for the suggestions
I didn't really want to run Apache, especially as I have tomcat (which is 
suppose to be a web server - I thought ?)


For now I have added a file to
.../tomcat/conf/Catalina/localhost/myData.xml
This xml file contains





now I can access http://xx.xx.xx.xx/myData/

In the dir /data/webData, I created a WEB-INF and a WEB-INF/web.xml

I guess what I have done is created a new context in the area of my hard 
drive where the static jpg files exist

The only issue I have is that I expose /data/webData part of my hard drive

John
At 10:06 AM 10/12/2005 +0100, Arup Vidyerthy wrote:

Or if you don't want to do what Darryl is suggesting you can configure your
tomcat to use unix symlinks by setting the allowLinking attribute to true.

Then you can simply create a softlink inside your webapp directory that
points to your data directory.

That will work as well.

Arup

-Original Message-
From: Darryl L. Miles [mailto:[EMAIL PROTECTED]
Sent: 12 October 2005 09:59
To: Tomcat Users List
Subject: Re: serving content from outside the context

John Laughton wrote:

> Hi, I hope this is the right mailing list for this question
>
> I am using tomcat 5.0.28
> I have a simple web app and want to serve up some images in the jsp
> pages, but the images are outside the context
>
> The HTTP statement looks like
> 
> 
> 
>
> The web app is under /usr/local/tomcat/webapp/family On the browser it
> only shows "thumb image" as it cannot get to the hyperlink
> http://xx.xx.xx.xx/data/webData/family/DSC01183.JPG
> (IP shown as xx.xx.xx.xx for security)
>
> I have read a lot about tomcat and figure there must be a way to
> configure server.xml and/or web.xml to allow this to work, but cannot
> see it ?
>
> It is possible ?

Are you wanting TC to serve the static files or do you use AJP connector and
Apache.  The easiest way to serve files from outside is to let Apache serve
them and configure up AJP connector, then mount the entire content or just
*.jsp pages to TC.

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





___
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with 
voicemail http://uk.messenger.yahoo.com


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


*
  John Laughton,Cisco Systems
  ([EMAIL PROTECTED])
  408.902.3592 (voicemail and fax)
  page - 1 800 365 4578
*


RE: Q:how to remove charset from HTTP responce to allow browser use a browser selected charset?

2005-10-12 Thread Mark
Hi Rick,
Yes my data comes from different locales I should say it's a legacy
data. I have no ability co convert it to UTF-8 right now.

response.setContentType("text/html;charset=..."); mess up the not
UTF-8 output, I'm getting ???s instead of a valid data.

I think I'll go with request.setCharacterEncoding(encoding);

Crossing my fingers...

Mark.
--- Rick <[EMAIL PROTECTED]> wrote:

> Hi Mark,
>   Can you talk a little about what the data is.. Just form data
> from
> different locales?
> I store all my data in UTF-8 and just instruct the page encoding to
> be the
> same (UTF-8) and I'm able to handle input and display of whatever
> people
> enter. Had a few odd things to overcome to get it working like,
> 
> JSP: I had to save the actual JSP file in UTF8 otherwise I couldn't
> get it
> to serve the page with UTF8 properly.. This started after Tomcat
> 5.0.16 or
> something like that.  
> 
> Servlet: don't think I had to do anything wild.. Just set the
> charset before
> you do anything with the output stream, including just getting a
> handle to
> the stream writer.  Set the contenttype first.
> response.setContentType("text/html;charset=UTF-8");
> 
> Depending on what you are reading from and such. You may also want
> to set
> some Java ARGs when starting Tomcat... Like:
> -Djavax.servlet.request.encoding=UTF-8 -Dfile.encoding=UTF-8
> -DjavaEncoding=UTF-8
> 
> Not sure if this is relevant, but hope it helps,
> 
> Rick
> 
> -Original Message-
> From: Mark [mailto:[EMAIL PROTECTED] 
> Posted At: Thursday, October 06, 2005 12:13 PM
> Posted To: Tomcat Dev
> Conversation: Q:how to remove charset from HTTP responce to allow
> browser
> use a browser selected charset?
> Subject: Re: Q:how to remove charset from HTTP responce to allow
> browser use
> a browser selected charset?
> 
> 
> Hi Mark,
> In my case servlet generates an output, so no JSP for now...
> Can I do it using filters? Or define and store user's prefs with
> encoding
> outside of tomcat and  in the session and use if it's exists in the
> session?
> 
> Thanks a lot!
> Mark.
> 
> --- Mark Thomas <[EMAIL PROTECTED]> wrote:
> 
> > Mark wrote:
> > > Hello,
> > > 
> > > In my application users enter data using different languages.
> > > The problem I'm facing is the browser sets the page encoding
> > always
> > > to ISO-8859-1. (I guess this is default based on server OS)
> > > 
> > > User can change encoding on the page (Browser settings) and 
> > > everything looks OK but only for one page. On the next page
> > encoding
> > > is back to ISO-8859-1.
> > > Is there any way to instruct tomcat not to send the page
> > encoding?
> > 
> > If you are using JSPs, no. The spec requires that the charset is
> set.
> > 
> > Mark
> > 
> > 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
> 
>   
>   
> __
> Yahoo! for Good
> Donate to the Hurricane Katrina relief effort. 
> http://store.yahoo.com/redcross-donate3/ 
> 
> 
>
-
> 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]
> 
> 




__ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/

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



Re: filter: How to set browser encoding?

2005-10-12 Thread Frank W. Zammetti
Mark, have a look here:

http://javawebparts.sourceforge.net/javadocs/javawebparts/filter/CharacterEncodingFilter.html

Just added that to JWP last weekend :)  It essentially calls
request.setCharacterEncoding() with whatever you configure.

(Oops... ignore the description of the encodingScheme parameter... just
realized I have a cut-and-paste error in the javadoc.  D'oh!).

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

On Wed, October 12, 2005 10:53 am, Mark said:
> Hi everybody,
> I've got a request from my client to force an encoding in the
> browser, regardless what user have set.
>
> When I set encoding inside my filter to Windows-1257 in the HTML
> source code I see only ?s:??? ? ???.
>
> Is there any easy way to enforce browser to set proper encoding?
>
>
> May be I need to setContent type after I obtain a writer in the
> servlet?
> Note, all outputs are generated by servlets:
>
> public void doPost( HttpServletRequest req, HttpServletResponse resp
> )
>   throws IOException, ServletException
> {
>   // do something
> resp.setContentType("text/html");
> resp.getWriter().println(output);
> }
>
>
> In MyFilter.doFilter() I do following:
> (HttpServletResponse)response).setContentType("text/html;charset=Windows-1257")
>
> I use 5.0.28 with Redhat 9.
> Any input is welcome.
>
> Thanks!
> Mark.
>
>
>
>
> __
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.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: dynamical class loading

2005-10-12 Thread David Delbecq
Allistair Crossley a écrit :

>>Thrust me, when dynamically classloading, half of code breaks 
>>
>>
>  ^^
>*rotfl* this has made my afternoon
>
>
>  
>
Nice one indeed :D

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



RE: dynamical class loading

2005-10-12 Thread Allistair Crossley
> Thrust me, when dynamically classloading, half of code breaks 
  ^^
*rotfl* this has made my afternoon


 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
  
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.



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



Re: dynamical class loading

2005-10-12 Thread David Delbecq
Hi,

I used dynamic class reloading on a commercial J2EE server and, believe me,
it brings far more problems than it solves.

First, when you dynamically reload a class here is what can happen:

webapp start under classloader instance x
webapp instanciate class A and store in session
session.setAttribute(someKey,someA)
class A has changed on disk, classloader reload it using a special class
loader
and marking this class to be handled by this new classloader (y)

now this code
A someA = (A)session.getAttribute(someKey)
will through a ClassCastException because
A.getClass() != session.getAttribute(someKey).getClass()
while
A.getClass().getName().equals(session.getAttribute(someKey).getClass().getName())

is true :)

All code involving static method/static variables is subject to such
breakdown.
More funny, you can end up in some condition instanciating old version
of classes.

Thrust me, when dynamically classloading, half of code breaks like this
most of time,
sometimes silently, and you end up crazy, trying to debug a code which
in fact is
not bugged.

If your webapp is particulary slow to start and you need faster
development, better take a look at unit testing
of deactivate parts of your webapp when debugging!

dumbQuestionsAsker _ a écrit :

> can somone give me an information?
> I want to know if it is possible to past and load classes into
> web-inf/classes path without beeing forced to reload the whole webapp ?
>
> _
> 10 Mo pour vos pièces jointes avec MSN Hotmail !
> http://www.imagine-msn.com/hotmail/default.aspx?locale=fr-FR
>
>
> -
> 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: Illegal Field Name Error

2005-10-12 Thread Raghupathy,Gurumoorthy
Can you prove me the action registration.RegistrationTypeAction as well ?


-Original Message-
From: Asad Habib [mailto:[EMAIL PROTECTED] 
Sent: 12 October 2005 12:42
To: Raghupathy,Gurumoorthy
Cc: [EMAIL PROTECTED]; 'Tomcat Users List'
Subject: RE: Illegal Field Name Error


Hello, below I have provided the struts configuration file:


http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd";>



   



   
  
   



I am new to Struts so perhaps I overlooked something. Also, Anto, thanks 
for your input. I flushed the .class files and recompiled but that did not 
fix the problem. I also tried with a fresh copy of struts.jar. Your help 
would be greatly appreciated. Thanks.

- Asad


On Tue, 11 Oct 2005, Raghupathy,Gurumoorthy wrote:

> Cant you send the struts-config.xml ?
>
> -Original Message-
> From: Asad Habib [mailto:[EMAIL PROTECTED]
> Sent: 11 October 2005 14:59
> To: tomcat-user@jakarta.apache.org
> Subject: Illegal Field Name Error
>
>
> I am receiving the following error when trying to run a Struts
application.
> I
> checked and it seems that I do have all of the appropriate jar files
> installed.
> But for some reason, the Action class is not being recognized. Any help
> would
> be greatly appreciated. Thank you.
>
> - Asad
>
>
> HTTP Status 500 -
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it
> from
> fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: Illegal field name "has inconsistent
> hierarchy"
> in class
> registration/RegistrationTypeAction
>
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:293)
>
>
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16
> 1)
> root cause
>
> java.lang.ClassFormatError: Illegal field name "has inconsistent
hierarchy"
> in
> class
> registration/RegistrationTypeAction
> java.lang.ClassLoader.defineClass1(Native Method)
> java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>
>
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
> ader.java:1629)
>
>
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
> a:850)
>
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
> a:1299)
>
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
> a:1181)
>
>
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117)
>
>
org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:14
> 3)
>
>
org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcess
> or.java:280)
>
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:218)
>
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
>
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
>
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> java.lang.reflect.Method.invoke(Method.java:585)
>
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
> java.security.AccessController.doPrivileged(Native Method)
> javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
>
>
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16
> 1)
> note The full stack trace of the root cause is available in the Apache
> Tomcat/5.5.9 logs.
>
> Apache Tomcat/5.5.9
>
>
> -
> 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: Illegal Field Name Error

2005-10-12 Thread Asad Habib

Hello, below I have provided the struts configuration file:


http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd";>


   
  
   

   
  
 
  
   


I am new to Struts so perhaps I overlooked something. Also, Anto, thanks 
for your input. I flushed the .class files and recompiled but that did not 
fix the problem. I also tried with a fresh copy of struts.jar. Your help 
would be greatly appreciated. Thanks.


- Asad


On Tue, 11 Oct 2005, Raghupathy,Gurumoorthy wrote:


Cant you send the struts-config.xml ?

-Original Message-
From: Asad Habib [mailto:[EMAIL PROTECTED]
Sent: 11 October 2005 14:59
To: tomcat-user@jakarta.apache.org
Subject: Illegal Field Name Error


I am receiving the following error when trying to run a Struts application.
I
checked and it seems that I do have all of the appropriate jar files
installed.
But for some reason, the Action class is not being recognized. Any help
would
be greatly appreciated. Thank you.

- Asad


HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it
from
fulfilling this request.

exception

javax.servlet.ServletException: Illegal field name "has inconsistent
hierarchy"
in class
registration/RegistrationTypeAction

org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:293)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16
1)
root cause

java.lang.ClassFormatError: Illegal field name "has inconsistent hierarchy"
in
class
registration/RegistrationTypeAction
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)

java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
ader.java:1629)

org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
a:850)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1299)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1181)

org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117)

org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:14
3)

org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcess
or.java:280)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:218)

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)

org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
java.lang.reflect.Method.invoke(Method.java:585)

org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16
1)
note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.9 logs.

Apache Tomcat/5.5.9


-
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: Tomcat on Windows: advantages of running as a service?

2005-10-12 Thread Dale, Matt


Running from a service makes it a no brainer to start up tomcat when you reboot 
the machine as it does it automatically.

Disadvantages I would see is that it hides the console and makes it difficult 
to changes options like JAVA_OPTS.

-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: 12 October 2005 12:12
To: Tomcat Users List
Subject: Re: Tomcat on Windows: advantages of running as a service?


The "net start " and "net stop " commands
will allow you to stop and start Windows services from the command line
(and thus from a batch script).  You can get the service name from the
"Services" property window.








On Wed, 2005-10-12 at 06:18, Tom Burke wrote:
> I'm running Tomcat 5.0.28 on a Windows 2003 server, and I need to
> automatically shut it down & restart it. One way is to control it via
> shutdown.bat & startup.bat, and run these as scheduled tasks at (say)
> 3:30am and 3:31am. However, I've noticed that while shutdown.bat will
> shut it down if it was previously started as a service, startup.bat
> won't run it as a service, it starts it at a command prompt.
>
> My question is: does this matter? If I'm running on Windows are there
> any advantages to running Tomcat as a service? Or disadvantages to
> running from the command prompt? The server is dedicated to tomcat, by
> the way.
>
> Tom Burke
>
>
> -
> 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]


*
This E-mail may be confidential and may also be
legally priviledged. If you are not the intended
recipient, please notify us immediately; You should
not copy it or use it for any purpose, nor disclose
its content to any person. E-mail may be subject to
data corruption accidentally or deliberately. For
this reaszon it is inappropriate to rely on advice
contained in an e-mail without obtaining written
confirmation of it first.
Authorised and regulated by the Financial Services Authority
*

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



Re: Tomcat on Windows: advantages of running as a service?

2005-10-12 Thread Ben Souther
The "net start " and "net stop " commands
will allow you to stop and start Windows services from the command line
(and thus from a batch script).  You can get the service name from the
"Services" property window.








On Wed, 2005-10-12 at 06:18, Tom Burke wrote:
> I'm running Tomcat 5.0.28 on a Windows 2003 server, and I need to 
> automatically shut it down & restart it. One way is to control it via 
> shutdown.bat & startup.bat, and run these as scheduled tasks at (say) 
> 3:30am and 3:31am. However, I've noticed that while shutdown.bat will 
> shut it down if it was previously started as a service, startup.bat 
> won't run it as a service, it starts it at a command prompt.
> 
> My question is: does this matter? If I'm running on Windows are there 
> any advantages to running Tomcat as a service? Or disadvantages to 
> running from the command prompt? The server is dedicated to tomcat, by 
> the way.
> 
> Tom Burke 
> 
> 
> -
> 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 on Windows: advantages of running as a service?

2005-10-12 Thread Peter Crowther
> From: Tom Burke [mailto:[EMAIL PROTECTED] 
> Sent: 12 October 2005 11:18
> To: Tomcat Users List
> Subject: Tomcat on Windows: advantages of running as a service?
> 
> I'm running Tomcat 5.0.28 on a Windows 2003 server, and I need to 
> automatically shut it down & restart it. One way is to control it via 
> shutdown.bat & startup.bat, and run these as scheduled tasks at (say) 
> 3:30am and 3:31am. However, I've noticed that while shutdown.bat will 
> shut it down if it was previously started as a service, startup.bat 
> won't run it as a service, it starts it at a command prompt.

Why not use net stop  and net start  with the
name of the Tomcat service?

> My question is: does this matter? If I'm running on Windows are there 
> any advantages to running Tomcat as a service? Or disadvantages to 
> running from the command prompt?

If you run it as a service: you can ensure it restarts if the machine
reboots unexpectedly for any reason; you can take actions if the service
crashes; and you can run the service as a specified user fairly simply.
If you run from the command line, you have none of these options.

- Peter

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



Re: connection timeout reached JK IsapiRedirect.dll

2005-10-12 Thread Reynir Hubner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
ah sorry, I mean IIS 6 (the newest one).
- -reynir


Reynir Hubner wrote:

> Hi, I'm using tomcat 4.1.x and Coyote JK connector, with IIS 5. I
> just updated to isapi_redirect-1.2.14.dll.
>
> I did that because I've been getting alot of those error messages
> into the log(stderr.log):
>
> - 12.10.2005 09:50:53 org.apache.jk.common.ChannelSocket
> processConnection - INFO: connection timeout reached
>
> Can anyone explaine these (still coming after the update). this is
> the config for the connector :
>
>  port="8009" minProcessors="5" maxProcessors="275"
> enableLookups="false" redirectPort="8443" acceptCount="100"
> debug="0" connectionTimeout="1" useURIValidationHack="false"
> tomcatAuthentication="true"
>
> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
>
> thanx, [EMAIL PROTECTED]
>

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

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
iD8DBQFDTOFG19KgIQihNwgRAtBdAJ9Tzd03Xisk0cmCIzmXN3ijGICvKwCaA/Hw
ZmGsSQ7Sv2iijXswfVLhHV4=
=dnj5
-END PGP SIGNATURE-


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



RE: serving content from outside the context

2005-10-12 Thread Arup Vidyerthy
Or if you don't want to do what Darryl is suggesting you can configure your
tomcat to use unix symlinks by setting the allowLinking attribute to true.

Then you can simply create a softlink inside your webapp directory that
points to your data directory.

That will work as well.

Arup 

-Original Message-
From: Darryl L. Miles [mailto:[EMAIL PROTECTED] 
Sent: 12 October 2005 09:59
To: Tomcat Users List
Subject: Re: serving content from outside the context

John Laughton wrote:

> Hi, I hope this is the right mailing list for this question
>
> I am using tomcat 5.0.28
> I have a simple web app and want to serve up some images in the jsp 
> pages, but the images are outside the context
>
> The HTTP statement looks like
> 
> 
> 
>
> The web app is under /usr/local/tomcat/webapp/family On the browser it 
> only shows "thumb image" as it cannot get to the hyperlink 
> http://xx.xx.xx.xx/data/webData/family/DSC01183.JPG
> (IP shown as xx.xx.xx.xx for security)
>
> I have read a lot about tomcat and figure there must be a way to 
> configure server.xml and/or web.xml to allow this to work, but cannot 
> see it ?
>
> It is possible ?

Are you wanting TC to serve the static files or do you use AJP connector and
Apache.  The easiest way to serve files from outside is to let Apache serve
them and configure up AJP connector, then mount the entire content or just
*.jsp pages to TC.

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





___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

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



RE: dynamical class loading

2005-10-12 Thread dumbQuestionsAsker _

Thank you for your answer.
You told me that it has more to deal with JVM, I tried using a 
URLClassLoader unsuccessfully, that's why I asked.


Have a nice day(or night).
@++


From: "Allistair Crossley" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: "Tomcat Users List" 
Subject: RE: dynamical class loading
Date: Wed, 12 Oct 2005 09:16:12 +0100

this is a complex answer that *probably* only the Tomcat devs can answer of 
someone knowledgable about the JVM and class loaders, so don't expect too 
many users to answer.


i believe from my limited knowledge that you cannot reload single classes 
in a tomcat web application as a whole class loader is associated with a 
web application. i believe the problem is more to do with the JVM although 
I *believe* WebLogic manages it. perhaps if a dev has time to explain they 
will.


Allistair.

> -Original Message-
> From: dumbQuestionsAsker _ [mailto:[EMAIL PROTECTED]
> Sent: 12 October 2005 09:11
> To: tomcat-user@jakarta.apache.org
> Subject: dynamical class loading
>
>
> can somone give me an information?
> I want to know if it is possible to past and load classes into
> web-inf/classes path without beeing forced to reload the
> whole webapp ?
>
> _
> 10 Mo pour vos pièces jointes avec MSN Hotmail !
> http://www.imagine-msn.com/hotmail/default.aspx?locale=fr-FR
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
 
Disclaimer:  The information contained within this e-mail is confidential 
and may be privileged. This email is intended solely for the named 
recipient only; if you are not authorised you must not disclose, copy, 
distribute, or retain this message or any part of it. If you have received 
this message in error please contact the sender at once so that we may take 
the appropriate action and avoid troubling you further.  Any views 
expressed in this message are those of the individual sender.  QAS Limited 
has the right lawfully to record, monitor and inspect messages between its 
employees and any third party.  Your messages shall be subject to such 
lawful supervision as QAS Limited deems to be necessary in order to protect 
its information, its interests and its reputation.


Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.




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



_
Une chance par jour de gagner un voyage au soleil avec Magic Search ! 
http://www.magicsearch.fr



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



Re: More helpful reporting of exceptions in JSPs

2005-10-12 Thread Darryl L. Miles

Tim Fennell wrote:


I've posted my patch for Jasper/Tomcat at the following location:
http://www.tfenne.com/jasper/

The page has a brief overview, a download link and  "before and  
after" screenshots so you can get an idea for what exactly the patch  
does before you decide to patch your own environment.  If you give it  
a shot and have any problems and/or suggestions for improving it  
please let me know - but please read the readme first ;)



Excellent addition.  Maybe once you have got an initial around of 
feedback for users of the latest 5.0.x and 5.5.x you might like to post 
it up on Tomcat Bugzilla 
http://issues.apache.org/bugzilla/enter_bug.cgi?product=Tomcat%205 and 
attach the patch.


Darryl


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



Re: serving content from outside the context

2005-10-12 Thread Darryl L. Miles

John Laughton wrote:


Hi, I hope this is the right mailing list for this question

I am using tomcat 5.0.28
I have a simple web app and want to serve up some images in the jsp 
pages, but the images are outside the context


The HTTP statement looks like




The web app is under /usr/local/tomcat/webapp/family
On the browser it only shows "thumb image" as it cannot get to the 
hyperlink http://xx.xx.xx.xx/data/webData/family/DSC01183.JPG

(IP shown as xx.xx.xx.xx for security)

I have read a lot about tomcat and figure there must be a way to 
configure server.xml and/or web.xml to allow this to work, but cannot 
see it ?


It is possible ?


Are you wanting TC to serve the static files or do you use AJP connector 
and Apache.  The easiest way to serve files from outside is to let 
Apache serve them and configure up AJP connector, then mount the entire 
content or just *.jsp pages to TC.


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



RE: dynamical class loading

2005-10-12 Thread Allistair Crossley
this is a complex answer that *probably* only the Tomcat devs can answer of 
someone knowledgable about the JVM and class loaders, so don't expect too many 
users to answer. 

i believe from my limited knowledge that you cannot reload single classes in a 
tomcat web application as a whole class loader is associated with a web 
application. i believe the problem is more to do with the JVM although I 
*believe* WebLogic manages it. perhaps if a dev has time to explain they will.

Allistair.

> -Original Message-
> From: dumbQuestionsAsker _ [mailto:[EMAIL PROTECTED]
> Sent: 12 October 2005 09:11
> To: tomcat-user@jakarta.apache.org
> Subject: dynamical class loading
> 
> 
> can somone give me an information?
> I want to know if it is possible to past and load classes into 
> web-inf/classes path without beeing forced to reload the 
> whole webapp ?
> 
> _
> 10 Mo pour vos pièces jointes avec MSN Hotmail ! 
> http://www.imagine-msn.com/hotmail/default.aspx?locale=fr-FR
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
  
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.



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



RE: Tomcat 5.5.12 and user-agent header

2005-10-12 Thread Richard Mixon
Mark,

Thanks - should have thought of that first. Now that I turned on
LiveHTTPHeaders, I cannot get it to fail. I was able to do this consistently
before.

Just to be sure, I'll try again tomorrow morning. Maybe its just late.

Thanks much - Richard

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 11, 2005 6:14 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Tomcat 5.5.12 and user-agent header

Have you looked at the headers between Tomcat and your UA? Is your UA
actually sending the UA header? If it is then it looks like a sitemesh
problem from what you have described. There are a range of tools for looking
at headers.
livehttpheaders is good, as is TcpMon which is distributed as part of Axis.

Mark 

> -Original Message-
> From: Richard Mixon [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 10, 2005 12:00 AM
> To: 'Tomcat Users List'
> Subject: RE: Tomcat 5.5.12 and user-agent header
> 
> Leon,
> 
> Thank you for the test - but I still get a null user-agent right after 
> the login. Here is a snippet of my code:
> 
>  "http://www.w3.org/TR/html4/loose.dtd";>
>   <%@ include file="/common/taglibs.jspf"%>
>   <%@ page import="com.ltoj.common.Constants" %>
>   
>   
>   <%@ include file="/common/meta.jspf" %>
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   <%
>   String _userAgent = request.getHeader("user-agent");
>   out.write("USER-AGENT='"+_userAgent+"'"); 
>   ...
> 
> Here's the sequence:
> 
> 1) I issue a request to this page.
> 
> 2) CMA says "oh, that's protected" and shows my custom login page. I 
> get user-agent displayed fine:
>  USER-AGENT='Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; 
> rv:1.7.12)
> Gecko/20050915 Firefox/1.0.7'
> 
> 3) But on the next page (the original target page of the request), 
> user-agent shows as null.
>  USER-AGENT='null'
> 
> I can refresh the page or go to any other page in my application and 
> the user agent is fine again.
> 
> The only thing a bit non-standard about this JSP page is that it is a 
> SiteMesh decorator page.
> 
> If I run the same test, same pages in Tomcat 5.5.9 I never get 
> user-agent of null.
> 
> Our application does check the user-agent header a good bit. 
> We use Select
> lists with option groups - but some browsers do not support this so we 
> simulate it by indenting the select options ourselves.
> 
> Luckily all of this activity happens well after the initial login - so 
> we are safe, now that I changed the decorator to make sure user-agent 
> is not null before doing anything with it.
> 
> But it seems other applications might be affected by this - no?
> 
> Thanks again - Richard
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> Sent: Sunday, October 09, 2005 1:45 PM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: Re: Tomcat 5.5.12 and user-agent header
> 
> Hmm, I downloaded 5.5.12 and tried the agent-header specific code with 
> it:
> 
>   public void processLogin(User user, HttpServletRequest req, 
> HttpServletResponse res) {
>   StringBuffer info = new StringBuffer();
>   info.append("login ");
>   info.append(user.getUserName());
>   info.append(" [");
>   info.append(user.getUserId().getPlainPresentation());
>   info.append("] ");
>   info.append(user.getEmail());
>   info.append(" ");
>   
> info.append(UserHelper.getGenderDescription(user.getGender()));
>   info.append(" ");
>   
> info.append(UserHelper.getStatusDescription(user.getMembership
> Status()));
>   info.append(" ");
>   info.append(req.getRemoteAddr());
>   info.append(" / ");
>   info.append(req.getRemoteHost());
>   info.append(" Agent: ");
>   info.append(req.getHeader("user-agent"));
>   log.info(info); 
>   }
> 
> outcome was:
> 
> 2005-10-08 15:36:50,453 INFO  - login leon [6] [EMAIL PROTECTED] male premium
> 127.0.0.1 / 127.0.0.1 Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; 
> en-US;
> rv:1.7) Gecko/20040626 Firefox/0.8
> 
> which I think was same behaviour as before.
> 
> I took tomcat out of the box (5.5.12 tar.gz) and only changed the http 
> port.
> 
> regards
> leon
>

RE: Getting Apache2 forwarding to tomcat5

2005-10-12 Thread Richard Mixon
I believe that SuSE does not supply JK2, but only JK. And as another poster
said, JK2 is now deprecated.

I got the  RPM "apache2-jakarta-tomcat-connectors" working pretty easily as
I remember.
I moved from the RPM to a newer compiled version of JK version 1.2.14 a
couple of months ago to get newer features and better load balancing.

HTH - Richard

-Original Message-
From: Dan Chesmore [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 11, 2005 4:22 PM
To: Tomcat Users List
Subject: Getting Apache2 forwarding to tomcat5

I have read about 25 different websites on getting this setup. I have read
through this list trying to find the answer I need. I have spent the last 2
days and soon 3rd day trying to get this working. I need Apache to forward
port 80 and 443 requests to tomcat to 8080 and 8443. I am working on the
non-ssl right now. I get an error in Apache error_log
saying:
[error] uriEnv.init() map to invalid worker /*.jsp-0
ajp13:localhost:8009
[error] uriEnv.init() map to invalid worker /patientC
onnect-1 ajp13:localhost:8009

Let me give a bit of history and config files.
This is running on SLES9 x86-64 version.
Apache and tomcat and the connectors are from RPMs that came with SuSE.
Everything is installed in SuSE default install location.



httpd.conf.local:

LoadModule jk2_module /usr/lib64/apache2/mod_jk2.so


JkUriSet worker ajp13:localhost:8009



JkUriSet worker ajp13:localhost:8009



workers2.properties:

[logger]
level=DEBUG

[config:]
file=/etc/apache2/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=1

[shm]
info=Scoreboard. Required for reconfiguration and status with multiprocess
serve rs file=/usr/share/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0

[status:]
info=Status worker, displays runtime informations

[uri:patientconnect.truchart.com/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket

# Define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[uri:patientconnect.truchart.com/patientConnect/*]
info=patientConnect



Both the workers2.properties and the httpd.conf.local are located in
/etc/apache2 directory.

In the /usr/share/tomcat/conf/ directory is the jk2.properties and the
server.xml

jk2.properties:

## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED ## WHEN
YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Set the desired handler list
# handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
 channelSocket.port=8009
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working #
shm.file=${jkHome}/work/jk2.shm

# In order to enable jni use any channelJni directive # channelJni.disabled
= 0 # And one of the following directives:

# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so


# If set to inprocess the mod_jk2 will Register natives itself # This will
enable the starting of the Tomcat from mod_jk2 # apr.jniModeSo=inprocess


and the server.xml that was modified:













 






...




   
   




Thank you for any help or direction you can place me. If you think I should
have read something first then tell me to read it. I may have skipped over
it or I may have read it. I have seen a lot of different ways of doing that
same thing and tried all so I may be missing up a few of them. Again thank
you.



--
Dan Chesmore
Systems Admin
Mediture
7700 Equitable Dr
Suite 100
Eden Prairie, MN 55344
952-400-0315
www.mediture.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: newbee question on servlet and html

2005-10-11 Thread Anto Paul
On 10/11/05, Developer Developer <[EMAIL PROTECTED]> wrote:
> I wrote my first html and servlet and deployed it on tomcat 5.5. The html
> works okay when i call it from the browser. The servlet too works okay when
> i call its doget() method by invoking it from the browser. EG:.
> http://localhost:8080/VBeer/BeerSelect
> However, when i try to invoke the servlet from an html form I get a message
> box - (file download security warning) - Do you want to save this file, with
> a
> funny number suffixed to the my servlet name.
>
>
> Not sure what is happening.
> Here is my HTML code snippet.
>
> 
>
> Beer selecton Page 
>
> 

what is this 3D before "POST" ?


--
rgds
Anto Paul

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



Re: Example build.xml error?

2005-10-11 Thread Anto Paul
On 10/10/05, René Schade <[EMAIL PROTECTED]> wrote:
> Hi List,
>
> Starting a new project, I deceided to move to Tomcat 5.5.
>
> In the "Application Developer's Guide"
>
> http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html
>
> There is an example build.xml file for installing & reloading the project, a 
> "basic build-file":
>
> http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/build.xml.txt
>
> Using this build.xml file works fine, except for one thing. Whenever I do a 
> change followed by "ant reload", it does not deploy the changes to the 
> server. The changed files are recompiled in to the local /build folder, 
> followed by a reload of the server, but the changed files are never deployed 
> to the server.
>
It should be that class files are not compiled to Tomcats applications
WEB-INF\classes folder. You can check this by comparing timestamps of
a modified class file.
Perhaps you have to make property build.home  point to the application
context directory of Tomcat. ie. something like


--
rgds
Anto Paul

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



Re: Illegal Field Name Error

2005-10-11 Thread Anto Paul
On 10/10/05, Asad Habib <[EMAIL PROTECTED]> wrote:
> I am receiving the following error when trying to run a Struts
> application. I checked and it seems that I do have all of the appropriate
> jar files installed. But for some reason, the Action class is not being
> recognized. Any help would be greatly appreciated. Thank you.
>
> - Asad
>
>
> HTTP Status 500 -
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: Illegal field name "has inconsistent
> hierarchy" in class
> registration/RegistrationTypeAction
>
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:293)
>
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
> root cause
>
> java.lang.ClassFormatError: Illegal field name "has inconsistent
> hierarchy" in class
> registration/RegistrationTypeAction
>  java.lang.ClassLoader.defineClass1(Native Method)
>  java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>
> org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1629)
>
> org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
>
> org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117)
>
> org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143)
>
> org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:280)
>
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:218)
>
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
>
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
>  javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>  sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  java.lang.reflect.Method.invoke(Method.java:585)
>
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
>  java.security.AccessController.doPrivileged(Native Method)
>  javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
>
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
> note The full stack trace of the root cause is available in the Apache
> Tomcat/5.5.9 logs.
>
> Apache Tomcat/5.5.9
>

Delete the generated class files of your application and compile it.
Also check struts.jar that it is not corrupted.

--
rgds
Anto Paul

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



RE: Mod_jk + Apache on RHEL3 gives 503 for jsp only

2005-10-11 Thread Mark Eggers
Here's a quick writeup.

This is going to be a long reply, and I hope it will
be useful.

I am using Fedora Core 4 as a model.  I hope it will
be close enough to RHEL 3 to be useful.  You may have
to change paths in order to correspond to your
environment.

First of all, my environment:

Hardware/OS
===
Dell 8200 with 768 MB memory
Dual boot:
Fedora Core 4 2.6.13-1.1526_FC4
Windows 2000 Professional

Software

Java 1.5.0_4 from Sun
Apache 2.0.54 from RPM
Tomcat 5.5.9 from jakarta.apache.org
mod_jk 1.2.14.1 from source

Installation

Java 1.5.0_4 is installed in /usr/jdk1.5.0_04 and soft

linked to /usr/java
JAVA_HOME is set in /etc/profile
$JAVA_HOME/bin is placed in $PATH before /usr/bin

I've left the Apache RPM install alone, which means
the following:

DocumentRoot /var/www
Logs /etc/logs soft linked to /var/log/httpd
modules  /etc/modules soft linked to
/usr/lib/httpd/modules
conf /etc/conf
 /etc/conf.d

I've created a tomcat user with the same group
membership as apache user.  The home directory is
/home/tomcat.

/home/tomcat/jakarta-tomcat-5.5.9 Current Tomcat
installation

Configuration
=

workers.properties
--

I've placed workers.properties in /etc/httpd/conf

#
# basic worker list
#
worker.list=local,status

#
# one to serve the applications
#
worker.local.type=ajp13
worker.local.host=localhost
worker.local.port=8009

#
# one to check the status
#
worker.status.type=status
worker.status.host=localhost
worker.status.port=8009

This is all you really need in order to connect a
local Apache to a local Tomcat.

I cannot think of a good reason to define more
workers.  That isn't to say that there aren't any.

server.xml
-- 
If you put multiple workers going to the same host and
different ports, then you will have to modify
server.xml.  Basically, you will have to add a
connector statement for each unique port that you use
in your workers.properties file.

You have two different ports, so you will need two
connector statements.




jk.conf
---
I'm following the examples used by Fedora Core 4 in
configuring other add-on modules for Apache.  You can
place the mod_jk configuration information directly in
/etc/httpd/conf/httpd.conf, but I've chosen to create
a separate file in /etc/httpd/conf.d

The contents of my file are as follows:

#
# following Fedora's add-on philosophy
#
LoadModulejk_module modules/mod_jk.so

JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevelwarn
JkLogStampFormat  "[%a %b %d %H:%M:%S %Y] "
JkShmFile logs/shm-file


#
# jk status
#
JkMount /jk-status/ status

httpd.conf
--

Static File Problem
---
This is where the configuration can become a little
more complex.  It helps to understand how Apache finds
files to serve.

Each host in Apache has a DocumentRoot.  In Redhat
Fedora, the line that defines that reads:

DocumentRoot "/var/www/html"

That means that when you enter the following URL:

http://localhost/application/

Apache will look for the DirectoryIndex files (usually
index.html) in:

/var/www/html/application/

This is fine until you add an application server into
the mix.  Many people package up the entire
application into one war file.  This means that all
static as well as dynamic content gets loaded into the
application server area.

In your case, that's
/usr/local/tomcat/jakarta-tomcat-5.5.9/webapps

Apache will know absolutely nothing about this
directory, and any files that are not mapped by
JkMount and served by Tomcat will not be found by
Apache

Static File Solutions
-
1. Change DocumentRoot

The most global change is to change DocumentRoot.  In
order for this to work, all files in
/usr/local/tomcat/jakarta-tomcat-5.5.9/webapps must be
readable by the user that runs Apache (typically
apache in a Redhat distribution).

The way to do this is to put the following as your
DocumentRoot statement.

DocumentRoot
"/usr/local/tomcat/jakarta-tomcat/webapps"

While this works, it means that you will have to place
all web sites in this location, even if they do not
have dynamic content.

In general, I don't like this solution.

2. Add Directory and Alias Statements

Traditionally locating static files in a dynamic web
site has been done by using a combination of Directory
and Alias directives.  The Directory directive grants
appropriate server permissions (who gets to see the
files, etc.) and the Alias directive matches a
directory with a base URL.

For example, here's one way to map application1 living

in

/usr/local/tomcat/jakarta-tomcat/5.5.9/webapps/application1.

#
# This goes in httpd.conf
#

   Options Indexes FollowSymlinks MultiViews
   AllowOverride None
   Order allow,deny
   Allow from all


Alias /application1/
"/usr/local/tomcat/webapps/application1/"

#
# nice to block WEB-INF
#

  AllowOverride None
  Order allow,deny
  Deny from all


N

RE: Tomcat 5.5.12 and user-agent header

2005-10-11 Thread Mark Thomas
Have you looked at the headers between Tomcat and your UA? Is your UA actually
sending the UA header? If it is then it looks like a sitemesh problem from what
you have described. There are a range of tools for looking at headers.
livehttpheaders is good, as is TcpMon which is distributed as part of Axis.

Mark 

> -Original Message-
> From: Richard Mixon [mailto:[EMAIL PROTECTED] 
> Sent: Monday, October 10, 2005 12:00 AM
> To: 'Tomcat Users List'
> Subject: RE: Tomcat 5.5.12 and user-agent header
> 
> Leon,
> 
> Thank you for the test - but I still get a null user-agent 
> right after the
> login. Here is a snippet of my code:
> 
>  "http://www.w3.org/TR/html4/loose.dtd";>
>   <%@ include file="/common/taglibs.jspf"%>
>   <%@ page import="com.ltoj.common.Constants" %>
>   
>   
>   <%@ include file="/common/meta.jspf" %>
>   
>   
>   
>   
>   
>   
>   
>
>
>
>   
>   <%
>   String _userAgent = request.getHeader("user-agent");
>   out.write("USER-AGENT='"+_userAgent+"'"); 
>   ...
> 
> Here's the sequence:
> 
> 1) I issue a request to this page.
> 
> 2) CMA says "oh, that's protected" and shows my custom login 
> page. I get
> user-agent displayed fine:
>  USER-AGENT='Mozilla/5.0 (Windows; U; Windows NT 5.2; 
> en-US; rv:1.7.12)
> Gecko/20050915 Firefox/1.0.7'
> 
> 3) But on the next page (the original target page of the request),
> user-agent shows as null.
>  USER-AGENT='null'
> 
> I can refresh the page or go to any other page in my 
> application and the
> user agent is fine again.
> 
> The only thing a bit non-standard about this JSP page is that it is a
> SiteMesh decorator page. 
> 
> If I run the same test, same pages in Tomcat 5.5.9 I never 
> get user-agent of
> null.
> 
> Our application does check the user-agent header a good bit. 
> We use Select
> lists with option groups - but some browsers do not support this so we
> simulate it by indenting the select options ourselves.
> 
> Luckily all of this activity happens well after the initial 
> login - so we
> are safe, now that I changed the decorator to make sure 
> user-agent is not
> null before doing anything with it.
> 
> But it seems other applications might be affected by this - no?
> 
> Thanks again - Richard
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, October 09, 2005 1:45 PM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: Re: Tomcat 5.5.12 and user-agent header
> 
> Hmm, I downloaded 5.5.12 and tried the agent-header specific 
> code with it:
> 
>   public void processLogin(User user, HttpServletRequest req,
> HttpServletResponse res) {
>   StringBuffer info = new StringBuffer();
>   info.append("login ");
>   info.append(user.getUserName());
>   info.append(" [");
>   info.append(user.getUserId().getPlainPresentation());
>   info.append("] ");
>   info.append(user.getEmail());
>   info.append(" ");
>   
> info.append(UserHelper.getGenderDescription(user.getGender()));
>   info.append(" ");
>   
> info.append(UserHelper.getStatusDescription(user.getMembership
> Status()));
>   info.append(" ");
>   info.append(req.getRemoteAddr());
>   info.append(" / ");
>   info.append(req.getRemoteHost());
>   info.append(" Agent: ");
>   info.append(req.getHeader("user-agent"));
>   log.info(info); 
>   }
> 
> outcome was:
> 
> 2005-10-08 15:36:50,453 INFO  - login leon [6] [EMAIL PROTECTED] male premium
> 127.0.0.1 / 127.0.0.1 Agent: Mozilla/5.0 (Windows; U; Windows 
> NT 5.0; en-US;
> rv:1.7) Gecko/20040626 Firefox/0.8
> 
> which I think was same behaviour as before.
> 
> I took tomcat out of the box (5.5.12 tar.gz) and only changed 
> the http port.
> 
> regards
> leon
> 
> 
> On 10/8/05, Richard Mixon <[EMAIL PROTECTED]> wrote:
> > I am just using the standard HTTP connector. This is on my 
> development 
> > workstation so I don't normally run JK and Apache, except for final
> testing.
> >
> > On the developer list I did see one mention of user-agent 
> header, but 
> > on closer inspection it appeared to be for a completely 
> differen

Re: More helpful reporting of exceptions in JSPs

2005-10-11 Thread Tim Fennell

Hi All,

I've posted my patch for Jasper/Tomcat at the following location:
http://www.tfenne.com/jasper/

The page has a brief overview, a download link and  "before and  
after" screenshots so you can get an idea for what exactly the patch  
does before you decide to patch your own environment.  If you give it  
a shot and have any problems and/or suggestions for improving it  
please let me know - but please read the readme first ;)


Happy bug hunting.

-Tim Fennell
http://stripes.mc4j.org

On Oct 11, 2005, at 3:40 PM, Tim Fennell wrote:

I certainly don't have a problem with that.  Obviously I'd rather  
have it in the main codebase - while I don't have a problem running  
a patched version of jasper, I'm sure that would freak out a good  
number of PHBs ;)  But since there is interest I'll clean up what I  
have, put it online and post a link here.  That should happen some  
time this evening.


-t

On Oct 11, 2005, at 2:01 PM, GB Developer wrote:


regardless how the commiters feel about it, are you willing to  
release your

patched source files? (So for example, I can compile and deploy them
myself?)   ;)  If so, I'd say a page on your wiki might be alright  
for

distro, with a link to the page sent to tomcat-user  ?

I'd be giving it a try about 10 minutes after you send out your  
email, since
I've often wondered about this feature. Usually right after  
digging through

the work directory for a generated java file.





-Original Message-
From: Tim Fennell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 11, 2005 12:15 PM
To: Tomcat Users List
Subject: Fwd: More helpful reporting of exceptions in JSPs


Apologies in advance for cross-posting this, but I sent this email
out to the tomcat-dev list a couple of days ago and have received no
replies at all...  I think this is quite  a useful feature, and I'm
wondering how best to go about contributing it.
Thanks

-Tim Fennell
http://stripes.mc4j.org

Begin forwarded message:




From: Tim Fennell <[EMAIL PROTECTED]>
Date: October 9, 2005 5:50:11 PM EDT
To: tomcat-dev@jakarta.apache.org
Subject: More helpful reporting of exceptions in JSPs
Reply-To: "Tomcat Developers List" 







At any rate, I have code that will do this now, and I think it'd be
a great productivity boost for anyone else developing JSPs on
Tomcat.  It amounts to small patches to two files.  The first is
org.apache.jasper.compiler.Compiler to make it hang on to



the parse



tree (pageNodes) if in development mode, and a getter to make this
accessible.  The second is to
org.apache.jasper.servlet.JspServletWrapper to do the grunt



work of



mapping a stack frame from the exception back to the line in the
JSP that it came from.





-
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: silent install of Tomcat

2005-10-11 Thread krux mania

Sounds like you are using Windows?

 Yes i am using windows.

On my Linux boxes I installed quite silently using rpm and no questions to be
answered..

But you could use the tarball/zip for it.

I'll try this, thanks.

 

vivek






-
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

RE: silent install of Tomcat

2005-10-11 Thread krux mania
Thanks Mauricio, I'll follow this and get back.
pareeja

"Mauricio Fernandez A." <[EMAIL PROTECTED]> wrote:
Maybe you can try with the .zip distribution if your so is Windows or
.tar.gz if Linux or whatever you want/need from
http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi

If you don´t know which one download read the README
http://apache.org.es/jakarta/tomcat-5/v5.5.12/README.html

Mauricio Fernandez

-Mensaje original-
De: krux mania [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 10 octubre, 2005 19:37
Para: tomcat-user@jakarta.apache.org
Asunto: silent install of Tomcat




Hi,

I need to install tomcat 5.0.28 silently for my application. Can this be
done.

If this issue has been previously discussed please send me a pointer to the
message.



thanks,

vivek


-
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.


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



-
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

Re: Getting Apache2 forwarding to tomcat5

2005-10-11 Thread Lyndon Tiu
Hello,


1) It is recommended to use mod_jk version 1 as version 2 is deprecated and 
anything that is new in version 2 has been rolled into version 1.


2) All you need is this in server.xml:

 
  

You may comment out the sections about 8080 and 8443 as apache talks to tomcat 
through 8009.


3) If you insist on using mod_jk version 2, here are sample config files that 
worked for me:


In httpd.conf:

LoadModule jk2_module "/usr/local/apache/modules/mod_jk2.so"
JkSet config.file "/usr/local/apache/config/workers2.properties"
JkSet shm:file "/usr/local/apache/logs/shm.file"
JkSet shm:size 1048576
JkSet shm:disabled 0



In workers2.properties:

[channel.socket:server.domain.com:8009]
info=Ajp13 forwarding over socket
port=8009
host=server.domain.com
[ajp13:server.domain.com:8009]
channel=channel.socket:server.domain.com:8009
[uri:/*.jsp]
worker=ajp13:server.domain.com:8009



--
Lyndon Tiu

On Tue, 11 Oct 2005 18:22:21 -0500 tomcat-user@jakarta.apache.org wrote:
> I have read about 25 different websites on getting this setup. I have
> read through this list trying to find the answer I need. I have spent
> the last 2 days and soon 3rd day trying to get this working. I need
> Apache to forward port 80 and 443 requests to tomcat to 8080 and 8443. I
> am working on the non-ssl right now. I get an error in Apache error_log
> saying:
> [error] uriEnv.init() map to invalid worker /*.jsp-0
> ajp13:localhost:8009
> [error] uriEnv.init() map to invalid worker /patientC
> onnect-1 ajp13:localhost:8009
> 
> Let me give a bit of history and config files.
> This is running on SLES9 x86-64 version.
> Apache and tomcat and the connectors are from RPMs that came with SuSE.
> Everything is installed in SuSE default install location.
> 
> 
> 
> httpd.conf.local:
> 
> LoadModule jk2_module /usr/lib64/apache2/mod_jk2.so
> 
> 
> JkUriSet worker ajp13:localhost:8009
> 
> 
> 
> JkUriSet worker ajp13:localhost:8009
> 
> 
> 
> workers2.properties:
> 
> [logger]
> level=DEBUG
> 
> [config:]
> file=/etc/apache2/workers2.properties
> debug=0
> debugEnv=0
> 
> [uriMap:]
> info=Maps the requests. Options: debug
> debug=1
> 
> [shm]
> info=Scoreboard. Required for reconfiguration and status with
> multiprocess serve
> rs
> file=/usr/share/tomcat/logs/jk2.shm
> size=1048576
> debug=0
> disabled=0
> 
> [workerEnv:]
> info=Global server options
> timing=1
> debug=0
> 
> [status:]
> info=Status worker, displays runtime informations
> 
> [uri:patientconnect.truchart.com/jkstatus/*]
> info=Display status information and checks the config file for changes.
> group=status:
> 
> [channel.socket:localhost:8009]
> info=Ajp13 forwarding over socket
> 
> # Define the worker
> [ajp13:localhost:8009]
> channel=channel.socket:localhost:8009
> 
> [uri:patientconnect.truchart.com/patientConnect/*]
> info=patientConnect
> 
> 
> 
> Both the workers2.properties and the httpd.conf.local are located
> in /etc/apache2 directory.
> 
> In the /usr/share/tomcat/conf/ directory is the jk2.properties and the
> server.xml
> 
> jk2.properties:
> 
> ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
> ## WHEN YOU EDIT THE FILE.
> 
> ## COMMENTS WILL BE _LOST_
> 
> ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
> 
> # Set the desired handler list
> # handler.list=apr,request,channelJni
> #
> # Override the default port for the socketChannel
>  channelSocket.port=8009
> # Default:
> # channelUnix.file=${jkHome}/work/jk2.socket
> # Just to check if the the config  is working
> # shm.file=${jkHome}/work/jk2.shm
> 
> # In order to enable jni use any channelJni directive
> # channelJni.disabled = 0
> # And one of the following directives:
> 
> # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
> 
> 
> # If set to inprocess the mod_jk2 will Register natives itself
> # This will enable the starting of the Tomcat from mod_jk2
> # apr.jniModeSo=inprocess
> 
> 
> and the server.xml that was modified:
> 
> 
> 
> maxThreads="150" minSpareThreads="25"
> maxSpareThreads="75"
>enableLookups="false" redirectPort="8443"
> acceptCount="100"
>debug="0" connectionTimeout="2"
>disableUploadTimeout="true" />
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  enableLookups="false" redirectPort="8443" debug="0"
>protocol="AJP/1.3" />
> 
> 
> 
> 
> 
> 
> ...
> 
> 
>   directory="logs"  prefix="localhost_log." suffix=".txt"
> timestamp="true"/>
> 
> docBase="/usr/local/mediture/gateway_patient_connect/webapp"
> debug="
> 0"
>  reloadable="true" crossContext="true"/>
> reloadable="true" cr
> ossContext="true"/>
> 
> 
> 
> 
> Thank you for any help or direction you can place me. If you think I
> should have read something first then tell me to read it. I may have
> skipped over it or I may have read it. I have seen a lot of different
> ways of doing that same

RE: Hijacking the coyote connector

2005-10-11 Thread Caldarale, Charles R
> From: Dobbins, Michael G [mailto:[EMAIL PROTECTED] 
> Subject: Hijacking the coyote connector
> 
> My next attempt, I repackaged our connector to replace the
> org.apache.catalina.connector package and put that in the
> -Xbootclasspath

I don't think that's the right place.  -Xbootclasspath should be used
only to override or augment the jars in /jre/lib (e.g.,
rt.jar, jsse.jar), not classes that come out of Tomcat's server/lib.  I
suspect things ended up under the wrong classloader, making life
difficult for all concerned.  You will probably have to just replace
server/lib/catalina.jar with your modified version.

I don't see where className was ever a documented attribute for a
 element in 5.0 (although it apparently was in 4.1); it is a
valid attribute for  though.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



RE: Tomcat 5.5.9 bugs?

2005-10-11 Thread Niels Beekman
Hi,

 

Related to the Dreamweaver-issue: I have this problem too, after some
debugging I found that Dreamweaver does not correctly update the
lastmodified-timestamp on JSP-files when putting them on the server,
which obviously fools the JSP-compiler into thinking that nothing has
changed.

 

This is a known issue with MM and is described at the following URL,
fortunately they  provide a workaround too:

 

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=a3f38dcf#ti
mestamp

 

Good luck,

 

Niels



RE: tomcat 3.2.4

2005-10-11 Thread GB Developer
http://archive.apache.org/dist/jakarta/tomcat-3/archive/v3.2.4/


> -Original Message-
> From: Steve Souza [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 11, 2005 3:18 PM
> To: Tomcat Users List
> Subject: tomcat 3.2.4
> 
> 
> Hi folks,
> 
> The question is simple - we'd like to get the 3.2.4
> release of Tomcat, but do not see a download link on
> the Apache site.  Is it archived somewhere?  I know


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



Re: tomcat 3.2.4

2005-10-11 Thread Glen Mazza

http://jakarta.apache.org/tomcat/tomcat-3.2-doc/index.html should be 3.2.4.

Glen

Steve Souza wrote:

Hi folks,

I'm new to the list, so I apologize in advance for any
faux pas I may commit here!

The question is simple - we'd like to get the 3.2.4
release of Tomcat, but do not see a download link on
the Apache site.  Is it archived somewhere?  I know
it's old, but we haven't moved to the new architecture
yet.

Many many thanks!

Regards,
Steve

-
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: Mod_jk + Apache on RHEL3 gives 503 for jsp only

2005-10-11 Thread [EMAIL PROTECTED]

To answer some questions below:

Perfectly means it is our production tomcat server.  It performs all the
functions required and is accessed from the legacy webserver.

Getting images from the path http://webserver/PI/image.png.  We have no
direct access linked to tomcat instances on the their ports.

The Tomcat and Webserver will be on the same server.

JkShmFile seems to be for unix installs where this resides on RedHat
Linux EL3.  I can add it if it is required for linux.

Jkmount directives are not "new" but from a 4.1.24 Tomcat and Jk_mod
that was upgraded.  I will make the changes to be consistent with the
deployed version of Tomcat.

I have 4 workers setup.  1 points to a running 4.1.24 tomcat supporting
an application to be replaced soon I hope.  1 to a separate port on the
4.12.24 tomcat server for one specific application because I was asked
to set it up that way.  1 to the current production tomcat server.  And
one that is for testing and uses the same settings as the production but
I can edit and change as I need to make things work.

I am a bit frustrated as I have not done much to make things "break."  I
copied the config files and edited the httpd.conf to be consistent with
the legacy install.  This is the only part that does not work.

"If Apache's DocumentRoot does not correspond to Tomcat's appBase, then
any static files contained in the application will not be served by
Apache without some more Apache configuration changes."  Can you give me
an example of this?

-Original Message-
From: Mark Eggers [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 06, 2005 10:54 PM
To: Tomcat Users List
Subject: Re: Mod_jk + Apache on RHEL3 gives 503 for jsp only


--- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:

> I have jakarta-tomcat-5.5.9 installed and working
> properly on the new
> server.  It is perfectly accessible from the legacy
> web server.

By perfectly accessible you mean . . . ?

> The main page, home.jsp, loads fine in the servlet
> if no page is given.
> http://webserver/PI/  The home.jsp spawns a 503 if
> is in the URL.
> http://webserver/PI/home.jsp   I can successfully
> get images from the
> page from the tomcat instance.  It does not like the
> .jsp extension.

By successfully getting images, do you mean:

http://webserver/PI/image.png

or

http://tomcatserver:8080/PI/image.png

> I have watched in Ethereal as no traffic goes from
> the apache to the
> tomcat.
> I have tried using the loopback and local network
> address.

Why?  Is this Tomcat instance on the same server?

>
> #INSERT OF TOMCAT CONF PARAMETERS
> # Load mod_jk module
> # LoadModule jk_module modules/mod_jk.so
> LoadModule jk_module /etc/httpd/modules/mod_jk.so
>
> # Declare the module for 
> #AddModule mod_jk.c
>
> # Where to find workers.properties
> JkWorkersFile /etc/httpd/conf/workers.properties
>
> # Where to put jk logs
> JkLogFile /var/log/httpd/mod_jk.log
>
> # Set the jk log level [debug/error/info]
> JkLogLevel debug
>
> # Select the log format
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
>
> # JkOptions indicate to send SSL KEY SIZE,
> JkOptions +ForwardKeySize +ForwardURICompat
> -ForwardDirectories
>
> # JkRequestLogFormat set the request format
> JkRequestLogFormat "%w %V %T"
>

I don't see the specification for JkShmFile

> # Send servlet for context /examples to worker named
> worker1
> JkMount /examples/servlet/* worker1

The above should be:

JkMount /servlets-examples/servlet/* worker1

> JkMount /PI/* worker3
> #JkMount /PI/*.jsp worker3

Why are you using worker3 here?

> # Send JSPs for context /examples to worker named
> worker1
> JkMount /examples/*.jsp worker1

The above shoould be /jsp-examples/*.jsp worker1

> JkMount /journals/*.jsp worker1
>
> Worker Properties
> /etc/httpd/conf/workers.properties
> # Define some properties
> workers.apache_log=/var/log/httpd/
>
workers.tomcat_home=/usr/local/tomcat/jakarta-tomcat-5.5.9
> workers.java_home=/usr/bin/java
> ps=/
>
> #
> worker.list=worker1
>

According to the documentation this should contain a
comma separated list of all the workers.  However, if
you're going to the same Tomcat instance all the time,
you'll only need one worker definition

> # Set properties for worker1 (ajp13)
> worker.worker1.type=ajp13
> worker.worker1.host=172.20.1.19
> worker.worker1.port=8009
>

First of all, there should only be one worker list.
Second of all, why do you have multiple workers going
to the same host but different ports?  Do you have
multiple Tomcats running on this host?

> #
> worker.list=worker2
>
> # Set properties for worker2 (ajp13)
> worker.worker2.type=ajp13
> worker.worker2.host=172.20.1.19
> worker.worker2

Re: More helpful reporting of exceptions in JSPs

2005-10-11 Thread Tim Fennell
I certainly don't have a problem with that.  Obviously I'd rather  
have it in the main codebase - while I don't have a problem running a  
patched version of jasper, I'm sure that would freak out a good  
number of PHBs ;)  But since there is interest I'll clean up what I  
have, put it online and post a link here.  That should happen some  
time this evening.


-t

On Oct 11, 2005, at 2:01 PM, GB Developer wrote:

regardless how the commiters feel about it, are you willing to  
release your

patched source files? (So for example, I can compile and deploy them
myself?)   ;)  If so, I'd say a page on your wiki might be alright for
distro, with a link to the page sent to tomcat-user  ?

I'd be giving it a try about 10 minutes after you send out your  
email, since
I've often wondered about this feature. Usually right after digging  
through

the work directory for a generated java file.




-Original Message-
From: Tim Fennell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 11, 2005 12:15 PM
To: Tomcat Users List
Subject: Fwd: More helpful reporting of exceptions in JSPs


Apologies in advance for cross-posting this, but I sent this email
out to the tomcat-dev list a couple of days ago and have received no
replies at all...  I think this is quite  a useful feature, and I'm
wondering how best to go about contributing it.
Thanks

-Tim Fennell
http://stripes.mc4j.org

Begin forwarded message:



From: Tim Fennell <[EMAIL PROTECTED]>
Date: October 9, 2005 5:50:11 PM EDT
To: tomcat-dev@jakarta.apache.org
Subject: More helpful reporting of exceptions in JSPs
Reply-To: "Tomcat Developers List" 





At any rate, I have code that will do this now, and I think it'd be
a great productivity boost for anyone else developing JSPs on
Tomcat.  It amounts to small patches to two files.  The first is
org.apache.jasper.compiler.Compiler to make it hang on to


the parse


tree (pageNodes) if in development mode, and a getter to make this
accessible.  The second is to
org.apache.jasper.servlet.JspServletWrapper to do the grunt


work of


mapping a stack frame from the exception back to the line in the
JSP that it came from.




-
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: Virtual Hosting and SSL

2005-10-11 Thread Justin Jaynes
Strike that--I just found that documentation after
looking the hundredth time.  I guess we overlook what
we didn't know before, assuming it isn't what we
wanted to find--or something strange like that.

But I found it.  Thanks everyone.

Justin

--- Justin Jaynes <[EMAIL PROTECTED]>
wrote:

> I'll try... thanks so much for such a fast reply. 
> Is
> there any document about that feature on the tomcat
> apache site?
> 
> Justin
> 
> --- David Smith <[EMAIL PROTECTED]> wrote:
> 
> > Try address="192.168.56.32" or whatever IP you
> want
> > tomcat to bind to. 
> > The port attribute will do the same thing for
> > defining what port number
> > to bind to.
> > 
> > --David
> > 
> > Justin Jaynes wrote:
> > 
> > >I DID try, but there is no IP address attribute
> for
> > >connector elements. .. at least not in the
> > >documentation listed on the 5.5 documentation /
> > >configuration setup.
> > >
> > >How would I do it?  Can you please indicate the
> > >syntax?
> > >
> > >Thanks, Justin
> > >
> > >--- Hassan Schroeder <[EMAIL PROTECTED]>
> wrote:
> > >
> > >  
> > >
> > >>Justin Jaynes wrote:
> > >>
> > >>
> > >>>I am running tomcat 5.5.12 and need to host two
> > >>>  
> > >>>
> > >>sites,
> > >>
> > >>
> > >>>both with ssl.  
> > >>>  
> > >>>
> > >>>Can you set up two connectors (one port 443 and
> > >>>  
> > >>>
> > >>one
> > >>
> > >>
> > >>>port 80) for one specific ip address and
> another
> > >>>  
> > >>>
> > >>set
> > >>
> > >>
> > >>>of connectors for another ip address? 
> > >>>  
> > >>>
> > >>Yes. :-)
> > >>
> > >>That's exactly what you need to do. Try it, ask
> if
> > >>you run into a
> > >>specific problem...
> > >>
> > >>-- 
> > >>Hassan Schroeder -
> > >>[EMAIL PROTECTED]
> > >>Webtuitive Design ===  (+1) 408-938-0567   ===
> > >>http://webtuitive.com
> > >>
> > >>  dream.  code.
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> >
>
>-
> > >  
> > >
> > >>To unsubscribe, e-mail:
> > >>[EMAIL PROTECTED]
> > >>For additional commands, e-mail:
> > >>[EMAIL PROTECTED]
> > >>
> > >>
> > >>
> > >>
> > >
> > >
> > >
> > >   
> > >   
> > >__ 
> > >Yahoo! Mail - PC Magazine Editors' Choice 2005 
> > >http://mail.yahoo.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]
> > 
> > 
> 
> 
> 
>   
> __ 
> Yahoo! Music Unlimited 
> Access over 1 million songs. Try it free.
> http://music.yahoo.com/unlimited/
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/

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



Re: Virtual Hosting and SSL

2005-10-11 Thread Hassan Schroeder
Justin Jaynes wrote:
> I DID try, but there is no IP address attribute for
> connector elements. .. at least not in the
> documentation listed on the 5.5 documentation /
> configuration setup.

On this page??



Look again :-)

-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



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



Re: Virtual Hosting and SSL

2005-10-11 Thread Justin Jaynes
I'll try... thanks so much for such a fast reply.  Is
there any document about that feature on the tomcat
apache site?

Justin

--- David Smith <[EMAIL PROTECTED]> wrote:

> Try address="192.168.56.32" or whatever IP you want
> tomcat to bind to. 
> The port attribute will do the same thing for
> defining what port number
> to bind to.
> 
> --David
> 
> Justin Jaynes wrote:
> 
> >I DID try, but there is no IP address attribute for
> >connector elements. .. at least not in the
> >documentation listed on the 5.5 documentation /
> >configuration setup.
> >
> >How would I do it?  Can you please indicate the
> >syntax?
> >
> >Thanks, Justin
> >
> >--- Hassan Schroeder <[EMAIL PROTECTED]> wrote:
> >
> >  
> >
> >>Justin Jaynes wrote:
> >>
> >>
> >>>I am running tomcat 5.5.12 and need to host two
> >>>  
> >>>
> >>sites,
> >>
> >>
> >>>both with ssl.  
> >>>  
> >>>
> >>>Can you set up two connectors (one port 443 and
> >>>  
> >>>
> >>one
> >>
> >>
> >>>port 80) for one specific ip address and another
> >>>  
> >>>
> >>set
> >>
> >>
> >>>of connectors for another ip address? 
> >>>  
> >>>
> >>Yes. :-)
> >>
> >>That's exactly what you need to do. Try it, ask if
> >>you run into a
> >>specific problem...
> >>
> >>-- 
> >>Hassan Schroeder -
> >>[EMAIL PROTECTED]
> >>Webtuitive Design ===  (+1) 408-938-0567   ===
> >>http://webtuitive.com
> >>
> >>  dream.  code.
> >>
> >>
> >>
> >>
> >>
> >>
>
>-
> >  
> >
> >>To unsubscribe, e-mail:
> >>[EMAIL PROTECTED]
> >>For additional commands, e-mail:
> >>[EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >
> >
> > 
> > 
> >__ 
> >Yahoo! Mail - PC Magazine Editors' Choice 2005 
> >http://mail.yahoo.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]
> 
> 




__ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/

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



Re: Virtual Hosting and SSL

2005-10-11 Thread David Smith
Try address="192.168.56.32" or whatever IP you want tomcat to bind to. 
The port attribute will do the same thing for defining what port number
to bind to.

--David

Justin Jaynes wrote:

>I DID try, but there is no IP address attribute for
>connector elements. .. at least not in the
>documentation listed on the 5.5 documentation /
>configuration setup.
>
>How would I do it?  Can you please indicate the
>syntax?
>
>Thanks, Justin
>
>--- Hassan Schroeder <[EMAIL PROTECTED]> wrote:
>
>  
>
>>Justin Jaynes wrote:
>>
>>
>>>I am running tomcat 5.5.12 and need to host two
>>>  
>>>
>>sites,
>>
>>
>>>both with ssl.  
>>>  
>>>
>>>Can you set up two connectors (one port 443 and
>>>  
>>>
>>one
>>
>>
>>>port 80) for one specific ip address and another
>>>  
>>>
>>set
>>
>>
>>>of connectors for another ip address? 
>>>  
>>>
>>Yes. :-)
>>
>>That's exactly what you need to do. Try it, ask if
>>you run into a
>>specific problem...
>>
>>-- 
>>Hassan Schroeder -
>>[EMAIL PROTECTED]
>>Webtuitive Design ===  (+1) 408-938-0567   ===
>>http://webtuitive.com
>>
>>  dream.  code.
>>
>>
>>
>>
>>
>>
>-
>  
>
>>To unsubscribe, e-mail:
>>[EMAIL PROTECTED]
>>For additional commands, e-mail:
>>[EMAIL PROTECTED]
>>
>>
>>
>>
>
>
>
>   
>   
>__ 
>Yahoo! Mail - PC Magazine Editors' Choice 2005 
>http://mail.yahoo.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: JSP Newbie seeking guidance

2005-10-11 Thread Justin Jaynes
John,

If you need help with setting up the environment I
described (and BOY could I have used help my first
time--mostly I tutored myself and failed and failed
before succeeding) you can ask me and I will know at
least where to point you for relevant information.  I
assume you have done your own building of software
packages from source like PostgreSQL, but if you
haven't, that alone can feel like a daunting
task--really, its quite simple.  Just email me
directly and I'll fill you in as much as I can.

Justin

--- John Geiger <[EMAIL PROTECTED]> wrote:

> Not at all, Justin. Thank you, thank you!
> 
> Also, thank you, Mark Eggers.
> 
> As I am so new to this, I run the risk of veering
> off-topic, which I realize
> is inappropriate. That said, I will get my newbie
> noggin back into the
> woodshed so that I may be true to this list.
> 
> Best wishes,
> John G.
> 
> 
> on 10/10/05 10:11 PM, Justin Jaynes at
> [EMAIL PROTECTED] wrote:
> 
> > Justin
> > --with more to say than you probably wanted to
> here
> 
> ***
> John Geiger
> Fox Parlor Design
> Pho 415-821-7100
> Fax 415-821-7102
> Cell 415-307-2554
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 





__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



Re: Virtual Hosting and SSL

2005-10-11 Thread Justin Jaynes
I DID try, but there is no IP address attribute for
connector elements. .. at least not in the
documentation listed on the 5.5 documentation /
configuration setup.

How would I do it?  Can you please indicate the
syntax?

Thanks, Justin

--- Hassan Schroeder <[EMAIL PROTECTED]> wrote:

> Justin Jaynes wrote:
> > I am running tomcat 5.5.12 and need to host two
> sites,
> > both with ssl.  
> 
> > Can you set up two connectors (one port 443 and
> one
> > port 80) for one specific ip address and another
> set
> > of connectors for another ip address? 
> 
> Yes. :-)
> 
> That's exactly what you need to do. Try it, ask if
> you run into a
> specific problem...
> 
> -- 
> Hassan Schroeder -
> [EMAIL PROTECTED]
> Webtuitive Design ===  (+1) 408-938-0567   ===
> http://webtuitive.com
> 
>   dream.  code.
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 





__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



Re: More helpful reporting of exceptions in JSPs

2005-10-11 Thread Leon Rosenberg
could you post your patch for download anywhere? If you need webspace,
I can provide you some. I would find the patch extremely helpful, and
would love to have it in my development tomcat, as soon as possible.

thanx
leon

On 10/11/05, Tim Fennell <[EMAIL PROTECTED]> wrote:
> Apologies in advance for cross-posting this, but I sent this email
> out to the tomcat-dev list a couple of days ago and have received no
> replies at all...  I think this is quite  a useful feature, and I'm
> wondering how best to go about contributing it.
> Thanks
>
> -Tim Fennell
> http://stripes.mc4j.org
>
> Begin forwarded message:
>
> > From: Tim Fennell <[EMAIL PROTECTED]>
> > Date: October 9, 2005 5:50:11 PM EDT
> > To: tomcat-dev@jakarta.apache.org
> > Subject: More helpful reporting of exceptions in JSPs
> > Reply-To: "Tomcat Developers List" 
> >
> >
> > Hi,
> >
> > I'll apologize in advance if this is the wrong place to post this,
> > or if this has been covered before.  I had a good read through the
> > Tomcat docs and faqs, searched the bug database, and googled around
> > on the topic, but could not really find anything.
> >
> > I've been using Tomcat for a while, and in general have found it as
> > good a servlet/JSP container as any I've used.  With one exception
> > (no pun intended).  A long time ago I started out using WebLogic,
> > and the one thing that I loved about WebLogic, that is missing from
> > Tomcat, is that when an Exception occurred in a JSP it would tell
> > you what line number *in the JSP* generated the exception, and show
> > you a snippet of code around the offending line.
> >
> > For quite a while I'd figured that the way Tomcat was built
> > prevented this from being easy/possible, but I didn't look.  Well,
> > I finally got around to looking, and it only took me a couple of
> > hours to implement it.  Which makes me wonder if there is some
> > other reason that this isn't done in Tomcat/Jasper?
> >
> > At any rate, I have code that will do this now, and I think it'd be
> > a great productivity boost for anyone else developing JSPs on
> > Tomcat.  It amounts to small patches to two files.  The first is
> > org.apache.jasper.compiler.Compiler to make it hang on to the parse
> > tree (pageNodes) if in development mode, and a getter to make this
> > accessible.  The second is to
> > org.apache.jasper.servlet.JspServletWrapper to do the grunt work of
> > mapping a stack frame from the exception back to the line in the
> > JSP that it came from.
> >
> > It's all coded up to function only when in development mode, and is
> > reasonably well commented.  Would any of the committers be
> > interested in taking a look at this if I put together a patch and
> > posted it here?  Cheers,
> >
> > -Tim Fennell
> > http://stripes.mc4j.org
> >
> > -
> > 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: More helpful reporting of exceptions in JSPs

2005-10-11 Thread GB Developer
regardless how the commiters feel about it, are you willing to release your
patched source files? (So for example, I can compile and deploy them
myself?)   ;)  If so, I'd say a page on your wiki might be alright for
distro, with a link to the page sent to tomcat-user  ?
 
I'd be giving it a try about 10 minutes after you send out your email, since
I've often wondered about this feature. Usually right after digging through
the work directory for a generated java file. 


> -Original Message-
> From: Tim Fennell [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, October 11, 2005 12:15 PM
> To: Tomcat Users List
> Subject: Fwd: More helpful reporting of exceptions in JSPs
> 
> 
> Apologies in advance for cross-posting this, but I sent this email  
> out to the tomcat-dev list a couple of days ago and have received no  
> replies at all...  I think this is quite  a useful feature, and I'm  
> wondering how best to go about contributing it.
> Thanks
> 
> -Tim Fennell
> http://stripes.mc4j.org
> 
> Begin forwarded message:
> 
> > From: Tim Fennell <[EMAIL PROTECTED]>
> > Date: October 9, 2005 5:50:11 PM EDT
> > To: tomcat-dev@jakarta.apache.org
> > Subject: More helpful reporting of exceptions in JSPs
> > Reply-To: "Tomcat Developers List" 

> > At any rate, I have code that will do this now, and I think it'd be
> > a great productivity boost for anyone else developing JSPs on  
> > Tomcat.  It amounts to small patches to two files.  The first is  
> > org.apache.jasper.compiler.Compiler to make it hang on to 
> the parse  
> > tree (pageNodes) if in development mode, and a getter to make this  
> > accessible.  The second is to  
> > org.apache.jasper.servlet.JspServletWrapper to do the grunt 
> work of  
> > mapping a stack frame from the exception back to the line in the  
> > JSP that it came from.


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



RE: manager outofmemory exception

2005-10-11 Thread Enrique Rodriguez
Thanks, i will try to set maxpermsize to 256m

Regards, Enrique.


El mar, 11-10-2005 a las 17:11 +0100, Peter Crowther escribió:
> > From: Enrique Rodriguez [mailto:[EMAIL PROTECTED] 
> > What i don't understand is that I "sometimes" get OutOfMemoryException
> > when i upload new aplitications to the tomcat using the manager.
> > 
> > I Profiled my aplication and i don't have any memory issue.
> 
> Just to check: Did your profiling include looking at PermGen?
> 
> > Is this a manager bug? Why the Total Memory is never higger 
> > than 128 MB but I get OutOfMemoryExceptions?
> 
> Java always loads classes into the permanent generation (PermGen) and
> never (to my knowledge) reclaims that space, even when you unload
> classes.  So you may be running out of PermGen space.  You may wish to
> increase that.  A search on a Tomcat archive for 'Permgen' should give
> you plenty more information!
> 
>   - Peter
> 
> -
> 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: Fwd: More helpful reporting of exceptions in JSPs

2005-10-11 Thread Frank W. Zammetti
Wow, you are my hero!  I've always missed that from the Weblogic days!  I
for one would love to see this added.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

On Tue, October 11, 2005 1:15 pm, Tim Fennell said:
> Apologies in advance for cross-posting this, but I sent this email
> out to the tomcat-dev list a couple of days ago and have received no
> replies at all...  I think this is quite  a useful feature, and I'm
> wondering how best to go about contributing it.
> Thanks
>
> -Tim Fennell
> http://stripes.mc4j.org
>
> Begin forwarded message:
>
>> From: Tim Fennell <[EMAIL PROTECTED]>
>> Date: October 9, 2005 5:50:11 PM EDT
>> To: tomcat-dev@jakarta.apache.org
>> Subject: More helpful reporting of exceptions in JSPs
>> Reply-To: "Tomcat Developers List" 
>>
>>
>> Hi,
>>
>> I'll apologize in advance if this is the wrong place to post this,
>> or if this has been covered before.  I had a good read through the
>> Tomcat docs and faqs, searched the bug database, and googled around
>> on the topic, but could not really find anything.
>>
>> I've been using Tomcat for a while, and in general have found it as
>> good a servlet/JSP container as any I've used.  With one exception
>> (no pun intended).  A long time ago I started out using WebLogic,
>> and the one thing that I loved about WebLogic, that is missing from
>> Tomcat, is that when an Exception occurred in a JSP it would tell
>> you what line number *in the JSP* generated the exception, and show
>> you a snippet of code around the offending line.
>>
>> For quite a while I'd figured that the way Tomcat was built
>> prevented this from being easy/possible, but I didn't look.  Well,
>> I finally got around to looking, and it only took me a couple of
>> hours to implement it.  Which makes me wonder if there is some
>> other reason that this isn't done in Tomcat/Jasper?
>>
>> At any rate, I have code that will do this now, and I think it'd be
>> a great productivity boost for anyone else developing JSPs on
>> Tomcat.  It amounts to small patches to two files.  The first is
>> org.apache.jasper.compiler.Compiler to make it hang on to the parse
>> tree (pageNodes) if in development mode, and a getter to make this
>> accessible.  The second is to
>> org.apache.jasper.servlet.JspServletWrapper to do the grunt work of
>> mapping a stack frame from the exception back to the line in the
>> JSP that it came from.
>>
>> It's all coded up to function only when in development mode, and is
>> reasonably well commented.  Would any of the committers be
>> interested in taking a look at this if I put together a patch and
>> posted it here?  Cheers,
>>
>> -Tim Fennell
>> http://stripes.mc4j.org
>>
>> -
>> 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: Form Based Authentication

2005-10-11 Thread Frank W. Zammetti
Although we are working in a Websphere/LDAP environment, we had the same
requirement as you, and we managed to solve it.

What we did (and I'm going from fairly distant memories, so hopefully I'm
at least close to right) is this... user logs on.  We have a filter that
checks for password expired/reset (both a forced PW change) via flags set
in a previous filter (values taken from LDAP) and redirects to the change
screen if applicable.  This all of course happens only after a
"successful" logon, i.e., user entered valid credentials, including
expired password already.  We destroy the session before leaving that
filter.  Password is changed, all without creating a new session along the
way.  Once it is changed, we redirect back through the logon process as
before.  We decided that it was *better* to make the user log on again
because it proves they remember the password they entered 2 seconds ago :)

I suppose if I had to allow that automatic authentication, I would NOT
destroy the session and instead just redirect to the first protected
resource of the app from the change PW screen.  Since the user was let in
the first time around, they are really authenticated already.  In essence,
the filter that catches that forced PW change flag is acting like the
container, intercepting all protected requests and redirecting to a change
PW screen.  If you did it smartly you should be able to grab what resource
was requested when the filter fired so as to not have to hardcode where to
go to after that forced PW screen is finished.

Frank


-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

On Tue, October 11, 2005 12:24 pm, Peter Bright said:
>
>> -Original Message-
>> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
>> Sent: 11 October 2005 17:23
>> To: Tomcat Users List
>> Subject: RE: Form Based Authentication
>>
>> > From: Peter Bright [mailto:[EMAIL PROTECTED]
>> > Subject: RE: Form Based Authentication
>> >
>> > > >
>> > > > It's point (c) that's proving problematic; there's no way to
>> > > > reauthenticate that I can see.
>> > >
>> > > What happens if you just invalidate the existing session?
>> >
>> > The user gets logged out.
>>
>> Exactly - and they then must reauthenticate with the updated password.
>> Isn't that what you want?
>>
> No, sorry, it was unclear. I want them to be reauthenticat/ed/ with the
> new credentials /automatically/.  Without making them have to
> reauthenticate /by hand/.
>
> ***
> The information contained in this electronic message may be confidential
> and/or privileged. Any unauthorized use, dissemination, distribution, or
> reproduction is strictly prohibited. If you have received this
> communication in error, please contact the sender by reply email and
> destroy all copies of the original message.
> ***
>
>
> -
> 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: JSP Newbie seeking guidance

2005-10-11 Thread John Geiger
Not at all, Justin. Thank you, thank you!

Also, thank you, Mark Eggers.

As I am so new to this, I run the risk of veering off-topic, which I realize
is inappropriate. That said, I will get my newbie noggin back into the
woodshed so that I may be true to this list.

Best wishes,
John G.


on 10/10/05 10:11 PM, Justin Jaynes at [EMAIL PROTECTED] wrote:

> Justin
> --with more to say than you probably wanted to here

***
John Geiger
Fox Parlor Design
Pho 415-821-7100
Fax 415-821-7102
Cell 415-307-2554



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



RE: Problems with graphics on Tomcat 5.5.9 OK!!! BUT.....

2005-10-11 Thread Mauricio Fernandez A.
I know the best way to set up this is by using -Djava.awt.headless=true but
I had been tryin almost everything. The problem is my server is a remote
rack server so it doesn´t have any display hw and as the -Djava... option
seems desn´t work for me i am trying to use the Xvfb.

By the way, could it be ok reboot the server in level 5?, does it have
sense?

Mauricio Fernández A.
Ingeniero de Sistemas
U. Autónoma de Manizales

-Mensaje original-
De: David Delbecq [mailto:[EMAIL PROTECTED]
Enviado el: martes, 11 octubre, 2005 16:50
Para: Tomcat Users List
Asunto: Re: Problems with graphics on Tomcat 5.5.9 OK!!! BUT.


Hello, if, like i suppose from your various errors, jfreechart require
awt/swing api and do draw on it,
you need to run the tomcat server inside a X server, not only do you
need to have fonts
installed and corresponding X libraries (like your link suggest was
problem), you also need to
to have X server running and DISPLAY envirronement variable set accordingly.

I would first suggest you start tomcat with
CATALINA_OPT="-Djava.awt.headless=true"
If, like i suppose will be the case, you get HeadlessExceptions when
running like this, this mean
you definitly need to run tomcat server inside a X environment.

regards
David Delbecq
Mauricio Fernandez A. a écrit :

>Thanks for your help
>
>Now I have reinstalled the XFree86 completly including the Xvfb and I can
>start it (XVfb), to test if it is running I execute a xclock and I don´t
get
>any error, so I think it is running ok
>
>However, now, when I try to get the jsp wich must show a graphic I get
>another different error:
>
>
>java.lang.NoClassDefFoundError
>   org.jfree.chart.ChartFactory.createBarChart3D(ChartFactory.java:764)
>
com.Prueba.comandos.Graficador2.crearBarChart3DVertical(Graficador2.java:19
>6)
>
org.apache.jsp.jsp.grafica_jsp._jspService(org.apache.jsp.jsp.grafica_jsp:1
>67)
>   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>
>
>And in another web app in the same server the error is:
>
>
>java.lang.NoClassDefFoundError
>   java.lang.Class.forName0(Native Method)
>   java.lang.Class.forName(Class.java:164)
>   java.awt.Toolkit$2.run(Toolkit.java:821)
>   java.security.AccessController.doPrivileged(Native Method)
>   java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
>   com.actelion.control.Graficador.asignarBackground(Graficador.java:97)
>   
> com.actelion.control.Graficador.crearBarChartVertical(Graficador.java:524)
>
org.apache.jsp.jsp.graficaVisitasMedicasEspecialidadCategoria_jsp._jspServi
>ce(org.apache.jsp.jsp.graficaVisitasMedicasEspecialidadCategoria_jsp:198)
>   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>
>
>So having in mind that before Xvfb Installation the error was:
>
>http://www.jfree.org/phpBB2/viewtopic.php?t=14319
>
>I think I am just with another different problem.
>
>Can somebody understand this?
>
>Thanks
>
>Mauricio Fernandez
>
>
>
>
>
>>>
>>>
>>>
>
>Hi Mauricio,
>
>I had the same problem. The solution is as follows:
>
>1. Download and install a virtual frame buffer
>   Where to find and how to install:
>
http://testdrive.mapinfo.com/TECHSUPP/MIPROD.NSF/0/a832a07452b9a0e385256f
>8000760f68?OpenDocument
>
>2. Do not forget to create a script to start xvfb - you will find the
script
>under the link above
>
>3. Edit the startup.sh or catalina.sh as follows:
>
>#export DISPLAY
>export DISPLAY=:0.0
>export CATALINA_OPTS="-Djava.awt.headless=false"
>
>4. Start xvfb
>
>5. Restart Tomcat
>
>
>
>Mit freundlichem Gruß / kind regards
>
>Aliye Edao
>
>
>
>-
>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: manager webapp question

2005-10-11 Thread Marcus Franke
On Tue, Oct 11, 2005 at 05:47:00PM +0200, Marcus Franke wrote:
> On Tue, Oct 11, 2005 at 05:13:33PM +0200, Marcus Franke wrote:
> > On Tue, Oct 11, 2005 at 04:00:24PM +0200, Marcus Franke wrote:
> > >
> > > Can this be done? And if yes, what do I have to do?
> > > 
> >  
> > Hmm, I guess I can answer that question by myself. If I use 
> > vhosts in tomcat and I have just the manager and the normal
> > webapp in that one vhost will I see more than one webapp?
> > 
> 
> Hmm, just tried the config on my local test server and only in the
> first host I can reach the /manager/html pages, in the second host
> I created there was no manager, just the one webapp I configured
> inside the host context..
> 

Ok, 

made a mistake, forgot to copy over the manager.xml file vom
CATALINA_HOME/conf/Catalina/localhost/ to my new virtual host.

Have now a manager webapp in both the default vhost "localhost"
and my vhost "test.local" but both managers can see all
installed webapps :(

Did not expected to see them there..


Regards,
Marcus

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



Re: Continuing Frustration and Misery with Deployer

2005-10-11 Thread Glen Mazza
What happens if you deploy using the Tomcat manager application?  Same 
error or doesn't occur then?  This may help zero in on the problem.


Glen

Allistair Crossley wrote:

Hi List,
 
Honestly, I wish Tomcat web application deployment would be easier/smarter. To pre-empt certain list members from telling me it's my fault, I can assure you my WAR itself is totally 100% no doubts valid. 
 
Perhaps it is my method of deploying that is causing the issue, I don't know. I am attempting to use the Tomcat Client Deployer (the Ant script that comes with deployer).
 
I use it to compile the WAR and now want to deploy it to a waiting Tomcat. I ensured my Tomcat webapps folder was wiped and the conf/Catalina/localhost had no context configuration files.
 
My WAR contains a META-INF/context.xml for deploying the context configuration.
 
After I compile my WAR with Deployer, I call 
 
C:\apache-tomcat-5.5.12-deployer>ant -Dserver=intratest deploy

Buildfile: build.xml
 
deploy:

   [deploy] OK - Deployed application at context path /ROOT
 
So it's deployed OK. 
 
I wait 5 minutes and then put a request into Tomcat. 404. Why? Because it failed to start the context which in a nutshell is all I ever get when deploying from WARs.
 
My WAR has been exploded fully which is at least something.
 
The logs reveal:
 
2005-10-07 16:18:29,882 -  WARN (org.apache.catalina.startup.HostConfig:597) - A docBase D:\jakarta-tomcat\webapps\ROOT inside the host appBase has been specified, and will be ignored

2005-10-07 16:18:30,163 - ERROR (org.apache.catalina.core.StandardContext:3796) 
- Error starting static Resources
java.lang.IllegalArgumentException: Document base 
D:\jakarta-tomcat\webapps\ROOT does not exist or is not a readable directory
 at 
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:140)
 at 
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3777)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3948)
 at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
 at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:603)
 at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
 at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
 at org.apache.catalina.core.StandardService.start(StandardService.java:450)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:680)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
 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:585)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2005-10-07 16:18:30,163 - ERROR (org.apache.catalina.core.StandardContext:3949) 
- Error in resourceStart()
2005-10-07 16:18:30,195 - ERROR (org.apache.catalina.core.StandardContext:4100) 
- Error getConfigured
2005-10-07 16:18:30,195 - ERROR (org.apache.catalina.core.StandardContext:4153) 
- Context [] startup failed due to previous errors
2005-10-07 16:18:30,195 -  INFO (org.apache.catalina.core.StandardContext:4250) 
- Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/] 
has not been started
 
It is not clear if this exception is thrown at the time when the WAR has not been exploded and of course ROOT will not exist.
 
My META-INF/context.xml has



Does nobody else have issues with using the Deployer? Is it just me having all this bad luck? Honestly I am at my wits end with this deployment. I am fed up with manually having to deploy files to our Tomcat servers, exploding them myself and then restarting Tomcat. 


When will Deployer actually work?

Kindest, frustrated, Allistair.




 
---

QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
  
Disclaimer:  The information contained within this e-mail is confidential and may be privileged. This email is intended so

Re: JSP Newbie seeking guidance

2005-10-11 Thread Glen Mazza

Justin Jaynes wrote:


I would HIGHLY recommend using SuSE Linux 10 which can
be purchased or download from Novell directly at
suse.com.  Also, see the openSuSE project (essentially
the open source community effort half of the
SuSE/novell team).

I used to run RedHat but was disappointed in the drop
to Fedora.  I tried SuSE a few years ago and have
never looked back.  So easy to install and configure. 
The YaST systems management tool is amazing.  You can

still do everything the manual way (and I do
sometimes).  But the firewall is easy and strong, the
package management is simple, the install resizes
partitions (even NTFS).  Just so many highly polished
surfaces there.  Try SuSE and see if you ever go back.

I have run tomcat and SuSE in production for over a
year and not had a problem and am now in the process
of upgrading my production server to SuSE 10 and
tomcat 5.5.12.  So far so good.  It's all working in
my development area.  The improvements in 5.5.12 are
EXCELLENT.  But there are significant changes in how
you set up the server.xml file, so read up on the 5.5
doc page.  I had previously only been using 5.0.x. 
ALso, I had some glitchy problems with 5.5.9.  No

reason to download it now anyhow, since 5.5.12 is
stable release.

I also recommend PostgreSQL 8.0 from postgresql.org if
you need database (as i imagine you must) (open source
and fully ansiSQL standard and RDBMS compliant, unlike
mySQL --don't yell at me for saying so, please-- i
know how much many people love mySQL.

You have to build Postgresql from source on SuSE 10
since no rpms are out in the combination of those
versions of SuSE and PGSQL.  I tired to use older
RPMS--not a good idea.  But the build and install went
perfectly.  Be sure you have the proper dev packages
installed before you try.  If not, the documentation
tells all you need to know.

PostgreSQL 8.0, Tomcat 5.5.12, and SuSE 10 are real
winners.  I have had --no-- problems with the past
versions, and these new versions seem up to par or
better.

I LOVE SuSE 10.0 for my desktop environment/school
computing/web surfing/DVD watching(i use KDE) and run
everything just described on my Dell Inspiron 6000
notebook.  That's my developemnt envrionment. 
Obviously the combination of KDE and the servers on a
notebook are no match for my production environment. 
but I must say, my notebook and the software on it do

all I ever ask them to--school work, web surfing,
large SQL routines, JVM, Tomcat--and a fair bit of
graphics design.  All on open source software.  What a
wonderful world we live in.  (The DVD's I run on XINE,
which I had to build, since XINE is stripped down for
leagal reasons in SuSE 10, but the build installed
great and runs with no problem just by typing xine in
KDE).

Justin
--with more to say than you probably wanted to here



By no means--useful to me as well.  Thanks for sharing.

Glen


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



RE: Form Based Authentication

2005-10-11 Thread Peter Bright

> -Original Message-
> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
> Sent: 11 October 2005 17:23
> To: Tomcat Users List
> Subject: RE: Form Based Authentication
> 
> > From: Peter Bright [mailto:[EMAIL PROTECTED]
> > Subject: RE: Form Based Authentication
> > 
> > > >  
> > > > It's point (c) that's proving problematic; there's no way to 
> > > > reauthenticate that I can see.
> > > 
> > > What happens if you just invalidate the existing session?
> > 
> > The user gets logged out.
> 
> Exactly - and they then must reauthenticate with the updated password.
> Isn't that what you want?
> 
No, sorry, it was unclear. I want them to be reauthenticat/ed/ with the
new credentials /automatically/.  Without making them have to
reauthenticate /by hand/.

***
The information contained in this electronic message may be confidential and/or 
privileged. Any unauthorized use, dissemination, distribution, or reproduction 
is strictly prohibited. If you have received this communication in error, 
please contact the sender by reply email and destroy all copies of the original 
message.
***


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



RE: Form Based Authentication

2005-10-11 Thread Caldarale, Charles R
> From: Peter Bright [mailto:[EMAIL PROTECTED] 
> Subject: RE: Form Based Authentication
> 
> > >  
> > > It's point (c) that's proving problematic; there's no way to 
> > > reauthenticate that I can see.
> > 
> > What happens if you just invalidate the existing session?
> 
> The user gets logged out.

Exactly - and they then must reauthenticate with the updated password.
Isn't that what you want?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



RE: Form Based Authentication

2005-10-11 Thread Peter Bright

> -Original Message-
> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
> Sent: 11 October 2005 17:18
> To: Tomcat Users List
> Subject: RE: Form Based Authentication
> 
> > From: Peter Bright [mailto:[EMAIL PROTECTED]
> > Subject: Form Based Authentication
> >  
> > It's point (c) that's proving problematic; there's no way to 
> > reauthenticate that I can see.
> 
> What happens if you just invalidate the existing session?
> 

The user gets logged out.

***
The information contained in this electronic message may be confidential and/or 
privileged. Any unauthorized use, dissemination, distribution, or reproduction 
is strictly prohibited. If you have received this communication in error, 
please contact the sender by reply email and destroy all copies of the original 
message.
***


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



RE: Form Based Authentication

2005-10-11 Thread Caldarale, Charles R
> From: Peter Bright [mailto:[EMAIL PROTECTED] 
> Subject: Form Based Authentication
>  
> It's point (c) that's proving problematic; there's no way to
> reauthenticate that I can see.

What happens if you just invalidate the existing session?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



RE: manager outofmemory exception

2005-10-11 Thread Caldarale, Charles R
> From: Enrique Rodriguez [mailto:[EMAIL PROTECTED] 
> Subject: manager outofmemory exception
> 
> What i don't understand is that I "sometimes" get OutOfMemoryException
> when i upload new aplitications to the tomcat using the manager.

Search the archives - this comes up frequently.  Assuming you're using a
HotSpot JVM (Sun 1.4 or later), you're probably running out of PermGen
space, where all the instances of java.lang.Class (among other things)
are stored.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: manager outofmemory exception

2005-10-11 Thread Tim Funk

http://jakarta.apache.org/tomcat/faq/memory.html#why

-Tim

Enrique Rodriguez wrote:


I know this is a very common issue but i want to be sure about it.

I have 5 tomcats on a 8Gb RAM machine. The number of applications
installed on tomcats are 5 to 15. All the tomcat run with -Xms128M
-Xmx512M but the manager aplication never show JVM memory higger than
128

This is the JVM memory state for the tomcat with 15 application: 


Free memory: 73.94 MB Total memory: 128.62 MB Max memory: 510.37 MB


What i don't understand is that I "sometimes" get OutOfMemoryException
when i upload new aplitications to the tomcat using the manager.

I Profiled my aplication and i don't have any memory issue.

Is this a manager bug? Why the Total Memory is never higger than 128 MB
but I get OutOfMemoryExceptions?
 


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



RE: manager outofmemory exception

2005-10-11 Thread Peter Crowther
> From: Enrique Rodriguez [mailto:[EMAIL PROTECTED] 
> What i don't understand is that I "sometimes" get OutOfMemoryException
> when i upload new aplitications to the tomcat using the manager.
> 
> I Profiled my aplication and i don't have any memory issue.

Just to check: Did your profiling include looking at PermGen?

> Is this a manager bug? Why the Total Memory is never higger 
> than 128 MB but I get OutOfMemoryExceptions?

Java always loads classes into the permanent generation (PermGen) and
never (to my knowledge) reclaims that space, even when you unload
classes.  So you may be running out of PermGen space.  You may wish to
increase that.  A search on a Tomcat archive for 'Permgen' should give
you plenty more information!

- Peter

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



Re: manager webapp question

2005-10-11 Thread Marcus Franke
On Tue, Oct 11, 2005 at 05:13:33PM +0200, Marcus Franke wrote:
> On Tue, Oct 11, 2005 at 04:00:24PM +0200, Marcus Franke wrote:
> >
> > Can this be done? And if yes, what do I have to do?
> > 
>  
> Hmm, I guess I can answer that question by myself. If I use 
> vhosts in tomcat and I have just the manager and the normal
> webapp in that one vhost will I see more than one webapp?
> 

Hmm, just tried the config on my local test server and only in the
first host I can reach the /manager/html pages, in the second host
I created there was no manager, just the one webapp I configured
inside the host context..


Regards,
Marcus

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



Re: manager webapp question

2005-10-11 Thread Marcus Franke
On Tue, Oct 11, 2005 at 04:00:24PM +0200, Marcus Franke wrote:
> Hello,
>
> I have a tomcat server which serves some webapps for different purposes.
>
> I now would like to have another instance of the the manager webapp just
> for one of the webapps on this server, that another person can use the
> manager webapp to administer this one special webapp and not
> all the others, too.
>
> so I have normal /manager/html and I would like to have something
> like
>
> /web1/manager/html that is capable of adminstering web1
>
> Can this be done? And if yes, what do I have to do?
> 
 
Hmm, I guess I can answer that question by myself. If I use 
vhosts in tomcat and I have just the manager and the normal
webapp in that one vhost will I see more than one webapp?

And how do I secure access to that special vhosts manager
webapp? As the "normal" tomcat-users.xml users with the manager
role would be able to login into every manager on that
tomcat server?



Marcus

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



Re: Problems with graphics on Tomcat 5.5.9 OK!!! BUT.....

2005-10-11 Thread David Delbecq
David Delbecq a écrit :

>Hello, if, like i suppose from your various errors, jfreechart require
>awt/swing api and do draw on it,
>you need to run the tomcat server inside a X server, not only do you
>need to have fonts
>installed and corresponding X libraries (like your link suggest was
>problem), you also need to
>to have X server running and DISPLAY envirronement variable set accordingly.
>
>I would first suggest you start tomcat with
>CATALINA_OPT="-Djava.awt.headless=true"
>  
>

Sorry, it's CATALINA_OPTS  (with the *S*)

>If, like i suppose will be the case, you get HeadlessExceptions when
>running like this, this mean
>you definitly need to run tomcat server inside a X environment.
>
>regards
>David Delbecq
>Mauricio Fernandez A. a écrit :
>
>  
>
>>Thanks for your help
>>
>>Now I have reinstalled the XFree86 completly including the Xvfb and I can
>>start it (XVfb), to test if it is running I execute a xclock and I don´t get
>>any error, so I think it is running ok
>>
>>However, now, when I try to get the jsp wich must show a graphic I get
>>another different error:
>>
>>
>>java.lang.NoClassDefFoundError
>>  org.jfree.chart.ChartFactory.createBarChart3D(ChartFactory.java:764)
>>  
>> com.Prueba.comandos.Graficador2.crearBarChart3DVertical(Graficador2.java:19
>>6)
>>  
>> org.apache.jsp.jsp.grafica_jsp._jspService(org.apache.jsp.jsp.grafica_jsp:1
>>67)
>>  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>>  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>
>>
>>
>>And in another web app in the same server the error is:
>>
>>
>>java.lang.NoClassDefFoundError
>>  java.lang.Class.forName0(Native Method)
>>  java.lang.Class.forName(Class.java:164)
>>  java.awt.Toolkit$2.run(Toolkit.java:821)
>>  java.security.AccessController.doPrivileged(Native Method)
>>  java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
>>  com.actelion.control.Graficador.asignarBackground(Graficador.java:97)
>>  
>> com.actelion.control.Graficador.crearBarChartVertical(Graficador.java:524)
>>  
>> org.apache.jsp.jsp.graficaVisitasMedicasEspecialidadCategoria_jsp._jspServi
>>ce(org.apache.jsp.jsp.graficaVisitasMedicasEspecialidadCategoria_jsp:198)
>>  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>>  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>
>>
>>
>>So having in mind that before Xvfb Installation the error was:
>>
>>http://www.jfree.org/phpBB2/viewtopic.php?t=14319
>>
>>I think I am just with another different problem.
>>
>>Can somebody understand this?
>>
>>Thanks
>>
>>Mauricio Fernandez
>>
>>
>>
>> 
>>
>>
>>
 



>>Hi Mauricio,
>>
>>I had the same problem. The solution is as follows:
>>
>>1. Download and install a virtual frame buffer
>>  Where to find and how to install:
>>  http://testdrive.mapinfo.com/TECHSUPP/MIPROD.NSF/0/a832a07452b9a0e385256f
>>8000760f68?OpenDocument
>>
>>2. Do not forget to create a script to start xvfb - you will find the script
>>under the link above
>>
>>3. Edit the startup.sh or catalina.sh as follows:
>>
>>#export DISPLAY
>>export DISPLAY=:0.0
>>export CATALINA_OPTS="-Djava.awt.headless=false"
>>
>>4. Start xvfb
>>
>>5. Restart Tomcat
>>
>>
>>
>>Mit freundlichem Gruß / kind regards
>>
>>Aliye Edao
>>
>>
>>
>>-
>>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: After adding a context xml file, web-app doesn't always start

2005-10-11 Thread Caldarale, Charles R
> From: David Farrell [mailto:[EMAIL PROTECTED] 
> Subject: After adding a context xml file, web-app doesn't always start
> 
> I think I may have missed something.

Such as telling us which version of Tomcat you're using.

> tomcat throw an exeption that my app "conspiracy"
> cannot be found under /webapps/conspiracy

Your docBase attribute says webapps/conspiracy is the location of the
app.

> I imagine that I need to do something to my context xml file?  I'm not
> really sure but the only change in the app pre and post this error is
> moving the db stuff to the xml file.

Where is your context xml file?  What is it's actual name?  (The
attached file is named context_home.xml, which can't be really be what
you're using.)  Read up on the attribute fields of the  element
for the version of Tomcat you're using.  In particular, if you're using
5.5.x, don't put  in server.xml, and don't use the path
attribute.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: Problems with graphics on Tomcat 5.5.9 OK!!! BUT.....

2005-10-11 Thread David Delbecq
Hello, if, like i suppose from your various errors, jfreechart require
awt/swing api and do draw on it,
you need to run the tomcat server inside a X server, not only do you
need to have fonts
installed and corresponding X libraries (like your link suggest was
problem), you also need to
to have X server running and DISPLAY envirronement variable set accordingly.

I would first suggest you start tomcat with
CATALINA_OPT="-Djava.awt.headless=true"
If, like i suppose will be the case, you get HeadlessExceptions when
running like this, this mean
you definitly need to run tomcat server inside a X environment.

regards
David Delbecq
Mauricio Fernandez A. a écrit :

>Thanks for your help
>
>Now I have reinstalled the XFree86 completly including the Xvfb and I can
>start it (XVfb), to test if it is running I execute a xclock and I don´t get
>any error, so I think it is running ok
>
>However, now, when I try to get the jsp wich must show a graphic I get
>another different error:
>
>
>java.lang.NoClassDefFoundError
>   org.jfree.chart.ChartFactory.createBarChart3D(ChartFactory.java:764)
>   
> com.Prueba.comandos.Graficador2.crearBarChart3DVertical(Graficador2.java:19
>6)
>   
> org.apache.jsp.jsp.grafica_jsp._jspService(org.apache.jsp.jsp.grafica_jsp:1
>67)
>   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>
>
>And in another web app in the same server the error is:
>
>
>java.lang.NoClassDefFoundError
>   java.lang.Class.forName0(Native Method)
>   java.lang.Class.forName(Class.java:164)
>   java.awt.Toolkit$2.run(Toolkit.java:821)
>   java.security.AccessController.doPrivileged(Native Method)
>   java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
>   com.actelion.control.Graficador.asignarBackground(Graficador.java:97)
>   
> com.actelion.control.Graficador.crearBarChartVertical(Graficador.java:524)
>   
> org.apache.jsp.jsp.graficaVisitasMedicasEspecialidadCategoria_jsp._jspServi
>ce(org.apache.jsp.jsp.graficaVisitasMedicasEspecialidadCategoria_jsp:198)
>   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>
>
>So having in mind that before Xvfb Installation the error was:
>
>http://www.jfree.org/phpBB2/viewtopic.php?t=14319
>
>I think I am just with another different problem.
>
>Can somebody understand this?
>
>Thanks
>
>Mauricio Fernandez
>
>
>
>  
>
>>>
>>>  
>>>
>
>Hi Mauricio,
>
>I had the same problem. The solution is as follows:
>
>1. Download and install a virtual frame buffer
>   Where to find and how to install:
>   http://testdrive.mapinfo.com/TECHSUPP/MIPROD.NSF/0/a832a07452b9a0e385256f
>8000760f68?OpenDocument
>
>2. Do not forget to create a script to start xvfb - you will find the script
>under the link above
>
>3. Edit the startup.sh or catalina.sh as follows:
>
>#export DISPLAY
>export DISPLAY=:0.0
>export CATALINA_OPTS="-Djava.awt.headless=false"
>
>4. Start xvfb
>
>5. Restart Tomcat
>
>
>
>Mit freundlichem Gruß / kind regards
>
>Aliye Edao
>
>
>
>-
>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: Illegal Field Name Error

2005-10-11 Thread Raghupathy,Gurumoorthy
Cant you send the struts-config.xml ?

-Original Message-
From: Asad Habib [mailto:[EMAIL PROTECTED] 
Sent: 11 October 2005 14:59
To: tomcat-user@jakarta.apache.org
Subject: Illegal Field Name Error


I am receiving the following error when trying to run a Struts application.
I 
checked and it seems that I do have all of the appropriate jar files
installed. 
But for some reason, the Action class is not being recognized. Any help
would 
be greatly appreciated. Thank you.

- Asad


HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it
from 
fulfilling this request.

exception

javax.servlet.ServletException: Illegal field name "has inconsistent
hierarchy" 
in class
registration/RegistrationTypeAction

org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:293)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16
1)
root cause

java.lang.ClassFormatError: Illegal field name "has inconsistent hierarchy"
in 
class
registration/RegistrationTypeAction
 java.lang.ClassLoader.defineClass1(Native Method)
 java.lang.ClassLoader.defineClass(ClassLoader.java:620)

java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
ader.java:1629)

org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
a:850)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1299)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1181)

org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117)

org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:14
3)

org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcess
or.java:280)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:218)

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)

org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 java.lang.reflect.Method.invoke(Method.java:585)

org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
 java.security.AccessController.doPrivileged(Native Method)
 javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16
1)
note The full stack trace of the root cause is available in the Apache 
Tomcat/5.5.9 logs.

Apache Tomcat/5.5.9


-
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: Problems with graphics on Tomcat 5.5.9

2005-10-11 Thread Amadeo Alonso

Cabe suponer que has mirado la linea 211 de tu'Graficador2.java'?, ...
parece corresponder a lo primero escrito por ti y, frecuentemente, esto da 
una pista.
Parece involucrar un problema de Acceso de Java -muy pijotero siempre-, ¿es 
todo accesible?.



Graficar = = >  java.lang.NoClassDefFoundError:
..
java.security.AccessController.doPrivileged(Native Method)
.
com.Prueba.comandos.Graficador2.crearBarChart3DVertical(Graficador2.java:211).luckamadeo- Original Message -From: "Mauricio Fernandez A." <[EMAIL PROTECTED]>To: "Tomcat Users List" 
Sent: Monday, October 10, 2005 3:06 PMSubject: RE: Problems with graphics on Tomcat 5.5.9> You can see that here, after click on "Graficar":>> The web test app can be 
found herehttp://www.actesoft.com:8080/Prueba/jsp/> and the wanted result after click on "Graficar" is something like this> http://www.actesoft.com/ejGrafico/ (static page)>> Mauricio Fernandez>> 
-Mensaje original-> De: Viorel Dragomir [mailto:[EMAIL PROTECTED]> Enviado el: lunes, 10 octubre, 2005 15:53> Para: Tomcat Users List> Asunto: Re: Problems with graphics on Tomcat 5.5.9>>> What 
exception ?>> [ If it's not confidential. :) ]>>>> Viorel Dragomir>> .> ..> --->>>> - Original Message -> 
From: Mauricio F
ernandez A.> To: Tomcat Users List> Sent: Monday, October 10, 2005 14:42> Subject: RE: Problems with graphics on Tomcat 5.5.9>>>> Trying again to make the graphics appear in my web app, I did a 
test webapp> and I had been trying to start the Tomcat with -Djava.awt.headless=true> option as I read in some forums>> #export CATALINA_OPTS="-Djava.awt.headless=true"> 
#/usr/java/jakarta-tomcat/bin/startup.sh>> But they do not appear either>> The web test app can be found herehttp://www.actesoft.com:8080/Prueba/jsp/> and the wanted result after click on 
"Graficar" is something like this> http://www.actesoft.com/ejGrafico/ (static page)>> Also I have try to insert in the Graficador.class constructor the next> System.set/getProperties 
lines>>> public Graficador(String Path){> super();> this.contexto = Path;> this.background = null;>> //System.setProperty returns the current value before assignment> String vrPropiedad = 
System.setProperty("java.awt.headless", "true");>> // Log the befo
re assignment value to a log file to debug> logger.debug("BEFORE = java.awt.headless = " + vrPropiedad);>> //and log the after assignmet value to a log file too> 
vrPropiedad = System.getProperty("java.awt.headless");> logger.debug("NOW = java.awt.headless = " + vrPropiedad);> }>>> And these are the log file lines 
the app write>> 2005-10-10 11:18:15,996 [-t] INFO [index.jsp] - Loading form> 2005-10-10 11:18:15,999 [-t] INFO [index.jsp] - Form OK !> 2005-10-10 11:18:24,710 [-t] DEBUG 
[grafica.jsp] - loading page:grafica.jsp> 2005-10-10 11:18:24,716 [-t] DEBUG [grafica.jsp] - Creating object:> Graficador> 2005-10-10 11:18:24,746 [-t] DEBUG [Graficador] - 
BEFORE =java.awt.headless> = true <-- It is True!> 2005-10-10 11:18:24,746 [-t] DEBUG [Graficador] - NOW = java.awt.headless=> true <-- It is True!> 2005-10-10 
11:18:24,747 [-t] DEBUG [grafica.jsp] - Creating Category 1 ...> OK> 2005-10-10 11:18:24,747 [-t] DEBUG [grafica.jsp] - Creating Category 2 ...> OK> 2005-10-10 11:18:24,
748 [-t] DEBUG [grafica.jsp] - Creating Category 3 ...> OK> 2005-10-10 11:18:24,748 [-t] DEBUG [grafica.jsp] - Giving the control to a> 
Graficador Object, it must make the chart> 2005-10-10 11:18:24,769 [-t] DEBUG [Graficador] - Starting chart creation> ...> 2005-10-10 
11:18:24,788 [-t] DEBUG [Graficador] - Data process  OK> 2005-10-10 11:18:25,548 [-t] DEBUG [Graficador] - Creating Chart  OK> 2005-10-10 
11:18:25,549 [-t] DEBUG [Graficador] - Making a PNG image from> Chart>> And here the app trhows an exception>> Any idea is always welcome, 
thanks.>> Mauricio Fernandez>>> -> 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]
karta.apache.org>>


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



RE: Rep. : Executing custom action on deploy

2005-10-11 Thread Robert Graf-Waczenski
Or, if your init method is not in a servlet class, you may want to have
your class implement the ServletContextListener interface. Then the
method contextInitialized() is your friend, it is called by tomcat for
each implementor upon initialization of your web app context, i.e. the
"startup" event of your web application.

Robert

> -Original Message-
> From: Antony GUILLOTEAU [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 11, 2005 11:38 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Rep. : Executing custom action on deploy
>
>
> In your web.xml file, declare a servlet like this :
>
> 
> myServlet
> xx.xx.xx.myServlet
> 1
> 
>
>
> And in your servlet, the init() method is called when the
> server start :
>
>
> import javax.servlet.ServletConfig;
> import javax.servlet.ServletException;
> import javax.servlet.http.HttpServlet;
> import javax.servlet.http.HttpServletRequest;
> import javax.servlet.http.HttpServletResponse;
>
>
> public class myServletextends HttpServlet
> {
>   /** Init */
>   public void init(ServletConfig config) throws ServletException
>   {
> super.init(config);
> // do your action
>   }
>
>   public void doGet(HttpServletRequest request,
> HttpServletResponse response) throws ServletException, IOException
>   {
>// ...
>   }
>
> }
>
>
> Antony
>
> >>> [EMAIL PROTECTED] 07/10/2005 18:32:03 >>>
> Hi!
>
> I'm writing a web application for tomcat and I have a strange request:
> I would like to execute an initializing function in order to
> initialize correctly my applicaiton when it becomes available
> (deployed into tomcat or tomcat itself is started)
>
> I have written such behaviour in a method, so what can I do
> to execute it?
>
> Thanks for your help, Matteo
>
> -
> 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: Newbee question on servlet and html - Really frustated with this problem.

2005-10-11 Thread Mauricio Fernandez A.
Did you define your servlet in your WEB-INF/web.xml?

Mauricio Fernandez

-Mensaje original-
De: Developer Developer [mailto:[EMAIL PROTECTED]
Enviado el: martes, 11 octubre, 2005 5:23
Para: tomcat-user@jakarta.apache.org
Asunto: Newbee question on servlet and html - Really frustated with this
problem.


does anybody know how to fix this problem.
  Invocation of servlet prompts a messagebox posing a questions " do you
want to save this ?" instead of executing it and returing the output in the
html document.
 :(

 On 10/10/05, Developer Developer <[EMAIL PROTECTED]> wrote:
>
> I wrote my first html and servlet and deployed it on tomcat 5.5. The html
> works okay when I call it from the browser. The servlet too works okay
> when
> I call its doget() method by invoking it from the browser. EG:.
> http://localhost:8080/VBeer/BeerSelect
> However, when i try to invoke the servlet from an html form I get a
> message
> box - (file download security warning) - Do you want to save this file ?
> It has a
> funny number suffixed to the my servlet name.
>
>
> Not sure what is happening.
> Here is my HTML code snippet.
>
> 
>
> Beer selecton Page 
>
> 
>
> Select Beer Characteristics
>
> Thanks !
>


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



Re: Virtual Hosting and SSL

2005-10-10 Thread Hassan Schroeder
Justin Jaynes wrote:
> I am running tomcat 5.5.12 and need to host two sites,
> both with ssl.  

> Can you set up two connectors (one port 443 and one
> port 80) for one specific ip address and another set
> of connectors for another ip address? 

Yes. :-)

That's exactly what you need to do. Try it, ask if you run into a
specific problem...

-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



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



Re: JSP Newbie seeking guidance

2005-10-10 Thread Justin Jaynes
I would HIGHLY recommend using SuSE Linux 10 which can
be purchased or download from Novell directly at
suse.com.  Also, see the openSuSE project (essentially
the open source community effort half of the
SuSE/novell team).

I used to run RedHat but was disappointed in the drop
to Fedora.  I tried SuSE a few years ago and have
never looked back.  So easy to install and configure. 
The YaST systems management tool is amazing.  You can
still do everything the manual way (and I do
sometimes).  But the firewall is easy and strong, the
package management is simple, the install resizes
partitions (even NTFS).  Just so many highly polished
surfaces there.  Try SuSE and see if you ever go back.

I have run tomcat and SuSE in production for over a
year and not had a problem and am now in the process
of upgrading my production server to SuSE 10 and
tomcat 5.5.12.  So far so good.  It's all working in
my development area.  The improvements in 5.5.12 are
EXCELLENT.  But there are significant changes in how
you set up the server.xml file, so read up on the 5.5
doc page.  I had previously only been using 5.0.x. 
ALso, I had some glitchy problems with 5.5.9.  No
reason to download it now anyhow, since 5.5.12 is
stable release.

I also recommend PostgreSQL 8.0 from postgresql.org if
you need database (as i imagine you must) (open source
and fully ansiSQL standard and RDBMS compliant, unlike
mySQL --don't yell at me for saying so, please-- i
know how much many people love mySQL.

You have to build Postgresql from source on SuSE 10
since no rpms are out in the combination of those
versions of SuSE and PGSQL.  I tired to use older
RPMS--not a good idea.  But the build and install went
perfectly.  Be sure you have the proper dev packages
installed before you try.  If not, the documentation
tells all you need to know.

PostgreSQL 8.0, Tomcat 5.5.12, and SuSE 10 are real
winners.  I have had --no-- problems with the past
versions, and these new versions seem up to par or
better.

I LOVE SuSE 10.0 for my desktop environment/school
computing/web surfing/DVD watching(i use KDE) and run
everything just described on my Dell Inspiron 6000
notebook.  That's my developemnt envrionment. 
Obviously the combination of KDE and the servers on a
notebook are no match for my production environment. 
but I must say, my notebook and the software on it do
all I ever ask them to--school work, web surfing,
large SQL routines, JVM, Tomcat--and a fair bit of
graphics design.  All on open source software.  What a
wonderful world we live in.  (The DVD's I run on XINE,
which I had to build, since XINE is stripped down for
leagal reasons in SuSE 10, but the build installed
great and runs with no problem just by typing xine in
KDE).

Justin
--with more to say than you probably wanted to here

--- John Geiger <[EMAIL PROTECTED]> wrote:

> Hello:
> 
> This is a little intimidating, but I am eager. I
> hope I am in the right
> place.
> 
> I am a DHTML developer‹intermediate level. I¹ve been
> exposed to JSP on an
> iPlanet server, Sun OS 5.8 (but it is my client¹s
> production server, and I¹m
> reluctant to mess around there!)
> 
> I now have my own Tomcat install kind-of-working on
> a Fedora Core 2 box. It
> is Tomcat 5.0.x with Apache 1.3.
> 
> I am studying an APress book called ³JSP 2.0 Novice
> to Professional,² but
> get errors with some of the exercises. (The book is
> great! Makes it sound so
> easy ;-)
> 
> My main question is: Can someone recommend a proven
> Linux, Apache 2 Tomcat
> 5.5 combination‹could be unix, too.
> 
> I figure I should set up a stable development rig
> first‹one that I could
> eventually rely on in a light production
> environment.
> 
> Also: I am interested in finding a tutor/mentor in
> the San Francisco Bay
> Area.
> 
> Any advice would be much appreciated.
> 
> Thanks,
> John G.
> 
> 
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 





__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



Re: JSP Newbie seeking guidance

2005-10-10 Thread Mark Eggers
I am not familiar with the book.

If they are recommending using Tomcat's connection
pools and JNDI, then you will need to add the jar file
that contains the MySQL driver to
$CATALINA_HOME/common/lib.

If you are connecting to the database directly from
your web application then you probably need to place
the jar file containing the MySQL driver in
$CATALINA_HOME/webapps//WEB-INF/lib, where
 is the name of your application.

You can pick up the MySQL jdbc driver from:

http://dev.mysql.com/downloads/connector/j/3.1.html

If you are just starting out on jsp/servlet
programming, then running Tomcat standalone is
probably a good first choice.

The later versions of Tomcat (5.5.x) perform pretty
much the same as Apache 2.0.x for static pages.  

Coupling Apache and Tomcat together makes sense when
you start using some of the features that Apache
supports but that Tomcat may not be optimal for.

HTH

/mde/

--- John Geiger <[EMAIL PROTECTED]> wrote:

> I am avoiding the real issue--OK, I am ready to face
> it:
> 
> javax.servlet.ServletException:
> javax.servlet.jsp.JspTagException: In
> , invalid driver class name:
> "java.lang.ClassNotFoundException:
> com.mysql.jdbc.Driver"
> 
> This is the error I get running an exercise from the
> Apress book. I can not
> seem to find my way using Google.
> 
> I think maybe MySQL is not installed--or I am
> missing an important
> file...somewhere!
> 
> Eeek. Thanks.
> 




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



Re: JSP Newbie seeking guidance

2005-10-10 Thread John Geiger
I am avoiding the real issue--OK, I am ready to face it:

javax.servlet.ServletException: javax.servlet.jsp.JspTagException: In
, invalid driver class name:
"java.lang.ClassNotFoundException: com.mysql.jdbc.Driver"

This is the error I get running an exercise from the Apress book. I can not
seem to find my way using Google.

I think maybe MySQL is not installed--or I am missing an important
file...somewhere!

Eeek. Thanks.


on 10/10/05 8:45 PM, Glen Mazza at [EMAIL PROTECTED] wrote:

> John Geiger escribió:
>> Hello:
>> 
>> This is a little intimidating, but I am eager. I hope I am in the right
>> place.
>> 
>> I am a DHTML developer‹intermediate level. I¹ve been exposed to JSP on an
>> iPlanet server, Sun OS 5.8 (but it is my client¹s production server, and I¹m
>> reluctant to mess around there!)
>> 
>> I now have my own Tomcat install kind-of-working on a Fedora Core 2 box. It
>> is Tomcat 5.0.x with Apache 1.3.
>> 
> 
> Besides the other answers you will get, I would think you would want to
> run Tomcat standalone (i.e., have it process HTML pages as well), and
> not bother with connecting it to the Apache web server.  You are just
> learning about JSP right now; not hosting web applications, so Apache is
> probably an unnecessary distraction at this time.
> 
> Glen
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

***
John Geiger
Fox Parlor Design
Pho 415-821-7100
Fax 415-821-7102
Cell 415-307-2554



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



Re: JSP Newbie seeking guidance

2005-10-10 Thread Glen Mazza

John Geiger escribió:

Hello:

This is a little intimidating, but I am eager. I hope I am in the right
place.

I am a DHTML developer‹intermediate level. I¹ve been exposed to JSP on an
iPlanet server, Sun OS 5.8 (but it is my client¹s production server, and I¹m
reluctant to mess around there!)

I now have my own Tomcat install kind-of-working on a Fedora Core 2 box. It
is Tomcat 5.0.x with Apache 1.3.



Besides the other answers you will get, I would think you would want to 
run Tomcat standalone (i.e., have it process HTML pages as well), and 
not bother with connecting it to the Apache web server.  You are just 
learning about JSP right now; not hosting web applications, so Apache is 
probably an unnecessary distraction at this time.


Glen

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



Re: Newbee question on servlet and html - Really frustated with this problem.

2005-10-10 Thread Glen Mazza
I think you are getting this error because Tomcat doesn't realize you 
are trying to activate the servlet.


You probably will need to look at your WEB-INF/web.xml of your web 
application.  You'll need a  entry that defines BeerSelect and 
a  that ties BeerSelect to its actual url-pattern. 
(/VBeer/BeerSelect) You can look at the web.xml in the servlet-examples 
webapp that comes with Tomcat for sample definitions.


Glen


Developer Developer escribió:

does anybody know how to fix this problem.
  Invocation of servlet prompts a messagebox posing a questions " do you
want to save this ?" instead of executing it and returing the output in the
html document.
 :(

 On 10/10/05, Developer Developer <[EMAIL PROTECTED]> wrote:


I wrote my first html and servlet and deployed it on tomcat 5.5. The html
works okay when I call it from the browser. The servlet too works okay
when
I call its doget() method by invoking it from the browser. EG:.
http://localhost:8080/VBeer/BeerSelect
However, when i try to invoke the servlet from an html form I get a
message
box - (file download security warning) - Do you want to save this file ?
It has a
funny number suffixed to the my servlet name.


Not sure what is happening.
Here is my HTML code snippet.



Beer selecton Page 



Select Beer Characteristics

Thanks !







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



Re: Newbee question on servlet and html - Really frustated with this problem.

2005-10-10 Thread Frank W. Zammetti

Two questions...

(1) Does your servlet implement a doPost() method?  Since you are 
POSTing the form, you need to do that.


(2) Is there a typo in your form there?  I see:



That's not proper... my guess is you want:



Frank

Developer Developer wrote:

does anybody know how to fix this problem.
  Invocation of servlet prompts a messagebox posing a questions " do you
want to save this ?" instead of executing it and returing the output in the
html document.
 :(

 On 10/10/05, Developer Developer <[EMAIL PROTECTED]> wrote:


I wrote my first html and servlet and deployed it on tomcat 5.5. The html
works okay when I call it from the browser. The servlet too works okay
when
I call its doget() method by invoking it from the browser. EG:.
http://localhost:8080/VBeer/BeerSelect
However, when i try to invoke the servlet from an html form I get a
message
box - (file download security warning) - Do you want to save this file ?
It has a
funny number suffixed to the my servlet name.


Not sure what is happening.
Here is my HTML code snippet.



Beer selecton Page 



Select Beer Characteristics

Thanks !






--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

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



RE: Add parameters into tomcat service ......

2005-10-10 Thread Caldarale, Charles R
> From: Tony Lu [mailto:[EMAIL PROTECTED] 
> Subject: Add parameters into tomcat service ..
> 
> My question is:
> how to add statement "set JAVA_OPTS=-Xms512m -Xmx512m -
> Daos.configuration=%CATALINA_HOME%/conf/aos.config"
> into tomcat5 service?

Use tomcat5w.exe from the bin directory.  Add the options you want under
the Java tab.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: apache --> tomcat (mod_jk) works on localhost but not other hosts

2005-10-10 Thread Scott MacAlvone
Thanks for the tip Lyndon.  It took a few tries, but I finally got it right, I 
think!

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Exception loading custom Realm

2005-10-10 Thread Larry Meadors
Are both classes loaded by the same classloader?

Larry


On 10/10/05, Surya Mishra <[EMAIL PROTECTED]> wrote:
> common/lib
>
> But it doesn't have problem loading my custom realm. The problem is actually
> in loading the UserDatabaseRealm:
> java.lang.NoClassDefFoundError: org/apache/catalina/realm/UserDatabaseRealm
>
> Thanks
> -Surya
>
> On 10/10/05, Larry Meadors <[EMAIL PROTECTED]> wrote:
> >
> > Where did you put the classes? They have to go in either common/lib,
> > or server/lib.
> >
> > Larry
> >
> > On 10/10/05, Surya Mishra <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > I created my own realm by extending UserDatabaseRealm. But when I start
> > the
> > > tomcat server, I get the following exception. If I use
> > UserDatabaseRealm,
> > > everything works fine. That means Tomcat can and does load the
> > > UserDatabaseRealm class without any problem.
> > >
> > > java.lang.NoClassDefFoundError:
> > org/apache/catalina/realm/UserDatabaseRealm
> > > at java.lang.ClassLoader.defineClass0(Native Method)
> > > at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> > > at java.security.SecureClassLoader.defineClass(SecureClassLoader.java
> > :123)
> > > at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> > > at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> > > at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> > > at java.security.AccessController.doPrivileged(Native Method)
> > > at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> > > at org.apache.catalina.loader.StandardClassLoader.findClass(
> > > StandardClassLoader.java:485)
> > > at org.apache.catalina.loader.StandardClassLoader.loadClass(
> > > StandardClassLoader.java:820)
> > > at org.apache.catalina.loader.StandardClassLoader.loadClass(
> > > StandardClassLoader.java:721)
> > > at org.apache.catalina.loader.StandardClassLoader.loadClass(
> > > StandardClassLoader.java:803)
> > > at org.apache.catalina.loader.StandardClassLoader.loadClass(
> > > StandardClassLoader.java:721)
> > > at org.apache.commons.digester.ObjectCreateRule.begin(
> > ObjectCreateRule.java
> > > :252)
> > > at org.apache.commons.digester.Rule.begin(Rule.java:200)
> > > at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
> > > at org.apache.catalina.util.CatalinaDigester.startElement(
> > > CatalinaDigester.java:65)
> > > at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
> > Source)
> > > at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement
> > (Unknown
> > > Source)
> > > at
> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement
> > > (UnknownSource)
> > > at
> > >
> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
> > (Unknown
> > > Source)
> > > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
> > (Unknown
> > > Source)
> > > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> > > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> > > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> > > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> > > at org.apache.commons.digester.Digester.parse(Digester.java:1548)
> > > at org.apache.catalina.startup.Catalina.load(Catalina.java:489)
> > > at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
> > > 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.load(Bootstrap.java:250)
> > > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
> > >
> > > java.lang.reflect.InvocationTargetException
> > > 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.load(Bootstrap.java:250)
> > > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
> > > Caused by: java.lang.NoClassDefFoundError:
> > > org/apache/catalina/realm/UserDatabaseRealm
> > > at java.lang.ClassLoader.defineClass0(Native Method)
> > > at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> > > at java.security.SecureClassLoader.defineClass(SecureClassLoader.java
> > :123)
> > > at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> > > at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> > > at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> > > at java.security.AccessController.doPrivileged(Native Method)
> > > at java.ne

Re: Exception loading custom Realm

2005-10-10 Thread Surya Mishra
common/lib

But it doesn't have problem loading my custom realm. The problem is actually
in loading the UserDatabaseRealm:
java.lang.NoClassDefFoundError: org/apache/catalina/realm/UserDatabaseRealm

Thanks
-Surya

On 10/10/05, Larry Meadors <[EMAIL PROTECTED]> wrote:
>
> Where did you put the classes? They have to go in either common/lib,
> or server/lib.
>
> Larry
>
> On 10/10/05, Surya Mishra <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I created my own realm by extending UserDatabaseRealm. But when I start
> the
> > tomcat server, I get the following exception. If I use
> UserDatabaseRealm,
> > everything works fine. That means Tomcat can and does load the
> > UserDatabaseRealm class without any problem.
> >
> > java.lang.NoClassDefFoundError:
> org/apache/catalina/realm/UserDatabaseRealm
> > at java.lang.ClassLoader.defineClass0(Native Method)
> > at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> > at java.security.SecureClassLoader.defineClass(SecureClassLoader.java
> :123)
> > at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> > at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> > at org.apache.catalina.loader.StandardClassLoader.findClass(
> > StandardClassLoader.java:485)
> > at org.apache.catalina.loader.StandardClassLoader.loadClass(
> > StandardClassLoader.java:820)
> > at org.apache.catalina.loader.StandardClassLoader.loadClass(
> > StandardClassLoader.java:721)
> > at org.apache.catalina.loader.StandardClassLoader.loadClass(
> > StandardClassLoader.java:803)
> > at org.apache.catalina.loader.StandardClassLoader.loadClass(
> > StandardClassLoader.java:721)
> > at org.apache.commons.digester.ObjectCreateRule.begin(
> ObjectCreateRule.java
> > :252)
> > at org.apache.commons.digester.Rule.begin(Rule.java:200)
> > at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
> > at org.apache.catalina.util.CatalinaDigester.startElement(
> > CatalinaDigester.java:65)
> > at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
> Source)
> > at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement
> (Unknown
> > Source)
> > at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement
> > (UnknownSource)
> > at
> >
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
> (Unknown
> > Source)
> > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
> (Unknown
> > Source)
> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> > at org.apache.commons.digester.Digester.parse(Digester.java:1548)
> > at org.apache.catalina.startup.Catalina.load(Catalina.java:489)
> > at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
> > 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.load(Bootstrap.java:250)
> > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
> >
> > java.lang.reflect.InvocationTargetException
> > 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.load(Bootstrap.java:250)
> > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
> > Caused by: java.lang.NoClassDefFoundError:
> > org/apache/catalina/realm/UserDatabaseRealm
> > at java.lang.ClassLoader.defineClass0(Native Method)
> > at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> > at java.security.SecureClassLoader.defineClass(SecureClassLoader.java
> :123)
> > at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> > at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> > at org.apache.catalina.loader.StandardClassLoader.findClass(
> > StandardClassLoader.java:485)
> > at org.apache.catalina.loader.StandardClassLoader.loadClass(
> > StandardClassLoader.java:820)
> > at org.apache.catalina.loader.StandardClassLoader.loadClass(
> > Stand

Re: Exception loading custom Realm

2005-10-10 Thread Larry Meadors
Where did you put the classes? They have to go in either common/lib,
or server/lib.

Larry

On 10/10/05, Surya Mishra <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I created my own realm by extending UserDatabaseRealm. But when I start the
> tomcat server, I get the following exception. If I use UserDatabaseRealm,
> everything works fine. That means Tomcat can and does load the
> UserDatabaseRealm class without any problem.
>
> java.lang.NoClassDefFoundError: org/apache/catalina/realm/UserDatabaseRealm
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> at org.apache.catalina.loader.StandardClassLoader.findClass(
> StandardClassLoader.java:485)
> at org.apache.catalina.loader.StandardClassLoader.loadClass(
> StandardClassLoader.java:820)
> at org.apache.catalina.loader.StandardClassLoader.loadClass(
> StandardClassLoader.java:721)
> at org.apache.catalina.loader.StandardClassLoader.loadClass(
> StandardClassLoader.java:803)
> at org.apache.catalina.loader.StandardClassLoader.loadClass(
> StandardClassLoader.java:721)
> at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java
> :252)
> at org.apache.commons.digester.Rule.begin(Rule.java:200)
> at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
> at org.apache.catalina.util.CatalinaDigester.startElement(
> CatalinaDigester.java:65)
> at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
> at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
> Source)
> at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement
> (UnknownSource)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
> at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at org.apache.commons.digester.Digester.parse(Digester.java:1548)
> at org.apache.catalina.startup.Catalina.load(Catalina.java:489)
> at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
> 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.load(Bootstrap.java:250)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
>
> java.lang.reflect.InvocationTargetException
> 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.load(Bootstrap.java:250)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/catalina/realm/UserDatabaseRealm
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> at org.apache.catalina.loader.StandardClassLoader.findClass(
> StandardClassLoader.java:485)
> at org.apache.catalina.loader.StandardClassLoader.loadClass(
> StandardClassLoader.java:820)
> at org.apache.catalina.loader.StandardClassLoader.loadClass(
> StandardClassLoader.java:721)
> at org.apache.catalina.loader.StandardClassLoader.loadClass(
> StandardClassLoader.java:803)
> at org.apache.catalina.loader.StandardClassLoader.loadClass(
> StandardClassLoader.java:721)
> at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java
> :252)
> at org.apache.commons.digester.Rule.begin(Rule.java:200)
> at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
> at org.apache.catalina.util.CatalinaDigester.s

[OT] Re: using a datasource connection pool resource with username and password supplied by user

2005-10-10 Thread Bob Hall
If the DB login requirement is removed you might
want to take a look at Apache Turbine, it supports
finer-grained access to a web app.

http://jakarta.apache.org/turbine/index.html

- Bob


--- [EMAIL PROTECTED] wrote:

> Thanks for the suggestion Bob,
> 
> I think what you are saying about realms is valid
> and most likely the
> easiest way to enforce security.  It would be my
> choice if it wasn't a
> corporate standards issue.  I will read up on the
> link you sent and see if
> I can get away with it in terms of meeting with
> policy.
> 
> Thank you all for your input.
> 
> Jeffery S. Eaton
> 
> 
> 
>

> Opinions contained in this e-mail do not necessarily
> reflect
> the opinions of the Queensland Department of Main
> Roads,
> Queensland Transport or Maritime Safety Queensland,
> or
> endorsed organisations utilising the same
> infrastructure.
> If you have received this electronic mail message in
> error,
> please immediately notify the sender and delete the
> message
> from your computer.
>

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




__ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/

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



Re: using a datasource connection pool resource with username and password supplied by user

2005-10-10 Thread jeffery . s . eaton
Thanks for the suggestion Bob,

I think what you are saying about realms is valid and most likely the
easiest way to enforce security.  It would be my choice if it wasn't a
corporate standards issue.  I will read up on the link you sent and see if
I can get away with it in terms of meeting with policy.

Thank you all for your input.

Jeffery S. Eaton




Opinions contained in this e-mail do not necessarily reflect
the opinions of the Queensland Department of Main Roads,
Queensland Transport or Maritime Safety Queensland, or
endorsed organisations utilising the same infrastructure.
If you have received this electronic mail message in error,
please immediately notify the sender and delete the message
from your computer.



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



Re: java.lang.ClassCircularityError

2005-10-10 Thread Shankar Unni

Caldarale, Charles R wrote:


According to the bug report, this is only fixed in Mustang (6.0), not
5.0 (aka 1.5).


Ooh, my bad (misread of the fixed release..). Thanks..


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



RE: silent install of Tomcat

2005-10-10 Thread Mauricio Fernandez A.
Maybe you can try with the .zip distribution if your so is Windows or
.tar.gz if Linux or whatever you want/need from
http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi

If you don´t know which one download read the README
http://apache.org.es/jakarta/tomcat-5/v5.5.12/README.html

Mauricio Fernandez

-Mensaje original-
De: krux mania [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 10 octubre, 2005 19:37
Para: tomcat-user@jakarta.apache.org
Asunto: silent install of Tomcat




Hi,

I need to install tomcat 5.0.28 silently for my application. Can this be
done.

If this issue has been previously discussed please send me a pointer to the
message.



thanks,

vivek


-
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.


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



Re: silent install of Tomcat

2005-10-10 Thread Marcus Franke
On Mon, Oct 10, 2005 at 11:11:30AM -0700, krux mania wrote:
> Hi Marcus,
> Silent installation also referred to as batch installation is the process 
> where the install takes place without presenting any dialogs to the user. The 
> user input is put into a properties file and the installation takes it from 
> there.
>  

Sounds like you are using Windows?

On my Linux boxes I installed quite silently using rpm and no questions to be
answered..

But you could use the tarball/zip for it.


Marcus
-- 

There are some things worth dying for.
-- Kirk, "Errand of Mercy", stardate 3201.7

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



Re: silent install of Tomcat

2005-10-10 Thread krux mania
Hi Marcus,
Silent installation also referred to as batch installation is the process where 
the install takes place without presenting any dialogs to the user. The user 
input is put into a properties file and the installation takes it from there.
 
vivek

Marcus Franke <[EMAIL PROTECTED]> wrote:
On Mon, Oct 10, 2005 at 10:36:55AM -0700, krux mania wrote:
> 
> 
> Hi,
> 
> I need to install tomcat 5.0.28 silently for my application. Can this be done.
> 
> If this issue has been previously discussed please send me a pointer to the 
> message.
> 

What do you mean with silent installation?


Marcus

-- 

Those who hate and fight must stop themselves -- otherwise it is not
stopped.
-- Spock, "Day of the Dove", stardate unknown

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





-
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

Re: silent install of Tomcat

2005-10-10 Thread Marcus Franke
On Mon, Oct 10, 2005 at 10:36:55AM -0700, krux mania wrote:
> 
> 
> Hi,
> 
> I need to install tomcat 5.0.28 silently for my application. Can this be done.
> 
> If this issue has been previously discussed please send me a pointer to the 
> message.
> 

What do you mean with silent installation?


Marcus

-- 

Those who hate and fight must stop themselves -- otherwise it is not
stopped.
-- Spock, "Day of the Dove", stardate unknown

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



Re: apache --> tomcat (mod_jk) works on localhost but not other hosts

2005-10-10 Thread Scott MacAlvone
--- Lyndon Tiu <[EMAIL PROTECTED]> wrote:

> On Mon, 10 Oct 2005 09:01:04 -0700 (PDT)
> tomcat-user@jakarta.apache.org wrote:
> > I'm very new to tomcat and apache.  I've set up
> apache
> > to forward to tomcat using mod_jk.  It works fine
> on
> > the localhost, but if I try to connect through to
> > tomcat from any other host I get 404 file not
> found,
> 
> 
> Please send us your workers.properties and
> httpd.conf.

attached, tia, scott




__ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: apache --> tomcat (mod_jk) works on localhost but not other hosts

2005-10-10 Thread Lyndon Tiu
On Mon, 10 Oct 2005 09:01:04 -0700 (PDT) tomcat-user@jakarta.apache.org wrote:
> I'm very new to tomcat and apache.  I've set up apache
> to forward to tomcat using mod_jk.  It works fine on
> the localhost, but if I try to connect through to
> tomcat from any other host I get 404 file not found,


Please send us your workers.properties and httpd.conf.


--
Lyndon Tiu

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



Re: Turning on debugging in Tomcat 5.5

2005-10-10 Thread Marcus Franke
On Mon, Oct 10, 2005 at 05:20:07PM +0200, Marcus Franke wrote:
> On Mon, Oct 10, 2005 at 04:41:32PM +0200, Marcus Franke wrote:
> > On Fri, Oct 07, 2005 at 09:28:23PM -0700, Bill Barker wrote:
> > > 
> > 
> > # Default global logging level.
> > # This specifies which kinds of events are logged across
> > # all loggers.  For any given facility this global level
> > # can be overriden by a facility specific level
> > # Note that the ConsoleHandler also has a separate level
> > # setting to limit messages printed to the console.
> > .level= INFO
> > 
> > So, I guess, if I use something like .level=WARN the pollution
> > of catalina.out may will stop?
> 
> Ok, had a deeper look inside the tomcat startup scripts on my
> RHEL box and catalina.out is written as a redirect of the
> tomcat stdout.
> 
> So, my next guess is, java.util.logging.ConsoleHandler.level = INFO
> could be the right paramter to change?
> 

oh no, neither of these points stops my tomcat from being extremly
talkativ.

Any other hints or suggestions how to silence the tomcat?



Marcus

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



Re: Turning on debugging in Tomcat 5.5

2005-10-10 Thread Marcus Franke
On Mon, Oct 10, 2005 at 04:41:32PM +0200, Marcus Franke wrote:
> On Fri, Oct 07, 2005 at 09:28:23PM -0700, Bill Barker wrote:
> > 
> 
> # Default global logging level.
> # This specifies which kinds of events are logged across
> # all loggers.  For any given facility this global level
> # can be overriden by a facility specific level
> # Note that the ConsoleHandler also has a separate level
> # setting to limit messages printed to the console.
> .level= INFO
> 
> So, I guess, if I use something like .level=WARN the pollution
> of catalina.out may will stop?

Ok, had a deeper look inside the tomcat startup scripts on my
RHEL box and catalina.out is written as a redirect of the
tomcat stdout.

So, my next guess is, java.util.logging.ConsoleHandler.level = INFO
could be the right paramter to change?


Sorry, it seems Im not as half as familliar with this stuff
as I should be :(



Marcus

-- 

"What terrible way to die."
"There are no good ways."
-- Sulu and Kirk, "That Which Survives", stardate unknown

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



Re: Turning on debugging in Tomcat 5.5

2005-10-10 Thread Marcus Franke
On Fri, Oct 07, 2005 at 09:28:23PM -0700, Bill Barker wrote:
> 
> "James Rome" <[EMAIL PROTECTED]> wrote in message 
> news:[EMAIL PROTECTED]
> > Most of the installed Tomcat classes have something like
> > container.isDebugEnabled() {...}
> >
> > How do I enable these debug statements in Tomcat 5.5?
> >
> 
> I'll assume that you are using Juli.  If you are using log4j, compare what 
> I'm saying to http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html 
> to see what you need to do.
> 
> First you edit $CATALINA_HOME/conf/logging.properties and add and something 
> like:
>   
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/myapp].level 
> = FINE
> 

Would this control the logging of the tomcat server itsel, too?

Returning to my previous mail, if I activate connectionTimeout
in the asp13 connector tomcat starts to pollute my catalina.out
with messages about timedout connections.

I know that there are connections which tend to timeout, such is life, 
but its a waste of time and storage when tomcat itself informs we
about that fact :)

Looking inside properties file I find the default log level and it
is:

# Default global logging level.
# This specifies which kinds of events are logged across
# all loggers.  For any given facility this global level
# can be overriden by a facility specific level
# Note that the ConsoleHandler also has a separate level
# setting to limit messages printed to the console.
.level= INFO

So, I guess, if I use something like .level=WARN the pollution
of catalina.out may will stop?



Regards,
Marcus

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



  1   2   3   4   5   6   7   8   9   10   >