apache2 + mod_jk + tomcat5.5.4 help

2005-01-17 Thread Trung Nguyen
Hello,

I'm trying to configure mod_jk with tomcat 5.5.4, but I'm kinda stuck.  I
did it with tomcat 4.1.30 with no problem.  How do you configure in
server.xml to make it talk to apache2 through AJP13?  In tomcat4 I did
something like this:

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
enableLookups=false acceptCount=10 debug=0/

It doesn't work with tomcat 5.5.4.  Please help!!!

Thanks  

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



RE: File Upload with JSPs

2004-05-26 Thread Trung Nguyen
Deepak,

It works great with my apps...
http://jakarta.apache.org/commons/fileupload/


-Original Message-
From: Deepak Vishwanathan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 5:17 PM
To: [EMAIL PROTECTED]
Subject: File Upload with JSPs


Hi,
 
I am working with Jsps on Tomcat Container. I searched through the net and
found a class called MimeParser which seems to provide the file upload
capability. Is there some open source Java API thats available that can be
freely redistributed and that would provide me with the file uploading
capability. Or does such a package exist in the Tomcat Jakarta site.
 
Thanks
Deepak
 
 


-
Do you Yahoo!?
Friends.  Fun. Try the all-new Yahoo! Messenger

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



RE: apache + tomcat + JK connector configuration

2005-04-13 Thread Trung Nguyen
Post the workers.properties file.  You probably need to include these lines in 
that file:

worker.list=worker1
worker.worker1.port=6969



-Original Message-
From: Delphine Lê [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 2:01 PM
To: tomcat-user@jakarta.apache.org
Subject: apache + tomcat + JK connector configuration


Hello,

 

Has anyone had any success in configuring Apache (2.0.53) with Tomcat
(4.1.29) in Windows XP, using a recent JK connector ?

We have a server running with the JK2 connector and I'm trying to
replace it with the latest JK connector (JK-1.2.10), the reason being
that JK2 is officially unsupported as of 15 Nov 2004 and we're
experiencing a problem with truncated requests due to this connector.

 

In Apache, I configured a worker called worker1 and I send everything
from context /examples to this worker following
http://jakarta.apache.org/tomcat/connectors-doc/howto/quick.html.

The configuration looks fine, since I can see in the following lines in
mod_jk.log:

 

[Wed Apr 13 18:49:13 2005] [debug]
uri_worker_map_add::jk_uri_worker_map.c (269): exact rule
/examples=worker1 was added

[Wed Apr 13 18:49:13 2005] [debug] build_worker_map::jk_worker.c (219):
creating worker worker1

[Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (125):
about to create instance worker1 of ajp13

[Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (138):
about to validate and init worker1

[Wed Apr 13 18:49:13 2005] [debug] ajp_validate::jk_ajp_common.c (1781):
worker worker1 contact is 'localhost:6969'

 

However, if I send a request, it doesn't get through and I get an error
message in the browser.

The log shows:

[Wed Apr 13 18:50:16 2005] [info]
ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to
tomcat. Tomcat is probably not started or is listening on the wrong
host/port (127.0.0.1:6969). Failed errno = 61

[Wed Apr 13 18:50:16 2005] [info]  ajp_send_request::jk_ajp_common.c
(1227): Error connecting to the Tomcat process.

 

What should I change in Tomcat configuration to have it work with JK
instead of JK2 ? 

It is of course started and listening on port 6969. The configuration in
server.xml looks like this:

 

Connector className=org.apache.ajp.tomcat4.Ajp13Connector

port=6969 minProcessors=5 maxProcessors=75 enableLookups=true
redirectPort=8443 acceptCount=100 debug=0
connectionTimeout=2 useURIValidationHack=false
disableUploadTimeout=true/

 

Thanks.

 


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



RE: apache + tomcat + JK connector configuration

2005-04-14 Thread Trung Nguyen
Are you using load balance in your app?  If not, you probably don't need this 
line:

worker.worker1.lbfactor=50

Try to use this configuration in the server.xml

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=6969 minProcessors=5 maxProcessors=75
enableLookups=false acceptCount=10 debug=0/

Hope this helps...


-Original Message-
From: Delphine Lê [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 6:41 PM
To: tomcat-user@jakarta.apache.org
Subject: RE: apache + tomcat + JK connector configuration


thank you, but it's got them:

# Define 1 real worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=6969
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.reclycle_timeout=300


 Post the workers.properties file.  You probably need to include these
 lines in that file:

 worker.list=worker1
 worker.worker1.port=6969



 -Original Message-
 From: Delphine Lê [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 13, 2005 2:01 PM
 To: tomcat-user@jakarta.apache.org
 Subject: apache + tomcat + JK connector configuration


 Hello,



 Has anyone had any success in configuring Apache (2.0.53) with Tomcat
 (4.1.29) in Windows XP, using a recent JK connector ?

 We have a server running with the JK2 connector and I'm trying to
 replace it with the latest JK connector (JK-1.2.10), the reason being
 that JK2 is officially unsupported as of 15 Nov 2004 and we're
 experiencing a problem with truncated requests due to this connector.



 In Apache, I configured a worker called worker1 and I send everything
 from context /examples to this worker following
 http://jakarta.apache.org/tomcat/connectors-doc/howto/quick.html.

 The configuration looks fine, since I can see in the following lines in
 mod_jk.log:



 [Wed Apr 13 18:49:13 2005] [debug]
 uri_worker_map_add::jk_uri_worker_map.c (269): exact rule
 /examples=worker1 was added

 [Wed Apr 13 18:49:13 2005] [debug] build_worker_map::jk_worker.c (219):
 creating worker worker1

 [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (125):
 about to create instance worker1 of ajp13

 [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c (138):
 about to validate and init worker1

 [Wed Apr 13 18:49:13 2005] [debug] ajp_validate::jk_ajp_common.c (1781):
 worker worker1 contact is 'localhost:6969'



 However, if I send a request, it doesn't get through and I get an error
 message in the browser.

 The log shows:

 [Wed Apr 13 18:50:16 2005] [info]
 ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting to
 tomcat. Tomcat is probably not started or is listening on the wrong
 host/port (127.0.0.1:6969). Failed errno = 61

 [Wed Apr 13 18:50:16 2005] [info]  ajp_send_request::jk_ajp_common.c
 (1227): Error connecting to the Tomcat process.



 What should I change in Tomcat configuration to have it work with JK
 instead of JK2 ?

 It is of course started and listening on port 6969. The configuration in
 server.xml looks like this:



 Connector className=org.apache.ajp.tomcat4.Ajp13Connector

 port=6969 minProcessors=5 maxProcessors=75 enableLookups=true
 redirectPort=8443 acceptCount=100 debug=0
 connectionTimeout=2 useURIValidationHack=false
 disableUploadTimeout=true/



 Thanks.




 -
 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]



.asp and tomcat 5.5.9

2005-05-12 Thread Trung Nguyen
Hello,

Is there a way to configure tomcat 5.5.9 to support .asp extension?  

Thanks,
Trung


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



RE: .asp and tomcat 5.5.9

2005-05-12 Thread Trung Nguyen
Thank you very much for the fast reply.  What we're trying to do here is one of 
our client requested to show .asp instead of .jsp  I know this is crazy, but I 
guess they're Microsoft company :)

Of course all our files end with .jsp

-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 12, 2005 9:41 AM
To: Tomcat Users List
Subject: RE: .asp and tomcat 5.5.9


 From: Trung Nguyen [mailto:[EMAIL PROTECTED] 
 Is there a way to configure tomcat 5.5.9 to support .asp extension?

If you mean 'serve static content that has a .asp suffix as MIME type
x/y', yes.  Configure a MIME-type in Tomcat's conf/web.xml (or your
webapp's web.xml) and you're done.

If you mean 'process Microsoft-style Active Server Pages in the same way
that IIS does', no.  The main product I know that could do that on
non-Microsoft platforms is http://www.sun.com/software/chilisoft/ - Mono
does similar for ASP.Net.  It might be barely possible to use Tomcat to
retrieve pages from such a back-end system and forward them to the
client browser, but I suspect it would be a poor engineering solution.

What are you trying to do?

- 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: .asp and tomcat 5.5.9

2005-05-12 Thread Trung Nguyen
Peter,

Thanks again.  What I'm trying to do is write code in Java and name it .asp 
because our client wanted to have .asp instead of .jsp



-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 12, 2005 9:41 AM
To: Tomcat Users List
Subject: RE: .asp and tomcat 5.5.9


 From: Trung Nguyen [mailto:[EMAIL PROTECTED] 
 Is there a way to configure tomcat 5.5.9 to support .asp extension?

If you mean 'serve static content that has a .asp suffix as MIME type
x/y', yes.  Configure a MIME-type in Tomcat's conf/web.xml (or your
webapp's web.xml) and you're done.

If you mean 'process Microsoft-style Active Server Pages in the same way
that IIS does', no.  The main product I know that could do that on
non-Microsoft platforms is http://www.sun.com/software/chilisoft/ - Mono
does similar for ASP.Net.  It might be barely possible to use Tomcat to
retrieve pages from such a back-end system and forward them to the
client browser, but I suspect it would be a poor engineering solution.

What are you trying to do?

- 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: .asp and tomcat 5.5.9

2005-05-12 Thread Trung Nguyen
Charlie,

Thank you very much for the reply.  This is what we want, we just want people 
think that the site is written in .asp but it is really java.  How do I mapy 
.extension to servlet?

Thanks,
Trung


-Original Message-
From: Charles Harvey III [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 12, 2005 9:55 AM
To: Tomcat Users List
Subject: Re: .asp and tomcat 5.5.9


You can map any .extension to a servlet.  It can be .asp, .php,
.do, .html or .java.  Now, that DOES NOT mean that Tomcat will
render an actual .asp page written in VBScript.  It just means
that you can have people think that your website is written in
.asp but it is really java.



Charlie


Arup Vidyerthy said the following on 5/12/2005 9:44 AM:

Why would anybody want that? You should be writing your application in Java
:-D

Sorry couldn't help. And no, I do not know if Tomcat can support .asp!

Arup



-Original Message-
From: Trung Nguyen [mailto:[EMAIL PROTECTED] 
Sent: 12 May 2005 14:36
To: tomcat-user@jakarta.apache.org
Subject: .asp and tomcat 5.5.9

Hello,

Is there a way to configure tomcat 5.5.9 to support .asp extension?  

Thanks,
Trung


-
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]


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



RE: .asp and tomcat 5.5.9

2005-05-12 Thread Trung Nguyen
Thanks all of you.  I did create a simple context and named all the files with 
*.asp instead of *.jsp and mapped .asp to servlet. It worked.

thanks again,
Trung

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



RE: SSL on multiple IP addreses?

2005-05-12 Thread Trung Nguyen
You can configure multiple IP adresses on a single NIC and add new IP/domain 
name to the server.xml

To configure multiple IP address on a single NIC on Linux (RHEL):
1.  cd /etc/sysconfig/network-scripts
2.  Make a copy of ifcfg-eth0 to ifcfg-eth0:0
3.  Edit ifcfg-eth0:0 and change DEVICE to eth0:0 and change the IPADDR to new 
IP

You can do this as many as you want by increase the last number by 1.

Hope this help.
Trung




-Original Message-
From: David Wall [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 12, 2005 1:31 PM
To: Tomcat Users List
Subject: Re: SSL on multiple IP addreses?


How will you configure multiple IP addresses on a single NIC?  Normally, 
you have one NIC per IP address.  You will need to use two keystores for 
each system, and configure the keystores as you normally would under the 
SSL connector.  I'm not sure how to configure the CoyoteConnector so 
that it will listen on a particular IP address, but the docs no doubt 
explain how.

Good luck...


Paul Singleton wrote:

 I'm trying to set up several SSL-enabled virtual hosts
 under Tomcat 5.5.9 (Linux), each on a different IP address
 (all via the same NIC).

 I think I need a separate certificate (self-signed is OK)
 for each, but cannot see how to associate them...

 Do I have to create separate keystores? or is there a
 neater way?

 Paul Singleton
 Jambusters Ltd



-
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: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-05-12 Thread Trung Nguyen
Put these lines into web.xml file

welcome-file-list
welcome-filehome.htm/welcome-file
/welcome-file-list

Hope this help!

Trung


-Original Message-
From: PAlvin [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 12, 2005 5:31 PM
To: Tomcat Users List
Subject: Re: How get www.site.com homepage requests to forward to Tomcat
without a redirect?


Removing the [R] from the RewriteRule breaks everything and no page 
is served:

RewriteRule ^/$ /home.htm  **does not work**

I'm curious: how does everyone else map the domain request to an 
actual page???

domain.com --to-- domain.com/home.htm

Everyone must be doing this, right?  What are other solutions for 
doing this?

Pete



On Mon, 25 Apr 2005 08:13:19 +0200, Trond G. Ziarkowski wrote:
Hi,

try removing the [R] from your RewriteRule. If you read up on the
mod_rewrite docs, you should see that the [R] flag is causing the
redirect.

Trond

PAlvin wrote:

I'm currently using Tomcat 4.

When someone goes to my site, say, www.site.com, I'd like it run a
servlet for the home page instead of a static page (my entire site
is
dynamic).

I configured the connector to send all *.htm files to Tomcat and I
created a re-write rule in the Apache configuration file like this:

RewriteEngine on
RewriteRule ^/$ /home.htm [R]

This works great, EXCEPT, that the browser is sent a redirect and I
heard that is bad for search engines.

I could send *all* http requests to tomcat, BUT, obviously, I DON'T
want Tomcat serving up images.

So, is there any way to configure Apache and/or Tomcat to make:

www.site.com ---run-- www.site.com/home.htm

without a redirect?

How do I get www.site.com requests to go to Tomcat???

Peter Alvin
mobile 719-210-3858
skype 'smartmicro'








-
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]


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



RE: Tomcat For SSL

2005-05-23 Thread Trung Nguyen
Tomcat handles SSL certificates as it is, but I'd recommend install Apache to 
handle all cert instead of Tomcat.



-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED]
Sent: Monday, May 23, 2005 9:39 AM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat For SSL


Hello,

I have a webapp that is running on Tomcat 5.5. I have always developed just 
using Tomcat. Now I want to take a site, and host it. The site will also run 
certificates for SSL. Should I wrap my site around Apache now. Meaning should I 
install apache and put tomcat inside? Or however this is done. Or can tomcat 
handle SSL certificates (from Verisign?) as it is. I hear of security issues, 
etc.

Any information would be appreciated.

Thanks,
Scott

-
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: Confusing Error

2005-07-06 Thread Trung Nguyen
From catalina.out, you can find the root cause for this error, It's usually 
right below this error...

-Original Message-
From: Gary Green [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 06, 2005 2:00 PM
To: tomcat-user@jakarta.apache.org
Subject: Confusing Error


I'm using tomcat version 5.5.7 with jdk 1.5.0_04 on a linux system.  One of 
my apps is giving me the following error when I try to access it.  From 
catalina.out:

SEVERE: Servlet.service() for servlet default threw exception
java.lang.NullPointerException
at 
org.apache.catalina.servlets.DefaultServlet.renderHtml(DefaultServlet.java:1345)
at 
org.apache.catalina.servlets.DefaultServlet.render(DefaultServlet.java:1102)
at 
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:807)
at 
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:335)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)


I'm pretty sure it's something with our code, because another version of the 
web app seems to run fine.  The problem is that I can't figure out what this 
error message is telling me and where to start looking.  What exactly does 
this mean?  What problem am I getting?

Thanks for any help.

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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


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



Tomcat Manager

2005-09-19 Thread Trung Nguyen
Hello All, 

I'm trying to setup/configure the tomcat manager, but i got this error below 
when access to http://localhost/manager/html, the login screen popup though...
any ideas?


1995-09-19 17:57:02,878 [TP-Processor24] ERROR 
org.apache.catalina.realm.JAASRealm - Unexpected error
java.lang.SecurityException: Unable to locate a login configuration
at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:97)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at javax.security.auth.login.Configuration$3.run(Configuration.java:216)
at java.security.AccessController.doPrivileged(Native Method)
at 
javax.security.auth.login.Configuration.getConfiguration(Configuration.java:210)
at javax.security.auth.login.LoginContext$1.run(LoginContext.java:237)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.init(LoginContext.java:234)
at javax.security.auth.login.LoginContext.init(LoginContext.java:403)
at org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:355)
at 
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:181)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:481)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:383)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException: Unable to locate a login configuration
at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:206)
at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:95)
... 28 more

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



RE: Multi-level context paths possible in TC 5.5.9?

2005-09-30 Thread Trung Nguyen
David,

You can do this by modify the server.xml file from $TOMAT_HOME/conf/ directory:

Host name=www.myserver.com debug=0 unpackWARs=true
Context path=/level1/level2 docBase=/usr/var/apps/SiteData 
debug=0 reloadable=true crossContext=true /
/Host

Where docBase is where you store your app. (SiteData)

Hope this help

---Trung


-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: Friday, September 30, 2005 1:47 PM
To: Tomcat Users List
Subject: Multi-level context paths possible in TC 5.5.9?


I am trying to migrate a webapp from SilverStream 3.7.5 to Tomcat, while 
keeping the same URL for my users.  Right now, they hit it at 
www.myserver.com:port/level1/level2/Login.jsp, where level1 is a 
database name, and level2 is a name we assigned.

The .war that provides the content is called SiteData.war, so when I 
deploy it to tomcat, it shows up at context path /SiteData.  I would 
love it if Tomcat could present the same stuff at the /level1/level2 
path.  If I have to deploy it as individual files instead of in a .war 
file, that's ok to, as would be other mods to path names, etc.  If 
someone could just give me some hints, I'd be very grateful.

BTW, I spent several hours googling and searching newsgroups, and found 
nothing showing multi-level context paths, so I don't even know for sure 
if it's possible.

Thanks!

-
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: Multi-level context paths possible in TC 5.5.9?

2005-09-30 Thread Trung Nguyen
David,

Set crossContext to true if you want calls within this application to 
ServletContext.getContext() to successfully return a request dispatcher for 
other web applications running on this virtual host. Set to false (the default) 
in security conscious environments, to make getContext() always return null.

Hope this help.

---Trung


-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: Friday, September 30, 2005 2:47 PM
To: Tomcat Users List
Subject: Re: Multi-level context paths possible in TC 5.5.9?


Awesome!!!  Worked first time.  I had tried messing with context 
paths in an application .xml, but never thought to try the server.xml.

One question:  what does the crossContext flag do?  Or is that what 
lets it look to a different path for the context path?  The help files I 
looked through don't list it...

Thanks a bunch!!


Trung Nguyen wrote:
 David,
 
 You can do this by modify the server.xml file from $TOMAT_HOME/conf/ 
 directory:
 
 Host name=www.myserver.com debug=0 unpackWARs=true
   Context path=/level1/level2 docBase=/usr/var/apps/SiteData 
 debug=0 reloadable=true crossContext=true /
 /Host
 
 Where docBase is where you store your app. (SiteData)
 
 Hope this help
 
 ---Trung
 
 
 -Original Message-
 From: David Kerber [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 30, 2005 1:47 PM
 To: Tomcat Users List
 Subject: Multi-level context paths possible in TC 5.5.9?
 
 
 I am trying to migrate a webapp from SilverStream 3.7.5 to Tomcat, while 
 keeping the same URL for my users.  Right now, they hit it at 
 www.myserver.com:port/level1/level2/Login.jsp, where level1 is a 
 database name, and level2 is a name we assigned.
 
 The .war that provides the content is called SiteData.war, so when I 
 deploy it to tomcat, it shows up at context path /SiteData.  I would 
 love it if Tomcat could present the same stuff at the /level1/level2 
 path.  If I have to deploy it as individual files instead of in a .war 
 file, that's ok to, as would be other mods to path names, etc.  If 
 someone could just give me some hints, I'd be very grateful.
 
 BTW, I spent several hours googling and searching newsgroups, and found 
 nothing showing multi-level context paths, so I don't even know for sure 
 if it's possible.
 
 Thanks!
 
 -
 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]


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



RE: Why getting this error?

2005-10-03 Thread Trung Nguyen
Ritchie,

No, it's not in server.xml, It's in $TOMCAT_HOME/bin/catalina.sh, add this line 
below:

JAVA_OPTS=-server -XX:MaxPermSize=256m

Hope this help

--Trung


-Original Message-
From: Ritchie Gillam [mailto:[EMAIL PROTECTED]
Sent: Monday, October 03, 2005 9:34 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: Why getting this error?


Thanks Peter!  Can you provide an example please?   Is this defined somewhere 
in the server.xml file?

Thanks

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:29 am 
 From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
 java.lang.OutOfMemoryError: PermGen space

Although your Java virtual machine has enough memory allocated to it,
something (probably the number of classes being loaded, or the number of
times you're reloading the webapp) is causing the permanent generation
to fill up.  This holds class files, for example.  PermGen defaults to
64 Mbytes, no matter how much heap space is allocated to Java.

Increase the memory allocated to PermGen using eg. -XX:MaxPermSize=128m
to double it.

- 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]


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



RE: Why getting this error?

2005-10-03 Thread Trung Nguyen
If you haven't set this variable elsewhere within the box, PermGen defaults to 
64MB, otherwise, you can see the size by using ps -avx command

--Trung


-Original Message-
From: Ritchie Gillam [mailto:[EMAIL PROTECTED]
Sent: Monday, October 03, 2005 9:48 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: Why getting this error?


Thanks, I will set the JAVA_OPTS variable. Is there a way to see what the Size 
is now before I change it?

Thanks,

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:45 am 
Ritchie,

No, it's not in server.xml, It's in $TOMCAT_HOME/bin/catalina.sh, add this line 
below:

JAVA_OPTS=-server -XX:MaxPermSize=256m

Hope this help

--Trung


-Original Message-
From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 03, 2005 9:34 AM
To: tomcat-user@jakarta.apache.org 
Subject: RE: Why getting this error?


Thanks Peter!  Can you provide an example please?   Is this defined somewhere 
in the server.xml file?

Thanks

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED] 
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:29 am 
 From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
 java.lang.OutOfMemoryError: PermGen space

Although your Java virtual machine has enough memory allocated to it,
something (probably the number of classes being loaded, or the number of
times you're reloading the webapp) is causing the permanent generation
to fill up.  This holds class files, for example.  PermGen defaults to
64 Mbytes, no matter how much heap space is allocated to Java.

Increase the memory allocated to PermGen using eg. -XX:MaxPermSize=128m
to double it.

- 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] 


-
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: setting the context path in tomcat5.5.9?

2005-10-04 Thread Trung Nguyen
To add the context path, you need to edit the $TOMCAT_HOME/conf/server.xml file 
and these lines:

Host name=www.yourdomainname.com debug=0 unpackWARs=true
Context path=/myApp docBase=/where/you/store/your/apps debug=0 
reloadable=true crossContext=true /
/Host

Hope this help...

---Trung


-Original Message-
From: Mbah Tenjoh-Okwen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 04, 2005 4:13 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: setting the context path in tomcat5.5.9?


hello

i would like to know how to set the context path in
tomcat5.5.9 hi

 I  also read something and a build.properties file
and i dont know how to do this too.

please i need help on this cause i cant see my
application file when i give in the uri
http://localhost:8080/myApp






___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.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]