RE: JDK

2006-10-30 Thread Jim Weir

From: Caldarale, Charles R [EMAIL PROTECTED]

Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: RE: JDK
Date: Sun, 29 Oct 2006 22:57:39 -0600

 From: Jim Weir [mailto:[EMAIL PROTECTED]
 Subject: JDK

 I recently upgraded to jdk1.5.0_09, now when I start tomcat I
 get this in the error log and can't run my webapps,

You don't say what version of Tomcat you're using, but if it's 5.5.x,
you must remove the 1.4 Compatibility Package when running on a 1.5 JRE
or JDK.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




It's 5.5.4..

How do I remove the 1.4 Compatibility Package?

Thanks,
Jim

_
Add a Yahoo! contact to Windows Live Messenger for a chance to win a free 
trip! 
http://www.imagine-windowslive.com/minisites/yahoo/default.aspx?locale=en-ushmtagline



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JDK

2006-10-30 Thread Jim Weir

From: Caldarale, Charles R [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: RE: JDK
Date: Mon, 30 Oct 2006 12:53:47 -0600

 From: Jim Weir [mailto:[EMAIL PROTECTED]
 Subject: RE: JDK

 It's 5.5.4..

That's pretty old, and a lot of fixes have gone in since then.  I'd
suggest moving up.

 How do I remove the 1.4 Compatibility Package?

In 5.5.20, the Compatibility Package adds three jars:
bin/jmx.jar
common/endorsed/xercesImpl.jar
common/endorsed/xml-apis.jar

Simply delete them and restart Tomcat.

5.5.4 may have had only the last two - I don't remember for sure.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Tthe jk connector has changed and it would create a lot of work for me to 
modify each webapp.


I renamed this file, common/endorsed/xml-apis.jar.  It was the oinly one 
there..


now I get this error...

Oct 30, 2006 9:39:12 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Oct 30, 2006 9:39:13 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1364 ms
Oct 30, 2006 9:39:13 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 30, 2006 9:39:13 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.4
Oct 30, 2006 9:39:13 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Oct 30, 2006 9:39:13 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive JavaBridge.war
Oct 30, 2006 9:39:13 PM org.apache.catalina.core.ApplicationContext log
INFO: default: DefaultServlet.init:  input buffer size=2048, output buffer 
size=2048

INFO - WebAppSecurityFilter.init(25) | SecurityFilter 1
Oct 30, 2006 9:39:29 PM org.apache.catalina.core.ApplicationContext log
INFO: default: DefaultServlet.init:  input buffer size=2048, output buffer 
size=2048

ERROR - Error loading WebappClassLoader
 delegate: false
 repositories:
   /WEB-INF/classes/
-- Parent Classloader:
[EMAIL PROTECTED]
org.apache.cocoon.servlet.CocoonServlet
java.lang.ClassNotFoundException: org.apache.cocoon.servlet.CocoonServlet
	at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1332)
	at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
	at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:988)

at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:886)
	at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3817)
	at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4079)
	at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:755)

at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
	at 
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:886)
	at 
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:849)

at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1079)
	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:1011)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:437)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2010)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
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:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
ERROR - Servlet /ourwebsite threw load() exception

JDK

2006-10-29 Thread Jim Weir
I recently upgraded to jdk1.5.0_09, now when I start tomcat I get this in 
the error log and can't run my webapps,


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:585)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408)
Caused by: javax.xml.parsers.FactoryConfigurationError: Provider 
org.apache.xerces.jaxp.SAXParserFactoryImpl not found

at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at 
org.apache.tomcat.util.digester.Digester.getFactory(Digester.java:486)
at org.apache.tomcat.util.digester.Digester.getParser(Digester.java:691)
at 
org.apache.tomcat.util.digester.Digester.getXMLReader(Digester.java:899)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
at org.apache.catalina.startup.Catalina.load(Catalina.java:473)
at org.apache.catalina.startup.Catalina.load(Catalina.java:509)
... 6 more

What can I do to get it to work?

Jim

_
Try Search Survival Kits: Fix up your home and better handle your cash with 
Live Search! 
http://imagine-windowslive.com/search/kits/default.aspx?kit=improvelocale=en-USsource=hmtagline



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Moving to JBoss

2006-09-16 Thread Jim Weir
I have an webapp that requires a J2EE app server and I was looking at JBOSS 
because it has Tomcat as the servlet engine, I am hoping it would be easy to 
migrate all my webapps over.  I have Apache with the JK connector.


Does anyone know the simplest way to do it?

Thanks,
Jim

_
Got something to buy, sell or swap? Try Windows Live Expo  
ttp://clk.atdmt.com/MSN/go/msnnkwex001001msn/direct/01/?href=http://expo.live.com/



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Configuring/Securing mod_proxy_ajp

2006-09-07 Thread Jim Weir

To all,

I am using mod_proxy_ajp w/ Apache 2.2.3/Tomcat 5.5.4

The problem I have with this is that I lose all my formatting from a site 
build with Forrest.  It seems to be returning only HTML and dropping all the 
CSS...Forrest uses XML/XSLT extensively...


(http://forrest.apache.org/)

When I point the URL to a directory to a java Servlet based site everything 
is fine.


Why would it do this?  Should I enable a certain return type in the 
VirtualHost?


VirtualHost *:80
 ServerName www.mysite.org
 ServerAdmin [EMAIL PROTECTED]
 ServerAlias mysite.org  *.mysite.org
 DocumentRoot /usr/opt/tomcat/webapps/mysite
 ErrorLog logs/mysite.org-error_log
 CustomLog logs/mysite.org-access_log common
 Directory /usr/opt/tomcat/webapps/mysite
 Options FollowSymLinks
 AllowOverride None
 Order allow,deny
 Allow from all
 /Directory

 Proxy balancer://mycluster2
  BalancerMember ajp://www.mysite.org:8009/mysite
 /Proxy
 Location /mysite
   ProxyPass balancer://mycluster2
 /Location
/VirtualHost


I am also wondering if there are any security problems with this config.

Thank you,
Jim

_
Call friends with PC-to-PC calling -- FREE   
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-ussource=wlmailtagline



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AJP connector configuration

2006-09-06 Thread Jim Weir
Is my old worker.properties file I added this to complete the Apache 
2.0.48/Tomcat 5.5 workers.properties configuration and everything worked 
fine.


uri:/mysite/*]
worker=ajp13:localhost:8009


Since installing Apache 2.2.3 I can't get to my website without appending 
the directory onto the end of the URL,


I tried adding the above to workers.peoperties and it doesn't help.  Can 
anybody explain what changed in the configuration that's not in the 
documentation...that will fix this?



Jim

_
Call friends with PC-to-PC calling -- FREE   
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-ussource=wlmailtagline



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk garbled - how to change JK* directives for ProxyPass?

2006-09-06 Thread Jim Weir

From: Pid [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: mod_jk garbled - how to change JK* directives for ProxyPass?
Date: Wed, 06 Sep 2006 16:50:05 +0100

Do a mod_rewrite with the [P] directive for JSPs



RewriteRule ^\/(.+)\.jsp(.+)?
ajp://tomcat.server:8009/$1.jsp$2 [P,L]

RewriteRule ^\/(.+)\.xml(.+)?
ajp://tomcat.server:8009/$1.xml$2 [P,L]

RewriteRule ^\/(.+)\/j_security_check(.+)?
ajp://tomcat.server:8009/$1/j_security_check$2 [P,L]



Or with a cluster...



RewriteRule ^\/(.+)\.jsp(.+)?
balancer://mycluster/$1.jsp$2 [P,L]

RewriteRule ^\/(.+)\.xml(.+)?
balancer://mycluster/$1.xml$2 [P,L]

RewriteRule ^\/(.+)\/j_security_check(.+)?
balancer://mycluster/$1/j_security_check$2 [P,L]




Tom wrote:
 Now, after implementing mod_proxy_ajp, I do not have a clue how to
 change all of the JK* settings to use the new mod_proxy_ajp approach.
 Previously I used  JKmount /*.jsp worker1

 I am not sure how to use a Location for a LocationMatch.  I did
 experiment with LocationMatch .jsp but that did not seem to work.

 Mladen Turk wrote:
 David Smith wrote:
 And the Apache httpd module API is as far as I understand a moving
 target.  Modules for 2.0.x are not compatible with 2.2.  Try one
 built for 2.2, or if available,

 It is not available, neither it will be.
 The preferred solution is to use the mod_proxy with
 mod_proxy_ajp and mod_proxy_balancer.

 use the mod_rewrite for 2.2.  It's supposed to be able to handle the
 AJP/1.3 protocol.


 Use mod_proxy and mod_proxy_ajp.
 Although mod_rewrite can be used, it lacks the AJP
 protocol configuration (uses defaults).

 Regards,
 Mladen.

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



If I am following this thread correctly it seems that with Apache 2.2.3 the 
better(suggested?) way to connect to Tomcat is to use mod_proxy_ajp, which 
is compiled into Apache by default.


Is that the case?  Is this the technical direction the AJP connector will be 
taking?


Jim

_
Check the weather nationwide with MSN Search: Try it now!  
http://search.msn.com/results.aspx?q=weatherFORM=WLMTAG



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk garbled - how to change JK* directives for ProxyPass?

2006-09-06 Thread Jim Weir

From: Mladen Turk [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: mod_jk garbled - how to change JK* directives for ProxyPass?
Date: Wed, 06 Sep 2006 19:29:12 +0200

Jim Weir wrote:

From: Pid [EMAIL PROTECTED]
Tom wrote:

 Mladen Turk wrote:
 David Smith wrote:




You should really consider learning how to quote :)

If I am following this thread correctly it seems that with Apache 2.2.3 
the better(suggested?) way to connect to Tomcat is to use mod_proxy_ajp, 
which is compiled into Apache by default.




Yes. There are some advanced load balancing things present
in mod_jk only, but we are porting them to mod_proxy_balancer.

Is that the case?  Is this the technical direction the AJP connector will 
be taking?




Yes, mod_jk will continue to support pre 2.2 apaches and
other servers like IIS depending on their relevance.
For Apache 2.2+ (like said) use mod_proxy_*.

Of course, we'll continue to have mod_jk buildable on
apache 2.2+ (if you need 2.2+ and wish to keep your
old configs).

Regards,
Mladen.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



...bye bye JK and worker.properties...I am now using only mod_proxy_ajp, 
undid all my JK changes.


The only problem I have with this is that I lose all my formatting from a 
site build with Forrest.  It seems to be returning only HTML and dropping 
all the CSS...


(http://forrest.apache.org/)

When I point the URL to a directory to a java Servlet based site everything 
is fine.


Why would it do this?  Should I enable a certain return type in the 
VirtualHost?


VirtualHost *:80
  ServerName www.mysite.org
  ServerAdmin [EMAIL PROTECTED]
  ServerAlias mysite.org  *.mysite.org
  DocumentRoot /usr/opt/tomcat/webapps/mysite
  ErrorLog logs/mysite.org-error_log
  CustomLog logs/mysite.org-access_log common

  Directory /usr/opt/tomcat/webapps/mysite
  Options FollowSymLinks
  AllowOverride None
  Order allow,deny
  Allow from all
  /Directory

  Proxy balancer://mycluster2
 BalancerMember ajp://www.mysite.org:8009/mysite
  /Proxy
  Location /mysite
ProxyPass balancer://mycluster2
  /Location
/VirtualHost

_
Get the new Windows Live Messenger!   
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-ussource=wlmailtagline



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Apache Tomcat Connector

2006-09-05 Thread Jim Weir

To all,

 My JK connector is working but I can't figure out how to forward to 
Tomcat.  How do I know?


In my Catalina log file it says,

INFO: JK2: ajp13 listening on /0.0.0.0:8009

I tried many modifications to the httpd-vhosts.conf below and can generate 
an error in the mod_jk.log by changing worker1 to worker, it generates 
this error,


[Tue Sep 05 10:09:56 2006] [12042:63168] [info]  jk_handler::mod_jk.c 
(1986): Could not find a worker for worker name=worker




In my httpd-vhosts.conf I have,

VirtualHost *:80
   ServerName www.mysite.org

  ServerAdmin [EMAIL PROTECTED]
  ServerAlias mysite.org.com  *.mysite.org.com
  DocumentRoot /usr/opt/tomcat/webapps/mysite/

  Alias / /usr/opt/tomcat/webapps/mysite

  JkMount /*.* worker
  JkMount /*/servlet/ worker

/VirtualHost

It seems to me that there's something in the httpd-vhosts.conf but I'm 
really no positive that's the case...could it be the server.xml?


This is the entry I have in the server.xml,

Host name=www.mysite.org appBase=webapps
  unpackWARs=true autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false
/Host

Thanks in advance for any advice,
Jim

_
Call friends with PC-to-PC calling -- FREE   
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-ussource=wlmailtagline



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Apache Tomcat Connector

2006-09-05 Thread Jim Weir

From: Jim Weir [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: users@tomcat.apache.org
Subject: Apache Tomcat Connector
Date: Tue, 05 Sep 2006 10:20:36 -0400

To all,

 My JK connector is working but I can't figure out how to forward to 
Tomcat.  How do I know?


In my Catalina log file it says,

INFO: JK2: ajp13 listening on /0.0.0.0:8009

I tried many modifications to the httpd-vhosts.conf below and can generate 
an error in the mod_jk.log by changing worker1 to worker, it generates 
this error,


[Tue Sep 05 10:09:56 2006] [12042:63168] [info]  jk_handler::mod_jk.c 
(1986): Could not find a worker for worker name=worker




In my httpd-vhosts.conf I have,

VirtualHost *:80
   ServerName www.mysite.org

  ServerAdmin [EMAIL PROTECTED]
  ServerAlias mysite.org.com  *.mysite.org.com
  DocumentRoot /usr/opt/tomcat/webapps/mysite/

  Alias / /usr/opt/tomcat/webapps/mysite

  JkMount /*.* worker
  JkMount /*/servlet/ worker

/VirtualHost

It seems to me that there's something in the httpd-vhosts.conf but I'm 
really no positive that's the case...could it be the server.xml?


This is the entry I have in the server.xml,

Host name=www.mysite.org appBase=webapps
  unpackWARs=true autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false
/Host

Thanks in advance for any advice,
Jim

_
Call friends with PC-to-PC calling -- FREE   
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-ussource=wlmailtagline



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




I can now forward to tomcat and get a response but I can't get the URL 
figured out...


However I can't access my site w/o appending the directory to the end of the 
URL?  What do I need to do to fix this?


www.mysite.org.com doesn't work,
www.mysite.org.com/webdir works,

This is my httpd-vhosts.http,

VirtualHost *:80
  ServerName www.mysite.org

  ServerAdmin [EMAIL PROTECTED]
  ServerAlias mysite.org  *.mysite.org
  DocumentRoot /usr/opt/tomcat/webapps/mysite

  JkMount /mysite worker1
  JkMount /mysite/* worker1

/VirtualHost

I can get to my struts app by doing,

www.mysite.org.com/mysite/Logon.do

Thanks for your help,
Jim

_
Windows Live Spaces is here! It’s easy to create your own personal Web site. 
 http://spaces.live.com/signup.aspx



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Apache 2.2.3 - Tomcat 5.5.17 - Jk config 2.1.8

2006-09-03 Thread Jim Weir

To all,

I have two issues I need to solve.  I set up a virtual host and

1- I would like to take away port 8080 so anybody browsing 
www.mysite.com:8080 couldn't see the Tomcat Admin screen...


2 - I can't see the second virtual host unless I put the directory path 
after the virual host,


www.mysite.org won't take me there but www.mysite.org/mysite will..

I get this error,

Forbidden
You don't have permission to access / on this server.

This is my httpd-vhosts.conf entry,

VirtualHost *:80
   ServerName www.mysite.org
   ServerAdmin [EMAIL PROTECTED]
   DocumentRoot /usr/opt/tomcat/webapps/mysite
   ServerAlias mysite.org *.mysite.org
   ErrorLog logs/mysite.com-error_log
   CustomLog logs/mysite.com-access_log common

   JkMount /mysite ajp13
   JkMount /mysite/* ajp13
/VirtualHost

This is the ertry in server.xml

 Host name=www.mysite.org appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
 /Host

I also tried,
 Host name=www.mysite.org appBase=webapps/mysite

This is the entry oin server.xml that auto generates jk_mod.conf,

   Engine name=Catalina defaultHost=localhost
   Listener className=org.apache.jk.config.ApacheConfig
  configHome = /usr/opt/tomcat/conf
  jkConfig = /usr/opt/tomcat/conf/auto/mod_jk.conf
  workersConfig = /usr/opt/tomcat/conf/jk/workers.properties
  modJk = /usr/local/apache2/modules/mod_jk.so
  jkLog = /usr/opt/tomcat/conf/auto/mod_jk.log
 /

This is the mod_jk.conf that gets generated,

## Auto generated on Sun Sep 03 17:41:05 EDT 2006##

IfModule !mod_jk.c
 LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
/IfModule

JkWorkersFile /usr/opt/tomcat/conf/jk/workers.properties
JkLogFile /usr/opt/tomcat/conf/auto/mod_jk.log

JkLogLevel emerg

VirtualHost localhost
   ServerName localhost
   JkMount /mysite ajp13
   JkMount /mysite/* ajp13
/VirtualHost


I appreciate any feedback,

Thanks,
Jim

_
Windows Live Spaces is here! It’s easy to create your own personal Web site. 
 http://spaces.live.com/signup.aspx



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Apache 80 Tomcat 8080

2006-09-02 Thread Jim Weir

From: Propes, Barry L [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: RE: Apache 80 Tomcat 8080
Date: Fri, 1 Sep 2006 16:19:02 -0400

in the server.xml file, (in the conf dir) see if you have a line like this:

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector 
className=org.apache.catalina.connector.http.HttpConnector

   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
!-- Note : To disable connection timeouts, set connectionTimeout 
value

 to -1 --

port=8080 is where you configure it.

-Original Message-
From: Jim Weir [mailto:[EMAIL PROTECTED]
Sent: Friday, September 01, 2006 2:59 PM
To: users@tomcat.apache.org
Subject: Apache 80 Tomcat 8080


I can broswe my html site with www.myhtml.com..

I can't get to my Tomcat deployed webapps without adding 8080 on the end,
This is my workers.properties entry,

[uri:/mysite/*]
info=MySite.org

...http-vhosts.conf entry,

VirtualHost *:80
  Directory /usr/opt/tomcat/webapps/mysite
  Options Indexes FollowSymLinks
  AllowOverride None
  Order allow,deny
  Allow from all
  /Directory

   ServerAdmin [EMAIL PROTECTED]
   ServerAlias .org  *.MySite.org

   DocumentRoot /usr/opt/tomcat/webapps/mysite

/VirtualHost


Tomcat 5.1.17
Apache 2.2.3
JK 2.1.18

What do I need to configure?

Thanks,
Jim

_
Check the weather nationwide with MSN Search: Try it now!
http://search.msn.com/results.aspx?q=weatherFORM=WLMTAG


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



If I change it in tomcat won't there be a conflict with Apache?  The'll 
bothbe listening on port 80.


I want to server up static content with Apache using the JK connector for 
JSP/servlets...


_
Got something to buy, sell or swap? Try Windows Live Expo  
ttp://clk.atdmt.com/MSN/go/msnnkwex001001msn/direct/01/?href=http://expo.live.com/



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Apache 80 Tomcat 8080

2006-09-01 Thread Jim Weir

I can broswe my html site with www.myhtml.com..

I can't get to my Tomcat deployed webapps without adding 8080 on the end,
This is my workers.properties entry,

[uri:/mysite/*]
info=MySite.org

...http-vhosts.conf entry,

VirtualHost *:80
 Directory /usr/opt/tomcat/webapps/mysite
 Options Indexes FollowSymLinks
 AllowOverride None
 Order allow,deny
 Allow from all
 /Directory

  ServerAdmin [EMAIL PROTECTED]
  ServerAlias .org  *.MySite.org

  DocumentRoot /usr/opt/tomcat/webapps/mysite

/VirtualHost


Tomcat 5.1.17
Apache 2.2.3
JK 2.1.18

What do I need to configure?

Thanks,
Jim

_
Check the weather nationwide with MSN Search: Try it now!  
http://search.msn.com/results.aspx?q=weatherFORM=WLMTAG



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Apache + Tomcat configuration: static / dynamic content (with ROOT applicati

2006-08-31 Thread Jim Weir

From: Chris Berthold [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: RE: Apache + Tomcat configuration: static / dynamic content (with 
ROOT application deployed)

Date: Thu, 31 Aug 2006 12:27:28 -0400

Place the static content in Apache in the directories that would be
referenced by Tomcat.  The way you did it will work but it is not
recommended especially if you would like to deploy WAR files quickly and
the static content does not change often.  You can deploy the files to a
different document root in apache and this solution will still work.
You were close in what you needed to do.  You are only missing a few
entries

JkUnmount /images/
JkUnmount /webappA/images/
JkUnmount /webappB/images/

Jkmount will include an entire tree.
Jkunmount excludes parts of the directory tree.

-Original Message-
From: Hua Hou [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 30, 2006 10:11 AM
To: tomcat-user@jakarta.apache.org; users@tomcat.apache.org
Subject: Apache + Tomcat configuration: static / dynamic content (with
ROOT application deployed)

I think this question had been asked before. But when I searched the
tomcat user group, I don't find a satisfactory answer.



Here is my question: How to configure Apache  Tomcat so that Apache
handles static content for virtual host with more than one web
applications?

My web application directories are as following:

/webapps/

/webapps/webappA/

/webapps/webappB/

/webapps/ROOT/



I have three web applications (contexts): the default(),
webappA(/webappA), and webappB(/webappB). Each application has both
static content and dynamic content (JSP/servlet).



in Apache httpd.conf, I have the following virtual host definition:



NameVirtualHost *:80

VirtualHost *:80

ServerName www.myserver.com

DocumentRoot F:/Tomcat5.5/webapps

JkMount  /servlet/* worker1

JkMount  /*.jsp worker1

/VirtualHost



With this configuration, everything works, except that the static
content for the default application (/ROOT) can't be loaded by Apache
because Apache can't find the content.



If I change the DocumentRoot to:

DocumentRoot F:/Tomcat5.5/webapps/ROOT



The static content for the default application can be loaded by Apache,
but the static content for the other two web apps can't be loaded
(outside of DocumentRoot).



How can I configure virtual host so that the above problem can be
solved?



I did figure out a workaround, here it is:



NameVirtualHost *:80

VirtualHost *:80

ServerName www.myserver.com

DocumentRoot F:/Tomcat5.5/webapps/ROOT

Alias /webappA/ F:/Tomcat5.5/webapps/webappA

Alias /webappB/ F:/Tomcat5.5/webapps/webappB

JkMount  /servlet/* worker1

JkMount  /*.jsp worker1

/VirtualHost



With the above configuration, all static / dynamic content for all the
three web apps can be loaded properly. However, is this a standard /
recommended configuration?



Your help will be greatly appreciated!



Best Regard,



Hua Hou




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




..are you using JK 1.2.18?

Jim

_
All-in-one security and maintenance for your PC.  Get a free 90-day trial!   
http://www.windowsonecare.com/trial.aspx?sc_cid=msn_hotmail



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using tomcat auto configure

2006-08-29 Thread Jim Weir

From: Bill Barker [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: users@tomcat.apache.org
Subject: Re: Using tomcat auto configure
Date: Mon, 28 Aug 2006 19:54:01 -0700

Tomcat version?  Older versions didn't support ApacheConfig under Engine.

Jim Weir [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I can generate a mod_jk.conf with the folllowing in my server.xml.  The
problem is it's a blank file..

Engine name=Catalina defaultHost=www.mysite.com
 Listener className=org.apache.jk.config.ApacheConfig
 modJk=/usr/local/apache2/modules/mod_jk.so
   jkConfig = /usr/opt/tomcat/conf/auto/mod_jk.conf
   jkWorker = /usr/local/apache2/conf/workers2.properties
   modJk = /usr/local/apache2/modules/mod_jk.so
   /
 .
 .
 .
 Anybody?

 Thanks,
 Jim

 _
 Search from any web page with powerful protection. Get the FREE Windows
 Live Toolbar Today!   http://get.live.com/toolbar/overview


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Tomcat 5.5.14
Apache 2.2.3
jdk1.5.0_02
JK-1.2.18

I tried with the JK-1.2.18 binary, then downloaded and compiled the source.  
Why is the /usr/opt/tomcat/conf/auto/mod_jk.conf file blank?



Thanks,
Jim

_
All-in-one security and maintenance for your PC.  Get a free 90-day trial!   
http://www.windowsonecare.com/trial.aspx?sc_cid=msn_hotmail



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using tomcat auto configure

2006-08-29 Thread Jim Weir

From: Bill Barker [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: users@tomcat.apache.org
Subject: Re: Using tomcat auto configure
Date: Mon, 28 Aug 2006 19:54:01 -0700

Tomcat version?  Older versions didn't support ApacheConfig under Engine.

Jim Weir [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I can generate a mod_jk.conf with the folllowing in my server.xml.  The
problem is it's a blank file..

Engine name=Catalina defaultHost=www.mysite.com
 Listener className=org.apache.jk.config.ApacheConfig
 modJk=/usr/local/apache2/modules/mod_jk.so
   jkConfig = /usr/opt/tomcat/conf/auto/mod_jk.conf
   jkWorker = /usr/local/apache2/conf/workers2.properties
   modJk = /usr/local/apache2/modules/mod_jk.so
   /
 .
 .
 .
 Anybody?

 Thanks,
 Jim

 _
 Search from any web page with powerful protection. Get the FREE Windows
 Live Toolbar Today!   http://get.live.com/toolbar/overview


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.5.14
Apache 2.2.3
JK-1.2.18 released compiled from source

This is the latest server.xml setting I tried,

   Engine name=Catalina defaultHost=www.myserver.com
Listener className=org.apache.jk.config.ApacheConfig
  configHome = /usr/opt/tomcat/conf/
  jkConfig = /usr/opt/tomcat/conf/auto/mod_jk.conf
  workersConfig = 
/usr/local/apache2/conf/workers.properties
  modJk = /usr/local/apache2/modules/mod_jk.so
  jkLog = /usr/opt/tomcat/conf/auto/log.txt
  jkDebug= debug
  /


Can someone post a sample workers.properties file?

Jim



Jim

_
Windows Live Spaces is here! It’s easy to create your own personal Web site. 
 http://spaces.live.com/signup.aspx



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using tomcat auto configure

2006-08-29 Thread Jim Weir





From: Steve Ochani [EMAIL PROTECTED]
To: Jim Weir [EMAIL PROTECTED],   Tomcat Users List 
users@tomcat.apache.org

Subject: Re: Using tomcat auto configure
Date: Tue, 29 Aug 2006 14:02:58 -0400

On 29 Aug 2006 at 13:20, Jim Weir wrote:



 Tomcat 5.5.14
 Apache 2.2.3
 JK-1.2.18 released compiled from source

 This is the latest server.xml setting I tried,

 Engine name=Catalina defaultHost=www.myserver.com
  Listener className=org.apache.jk.config.ApacheConfig
 configHome = /usr/opt/tomcat/conf/
 jkConfig = /usr/opt/tomcat/conf/auto/mod_jk.conf
 workersConfig = /usr/local/apache2/conf/workers.properties
 modJk = /usr/local/apache2/modules/mod_jk.so
 jkLog = /usr/opt/tomcat/conf/auto/log.txt
 jkDebug= debug
/


 Can someone post a sample workers.properties file?

 Jim

--
# 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=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.reclycle_timeout=300
--



I copied it in to /usr/local/apache2/conf/workers.properties	and 
/usr/opt/tomcat/conf/auto/mod_jk.conf is still blank...


What else can I try?

Jim

_
Call friends with PC-to-PC calling -- FREE   
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-ussource=wlmailtagline



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using tomcat auto configure

2006-08-28 Thread Jim Weir
I can generate a mod_jk.conf with the folllowing in my server.xml.  The 
problem is it's a blank file..


   Engine name=Catalina defaultHost=www.mysite.com
	Listener className=org.apache.jk.config.ApacheConfig   
modJk=/usr/local/apache2/modules/mod_jk.so

  jkConfig = /usr/opt/tomcat/conf/auto/mod_jk.conf
  jkWorker = /usr/local/apache2/conf/workers2.properties
  modJk = /usr/local/apache2/modules/mod_jk.so
  /
.
.
.
Anybody?

Thanks,
Jim

_
Search from any web page with powerful protection. Get the FREE Windows Live 
Toolbar Today!   http://get.live.com/toolbar/overview



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]