RE: Re: : tomcat error 404

2011-10-23 Thread Caldarale, Charles R
 From: Dave Filchak [mailto:sub...@zuka.net] 
 Subject: Re: Re: : tomcat error 404

 So where should the Context be?

Apparently, you haven't read the 5.5 docs.  To quote:

For Tomcat 5, unlike Tomcat 4.x, it is NOT recommended to place Context 
elements directly in the server.xml file.

Context elements may be explicitly defined:

In the $CATALINA_HOME/conf/context.xml file: the Context element 
information will be loaded by all webapps.

In the $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default 
file: the Context element information will be loaded by all webapps of that 
host.

In individual files (with a .xml extension) in the 
$CATALINA_HOME/conf/[enginename]/[hostname]/ directory.
 
Only if a context file does not exist for the application in the 
$CATALINA_HOME/conf/[enginename]/[hostname]/; in an individual file at 
/META-INF/context.xml inside the application files.

The META-INF/context.xml location is the usual, when you're packaging a webapp 
up for distribution.

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



Re: : tomcat error 404

2011-10-23 Thread Pid
On 24/10/2011 00:07, Caldarale, Charles R wrote:
 From: Dave Filchak [mailto:sub...@zuka.net] 
 Subject: Re: Re: : tomcat error 404
 
 So where should the Context be?
 
 Apparently, you haven't read the 5.5 docs.  To quote:

Apparently I'm rusty too...  :s

p

 For Tomcat 5, unlike Tomcat 4.x, it is NOT recommended to place Context 
 elements directly in the server.xml file.
 
 Context elements may be explicitly defined:
 
 In the $CATALINA_HOME/conf/context.xml file: the Context element 
 information will be loaded by all webapps.
 
 In the $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default 
 file: the Context element information will be loaded by all webapps of that 
 host.
 
 In individual files (with a .xml extension) in the 
 $CATALINA_HOME/conf/[enginename]/[hostname]/ directory.
  
 Only if a context file does not exist for the application in the 
 $CATALINA_HOME/conf/[enginename]/[hostname]/; in an individual file at 
 /META-INF/context.xml inside the application files.
 
 The META-INF/context.xml location is the usual, when you're packaging a 
 webapp up for distribution.
 
  - 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.
 




signature.asc
Description: OpenPGP digital signature


RE: : tomcat error 404

2011-10-23 Thread Caldarale, Charles R
 From: Pid [mailto:p...@pidster.com] 
 Subject: Re: : tomcat error 404

 Apparently I'm rusty too...  :s

Time flies when you're having bugs...

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


Re: : tomcat error 404

2011-10-23 Thread Pid
On 24/10/2011 00:18, Dave Filchak wrote:
 I upload the JavaMail and JAF libs to
 /home/##/public_html/WEB-INF/lib/ and added them to my $CLASSPATH I
 now get the following:

How did you add them to the classpath?  Tomcat automatically loads Jars
 resources found in its various lib  classes directories, so don't do
that...


p


 Error initializing sub-systems:
 Please check the following:
 1. That your machine has a valid connection to 
 jdbc:mysql://localhost:3306/#_exodus Using:
Username: #_exodus
Password: #
Driver: com.mysql.jdbc.Driver

 
 *DETAILS FOLLOW:*
 java.lang.Exception: Unable to Initialize Environment:
 java.lang.NoClassDefFoundError: javax/mail/Address
   at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source)
   at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source)
   at com.snapmedia.SystemController.init(SystemController.java:86)
   at com.snapmedia.WebSystemController.init(WebSystemController.java:39)
   at 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
   at 
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
   at 
 org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
   at 
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
   at 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
   at 
 org.apache.catalina.core.StandardService.start(StandardService.java:448)
   at 
 org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
   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:597)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
   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:597)
   at 
 org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:219)
 Caused by: java.lang.ClassNotFoundException: javax.mail.Address
   at 
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438)
   at 
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)
   ... 25 more
 
 
 which is a different error but seemingly still to do with mail?
 
 Dave
 
 On 23/10/11 6:34 PM, Pid wrote:
 On 23/10/2011 23:32, Dave Filchak wrote:
 The logs, at least the catalina.err and catalina.out files do not say
 anything much, at least as far as an error goes. I cannot find any other
 log files specific only to this app so they appear not to be working.

 I only see this in catalina.err in the last while:

 Oct 23, 2011 2:59:10 PM org.apache.catalina.core.StandardWrapperValve
 invoke
 SEVERE: Servlet.service() for servlet jsp threw exception
 org.apache.jasper.JasperException:
 /include/../../include/system-checkup.jsp(2,0) The value for the useBean
 class attribute com.snapmedia.WebSystemController is invalid.
 If that class/servlet didn't start because the JavaMail libs are missing
 that would explain why you can't use it.


 p

 at
 org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)

 at
 org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)

 at
 org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)

 at
 org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1204)

 at org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1117)
 at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
 at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
 at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:)
 at org.apache.jasper.compiler.Node$Root.accept(Node.java:457)
 at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
 at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
 at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2240)
 at
 org.apache.jasper.compiler.Node$IncludeDirective.accept(Node.java:598)
 at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
 at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
 at 

Re: RE: tomcat error 404

2011-10-22 Thread Dave Filchak

Hello Charles,

Hopefully this helps and it is not too much info.

Dave

On 22/07/64 2:59 PM, Caldarale, Charles R wrote:

From: Dave Filchak [mailto:sub...@zuka.net]
Subject: tomcat error 404
I am receiving a HTTP Status 404 error.

Can you tell if the 404 is coming from Tomcat or httpd?
Well, I cannot seem to connect to the site using 8080 either or the 
example files but, this site is a VPS controlled with cpanel. Cpanel 
says it is running and when I ssh to the server and run ps -aux, it 
shows an instance of tomcat running. This also verifies that httpd is 
running from your next question as well. However, in the catalina.err 
file, it shows the following errors:


Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig 
applicationWebConfig
SEVERE: Parse error in application web.xml file at 
jndi:/exodusdecoded.com/WEB-INF/web.xml
org.xml.sax.SAXParseException: The string -- is not permitted within 
comments.


and then;

SEVERE: Occurred at line 32 column 5
Oct 21, 2011 1:40:34 PM org.apache.catalina.startup.ContextConfig start
SEVERE: Marking this application unavailable due to previous error(s)
Oct 21, 2011 1:40:34 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Oct 21, 2011 1:40:34 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [] startup failed due to previous errors
Oct 21, 2011 1:40:35 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive exodus.war

and

Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig 
applicationWebConfig

SEVERE: Occurred at line 32 column 5
Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig start
SEVERE: Marking this application unavailable due to previous error(s)
Oct 21, 2011 1:54:19 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Oct 21, 2011 1:54:19 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [] startup failed due to previous errors
Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive exodus.war
Oct 21, 2011 1:54:21 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Oct 21, 2011 1:54:21 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive exodus.war

with exodus being the name of the app I am trying to deploy. Then it shows:

SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: 
/include/../../include/system-checkup.jsp(2,0) The value for the useBean 
class attribute com.snapmedia.WebSystemController is invalid.






I have verified that tomcat and apache are running.

By apache [sic], I presume you mean httpd.  How did you verify they're 
running?


My host will now help

So if the host will help, why aren't you asking them?  (Or did you really mean 
not there?)

Sorry, I meant not, as in will not help.



If anyone can help me I really would appreciate it as the
site is down completely at this point.

Without considerably more information, there's not much anyone can help you with.  
For starters, you need to examine the logs, post your server.xml file (obfuscated as 
needed), show us theContext  element (if there is one) for your webapp, tell 
us the mechanism you're using to connect httpd to Tomcat, and provide the config for 
that.

environment.xml file:

?xml version=1.0?
mushroom

environment
systemVersion2.0/systemVersion
systemBuildCode005523/systemBuildCode
systemLastUpdateApril 29, 2005/systemLastUpdate
systemIPAddress127.0.0.1/systemIPAddress
SMTPHost174.122.30.18/SMTPHost !-- Used by JavaMail --
mailFromit-...@quickplay.com/mailFrom
sysAdminN. Dingle/sysAdmin
debugtrue/debug
/environment

!--
  This node contains the paths to static systems. These should 
always be
  Fully-qualified URLs to the system in question, including domain, 
context
  root and any pertinent subdirectory. If code references any 
system which

  does not exist here, base will be used as a default.
   --
staticSystems
basehttp://www.###.com/base
adminhttp://www.###.com/tools/admin
/staticSystems

!--
  This node is recursive so that any paths set here will be 
automatically

  loaded into the environment class. Paths end up being converted into
  Name/Value pairs and are dumped into a Hashtable
   --
paths
loginJSP/login.jsp/loginJSP
parentControlJSP/parentControl.jsp/parentControlJSP

baseRoot/usr/local/tomcat/webapps/exodus/baseRoot

##NOTE: this path does not exist on this server. It is the path that 
existed on the old server.


dataRoot/data/dataRoot
instanceFile/instanceFile
systemLogFolder/usr/local/tomcat/webapps/exodus/WEB-INF/logs//systemLogFolder

##NOTE: obviously this one does not exist either

systemArchiveFolder/usr/local/tomcat/webapps/exodus/WEB-INF/logs/archive//systemArchiveFolder
logFile/usr/local/tomcat/webapps/exodus/WEB-INF/logs/codelog.txt/logFile
cronLog/usr/local/tomcat/webapps

Re: tomcat error 404

2011-10-22 Thread André Warnier

Hi.

One thing at a time..

1) When you send XML configuration files, please remove everything that is a 
comment.
XML files are already being wrapped by the email program, and are difficult to read as it 
is. Having plenty of comments in them in addition makes is really a hassle to figure out 
what is being used or not.

(Note: an XML comment is anything between a pair of !-- and -- )

2) one error message below talks about an invalid XML file.
Inside one of the comments (between a leading !-- and a trailing --), there is another 
pair of -- . That is incorrect and causes the entire file to be rejected/ignored.

Inspect that file carefully, remove the offending --, and try again.

(Note: the extra -- may also be due to a previous bad edit of the file.  It may have been 
a !-- or a -- , where someone tried to comment or de-comment something, and either 
removed too much or added not enough.
Remember that everything between a pair of !-- and -- is a comment (normally ignored), 
and inside of such a comment, you cannot have another pair of -- )


Do this carefully, as it may be the basic cause why the whole thing is not 
working.
Keep a backup of the original, for each file that you start editing.

(Another note: there exist text editors which can show you if a file is correct XML or 
not.  For a windows PC, look up Notepad++ in Google)


3) what happens when, in your browser, you enter the URL :

http://your-host-name:8180

?
(replace your-host-name by .. your real host name (or its IP address))




Dave Filchak wrote:

Hello Charles,

Hopefully this helps and it is not too much info.

Dave

On 22/07/64 2:59 PM, Caldarale, Charles R wrote:

From: Dave Filchak [mailto:sub...@zuka.net]
Subject: tomcat error 404
I am receiving a HTTP Status 404 error.

Can you tell if the 404 is coming from Tomcat or httpd?
Well, I cannot seem to connect to the site using 8080 either or the 
example files but, this site is a VPS controlled with cpanel. Cpanel 
says it is running and when I ssh to the server and run ps -aux, it 
shows an instance of tomcat running. This also verifies that httpd is 
running from your next question as well. However, in the catalina.err 
file, it shows the following errors:


Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig 
applicationWebConfig
SEVERE: Parse error in application web.xml file at 
jndi:/exodusdecoded.com/WEB-INF/web.xml
org.xml.sax.SAXParseException: The string -- is not permitted within 
comments.


and then;

SEVERE: Occurred at line 32 column 5
Oct 21, 2011 1:40:34 PM org.apache.catalina.startup.ContextConfig start
SEVERE: Marking this application unavailable due to previous error(s)
Oct 21, 2011 1:40:34 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Oct 21, 2011 1:40:34 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [] startup failed due to previous errors
Oct 21, 2011 1:40:35 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive exodus.war

and

Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig 
applicationWebConfig

SEVERE: Occurred at line 32 column 5
Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig start
SEVERE: Marking this application unavailable due to previous error(s)
Oct 21, 2011 1:54:19 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Oct 21, 2011 1:54:19 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [] startup failed due to previous errors
Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive exodus.war
Oct 21, 2011 1:54:21 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Oct 21, 2011 1:54:21 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive exodus.war

with exodus being the name of the app I am trying to deploy. Then it shows:

SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: 
/include/../../include/system-checkup.jsp(2,0) The value for the useBean 
class attribute com.snapmedia.WebSystemController is invalid.






I have verified that tomcat and apache are running.
By apache [sic], I presume you mean httpd.  How did you verify 
they're running?



My host will now help
So if the host will help, why aren't you asking them?  (Or did you 
really mean not there?)

Sorry, I meant not, as in will not help.



If anyone can help me I really would appreciate it as the
site is down completely at this point.
Without considerably more information, there's not much anyone can 
help you with.  For starters, you need to examine the logs, post your 
server.xml file (obfuscated as needed), show us theContext  element 
(if there is one) for your webapp, tell us the mechanism you're using 
to connect httpd to Tomcat, and provide the config for that.

environment.xml file:

?xml version=1.0?
mushroom

environment

Re: Re: tomcat error 404

2011-10-22 Thread Dave Filchak

Hi André,

Sorry about the comments. Wasn't thinking. So, I did find that one of
the closing comment tags in my web.xml was entered as ==. Fixing that
gave me some progress in that the site's homepage now comes up. However,
I now get the following error when clicking on a few links, which
obviously refer to a connection to the database:

Error initializing sub-systems:
Please check the following:
1. That your machine has a valid connection to 
jdbc:mysql://localhost/_exodus Using:
Username: _exodus
Password: ##
Driver: com.mysql.jdbc.Driver


*DETAILS FOLLOW:*
java.lang.Exception: Unable to Initialize Environment:
java.lang.NoClassDefFoundError: javax/mail/Address
at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source)
at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source)
at com.snapmedia.SystemController.init(SystemController.java:86)
at com.snapmedia.WebSystemController.init(WebSystemController.java:39)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:448)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
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:597)
at 
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:219)
Caused by: java.lang.ClassNotFoundException: javax.mail.Address
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)
... 25 more

I have verified that thew username and password are correct by logging
into the MySQL server from the command line. Something with the driver?

Dave



On 22/07/64 2:59 PM, André Warnier wrote:

Hi.

One thing at a time..

1) When you send XML configuration files, please remove everything 
that is a comment.
XML files are already being wrapped by the email program, and are 
difficult to read as it is. Having plenty of comments in them in 
addition makes is really a hassle to figure out what is being used or 
not.

(Note: an XML comment is anything between a pair of !-- and -- )

2) one error message below talks about an invalid XML file.
Inside one of the comments (between a leading !-- and a trailing 
--), there is another pair of -- . That is incorrect and causes the 
entire file to be rejected/ignored.

Inspect that file carefully, remove the offending --, and try again.

(Note: the extra -- may also be due to a previous bad edit of the 
file.  It may have been a !-- or a -- , where someone tried to 
comment or de-comment something, and either removed too much or added 
not enough.
Remember that everything between a pair of !-- and -- is a comment 
(normally ignored), and inside of such a comment, you cannot have 
another pair of -- )


Do this carefully, as it may be the basic cause why the whole thing is 
not working.

Keep a backup of the original, for each file that you start editing.

(Another note: there exist text editors which can show you if a file 
is correct XML or not.  For a windows PC, look up Notepad++ in Google)


3) what happens when, in your browser, you enter the URL :

http://your-host-name:8180

?
(replace your-host-name by .. your real host name (or its IP address))




Dave Filchak wrote:

Hello Charles,

Hopefully this helps and it is not too much info.

Dave

On 22/07/64 2:59 PM, Caldarale, Charles R wrote:

From: Dave Filchak [mailto:sub...@zuka.net]
Subject: tomcat error 404
I am receiving a HTTP Status 404 error.

Can you tell

tomcat error 404

2011-10-21 Thread Dave Filchak

Folks, I know I have asked about this site befor with a number of
problems and one of the suggestions was to find the original programmer
for help. Well I cannot find him ... he is not available unfortunately.
I was originally getting some except errors but now, after my host
turned off my server because I was three days late in paying an
invoice, I am receiving a HTTP Status 404 error. I have verified that
tomcat and apache are running. My host will now help ( pissed about that
) so I am hoping someone can help be fix this. I am NOT a tomcat person
and I do not actually think this app is set up in what I understand to
be a normal way.

If anyone can help me I really would appreciate it as the site is down
completely at this point.

Server CentOS
Tomcat 5.5.33
Apache 2.2.19

thank you in advance

Dave


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: tomcat error 404

2011-10-21 Thread Caldarale, Charles R
 From: Dave Filchak [mailto:sub...@zuka.net] 
 Subject: tomcat error 404

 I am receiving a HTTP Status 404 error.

Can you tell if the 404 is coming from Tomcat or httpd?

 I have verified that tomcat and apache are running.

By apache [sic], I presume you mean httpd.  How did you verify they're 
running?

 My host will now help

So if the host will help, why aren't you asking them?  (Or did you really mean 
not there?)

 If anyone can help me I really would appreciate it as the 
 site is down completely at this point.

Without considerably more information, there's not much anyone can help you 
with.  For starters, you need to examine the logs, post your server.xml file 
(obfuscated as needed), show us the Context element (if there is one) for 
your webapp, tell us the mechanism you're using to connect httpd to Tomcat, and 
provide the config for that.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: *.iface;jessionid=xxx gives 404 error

2011-09-13 Thread jprideaux

Since you suggested that the problem may well be with the 1.8.2 icefaces
implementation, I set up two nearly identical test webapps both running on
the latest version of Tomcat (7.0.20).  One webApp used icefaces 1.8.2 and
the other one used the new icefaces 2.0.2 release.  I was able to duplicate
my previous problems with the Tomcat 7.0.20/icefaces 1.8.2 combination. 
Although, when I used the Tomcat 7.0.20 with icefaces 2.0.2, adding the
;jsessionid=xxx worked on my icefaces pages as I need it.  

Thanks you so much for pointing me in the right direction - that I needed to
be focused on icefaces and not Tomcat in solving my problem.  Now I just
need to port my site over to the new version of icefaces.  Hopefully, their
compatibility mode of using 2.0.x for processing older 1.x tags will not
be too painful. 

Thanks again,

Jeff Prideaux.
  

Konstantin Kolinko wrote:
 
 2011/9/13 jprideaux jpride...@snapdiagnostics.com:

 One other tidbit.  When I call request.getRequestURI(), I get something
 like
 PathDispatcher.service: /test3/a.iface from
 org.apache.catalina.connector.RequestFacade@a245b0
 when I'm using Tomcat 6.0.32
 and
 PathDispatcher.service: /test3/a.iface;jsessionid=blah from
 org.apache.catalina.connector.RequestFacade@a83987
 when I am using tomcat 6.0.33 (or Tomcat 7).

 Is it intended that request.getRequestURI() should return a path
 parameter
 as part of the URI?
 
 Yes, That is required by the Servlet Specification.
 
 See servlet-2_5-mrel2-spec.pdf  ch. SRV.3.1 (page number 26), Quote:
 [[[
 Path parameters that are part of a GET request (as defined by HTTP 1.1)
 are not
 exposed by these APIs. They must be parsed from the String values
 returned by the
 getRequestURI method or the getPathInfo method.
 ]]]
 
 It means that getRequestURI() must return the path parameters as is.
 
 
 I am looking at the source code of PathDispatcher for icefaces-1.8.2
 in their svn repository...  It uses regex matching against the value
 of request.getRequestURI(),
 and those regexes are \\.jsp$ and so on
  (in com.icesoft.faces.webapp.http.servlet.MainServlet)
 using $ to match the end of string.
 
 Best regards,
 Konstantin Kolinko
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/*.iface-jessionid%3Dxxx-gives-404-error-tp32449101p32457247.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



*.iface;jessionid=xxx gives 404 error

2011-09-12 Thread jprideaux

My webapps has some icefaces pages where I need to tag on the jsessionid. 
This was working in Tomcat 6.0.32 and all earlier versions but not for
Tomcat 6.0.33.  It also does not work for the Tomcat 7.0.x minor editions I
have tested.  It is as if the most recent Tomcat minor versions cannot tell
that ;jsessionid is not part of the file-name for iface pages.  

I was able to simply recreate the problem using MyEclipse by generating a
web-project, turning on JSF, turn on icefaces, turn on facelets, then add a
simple xhtml page.  Just use the page it creates for you.  Then set
MyEclispe up to use an external Tomcat instance.  Point to a 6.0.32 Tomcat
instance and the page will come up even if you add a jsessionid to it. 
Point to a 6.0.33 instance and the page won't come up with the ;sessionid
added to the URL.  You will get a page not fouind (404) error.  
For example, you might be using a URL like follows:
http://localhost:8080/testProject/a.iface;jsessionid=123
It comes up for Tomcat 6.0.32
but Tomcat 6.0.33 fives a page not found (404) error

Whay is that?  Is this a bug?  Is it intended?  Is there a Tomcat
configuration setting that will enable it to tell that the the ;jsessionid
is not part of the page name?

I have no problem tagging on jsessionid to JSP pages in any version of
Tomcat.  I just can't get it to work with iface pages.
-- 
View this message in context: 
http://old.nabble.com/*.iface-jessionid%3Dxxx-gives-404-error-tp32449101p32449101.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: *.iface;jessionid=xxx gives 404 error

2011-09-12 Thread Konstantin Kolinko
2011/9/12 jprideaux jpride...@snapdiagnostics.com:

 My webapps has some icefaces pages where I need to tag on the jsessionid.
 This was working in Tomcat 6.0.32 and all earlier versions but not for
 Tomcat 6.0.33.  It also does not work for the Tomcat 7.0.x minor editions I
 have tested.  It is as if the most recent Tomcat minor versions cannot tell
 that ;jsessionid is not part of the file-name for iface pages.

 I was able to simply recreate the problem using MyEclipse by generating a
 web-project, turning on JSF, turn on icefaces, turn on facelets, then add a
 simple xhtml page.  Just use the page it creates for you.  Then set
 MyEclispe up to use an external Tomcat instance.  Point to a 6.0.32 Tomcat
 instance and the page will come up even if you add a jsessionid to it.
 Point to a 6.0.33 instance and the page won't come up with the ;sessionid
 added to the URL.  You will get a page not fouind (404) error.
 For example, you might be using a URL like follows:
 http://localhost:8080/testProject/a.iface;jsessionid=123
 It comes up for Tomcat 6.0.32
 but Tomcat 6.0.33 fives a page not found (404) error

 Whay is that?  Is this a bug?  Is it intended?  Is there a Tomcat
 configuration setting that will enable it to tell that the the ;jsessionid
 is not part of the page name?

 I have no problem tagging on jsessionid to JSP pages in any version of
 Tomcat.  I just can't get it to work with iface pages.

It does work with the standard examples webapp that comes with 6.0.33,
(regardless of whether you add ;jsessionid=value or your misprinted
jessionid).

You need to
1) Check what is different/specific in your configuration
2) Explain what you are trying to do and why.

There was improvement in path parameters handling in 6.0.33 (that is
what those (; + foo) in URLs are called), but that should not
concern spec-compliant applications.

Some discussion about path parameters should be in the archives of
the dev@ list.

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: *.iface;jessionid=xxx gives 404 error

2011-09-12 Thread jprideaux

The examples as part of the 6.0.33 Tomcat deployment have both JSP and
servlets.  You are right that appending a path parameter of
;jsessionid=123 works for those.  What is different and specific about my
webapplication is that I am using icefaces pages which are different than
either JSP or servlets.  I could append path parameters to the URL for iface
pages in Tomcat 6.0.32 and earlier but I cannot for Tomcat version 6.0.33
(and Tomcat 7).  The reason why I am wanting to do this is to preserve the
session in some special situations for my webapp.  I'm also asking this in
the icefaces forums on that company's web-site.  They may also be interested
in not losing any capability with their technology with the newer Tomcat
versions.

I'm hoping to learn of a configuration setting in web.xml or server.xml that
might let Tomcat recognize the page...  For the time being, I will simply
continue to use Tomcat 6.0.32.  In the future, though, I would like to be
able to upgrade.

If you are so inclined to test out a simple webapp that has an iceface page,
you can download a simple war file from http://snapdiagnostics.org/test3.war
and test it out with both Tomcat 6.0.32 and 6.0.33.  This war file is the
most simple possible site that has an icefaces page.

Once deployed, try browsing to the following two URLs by typing the
following in the address line:
http://localhost:8080/test3/a.iface 
http://localhost:8080/test3/a.iface;jsessionid=123 

You will see that with Tomcat 6.0.32, that both pages will be served.
For Tomcat 6.0.33, only the page without this specific path parameter will
be served.

Thanks,

Jeff Prideaux

 

Konstantin Kolinko wrote:
 
 2011/9/12 jprideaux jpride...@snapdiagnostics.com:

 My webapps has some icefaces pages where I need to tag on the jsessionid.
 This was working in Tomcat 6.0.32 and all earlier versions but not for
 Tomcat 6.0.33.  It also does not work for the Tomcat 7.0.x minor editions
 I
 have tested.  It is as if the most recent Tomcat minor versions cannot
 tell
 that ;jsessionid is not part of the file-name for iface pages.

 I was able to simply recreate the problem using MyEclipse by generating a
 web-project, turning on JSF, turn on icefaces, turn on facelets, then add
 a
 simple xhtml page.  Just use the page it creates for you.  Then set
 MyEclispe up to use an external Tomcat instance.  Point to a 6.0.32
 Tomcat
 instance and the page will come up even if you add a jsessionid to it.
 Point to a 6.0.33 instance and the page won't come up with the ;sessionid
 added to the URL.  You will get a page not fouind (404) error.
 For example, you might be using a URL like follows:
 http://localhost:8080/testProject/a.iface;jsessionid=123
 It comes up for Tomcat 6.0.32
 but Tomcat 6.0.33 fives a page not found (404) error

 Whay is that?  Is this a bug?  Is it intended?  Is there a Tomcat
 configuration setting that will enable it to tell that the the
 ;jsessionid
 is not part of the page name?

 I have no problem tagging on jsessionid to JSP pages in any version of
 Tomcat.  I just can't get it to work with iface pages.
 
 It does work with the standard examples webapp that comes with 6.0.33,
 (regardless of whether you add ;jsessionid=value or your misprinted
 jessionid).
 
 You need to
 1) Check what is different/specific in your configuration
 2) Explain what you are trying to do and why.
 
 There was improvement in path parameters handling in 6.0.33 (that is
 what those (; + foo) in URLs are called), but that should not
 concern spec-compliant applications.
 
 Some discussion about path parameters should be in the archives of
 the dev@ list.
 
 Best regards,
 Konstantin Kolinko
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/*.iface-jessionid%3Dxxx-gives-404-error-tp32449101p32450085.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: *.iface;jessionid=xxx gives 404 error

2011-09-12 Thread jprideaux

One other tidbit.  When I call request.getRequestURI(), I get something like 
PathDispatcher.service: /test3/a.iface from
org.apache.catalina.connector.RequestFacade@a245b0
when I'm using Tomcat 6.0.32 
and 
PathDispatcher.service: /test3/a.iface;jsessionid=blah from
org.apache.catalina.connector.RequestFacade@a83987
when I am using tomcat 6.0.33 (or Tomcat 7).

Is it intended that request.getRequestURI() should return a path parameter
as part of the URI?  
Or is it a bug?




jprideaux wrote:
 
 The examples as part of the 6.0.33 Tomcat deployment have both JSP and
 servlets.  You are right that appending a path parameter of
 ;jsessionid=123 works for those.  What is different and specific about
 my webapplication is that I am using icefaces pages which are different
 than either JSP or servlets.  I could append path parameters to the URL
 for iface pages in Tomcat 6.0.32 and earlier but I cannot for Tomcat
 version 6.0.33 (and Tomcat 7).  The reason why I am wanting to do this is
 to preserve the session in some special situations for my webapp.  I'm
 also asking this in the icefaces forums on that company's web-site.  They
 may also be interested in not losing any capability with their technology
 with the newer Tomcat versions.
 
 I'm hoping to learn of a configuration setting in web.xml or server.xml
 that might let Tomcat recognize the page...  For the time being, I will
 simply continue to use Tomcat 6.0.32.  In the future, though, I would like
 to be able to upgrade.
 
 If you are so inclined to test out a simple webapp that has an iceface
 page, you can download a simple war file from
 http://snapdiagnostics.org/test3.war and test it out with both Tomcat
 6.0.32 and 6.0.33.  This war file is the most simple possible site that
 has an icefaces page.
 
 Once deployed, try browsing to the following two URLs by typing the
 following in the address line:
 http://localhost:8080/test3/a.iface 
 http://localhost:8080/test3/a.iface;jsessionid=123 
 
 You will see that with Tomcat 6.0.32, that both pages will be served.
 For Tomcat 6.0.33, only the page without this specific path parameter will
 be served.
 
 Thanks,
 
 Jeff Prideaux
 
  
 
 Konstantin Kolinko wrote:
 
 2011/9/12 jprideaux jpride...@snapdiagnostics.com:

 My webapps has some icefaces pages where I need to tag on the
 jsessionid.
 This was working in Tomcat 6.0.32 and all earlier versions but not for
 Tomcat 6.0.33.  It also does not work for the Tomcat 7.0.x minor
 editions I
 have tested.  It is as if the most recent Tomcat minor versions cannot
 tell
 that ;jsessionid is not part of the file-name for iface pages.

 I was able to simply recreate the problem using MyEclipse by generating
 a
 web-project, turning on JSF, turn on icefaces, turn on facelets, then
 add a
 simple xhtml page.  Just use the page it creates for you.  Then set
 MyEclispe up to use an external Tomcat instance.  Point to a 6.0.32
 Tomcat
 instance and the page will come up even if you add a jsessionid to it.
 Point to a 6.0.33 instance and the page won't come up with the
 ;sessionid
 added to the URL.  You will get a page not fouind (404) error.
 For example, you might be using a URL like follows:
 http://localhost:8080/testProject/a.iface;jsessionid=123
 It comes up for Tomcat 6.0.32
 but Tomcat 6.0.33 fives a page not found (404) error

 Whay is that?  Is this a bug?  Is it intended?  Is there a Tomcat
 configuration setting that will enable it to tell that the the
 ;jsessionid
 is not part of the page name?

 I have no problem tagging on jsessionid to JSP pages in any version of
 Tomcat.  I just can't get it to work with iface pages.
 
 It does work with the standard examples webapp that comes with 6.0.33,
 (regardless of whether you add ;jsessionid=value or your misprinted
 jessionid).
 
 You need to
 1) Check what is different/specific in your configuration
 2) Explain what you are trying to do and why.
 
 There was improvement in path parameters handling in 6.0.33 (that is
 what those (; + foo) in URLs are called), but that should not
 concern spec-compliant applications.
 
 Some discussion about path parameters should be in the archives of
 the dev@ list.
 
 Best regards,
 Konstantin Kolinko
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 
 
 

-- 
View this message in context: 
http://old.nabble.com/*.iface-jessionid%3Dxxx-gives-404-error-tp32449101p32450969.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: *.iface;jessionid=xxx gives 404 error

2011-09-12 Thread Konstantin Kolinko
2011/9/13 jprideaux jpride...@snapdiagnostics.com:

 One other tidbit.  When I call request.getRequestURI(), I get something like
 PathDispatcher.service: /test3/a.iface from
 org.apache.catalina.connector.RequestFacade@a245b0
 when I'm using Tomcat 6.0.32
 and
 PathDispatcher.service: /test3/a.iface;jsessionid=blah from
 org.apache.catalina.connector.RequestFacade@a83987
 when I am using tomcat 6.0.33 (or Tomcat 7).

 Is it intended that request.getRequestURI() should return a path parameter
 as part of the URI?

Yes, That is required by the Servlet Specification.

See servlet-2_5-mrel2-spec.pdf  ch. SRV.3.1 (page number 26), Quote:
[[[
Path parameters that are part of a GET request (as defined by HTTP 1.1) are not
exposed by these APIs. They must be parsed from the String values
returned by the
getRequestURI method or the getPathInfo method.
]]]

It means that getRequestURI() must return the path parameters as is.


I am looking at the source code of PathDispatcher for icefaces-1.8.2
in their svn repository...  It uses regex matching against the value
of request.getRequestURI(),
and those regexes are \\.jsp$ and so on
 (in com.icesoft.faces.webapp.http.servlet.MainServlet)
using $ to match the end of string.

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: *.iface;jessionid=xxx gives 404 error

2011-09-12 Thread Konstantin Kolinko
2011/9/13 Konstantin Kolinko knst.koli...@gmail.com:
 2011/9/13 jprideaux jpride...@snapdiagnostics.com:

 Is it intended that request.getRequestURI() should return a path parameter
 as part of the URI?

 Yes, That is required by the Servlet Specification.

 See servlet-2_5-mrel2-spec.pdf  ch. SRV.3.1 (page number 26), Quote:
 [[[
 Path parameters that are part of a GET request (as defined by HTTP 1.1) are 
 not
 exposed by these APIs. They must be parsed from the String values
 returned by the
 getRequestURI method or the getPathInfo method.
 ]]]

 It means that getRequestURI() must return the path parameters as is.


 I am looking at the source code of PathDispatcher for icefaces-1.8.2
 in their svn repository...  It uses regex matching against the value
 of request.getRequestURI(),
 and those regexes are \\.jsp$ and so on
  (in com.icesoft.faces.webapp.http.servlet.MainServlet)
 using $ to match the end of string.


I think you can write a filter and use RequestDispatcher.forward() to
corrected URL,
or configure urlrewrite filter [1] to do this.

Thought it would be better if icefaces fixed their bug.

[1] 
http://urlrewritefilter.googlecode.com/svn/trunk/src/doc/manual/3.2/guide.html


Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat shows 404 error for existing pages

2011-04-11 Thread Thomas Freitag
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Bhagyashri,

On 04/11/2011 07:33 AM, Bhagyashri Pawar wrote:
 Currently I have purchase one domain name and virtual dedicated server(Linux
 - Red hat fedora). I am using java and tomcat 5.5 on that server.

Consider upgrading to 6.0.32 or 7.0.12, because these versions will be
support much longer by the committers! Don't use the versions shipped by
(any) Linux distributor, a tomcat installation is quite simple and you
won'nt end up with a messed directory structure.

 The problem I am facing is tomcat shows 404 error (description: The
 requested resource (/mytestpage.jsp) is not available.).
 
 Is there any settings I require to view css and all jsp and html pages,
 Because when I installed tomcat it shows prper installetion and display
 tomcat default page properly.

If you can see the the default ROOT application after installing your
basic setup is ok. Enable the access log (see the example AccessLogValve
configuration in the default server.xml). Are there any errors in the
logs? Filenames are case sensitive, double check the spelling.

 My directory structure is like
 Tomcat-5.5/webapps/ROOT/WEB-INF
 Tomcat-5.5/webapps/ROOT/extra/css
 Tomcat-5.5/webapps/ROOT/extra/images
 Tomcat-5.5/webapps/ROOT/extra/js
 
 
 
 My all JSP and html pages are inside ROOT directory
 
 My css, images, js are inside extra/css, extra/images and extra/js directory
 resp.

That looks fine. Post your server.xml and check wether appBase is
correctly set.

Regards,
- -- 
Thomas Freitag
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk2jbBIACgkQGE5pHr3PKuVcnwCeIQAH1vu1sKvzS5cBPEdxaNhT
eRUAnisPIKI/xfpz1iFSvc4ghQVXIYoo
=RiP4
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



tomcat shows 404 error for existing pages

2011-04-10 Thread Bhagyashri Pawar

Dear all members


Currently I have purchase one domain name and virtual dedicated server(Linux
- Red hat fedora). I am using java and tomcat 5.5 on that server.

The problem I am facing is tomcat shows 404 error (description: The
requested resource (/mytestpage.jsp) is not available.).

Is there any settings I require to view css and all jsp and html pages,
Because when I installed tomcat it shows prper installetion and display
tomcat default page properly.

:confused:


My directory structure is like


Tomcat-5.5/webapps/ROOT/WEB-INF

Tomcat-5.5/webapps/ROOT/extra/css

Tomcat-5.5/webapps/ROOT/extra/images

Tomcat-5.5/webapps/ROOT/extra/js



My all JSP and html pages are inside ROOT directory

My css, images, js are inside extra/css, extra/images and extra/js directory
resp.


my web.xml file is inside WEB-INF directory.


Actually  extra  is a one of the directory where I put my all files which I
am using in JSP and html pages.

e.g.



Also here I try both href=/extra/css/style.css and
href=extra/css/style.css


And about other jsp pages like mytestpage.jsp, which I put inside ROOT
directory directly. 

-- 
View this message in context: 
http://old.nabble.com/tomcat-shows-404-error-for-existing-pages-tp31367435p31367435.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


Re: HTTP Status 404 - /stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet

2011-01-20 Thread André Warnier

Hello Amol.

Amol Puglia wrote:

Hello Team,

I am having one application deployed on tomcat. The entire application is 
working fine.

But one of the functionality * in the application * ie. file upload is not 
working.
   ^

 !
As you say yourself above  ---



We are getting following error while uploading file. Also logs are having any 
error messages when file upload gets unsuccesful.

Please guide me to resolve the issue.

Apache version is 5.5.9


There is no such thing.



JAVA Version is 1.4.2_02



That is more than 10 years old and no longer supported by Oracle (at the time it was 
released, it was still called Sun, and they did not even imagine then that they could one 
day be called Oracle).


...


HTTP Status 404 - /stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet


http://lmgtfy.com/?q=http+error+404



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: HTTP Status 404 - /stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet

2011-01-20 Thread Mikolaj Rydzewski


On Wed, 19 Jan 2011 23:56:27 -0800 (PST), Amol Puglia 
amolcpug...@yahoo.com wrote:



I am having one application deployed on tomcat. The entire
application is working fine.

But one of the functionality in the application ie. file upload is
not working.


You should rather contact your application's vendor for help.


Please guide me to resolve the issue.

Apache version is 5.5.9

JAVA Version is 1.4.2_02


I see you're into oldies-goldies :-)


HTTP Status 404 -
/stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet


Please read about invoker servlet. It's disabled by default. So I guess 
you were never able to upload files.


--
Mikolaj Rydzewski m...@ceti.pl

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: HTTP Status 404 - /stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet

2011-01-20 Thread Amol Puglia
Hello Mikolaj,

Thanks a lot for your quick response.

I have uncommented the servlet mapping in web.xml in conf directory of tomcat 
and it has resolved our issue.


Now we are successfully able to upload the file.

Thanks once again.


--- On Thu, 1/20/11, Mikolaj Rydzewski m...@ceti.pl wrote:

From: Mikolaj Rydzewski m...@ceti.pl
Subject: Re: HTTP Status 404 -  
/stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet
To: Tomcat Users List users@tomcat.apache.org
Date: Thursday, January 20, 2011, 2:07 PM


On Wed, 19 Jan 2011 23:56:27 -0800 (PST), Amol Puglia amolcpug...@yahoo.com 
wrote:

 I am having one application deployed on tomcat. The entire
 application is working fine.
 
 But one of the functionality in the application ie. file upload is
 not working.

You should rather contact your application's vendor for help.

 Please guide me to resolve the issue.
 
 Apache version is 5.5.9
 
 JAVA Version is 1.4.2_02

I see you're into oldies-goldies :-)

 HTTP Status 404 -
 /stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet

Please read about invoker servlet. It's disabled by default. So I guess you 
were never able to upload files.

-- Mikolaj Rydzewski m...@ceti.pl

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




  

Re: HTTP Status 404 - /stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet

2011-01-20 Thread Mark Thomas
On 20/01/2011 09:10, Amol Puglia wrote:
 Hello Mikolaj,
 
 Thanks a lot for your quick response.
 
 I have uncommented the servlet mapping in web.xml in conf directory of tomcat 
 and it has resolved our issue.

If you have uncommented the invoker servlet I trust you have read the
warnings and are confident you haven't just opened up a massive security
hole.

It would have been much safer to do something like:
servlet
  servlet-nameReceiveFileUploadServlet/servlet-name
  servlet-classcom.stc.ePM.webint.ReceiveFileUploadServlet/servlet-class
/servlet
servlet-mapping
servlet-nameReceiveFileUploadServlet/servlet-name

url-pattern/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet/url-pattern
/servlet-mapping

Mark

 
 
 Now we are successfully able to upload the file.
 
 Thanks once again.
 
 
 --- On Thu, 1/20/11, Mikolaj Rydzewski m...@ceti.pl wrote:
 
 From: Mikolaj Rydzewski m...@ceti.pl
 Subject: Re: HTTP Status 404 -  
 /stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet
 To: Tomcat Users List users@tomcat.apache.org
 Date: Thursday, January 20, 2011, 2:07 PM
 
 
 On Wed, 19 Jan 2011 23:56:27 -0800 (PST), Amol Puglia amolcpug...@yahoo.com 
 wrote:
 
 I am having one application deployed on tomcat. The entire
 application is working fine.

 But one of the functionality in the application ie. file upload is
 not working.
 
 You should rather contact your application's vendor for help.
 
 Please guide me to resolve the issue.

 Apache version is 5.5.9

 JAVA Version is 1.4.2_02
 
 I see you're into oldies-goldies :-)
 
 HTTP Status 404 -
 /stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet
 
 Please read about invoker servlet. It's disabled by default. So I guess you 
 were never able to upload files.
 
 -- Mikolaj Rydzewski m...@ceti.pl
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 
 
   


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



HTTP Status 404 - /stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet

2011-01-19 Thread Amol Puglia
Hello Team,

I am having one application deployed on tomcat. The entire application is 
working fine.

But one of the functionality in the application ie. file upload is not working.

We are getting following error while uploading file. Also logs are having any 
error messages when file upload gets unsuccesful.

Please guide me to resolve the issue.

Apache version is 5.5.9

JAVA Version is 1.4.2_02

body { margin: 0pt; padding: 0pt; }td, div { font-family: Tahoma; font-size: 
8pt; vertical-align: top; }body { margin: 0pt; padding: 0pt; }.transcript { 
background-color: rgb(210, 210, 210); }.messageBlock { margin-left: 4px; 
margin-bottom: 3px; }.message { margin-left: 100px; word-wrap: break-word; 
}.messageCont { margin-left: 100px; word-wrap: break-word; }.other { color: 
rgb(57, 87, 122); vertical-align: top; font-weight: bold; font-style: normal; 
float: left; width: 95px; }.myself { color: rgb(218, 129, 3); font-weight: 
bold; font-style: normal; float: left; width: 95px; }.otherCont { font-size: 
8px; text-align: right; color: rgb(57, 87, 122); font-family: Arial,Lucida 
Grande; font-style: normal; vertical-align: top; font-weight: bold; float: 
left; width: 95px; }.myselfCont { font-size: 8px; text-align: right; color: 
rgb(218, 129, 3); font-family: Arial,Lucida Grande; font-style: normal; 
vertical-align: top; font-weight: bold; float: left; width:
 95px; }.system { margin-left: 4px; word-wrap: break-word; color: rgb(218, 129, 
3); font-style: normal; font-weight: normal; }.showTimestamp { margin-right: 
3px; float: right; color: rgb(153, 153, 153); font-style: normal; font-weight: 
normal; }.other1 { color: rgb(172, 32, 0); vertical-align: top; font-weight: 
bold; font-style: normal; float: left; width: 95px; }.otherCont1 { font-size: 
8px; text-align: right; color: rgb(172, 32, 0); font-family: Arial,Lucida 
Grande; font-style: normal; vertical-align: top; font-weight: bold; float: 
left; width: 95px; }.other2 { color: rgb(60, 159, 168); vertical-align: top; 
font-weight: bold; font-style: normal; float: left; width: 95px; }.otherCont2 { 
font-size: 8px; text-align: right; color: rgb(60, 159, 168); font-family: 
Arial,Lucida Grande; font-style: normal; vertical-align: top; font-weight: 
bold; float: left; width: 95px; }.other3 { color: rgb(226, 86, 20); 
vertical-align: top; font-weight: bold; font-style:
 normal; float: left; width: 95px; }.otherCont3 { font-size: 8px; text-align: 
right; color: rgb(226, 86, 20); font-family: Arial,Lucida Grande; font-style: 
normal; vertical-align: top; font-weight: bold; float: left; width: 95px; 
}.other4 { color: rgb(11, 106, 200); vertical-align: top; font-weight: bold; 
font-style: normal; float: left; width: 95px; }.otherCont4 { font-size: 8px; 
text-align: right; color: rgb(11, 106, 200); font-family: Arial,Lucida Grande; 
font-style: normal; vertical-align: top; font-weight: bold; float: left; width: 
95px; }.other5 { color: rgb(178, 50, 144); vertical-align: top; font-weight: 
bold; font-style: normal; float: left; width: 95px; }.otherCont5 { font-size: 
8px; text-align: right; color: rgb(178, 50, 144); font-family: Arial,Lucida 
Grande; font-style: normal; vertical-align: top; font-weight: bold; float: 
left; width: 95px; }.other6 { color: rgb(2, 231, 199); vertical-align: top; 
font-weight: bold; font-style: normal;
 float: left; width: 95px; }.otherCont6 { font-size: 8px; text-align: right; 
color: rgb(2, 231, 199); font-family: Arial,Lucida Grande; font-style: normal; 
vertical-align: top; font-weight: bold; float: left; width: 95px; }.other7 { 
color: rgb(91, 50, 132); vertical-align: top; font-weight: bold; font-style: 
normal; float: left; width: 95px; }.otherCont7 { font-size: 8px; text-align: 
right; color: rgb(91, 50, 132); font-family: Arial,Lucida Grande; font-style: 
normal; vertical-align: top; font-weight: bold; float: left; width: 95px; 
}.tsDisplay { display: block; }



HTTP Status 404 - /stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet





type Status report


message /stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet


description The requested resource 
(/stcepmweb/servlet/com.stc.ePM.webint.ReceiveFileUploadServlet) is not 
available.







Apache Tomcat/5.5.9 




  

Re: Re: Occasional (!) error (404) Not Found with Apache Axis 1.4 web service after update to Tomcat 6.0.29

2010-12-21 Thread Felix Dierich

Hi Konstantin,

thank you for your quick reply!

Am 20:59, schrieb Konstantin Kolinko:

2010/12/20 Felix Dierichf.dier...@overspeed.de:

I have a very strange issue, which only occured after an update from Tomcat
6.0.26 to 6.0.29. I have a number applications doing alltogether ~50-100
SOAP calls per minute to an Apache Axis 1.4 based web service running on
Tomcat. After the Tomcat update some of these calls suddenly get a (404)Not
Found response from the servlet, with no clear pattern. In a write
operation with 20 SOAP calls more or less at once, two may get this
response, the rest works well. This has never happened under 6.0.26.



How is JspServlet configured in your conf/web.xml ?


It is vanilla config:

servlet
servlet-namejsp/servlet-name
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namefork/param-name
param-valuefalse/param-value
/init-param
init-param
param-namexpoweredBy/param-name
param-valuefalse/param-value
/init-param
load-on-startup3/load-on-startup
/servlet



I'd recommend to set its development parameter to the value of false.


Okay, I will give this a try, thanks. I'm surprised it true by default 
when installing with the standard Tomcat Windows installer.



---

An update from my side:

I'm now assuming, that the issue causing this is actually coming out of 
Axis. I have had many issues with Axis 1.x not seeming to be thread-safe 
on client side (and I use a lot of multiple threads, typically ~20-30) 
and I have put in a lot of workarounds for issues coming out of this, 
but this one is new:


I normally use two different URLs of redundant services in my SOAP 
calls. The usually differ only by hostname, the rest is the same. When 
setting up the new Tomcat version I had to change the webapp path, so 
that I ended up with different hostnames and webapp paths in the two 
URLs. It seems like Axis 1.x is sometimes getting the URLs of different 
call objects confused, but the hostname and path parts separately... Not 
good. This previously was unnoticed in my software as the paths were 
always the same (in the situations with redundant services), now I got 
404 because the hostname and changed webapp path did not match...


I have now made the webapp paths the same in my test environment and so 
far I haven't got a 404 again. So it seems like this is not an issue 
with Tomcat, but with Axis 1.x. Sorry for bothering the wrong mailing 
list in the end. I know Axis 1.x has been discontinued for quite a while 
now, but I haven't yet found the time to switch to a different Java SOAP 
lib like Axis2 (which is a rewrite and needs a bit more work to change 
to), but it is pretty clear I have to do that sooner rather than later...


Thanks and regards

Felix


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Occasional (!) error (404) Not Found with Apache Axis 1.4 web service after update to Tomcat 6.0.29

2010-12-20 Thread Felix Dierich

Hi everyone,

I have a very strange issue, which only occured after an update from 
Tomcat 6.0.26 to 6.0.29. I have a number applications doing alltogether 
~50-100 SOAP calls per minute to an Apache Axis 1.4 based web service 
running on Tomcat. After the Tomcat update some of these calls suddenly 
get a (404)Not Found response from the servlet, with no clear pattern. 
In a write operation with 20 SOAP calls more or less at once, two may 
get this response, the rest works well. This has never happened under 
6.0.26.


I tried to find posts / stuff via Google about this, but there is so 
much Tomcat newbie stuff with deployment issues that I gave up. I also 
browsed the changelog. If there is anything already that I overlooked, 
please direct me to it. Any help highly appreciated!


Here some details on my setup:

Tomcat 6.0.29 under Windows XP 32bit (other deployments on 2003 server 
64bit and Linux, those not tested), vanilla install with service and 
native selected, no significant config changes after installation (I 
also diffed to the old V6.0.26 config folder and it is the same).
Webapp with Apache Axis 1.4 SOAP library and some custom JSPs (JSPs not 
involved in the SOAP transactions though, Apache Axis 1.4 is a servlet).

Hardware: VMWare virtual server HW version 7, on ESXi 4.1.
Nothing helpful in the Tomcat logs afaics.

Happy to provide more details, let me know.

Thanks for any help!

Felix

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Occasional (!) error (404) Not Found with Apache Axis 1.4 web service after update to Tomcat 6.0.29

2010-12-20 Thread Konstantin Kolinko
2010/12/20 Felix Dierich f.dier...@overspeed.de:
 I have a very strange issue, which only occured after an update from Tomcat
 6.0.26 to 6.0.29. I have a number applications doing alltogether ~50-100
 SOAP calls per minute to an Apache Axis 1.4 based web service running on
 Tomcat. After the Tomcat update some of these calls suddenly get a (404)Not
 Found response from the servlet, with no clear pattern. In a write
 operation with 20 SOAP calls more or less at once, two may get this
 response, the rest works well. This has never happened under 6.0.26.


How is JspServlet configured in your conf/web.xml ?

I'd recommend to set its development parameter to the value of false.


Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



HTTP Status 404 - Servlet jsp is not available

2010-12-13 Thread Gaurav Pruthi

HTTP Status 404 - Servlet jsp is not available ...

While I am putting the jsp  and HTML files in my
project directory .. still I'm not able to access thoseAlso plz. tell
how to refer a servlet from a html page(I mean value of action attribute)


=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: HTTP Status 404 - Servlet jsp is not available

2010-12-13 Thread Mark Thomas
On 13/12/2010 13:07, Gaurav Pruthi wrote:
 
 HTTP Status 404 - Servlet jsp is not available ...
 
 While I am putting the jsp  and HTML files in my
 project directory .. still I'm not able to access thoseAlso plz. tell
 how to refer a servlet from a html page(I mean value of action attribute)

The folks on this list are good, but they aren't mind readers.

Tomcat version, JDK version, project file system layout, project web.xml
(if any), project context.xml (if any), ...

http://www.catb.org/~esr/faqs/smart-questions.html

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: HTTP status 404

2010-12-09 Thread Lava Saleem
Hello everyone,
Thanks for the replies I really appreciate your feedback

I have the structure as the following
webapps
|
filename
|- filename.htm
*|-*WEB-INF
|- web.xml
|-META-INF
|-context.xml

after having this structure,I use the following command

CATALINA_BASE/webapps/filename/ jar -cvf filename.war *.*

then I deploy the file in the tomcat manager and I have the following error

HTTP status 404
description the requested resource (/filename/)is not available

I assumed that I don't need the  java classes and lib in the WEB-INF  since
I'm only having single html file with java script, Do you think I need any ?
if so how do I know which files I need ?

 I also extracted the filename.war just to see whats in there and I see only
the filename.htm and the META-INF  there is no WEB-INF it is disappearing

Thanks
Lava

On Wed, Dec 8, 2010 at 4:35 PM, André Warnier a...@ice-sa.com wrote:

  Lava Saleem wrote:

 Hi everyone,
 I have  a single page html file with java script embadded in it, I have
 created a war file for it and deployed it successfully but when I click on
 the page I get the below error, the structure of my war file is the
 following

 webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
 +  classes + lib

 I did not modify the web.xml since I don't need the servlets do I need to
 modify anything?

 HTTP status 404
 description the requested resource (/filename/)is not available


 Hi.
 Except the 404 error which your are getting, not much above makes any sense
 at all.

 So it is better to forget all that, and start new.
 You really have to learn to walk before you can run.

 First, consider the directory structure of a standard Tomcat installation :

 (CATALINA_HOME)
 (=CATALINA_BASE)
  |
  |- bin (tomcat programs and scripts)
  |- conf (configuration files)
  |- lib (global library files)
  |- logs (logfiles)
  |- webapps (* web applications *)
|- ROOT  (the special, top-level, default web application)
|- app1 (a web application)
|- app2 (another web application)
|- ...
|- lastapp (another web application)

 In the above, (CATALINA_HOME) represents the top directory of your Tomcat
 installation, the one under which the rest of Tomcat is found.
 For example, on your system it may be C:\tomcat or C:\program
 files\Apache Software Foundation\tomcat6.0 or /usr/share/tomcat6 or
 /usr/local/tomcat6 or whatever.

 The webapps sub-directory is what is important for you now.  That is
 where you will put web applications, composed of static html pages (with
 or without javascript in them), JSP pages (special html pages with embedded
 Java code), java servlets (compiled java applications), etc..

 The ROOT web application is special.  It is the default application.
 When you use a URL like : http://yourserver.yourcompany.com/abc.html
 Tomcat is going to look for abc.html under the webapps/ROOT directory.

 The other subdirectories under webapps are each one separate web
 application.
 To access for example the application named app1, you will have to use a
 URL starting with http://yourserver.yourcompany.com/app1/;
 For example, if you place a html page named xyz.html in the subdirectory
 (CATALINA_HOME)/webapps/app1, then the URL to call it up will be
 http://yourserver.yourcompany.com/app1/xyz.html

 Under such a web application directory like ../webapps/app1, there is also
 a structure.
 It looks like this :

 (CATALINA_HOME)
 (=CATALINA_BASE)
  |- webapps (* dir, top of all web applications *)
|
|- app1 (dir, contains the web application named app1)
- public files (html etc..)
- WEB-INF (directory)
 |- files (private)
 |- web.xml (configuration file for the application)
 |- classes (dir.)
   |- compiled java classes, like servlets
 |- lib (dir)
   |- java libraries for this webapp
- META-INF (dir.)
 |- context.xml (more settings for the application)

 Basically everything under app1 is optional.  Tomcat will supply a
 default if needed.
 Of course, you will want at least one file under there, to make the execise
 meaningful.

 What is in the sub-directories WEB-INF and META-INF, can never be obtained
 directly by a browser. Tomcat will not allow it.
 So if you enter the following URL in the browser :
 http://yourserver.yourcompany.com/app1/WEB-INF/something
 Tomcat will respond with an error, even if something exists.


 But to start, I suggest that you just
 - stop tomcat
 - create a new sub-directory under ../webapps/, for example myapp.
 - under that subdirectory, place a file called myfile.html
 - verify that the ownership and permissions of these files are such that
 the Tomcat user can read them
 - start Tomcat
 - in the browser, enter

Re: HTTP status 404

2010-12-09 Thread David Smith
Looks like you should be requesting /filename/filename.htm instead of
filename/ ... that is unless you've set a welcome file in the app's
web.xml file.

If that doesn't work, also take a look at the tomcat logs for the moment
in time you a. started tomcat, b. deployed your app (if different from
the time tomcat was started) and c. when you requested the file.

--David


On 12/9/2010 12:10 PM, Lava Saleem wrote:
 Hello everyone,
 Thanks for the replies I really appreciate your feedback

 I have the structure as the following
 webapps
 |
 filename
 |- filename.htm
 *|-*WEB-INF
 |- web.xml
 |-META-INF
 |-context.xml

 after having this structure,I use the following command

 CATALINA_BASE/webapps/filename/ jar -cvf filename.war *.*

 then I deploy the file in the tomcat manager and I have the following error

 HTTP status 404
 description the requested resource (/filename/)is not available

 I assumed that I don't need the  java classes and lib in the WEB-INF  since
 I'm only having single html file with java script, Do you think I need any ?
 if so how do I know which files I need ?

  I also extracted the filename.war just to see whats in there and I see only
 the filename.htm and the META-INF  there is no WEB-INF it is disappearing

 Thanks
 Lava

 On Wed, Dec 8, 2010 at 4:35 PM, André Warnier a...@ice-sa.com wrote:

  Lava Saleem wrote:

 Hi everyone,
 I have  a single page html file with java script embadded in it, I have
 created a war file for it and deployed it successfully but when I click on
 the page I get the below error, the structure of my war file is the
 following

 webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
 +  classes + lib

 I did not modify the web.xml since I don't need the servlets do I need to
 modify anything?

 HTTP status 404
 description the requested resource (/filename/)is not available


 Hi.
 Except the 404 error which your are getting, not much above makes any sense
 at all.

 So it is better to forget all that, and start new.
 You really have to learn to walk before you can run.

 First, consider the directory structure of a standard Tomcat installation :

 (CATALINA_HOME)
 (=CATALINA_BASE)
  |
  |- bin (tomcat programs and scripts)
  |- conf (configuration files)
  |- lib (global library files)
  |- logs (logfiles)
  |- webapps (* web applications *)
|- ROOT  (the special, top-level, default web application)
|- app1 (a web application)
|- app2 (another web application)
|- ...
|- lastapp (another web application)

 In the above, (CATALINA_HOME) represents the top directory of your Tomcat
 installation, the one under which the rest of Tomcat is found.
 For example, on your system it may be C:\tomcat or C:\program
 files\Apache Software Foundation\tomcat6.0 or /usr/share/tomcat6 or
 /usr/local/tomcat6 or whatever.

 The webapps sub-directory is what is important for you now.  That is
 where you will put web applications, composed of static html pages (with
 or without javascript in them), JSP pages (special html pages with embedded
 Java code), java servlets (compiled java applications), etc..

 The ROOT web application is special.  It is the default application.
 When you use a URL like : http://yourserver.yourcompany.com/abc.html
 Tomcat is going to look for abc.html under the webapps/ROOT directory.

 The other subdirectories under webapps are each one separate web
 application.
 To access for example the application named app1, you will have to use a
 URL starting with http://yourserver.yourcompany.com/app1/;
 For example, if you place a html page named xyz.html in the subdirectory
 (CATALINA_HOME)/webapps/app1, then the URL to call it up will be
 http://yourserver.yourcompany.com/app1/xyz.html

 Under such a web application directory like ../webapps/app1, there is also
 a structure.
 It looks like this :

 (CATALINA_HOME)
 (=CATALINA_BASE)
  |- webapps (* dir, top of all web applications *)
|
|- app1 (dir, contains the web application named app1)
- public files (html etc..)
- WEB-INF (directory)
 |- files (private)
 |- web.xml (configuration file for the application)
 |- classes (dir.)
   |- compiled java classes, like servlets
 |- lib (dir)
   |- java libraries for this webapp
- META-INF (dir.)
 |- context.xml (more settings for the application)

 Basically everything under app1 is optional.  Tomcat will supply a
 default if needed.
 Of course, you will want at least one file under there, to make the execise
 meaningful.

 What is in the sub-directories WEB-INF and META-INF, can never be obtained
 directly by a browser. Tomcat will not allow it.
 So if you enter the following URL in the browser :
 http

Re: HTTP status 404

2010-12-09 Thread Mark Eggers
In the absence of a web.xml file with the following:

welcome-file-list
welcome-filefilename.htm/welcome-file
/welcome-file-list

You will have to navigate to:

localhost:8080/filename/filename.htm

In another message I posted a minimal web.xml file. Change index.html to 
filename.htm (if this is what you want your welcome file to be). Then 
navigating 
to:

localhost:8080/filename/

will work.

If you want to create a war file, do the following:

1. Change to the directory filename
2. jar cf ../filename.war .
3. cd ..
4. jar tf filename.war (should give you the complete structure)

One way to use the war file:

1. Copy filename.war to $CATALINA_HOME/webapps

If running, the default configuration of Tomcat will explode the war file and 
you will see a filename directory in $CATALINA_HOME/webapps along with 
filename.war. If you look inside that directory, you will see your web 
application structure.

. . . . . just my two cents.

/mde/

- Original Message 
From: Lava Saleem lnsal...@ualr.edu
To: users users@tomcat.apache.org
Sent: Thu, December 9, 2010 9:10:13 AM
Subject: Re: HTTP status 404

Hello everyone,
Thanks for the replies I really appreciate your feedback

I have the structure as the following
webapps
|
filename
|- filename.htm
*|-*WEB-INF
|- web.xml
|-META-INF
|-context.xml

after having this structure,I use the following command

CATALINA_BASE/webapps/filename/ jar -cvf filename.war *.*

then I deploy the file in the tomcat manager and I have the following error

HTTP status 404
description the requested resource (/filename/)is not available

I assumed that I don't need the  java classes and lib in the WEB-INF  since
I'm only having single html file with java script, Do you think I need any ?
if so how do I know which files I need ?

I also extracted the filename.war just to see whats in there and I see only
the filename.htm and the META-INF  there is no WEB-INF it is disappearing

Thanks
Lava

On Wed, Dec 8, 2010 at 4:35 PM, André Warnier a...@ice-sa.com wrote:

  Lava Saleem wrote:

 Hi everyone,
 I have  a single page html file with java script embadded in it, I have
 created a war file for it and deployed it successfully but when I click on
 the page I get the below error, the structure of my war file is the
 following

 webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
 +  classes + lib

 I did not modify the web.xml since I don't need the servlets do I need to
 modify anything?

 HTTP status 404
 description the requested resource (/filename/)is not available


 Hi.
 Except the 404 error which your are getting, not much above makes any sense
 at all.

 So it is better to forget all that, and start new.
 You really have to learn to walk before you can run.

 First, consider the directory structure of a standard Tomcat installation :

 (CATALINA_HOME)
 (=CATALINA_BASE)
  |
  |- bin (tomcat programs and scripts)
  |- conf (configuration files)
  |- lib (global library files)
  |- logs (logfiles)
  |- webapps (* web applications *)
|- ROOT  (the special, top-level, default web application)
|- app1 (a web application)
|- app2 (another web application)
|- ...
|- lastapp (another web application)

 In the above, (CATALINA_HOME) represents the top directory of your Tomcat
 installation, the one under which the rest of Tomcat is found.
 For example, on your system it may be C:\tomcat or C:\program
 files\Apache Software Foundation\tomcat6.0 or /usr/share/tomcat6 or
 /usr/local/tomcat6 or whatever.

 The webapps sub-directory is what is important for you now.  That is
 where you will put web applications, composed of static html pages (with
 or without javascript in them), JSP pages (special html pages with embedded
 Java code), java servlets (compiled java applications), etc..

 The ROOT web application is special.  It is the default application.
 When you use a URL like : http://yourserver.yourcompany.com/abc.html
 Tomcat is going to look for abc.html under the webapps/ROOT directory.

 The other subdirectories under webapps are each one separate web
 application.
 To access for example the application named app1, you will have to use a
 URL starting with http://yourserver.yourcompany.com/app1/;
 For example, if you place a html page named xyz.html in the subdirectory
 (CATALINA_HOME)/webapps/app1, then the URL to call it up will be
 http://yourserver.yourcompany.com/app1/xyz.html

 Under such a web application directory like ../webapps/app1, there is also
 a structure.
 It looks like this :

 (CATALINA_HOME)
 (=CATALINA_BASE)
  |- webapps (* dir, top of all web applications *)
|
|- app1 (dir, contains the web application named app1)
- public files (html etc..)
- WEB-INF (directory)
 |- files (private)
 |- web.xml (configuration file

Re: HTTP status 404

2010-12-09 Thread Lava Saleem
Hi Mark,
I have changed my web.xml file to the one you send me and added the
welcome-file-list so I will not need to navigate to
localhost:8080/filename/filename.htm, I changed the index.htm to
filename.htmthen I navigated to  localhost:8080/filename and it didn't
work , I also copied the filename.war file to the webapps and nothing
changed

 however after changing the web.xml file when I navigate to
localhost:8080/filename/filename.htm   the filename pops up, on the manager
side its says running but the session stays zero  so to be honest I'm kinda
confuse is it working now ?if I changed the web.xml shouldn't be working on
localhost:8080/filename/ ?

Thanks
Lava

On Thu, Dec 9, 2010 at 1:15 PM, Mark Eggers its_toas...@yahoo.com wrote:

 In the absence of a web.xml file with the following:

welcome-file-list
welcome-filefilename.htm/welcome-file
/welcome-file-list

 You will have to navigate to:

 localhost:8080/filename/filename.htm

 In another message I posted a minimal web.xml file. Change index.html to
 filename.htm (if this is what you want your welcome file to be). Then
 navigating
 to:

 localhost:8080/filename/

 will work.

 If you want to create a war file, do the following:

 1. Change to the directory filename
 2. jar cf ../filename.war .
 3. cd ..
 4. jar tf filename.war (should give you the complete structure)

 One way to use the war file:

 1. Copy filename.war to $CATALINA_HOME/webapps

 If running, the default configuration of Tomcat will explode the war file
 and
 you will see a filename directory in $CATALINA_HOME/webapps along with
 filename.war. If you look inside that directory, you will see your web
 application structure.

 . . . . . just my two cents.

 /mde/

 - Original Message 
 From: Lava Saleem lnsal...@ualr.edu
 To: users users@tomcat.apache.org
 Sent: Thu, December 9, 2010 9:10:13 AM
 Subject: Re: HTTP status 404

  Hello everyone,
 Thanks for the replies I really appreciate your feedback

 I have the structure as the following
 webapps
 |
 filename
|- filename.htm
 *|-*WEB-INF
|- web.xml
|-META-INF
|-context.xml

 after having this structure,I use the following command

 CATALINA_BASE/webapps/filename/ jar -cvf filename.war *.*

 then I deploy the file in the tomcat manager and I have the following error

 HTTP status 404
 description the requested resource (/filename/)is not available

 I assumed that I don't need the  java classes and lib in the WEB-INF  since
 I'm only having single html file with java script, Do you think I need any
 ?
 if so how do I know which files I need ?

 I also extracted the filename.war just to see whats in there and I see only
 the filename.htm and the META-INF  there is no WEB-INF it is disappearing

 Thanks
 Lava

 On Wed, Dec 8, 2010 at 4:35 PM, André Warnier a...@ice-sa.com wrote:

   Lava Saleem wrote:
 
  Hi everyone,
  I have  a single page html file with java script embadded in it, I have
  created a war file for it and deployed it successfully but when I click
 on
  the page I get the below error, the structure of my war file is the
  following
 
  webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
  +  classes + lib
 
  I did not modify the web.xml since I don't need the servlets do I need
 to
  modify anything?
 
  HTTP status 404
  description the requested resource (/filename/)is not available
 
 
  Hi.
  Except the 404 error which your are getting, not much above makes any
 sense
  at all.
 
  So it is better to forget all that, and start new.
  You really have to learn to walk before you can run.
 
  First, consider the directory structure of a standard Tomcat installation
 :
 
  (CATALINA_HOME)
  (=CATALINA_BASE)
   |
   |- bin (tomcat programs and scripts)
   |- conf (configuration files)
   |- lib (global library files)
   |- logs (logfiles)
   |- webapps (* web applications *)
 |- ROOT  (the special, top-level, default web application)
 |- app1 (a web application)
 |- app2 (another web application)
 |- ...
 |- lastapp (another web application)
 
  In the above, (CATALINA_HOME) represents the top directory of your
 Tomcat
  installation, the one under which the rest of Tomcat is found.
  For example, on your system it may be C:\tomcat or C:\program
  files\Apache Software Foundation\tomcat6.0 or /usr/share/tomcat6 or
  /usr/local/tomcat6 or whatever.
 
  The webapps sub-directory is what is important for you now.  That is
  where you will put web applications, composed of static html pages
 (with
  or without javascript in them), JSP pages (special html pages with
 embedded
  Java code), java servlets (compiled java applications), etc..
 
  The ROOT web application is special.  It is the default application.
  When you use a URL like : http://yourserver.yourcompany.com/abc.html
  Tomcat is going to look for abc.html under the webapps/ROOT directory

Re: HTTP status 404

2010-12-09 Thread Mark Eggers
Lava,

 I changed the index.htm to
 filename.htm then I navigated to  localhost:8080/filename and it didn't
 work , I also copied the filename.war file to the webapps and nothing
 changed


Odd, when I do this and type localhost:8080/Static, I get a 302 and redirected 
to localhost:8080/Static/ automatically. Then my welcome page (index.html) gets 
displayed.

Hmm, as an aside maybe a 307 is more appropriate (but pre-HTTP 1.1 clients may 
not understand this, and who knows what IE does)?

What is your complete web.xml?

 the filename pops up, on the manager
 side its says running but the session stays zero

You don't get sessions for free. Sessions are different than connections.

I don't know your background, but it sounds like some reading is in order. A 
book that seems to be helpful is Headfirst Servlets  JSP. The second edition 
covers the servlet 2.5 specifications. You'll need to have a basic 
understanding 
of Java in order to use this book, but it does a good job of explaining a lot 
of 
material. The exercises are reasonable as well.

. . . . just my two cents.

/mde/

- Original Message 
From: Lava Saleem lnsal...@ualr.edu
To: users users@tomcat.apache.org
Sent: Thu, December 9, 2010 11:40:14 AM
Subject: Re: HTTP status 404

Hi Mark,
I have changed my web.xml file to the one you send me and added the
welcome-file-list so I will not need to navigate to
localhost:8080/filename/filename.htm, I changed the index.htm to
filename.htmthen I navigated to  localhost:8080/filename and it didn't
work , I also copied the filename.war file to the webapps and nothing
changed

however after changing the web.xml file when I navigate to
localhost:8080/filename/filename.htm   the filename pops up, on the manager
side its says running but the session stays zero  so to be honest I'm kinda
confuse is it working now ?if I changed the web.xml shouldn't be working on
localhost:8080/filename/ ?

Thanks
Lava

On Thu, Dec 9, 2010 at 1:15 PM, Mark Eggers its_toas...@yahoo.com wrote:

 In the absence of a web.xml file with the following:

welcome-file-list
welcome-filefilename.htm/welcome-file
/welcome-file-list

 You will have to navigate to:

 localhost:8080/filename/filename.htm

 In another message I posted a minimal web.xml file. Change index.html to
 filename.htm (if this is what you want your welcome file to be). Then
 navigating
 to:

 localhost:8080/filename/

 will work.

 If you want to create a war file, do the following:

 1. Change to the directory filename
 2. jar cf ../filename.war .
 3. cd ..
 4. jar tf filename.war (should give you the complete structure)

 One way to use the war file:

 1. Copy filename.war to $CATALINA_HOME/webapps

 If running, the default configuration of Tomcat will explode the war file
 and
 you will see a filename directory in $CATALINA_HOME/webapps along with
 filename.war. If you look inside that directory, you will see your web
 application structure.

 . . . . . just my two cents.

 /mde/

 - Original Message 
 From: Lava Saleem lnsal...@ualr.edu
 To: users users@tomcat.apache.org
 Sent: Thu, December 9, 2010 9:10:13 AM
 Subject: Re: HTTP status 404

  Hello everyone,
 Thanks for the replies I really appreciate your feedback

 I have the structure as the following
 webapps
 |
 filename
|- filename.htm
 *|-*WEB-INF
|- web.xml
|-META-INF
|-context.xml

 after having this structure,I use the following command

 CATALINA_BASE/webapps/filename/ jar -cvf filename.war *.*

 then I deploy the file in the tomcat manager and I have the following error

 HTTP status 404
 description the requested resource (/filename/)is not available

 I assumed that I don't need the  java classes and lib in the WEB-INF  since
 I'm only having single html file with java script, Do you think I need any
 ?
 if so how do I know which files I need ?

 I also extracted the filename.war just to see whats in there and I see only
 the filename.htm and the META-INF  there is no WEB-INF it is disappearing

 Thanks
 Lava

 On Wed, Dec 8, 2010 at 4:35 PM, André Warnier a...@ice-sa.com wrote:

   Lava Saleem wrote:
 
  Hi everyone,
  I have  a single page html file with java script embadded in it, I have
  created a war file for it and deployed it successfully but when I click
 on
  the page I get the below error, the structure of my war file is the
  following
 
  webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
  +  classes + lib
 
  I did not modify the web.xml since I don't need the servlets do I need
 to
  modify anything?
 
  HTTP status 404
  description the requested resource (/filename/)is not available
 
 
  Hi.
  Except the 404 error which your are getting, not much above makes any
 sense
  at all.
 
  So it is better to forget all that, and start new.
  You really have to learn to walk before you can run.
 
  First, consider the directory structure of a standard Tomcat installation
 :
 
  (CATALINA_HOME

HTTP status 404

2010-12-08 Thread Lava Saleem
Hi everyone,
I have  a single page html file with java script embadded in it, I have
created a war file for it and deployed it successfully but when I click on
the page I get the below error, the structure of my war file is the
following

webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
+  classes + lib

I did not modify the web.xml since I don't need the servlets do I need to
modify anything?

HTTP status 404
description the requested resource (/filename/)is not available

Thanks for the feedback
Lava


Re: HTTP status 404

2010-12-08 Thread Victor Kabdebon
I might be wrong but maybe you need to set something in your web.xml to
deliver static files. (basically Tomcat is not designed to run static html
files, you can use a combination of Apache serveur + tomcat serveur to do
that).

I strongely recommand you to use an IDE such as Netbeans, create a new Java
Web Application project, put your html file in the project build it.
Netbeans will generate a correct [YourProjectName].war, that you can deploy
or extract to see exactly how it was build, what you need to set etc...

Victor
http://www.voxnucleus.fr

2010/12/8 Lava Saleem lnsal...@ualr.edu

 Hi everyone,
 I have  a single page html file with java script embadded in it, I have
 created a war file for it and deployed it successfully but when I click on
 the page I get the below error, the structure of my war file is the
 following

 webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
 +  classes + lib

 I did not modify the web.xml since I don't need the servlets do I need to
 modify anything?

 HTTP status 404
 description the requested resource (/filename/)is not available

 Thanks for the feedback
 Lava



Re: HTTP status 404

2010-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Lava,

Didn't you ask this same question the day before yesterday? Have you
read all the replies and questions?

On 12/8/2010 2:39 PM, Lava Saleem wrote:
 I have  a single page html file with java script embadded in it, I have
 created a war file for it and deployed it successfully but when I click on
 the page I get the below error, the structure of my war file is the
 following
 
 webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
 +  classes + lib

What does all that mean? Are those file paths? Are they descriptions of
how you have concatenated files together? It doesn't make any sense to me.

 I did not modify the web.xml since I don't need the servlets do I need to
 modify anything?

Maybe.

 HTTP status 404
 description the requested resource (/filename/)is not available

What URL did you request? What resource did you expect it to serve?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkz/4L4ACgkQ9CaO5/Lv0PAScgCePUhYj8pYL/9Vb3eNZDHncVa3
GAsAoLvpcJjFYd1vb6ufehd41FgB084q
=SFt0
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: HTTP status 404

2010-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Victor,

On 12/8/2010 2:45 PM, Victor Kabdebon wrote:
 I might be wrong but maybe you need to set something in your web.xml to
 deliver static files. (basically Tomcat is not designed to run static html
 files, you can use a combination of Apache serveur + tomcat serveur to do
 that).

You are wrong. Tomcat is designed to serve static files via the
DefaultServlet, which is (surprise) enabled by default.

 I strongely recommand you to use an IDE such as Netbeans

- -1

If the OP can't figure out how to place files on the disk, adding an IDE
is going to make things so much worse.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkz/4RgACgkQ9CaO5/Lv0PC3ewCgmzrIYL3kkkGLHcCd5x4QKVqC
I8UAoK4p3jnNS1XnDO706cZzSVn53FVA
=X4w9
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: HTTP status 404

2010-12-08 Thread David Smith
 I might be wrong but maybe you need to set something in your web.xml to
 deliver static files. (basically Tomcat is not designed to run static html
 files, you can use a combination of Apache serveur + tomcat serveur to do
 that).

Sorry but that's just not correct.  Any file in the webapp, but outside
of the WEB-INF folder can be delivered by the default servlet without
any special settings in web.xml or anywhere else for that matter.

--David

On 12/8/2010 2:45 PM, Victor Kabdebon wrote:
 I might be wrong but maybe you need to set something in your web.xml to
 deliver static files. (basically Tomcat is not designed to run static html
 files, you can use a combination of Apache serveur + tomcat serveur to do
 that).

 I strongely recommand you to use an IDE such as Netbeans, create a new Java
 Web Application project, put your html file in the project build it.
 Netbeans will generate a correct [YourProjectName].war, that you can deploy
 or extract to see exactly how it was build, what you need to set etc...

 Victor
 http://www.voxnucleus.fr

 2010/12/8 Lava Saleem lnsal...@ualr.edu

 Hi everyone,
 I have  a single page html file with java script embadded in it, I have
 created a war file for it and deployed it successfully but when I click on
 the page I get the below error, the structure of my war file is the
 following

 webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
 +  classes + lib

 I did not modify the web.xml since I don't need the servlets do I need to
 modify anything?

 HTTP status 404
 description the requested resource (/filename/)is not available

 Thanks for the feedback
 Lava



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: HTTP status 404

2010-12-08 Thread Victor Kabdebon
Christopher,

Yes but using tomcat to server html files looks to me like using a hammer to
kill a fly. Anyway everybody is free to do what he wants !

Concerning the IDE, its advantage is to be automatic, but in a way it adds
an extra layer of difficulty...

Victor
http://www.voxnucleus.fr

2010/12/8 Christopher Schultz ch...@christopherschultz.net

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Victor,

 On 12/8/2010 2:45 PM, Victor Kabdebon wrote:
  I might be wrong but maybe you need to set something in your web.xml to
  deliver static files. (basically Tomcat is not designed to run static
 html
  files, you can use a combination of Apache serveur + tomcat serveur to do
  that).

 You are wrong. Tomcat is designed to serve static files via the
 DefaultServlet, which is (surprise) enabled by default.

  I strongely recommand you to use an IDE such as Netbeans

 - -1

 If the OP can't figure out how to place files on the disk, adding an IDE
 is going to make things so much worse.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkz/4RgACgkQ9CaO5/Lv0PC3ewCgmzrIYL3kkkGLHcCd5x4QKVqC
 I8UAoK4p3jnNS1XnDO706cZzSVn53FVA
 =X4w9
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: HTTP status 404

2010-12-08 Thread Victor Kabdebon
Sorry if I didn't write properly what I wanted to say, but what I was saying
is just that if you want to serve only static html files there are many
other simpler solutions to do that, that's all.
Again even I use it for example to serve .css, .js files on my server so I
agree it is 100 % possible to use a tomcat server that way.

Victor Kabdebon
http://www.voxnucleus.fr

2010/12/8 Victor Kabdebon victor.kabde...@gmail.com

 Christopher,

 Yes but using tomcat to server html files looks to me like using a hammer
 to kill a fly. Anyway everybody is free to do what he wants !

 Concerning the IDE, its advantage is to be automatic, but in a way it adds
 an extra layer of difficulty...

 Victor
 http://www.voxnucleus.fr

 2010/12/8 Christopher Schultz ch...@christopherschultz.net

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Victor,

 On 12/8/2010 2:45 PM, Victor Kabdebon wrote:
  I might be wrong but maybe you need to set something in your web.xml to
  deliver static files. (basically Tomcat is not designed to run static
 html
  files, you can use a combination of Apache serveur + tomcat serveur to
 do
  that).

 You are wrong. Tomcat is designed to serve static files via the
 DefaultServlet, which is (surprise) enabled by default.

  I strongely recommand you to use an IDE such as Netbeans

 - -1

 If the OP can't figure out how to place files on the disk, adding an IDE
 is going to make things so much worse.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkz/4RgACgkQ9CaO5/Lv0PC3ewCgmzrIYL3kkkGLHcCd5x4QKVqC
 I8UAoK4p3jnNS1XnDO706cZzSVn53FVA
 =X4w9
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org





Re: HTTP status 404

2010-12-08 Thread David Smith
 webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
 +  classes + lib
If I read this right, 'filename.htm' is being stored in
webapp/filename/WEB-INF/filename.htm inside your .war file.  FWIW,
WEB-INF has no special meaning except in the top level of your .war
archive  A .war archive built like this will most likely deploy as a
static html folder and everything in it will be available as static files.

 HTTP status 404
 description the requested resource (/filename/)is not available
If you wanted to get filename.htm with the structure I think you are
describing, you should be requesting
/$WEBAPP/webapp/filename/WEB-INF/filename.htm where $WEBAPP is the
context your war file is deployed under.  Usually $WEBAPP is the name of
the war file.  For instance if the .war file is myapp.war, the request
path to filename.htm under tomcat would most likely be
myapp/webapp/filename/WEB-INF/filename.htm

To fix a *lot* of problems right off the bat, your war archive should
look more like:

filename.htm
WEB-INF
web.xml
classes
lib
META-INF
(what ever lives under here)

Then the request path (again assuming the war file is named myapp.war)
would be /myapp/filename.htm

--David

On 12/8/2010 2:39 PM, Lava Saleem wrote:
 Hi everyone,
 I have  a single page html file with java script embadded in it, I have
 created a war file for it and deployed it successfully but when I click on
 the page I get the below error, the structure of my war file is the
 following

 webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
 +  classes + lib

 I did not modify the web.xml since I don't need the servlets do I need to
 modify anything?

 HTTP status 404
 description the requested resource (/filename/)is not available

 Thanks for the feedback
 Lava


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: HTTP status 404

2010-12-08 Thread Hassan Schroeder
On Wed, Dec 8, 2010 at 12:05 PM, David Smith david.sm...@cornell.edu wrote:

 If you wanted to get filename.htm with the structure I think you are
 describing, you should be requesting
 /$WEBAPP/webapp/filename/WEB-INF/filename.htm

Which (thankfully) won't work, per the spec  :-)

-- 
Hassan Schroeder  hassan.schroe...@gmail.com
twitter: @hassan

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: HTTP status 404

2010-12-08 Thread Lava Saleem
Hi Chris
Thanks for the reply

Didn't you ask this same question the day before yesterday? Have you
read all the replies and questions?

No this one is a different question  yes I have read the replies and went
through the documentation

What does all that mean? Are those file paths? Are they descriptions of
how you have concatenated files together? It doesn't make any sense to me.

yes those are the folder path as you may see, I have  filename.htm with
web.xml with META-INF with classes with lib in a folder called WEB-INF  this
folder  is in a folder called filename, filename is in the webapp folder.

What URL did you request? What resource did you expect it to serve?
yes I have the url and I can't think of any resources needed thats why Iam
asking the question


Thanks

Lava

On Wed, Dec 8, 2010 at 2:47 PM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Lava,

 Didn't you ask this same question the day before yesterday? Have you
 read all the replies and questions?

 On 12/8/2010 2:39 PM, Lava Saleem wrote:
  I have  a single page html file with java script embadded in it, I have
  created a war file for it and deployed it successfully but when I click
 on
  the page I get the below error, the structure of my war file is the
  following
 
  webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
  +  classes + lib

 What does all that mean? Are those file paths? Are they descriptions of
 how you have concatenated files together? It doesn't make any sense to me.

  I did not modify the web.xml since I don't need the servlets do I need to
  modify anything?

 Maybe.

  HTTP status 404
  description the requested resource (/filename/)is not available

 What URL did you request? What resource did you expect it to serve?

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkz/4L4ACgkQ9CaO5/Lv0PAScgCePUhYj8pYL/9Vb3eNZDHncVa3
 GAsAoLvpcJjFYd1vb6ufehd41FgB084q
 =SFt0
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




--


Re: HTTP status 404

2010-12-08 Thread Mark Eggers
Lava,


Please read the following:

http://tomcat.apache.org/tomcat-6.0-doc/appdev/deployment.html

Pay particular attention to:

http://tomcat.apache.org/tomcat-6.0-doc/appdev/deployment.html#Standard_Directory_Layout


(please note the above link is line-wrapped)

Here's an example. Each line level is a subdirectory. Comments are in 
parentheses.

Static (top folder - application name)
├── (jsp, html, js, css, etc. - can have subdirectories)
├── META-INF (context.xml, not required - see Tomcat documentation)
└── WEB-INF
├── classes (where the java classes you wrote go)
├── lib (where jar files - yours or third party libraries go)
└── web.xml (deployment descriptor - read the standard)

A minimal Tomcat 6 deployment descriptor for an application containing only 
static resources could be:

?xml version=1.0 encoding=UTF-8?
web-app version=2.5 xmlns=http://java.sun.com/xml/ns/javaee;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun. 
com/xml/ns/javaee/web-app_2_5.xsd
display-nameStatic Application/display-name
descriptionHTML, CSS, and JS application/description
welcome-file-list
welcome-fileindex.html/welcome-file
/welcome-file-list
/web-app

(note again that the third / fourth line of the web-app element is line-wrapped)

The index.html file would go under Static (Static-index.html).

The web.xml file would go under Static-WEB-INF (Static-WEB-INF-web.xml).

You would display this application by copying the entire directory structure to 
$CATALINA_HOME/webapps, starting Tomcat, and then browse to 
http://localhost:8080/Static/ (provided you have not changed the default 
server.xml.

If you want to make a war file, then go to the parent directory and issue the 
following command from the command line:

jar tf Static.war Static

Please note that case is important. This will create Static.war which can then 
be deployed using Tomcat's manager application (or copying Static.war to 
$CATALINA_HOME/webapps).

. . . . just my two cents.

/mde/


- Original Message 
From: Lava Saleem lnsal...@ualr.edu
To: Tomcat Users List users@tomcat.apache.org
Sent: Wed, December 8, 2010 12:12:18 PM
Subject: Re: HTTP status 404

Hi Chris
Thanks for the reply

Didn't you ask this same question the day before yesterday? Have you
read all the replies and questions?

No this one is a different question  yes I have read the replies and went
through the documentation

What does all that mean? Are those file paths? Are they descriptions of
how you have concatenated files together? It doesn't make any sense to me.

yes those are the folder path as you may see, I have  filename.htm with
web.xml with META-INF with classes with lib in a folder called WEB-INF  this
folder  is in a folder called filename, filename is in the webapp folder.

What URL did you request? What resource did you expect it to serve?
yes I have the url and I can't think of any resources needed thats why Iam
asking the question


Thanks

Lava

On Wed, Dec 8, 2010 at 2:47 PM, Christopher Schultz 
ch...@christopherschultz.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Lava,

 Didn't you ask this same question the day before yesterday? Have you
 read all the replies and questions?

 On 12/8/2010 2:39 PM, Lava Saleem wrote:
  I have  a single page html file with java script embadded in it, I have
  created a war file for it and deployed it successfully but when I click
 on
  the page I get the below error, the structure of my war file is the
  following
 
  webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
  +  classes + lib

 What does all that mean? Are those file paths? Are they descriptions of
 how you have concatenated files together? It doesn't make any sense to me.

  I did not modify the web.xml since I don't need the servlets do I need to
  modify anything?

 Maybe.

  HTTP status 404
  description the requested resource (/filename/)is not available

 What URL did you request? What resource did you expect it to serve?

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkz/4L4ACgkQ9CaO5/Lv0PAScgCePUhYj8pYL/9Vb3eNZDHncVa3
 GAsAoLvpcJjFYd1vb6ufehd41FgB084q
 =SFt0
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




--





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: HTTP status 404

2010-12-08 Thread André Warnier

Lava Saleem wrote:

Hi everyone,
I have  a single page html file with java script embadded in it, I have
created a war file for it and deployed it successfully but when I click on
the page I get the below error, the structure of my war file is the
following

webapp -- filename -- WEB-INF-- filename.htm  + web.xml + META-INF
+  classes + lib

I did not modify the web.xml since I don't need the servlets do I need to
modify anything?

HTTP status 404
description the requested resource (/filename/)is not available



Hi.
Except the 404 error which your are getting, not much above makes any sense at 
all.

So it is better to forget all that, and start new.
You really have to learn to walk before you can run.

First, consider the directory structure of a standard Tomcat installation :

(CATALINA_HOME)
(=CATALINA_BASE)
  |
  |- bin (tomcat programs and scripts)
  |- conf (configuration files)
  |- lib (global library files)
  |- logs (logfiles)
  |- webapps (* web applications *)
|- ROOT  (the special, top-level, default web application)
|- app1 (a web application)
|- app2 (another web application)
|- ...
|- lastapp (another web application)

In the above, (CATALINA_HOME) represents the top directory of your Tomcat installation, 
the one under which the rest of Tomcat is found.
For example, on your system it may be C:\tomcat or C:\program files\Apache Software 
Foundation\tomcat6.0 or /usr/share/tomcat6 or /usr/local/tomcat6 or whatever.


The webapps sub-directory is what is important for you now.  That is where you will put 
web applications, composed of static html pages (with or without javascript in them), 
JSP pages (special html pages with embedded Java code), java servlets (compiled java 
applications), etc..


The ROOT web application is special.  It is the default application.
When you use a URL like : http://yourserver.yourcompany.com/abc.html
Tomcat is going to look for abc.html under the webapps/ROOT directory.

The other subdirectories under webapps are each one separate web application.
To access for example the application named app1, you will have to use a URL starting 
with http://yourserver.yourcompany.com/app1/;
For example, if you place a html page named xyz.html in the subdirectory 
(CATALINA_HOME)/webapps/app1, then the URL to call it up will be

http://yourserver.yourcompany.com/app1/xyz.html

Under such a web application directory like ../webapps/app1, there is also a 
structure.
It looks like this :

(CATALINA_HOME)
(=CATALINA_BASE)
  |- webapps (* dir, top of all web applications *)
|
|- app1 (dir, contains the web application named app1)
- public files (html etc..)
- WEB-INF (directory)
 |- files (private)
 |- web.xml (configuration file for the application)
 |- classes (dir.)
   |- compiled java classes, like servlets
 |- lib (dir)
   |- java libraries for this webapp
- META-INF (dir.)
 |- context.xml (more settings for the application)

Basically everything under app1 is optional.  Tomcat will supply a default if 
needed.
Of course, you will want at least one file under there, to make the execise 
meaningful.

What is in the sub-directories WEB-INF and META-INF, can never be obtained directly by a 
browser. Tomcat will not allow it.

So if you enter the following URL in the browser :
http://yourserver.yourcompany.com/app1/WEB-INF/something
Tomcat will respond with an error, even if something exists.


But to start, I suggest that you just
- stop tomcat
- create a new sub-directory under ../webapps/, for example myapp.
- under that subdirectory, place a file called myfile.html
- verify that the ownership and permissions of these files are such that the Tomcat user 
can read them

- start Tomcat
- in the browser, enter the URL : 
http://yourserver.yourcompany.com/myapp/myfile.html
and enjoy.

Now play around with the above :
- create another page mypage2.html, place it alongside myfile.html, start Tomcat and 
call up the new page in the browser.
- then stop Tomcat again, and create another subdirectory under webapps, put something 
there, start Tomcat and call it up with the browser.
- then stop Tomcat again, create a sub-directory WEB-INF under one of your webapps, put 
something in it, start Tomcat and try to call up that file.


When you understand exactly how that works, then go read this page (again) :
http://tomcat.apache.org/tomcat-6.0-doc/appdev/deployment.html

And then you should come back for more questions about how to make .war files and deploy 
them properly.
(tip : a .war file is just a zip file with the same content as the app1 subdirectory 
above.  It has to be named app1.war, and you have to copy it under /webapps/ for Tomcat 
to understand what you want

Help with tomcat 5.5 and Apache2 (404 issues)

2010-10-26 Thread Luiz Fabiano T.I CTO (Tempo Filmes)
Hi folks,

I'm trying to use Apche and Tocamt 5.5 together, I want to
answer request in http://mydomain.com/  in tomcat with my ROOT/.do  but when
I use /blog for example, I want to answer this request by Apache, I got a
wordpress blog there, which only be able to answer on port 80, but no matter
what I do, when I get error 404, Tomcat cannot send this one through apache.
Below are my server.xml and my virtualhost in apache called tomcat.conf.

 

Thanks in advice:

Server.xml:

 

?xml version='1.0' encoding='utf-8'?

Server port=54100 shutdown=shutdowntomcatpro...@o

 

  Service name=Catalina

Connector port=8080 protocol=AJP/1.3 redirectPort=8443 /

Engine name=Catalina

   defaultHost=localhost

   jvmRoute=tomcat-producao

 

  Host name=localhost

   appBase=webapps

unpackWARs=true

   autoDeploy=false

xmlValidation=false

   xmlNamespaceAware=false

/Host

 

/Engine

  /Service

/Server

~

 

Tomcat.conf:

ProxyRequests On

ProxyPreserveHost On

Proxy balancer://cloud

 BalancerMember ajp://localhost:8080 route=tomcat-producao

/Proxy

Location / 

 ProxyPass balancer://cloud/ stickysession=JSESSIONID

 ProxyPass /blog /var/www/blog

/Location

 

 

 



Re: Help with tomcat 5.5 and Apache2 (404 issues)

2010-10-26 Thread Pid
On 26/10/2010 12:47, Luiz Fabiano T.I CTO (Tempo Filmes) wrote:
 Hi folks,
 
 I'm trying to use Apche and Tocamt 5.5 together, I want to
 answer request in http://mydomain.com/  in tomcat with my ROOT/.do  but when
 I use /blog for example, I want to answer this request by Apache, I got a
 wordpress blog there, which only be able to answer on port 80, but no matter
 what I do, when I get error 404, Tomcat cannot send this one through apache.
 Below are my server.xml and my virtualhost in apache called tomcat.conf.
 
  
 
 Thanks in advice:
 
 Server.xml:
 
  
 
 ?xml version='1.0' encoding='utf-8'?
 
 Server port=54100 shutdown=shutdowntomcatpro...@o
 
  
 
   Service name=Catalina
 
 Connector port=8080 protocol=AJP/1.3 redirectPort=8443 /
 
 Engine name=Catalina
 
defaultHost=localhost
 
jvmRoute=tomcat-producao
 
  
 
   Host name=localhost
 
appBase=webapps
 
 unpackWARs=true
 
autoDeploy=false
 
 xmlValidation=false
 
xmlNamespaceAware=false
 
 /Host
 
  
 
 /Engine
 
   /Service
 
 /Server
 
 ~
 
  
 
 Tomcat.conf:
 
 ProxyRequests On
 
 ProxyPreserveHost On
 
 Proxy balancer://cloud
 
  BalancerMember ajp://localhost:8080 route=tomcat-producao
 
 /Proxy
 
 Location / 
  ProxyPass balancer://cloud/ stickysession=JSESSIONID
  ProxyPass /blog /var/www/blog
 /Location

Try the following instead:

 Location / 
  ProxyPass /blog !
  ProxyPass balancer://cloud/ stickysession=JSESSIONID
 /Location


In your original the first ProxyPass overrides the second, and the
second isn't like to work as you can't proxy a request to a file/directory.


p


0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


RES: Help with tomcat 5.5 and Apache2 (404 issues)

2010-10-26 Thread Luiz Fabiano T.I CTO (Tempo Filmes)
Dear PiD

It's doesn't works for me, when I try to lauch apache2 the deamon
sends it for me: ProxyPass URL must be absolute!, I've tried to put full
path, with and without domain, anyway nothing good happened, I still with
the problem and I will waiting for more help from you and the community,
I'll be so grateful if someone help me up.

Thank you all
 

-Mensagem original-
De: Pid [mailto:p...@pidster.com] 
Enviada em: terça-feira, 26 de outubro de 2010 10:04
Para: Tomcat Users List
Assunto: Re: Help with tomcat 5.5 and Apache2 (404 issues)

On 26/10/2010 12:47, Luiz Fabiano T.I CTO (Tempo Filmes) wrote:
 Hi folks,
 
 I'm trying to use Apche and Tocamt 5.5 together, I 
 want to answer request in http://mydomain.com/  in tomcat with my 
 ROOT/.do  but when I use /blog for example, I want to answer this 
 request by Apache, I got a wordpress blog there, which only be able to 
 answer on port 80, but no matter what I do, when I get error 404, Tomcat
cannot send this one through apache.
 Below are my server.xml and my virtualhost in apache called tomcat.conf.
 
  
 
 Thanks in advice:
 
 Server.xml:
 
  
 
 ?xml version='1.0' encoding='utf-8'?
 
 Server port=54100 shutdown=shutdowntomcatpro...@o
 
  
 
   Service name=Catalina
 
 Connector port=8080 protocol=AJP/1.3 redirectPort=8443 /
 
 Engine name=Catalina
 
defaultHost=localhost
 
jvmRoute=tomcat-producao
 
  
 
   Host name=localhost
 
appBase=webapps
 
 unpackWARs=true
 
autoDeploy=false
 
 xmlValidation=false
 
xmlNamespaceAware=false
 
 /Host
 
  
 
 /Engine
 
   /Service
 
 /Server
 
 ~
 
  
 
 Tomcat.conf:
 
 ProxyRequests On
 
 ProxyPreserveHost On
 
 Proxy balancer://cloud
 
  BalancerMember ajp://localhost:8080 route=tomcat-producao
 
 /Proxy
 
 Location / 
  ProxyPass balancer://cloud/ stickysession=JSESSIONID  ProxyPass /blog 
 /var/www/blog /Location

Try the following instead:

 Location / 
  ProxyPass /blog !
  ProxyPass balancer://cloud/ stickysession=JSESSIONID /Location


In your original the first ProxyPass overrides the second, and the second
isn't like to work as you can't proxy a request to a file/directory.


p


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: RES: Help with tomcat 5.5 and Apache2 (404 issues)

2010-10-26 Thread Pid
On 26/10/2010 14:14, Luiz Fabiano T.I CTO (Tempo Filmes) wrote:
 Dear PiD
 
   It's doesn't works for me, when I try to lauch apache2 the deamon
 sends it for me: ProxyPass URL must be absolute!, I've tried to put full
 path, with and without domain, anyway nothing good happened, I still with
 the problem and I will waiting for more help from you and the community,
 I'll be so grateful if someone help me up.

Sorry, you're right.  The ! instruction only works when defined outside
of a Location block.

In which case, you'll need to define:

 ProxyPass /blog !
 ProxyPass /   balancer... etc

Instead of defining Location ...


p


 Thank you all
  
 
 -Mensagem original-
 De: Pid [mailto:p...@pidster.com] 
 Enviada em: terça-feira, 26 de outubro de 2010 10:04
 Para: Tomcat Users List
 Assunto: Re: Help with tomcat 5.5 and Apache2 (404 issues)
 
 On 26/10/2010 12:47, Luiz Fabiano T.I CTO (Tempo Filmes) wrote:
 Hi folks,

 I'm trying to use Apche and Tocamt 5.5 together, I 
 want to answer request in http://mydomain.com/  in tomcat with my 
 ROOT/.do  but when I use /blog for example, I want to answer this 
 request by Apache, I got a wordpress blog there, which only be able to 
 answer on port 80, but no matter what I do, when I get error 404, Tomcat
 cannot send this one through apache.
 Below are my server.xml and my virtualhost in apache called tomcat.conf.

  

 Thanks in advice:

 Server.xml:

  

 ?xml version='1.0' encoding='utf-8'?

 Server port=54100 shutdown=shutdowntomcatpro...@o

  

   Service name=Catalina

 Connector port=8080 protocol=AJP/1.3 redirectPort=8443 /

 Engine name=Catalina

defaultHost=localhost

jvmRoute=tomcat-producao

  

   Host name=localhost

appBase=webapps

 unpackWARs=true

autoDeploy=false

 xmlValidation=false

xmlNamespaceAware=false

 /Host

  

 /Engine

   /Service

 /Server

 ~

  

 Tomcat.conf:

 ProxyRequests On

 ProxyPreserveHost On

 Proxy balancer://cloud

  BalancerMember ajp://localhost:8080 route=tomcat-producao

 /Proxy

 Location / 
  ProxyPass balancer://cloud/ stickysession=JSESSIONID  ProxyPass /blog 
 /var/www/blog /Location
 
 Try the following instead:
 
 Location / 
  ProxyPass /blog !
  ProxyPass balancer://cloud/ stickysession=JSESSIONID /Location
 
 
 In your original the first ProxyPass overrides the second, and the second
 isn't like to work as you can't proxy a request to a file/directory.
 
 
 p
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 



0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


RES: RES: Help with tomcat 5.5 and Apache2 (404 issues)

2010-10-26 Thread Luiz Fabiano T.I CTO (Tempo Filmes)
Pretty nice, it's works great for me..!

ProxyRequests On
ProxyPreserveHost On
Proxy balancer://cloud
 BalancerMember ajp://localhost:8080 route=tomcat-producao
/Proxy
 ProxyPass /blog !
 ProxyPass /media !
Location / 
   ProxyPass balancer://cloud/ stickysession=JSESSIONID
/Location

-Mensagem original-
De: Pid [mailto:p...@pidster.com] 
Enviada em: terça-feira, 26 de outubro de 2010 12:44
Para: Tomcat Users List
Assunto: Re: RES: Help with tomcat 5.5 and Apache2 (404 issues)

On 26/10/2010 14:14, Luiz Fabiano T.I CTO (Tempo Filmes) wrote:
 Dear PiD
 
   It's doesn't works for me, when I try to lauch apache2 the deamon 
 sends it for me: ProxyPass URL must be absolute!, I've tried to put 
 full path, with and without domain, anyway nothing good happened, I 
 still with the problem and I will waiting for more help from you and 
 the community, I'll be so grateful if someone help me up.

Sorry, you're right.  The ! instruction only works when defined outside of a
Location block.

In which case, you'll need to define:

 ProxyPass /blog !
 ProxyPass /   balancer... etc

Instead of defining Location ...


p


 Thank you all
  
 
 -Mensagem original-
 De: Pid [mailto:p...@pidster.com]
 Enviada em: terça-feira, 26 de outubro de 2010 10:04
 Para: Tomcat Users List
 Assunto: Re: Help with tomcat 5.5 and Apache2 (404 issues)
 
 On 26/10/2010 12:47, Luiz Fabiano T.I CTO (Tempo Filmes) wrote:
 Hi folks,

 I'm trying to use Apche and Tocamt 5.5 together, I 
 want to answer request in http://mydomain.com/  in tomcat with my 
 ROOT/.do  but when I use /blog for example, I want to answer this 
 request by Apache, I got a wordpress blog there, which only be able 
 to answer on port 80, but no matter what I do, when I get error 404, 
 Tomcat
 cannot send this one through apache.
 Below are my server.xml and my virtualhost in apache called tomcat.conf.

  

 Thanks in advice:

 Server.xml:

  

 ?xml version='1.0' encoding='utf-8'?

 Server port=54100 shutdown=shutdowntomcatpro...@o

  

   Service name=Catalina

 Connector port=8080 protocol=AJP/1.3 redirectPort=8443 /

 Engine name=Catalina

defaultHost=localhost

jvmRoute=tomcat-producao

  

   Host name=localhost

appBase=webapps

 unpackWARs=true

autoDeploy=false

 xmlValidation=false

xmlNamespaceAware=false

 /Host

  

 /Engine

   /Service

 /Server

 ~

  

 Tomcat.conf:

 ProxyRequests On

 ProxyPreserveHost On

 Proxy balancer://cloud

  BalancerMember ajp://localhost:8080 route=tomcat-producao

 /Proxy

 Location / 
  ProxyPass balancer://cloud/ stickysession=JSESSIONID  ProxyPass 
 /blog /var/www/blog /Location
 
 Try the following instead:
 
 Location / 
  ProxyPass /blog !
  ProxyPass balancer://cloud/ stickysession=JSESSIONID /Location
 
 
 In your original the first ProxyPass overrides the second, and the 
 second isn't like to work as you can't proxy a request to a
file/directory.
 
 
 p
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Error 404 when redirected

2010-10-07 Thread arnaud icard

Hello,

I am currently installing and configuring a webserver with the couple 
httpd/tomcat.

This server hosts many tomcat applications, each one with its own hostname.


My current Tomcat configuration is something like that :

   Host name=appli1.domain.fr  appBase=/var/www/appli1
   unpackWARs=true autoDeploy=true xmlValidation=false
   xmlNamespaceAware=false
   Context path= docBase=/var/www/appli1 crossContext=false
...
   Host name=appli2.domain.fr  appBase=/var/www/appli2
   unpackWARs=true autoDeploy=true xmlValidation=false
   xmlNamespaceAware=false
   Context path= docBase=/var/www/appli2 crossContext=false
...

The httpd VHost configuration is:

   VirtualHost *:80
ServerName appli1.domain.fr
ProxyPass / ajp://appli1.domain.fr:8009/ retry=1
...

   VirtualHost *:80
ServerName appli2.domain.fr
ProxyPass / ajp://appli2.domain.fr:8009/ retry=1
...

It's working for every applications except the appli2.
The appli2 interprets the index.jsp which redirects to 
http://appli2.domain.fr/stylesheets/welcome.faces.
At this point I have a 404 error : /The requested resource 
(/stylesheets/cas.faces) is not available./


How could it interprets the index.jsp but then cannot find the 
/stylesheets/welcome.faces ?

Does it come from my configuration or may it come from the application ?


I have tried a different Tomcat configuration :

   Host name=localhost  appBase=webapps unpackWARs=true
   autoDeploy=true xmlValidation=false xmlNamespaceAware=false
   Context path= docBase=/var/www/appli2 crossContext=false
...

Then the apache2 vhost :

   VirtualHost *:80
ServerName appli2.domain.fr
ProxyPass / ajp://localhost:8009/ retry=1
...


This one works fine but I would like to understand where does the 
problem comes from.



Regards,
arnaud

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Error 404 when redirected

2010-10-07 Thread André Warnier

arnaud icard wrote:
...


It's working for every applications except the appli2.
The appli2 interprets the index.jsp which redirects to 
http://appli2.domain.fr/stylesheets/welcome.faces.
At this point I have a 404 error : /The requested resource 
(/stylesheets/cas.faces) is not available./


How could it interprets the index.jsp but then cannot find the 
/stylesheets/welcome.faces ?

Does it come from my configuration or may it come from the application ?


Hi.
I have no idea if this may be the cause of the problem, but I notice a discrepancy between 
what you are writing, and the error message.

It is not complaining about the welcome.faces, but about not finding the 
cas.faces.
May it be that there is a link in welcome.faces which should point to cas.faces, but 
is incorrect ?



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Error 404 when redirected

2010-10-07 Thread Caldarale, Charles R
 From: arnaud icard [mailto:arnaud.ic...@univ-avignon.fr] 
 Subject: Error 404 when redirected

 I am currently installing and configuring a 
 webserver with the couple httpd/tomcat.

Exact versions?

 My current Tomcat configuration is something like that :
 Host name=appli1.domain.fr  appBase=/var/www/appli1 
 unpackWARs=true autoDeploy=true xmlValidation=false
 xmlNamespaceAware=false
    Context path= docBase=/var/www/appli1 crossContext=false

The above is seriously broken.  First, it is absolutely illegal to have the 
appBase the same as docBase.  Second, you should not be placing Context 
elements in server.xml.  Third, each Host should have a unique appBase 
directory.  Fourth, the default webapp for a given appBase must be named ROOT 
(case sensitive).

Remove the Context elements from server.xml, and restructure your file layout 
to look like this:

/
var/
  www/
appli1/
  ROOT/
META-INF/
  context.xml
WEB-INF/
  classes/
  lib/
other appli1 directories and files
appli2/
  ROOT/
META-INF/
  context.xml
WEB-INF/
  classes/
  lib/   
other appli2 directories and files

The context.xml file in each ROOT's META-INF directory can actually be omitted 
for the two webapps you showed, since it would contain no useful information 
(the path and docBase attributes must not be used here).  Only if you had some 
non-default attribute to specify would you create a Context element inside it.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Error 404 when redirected

2010-10-07 Thread arnaud icard

Hi André,

this difference is due to a slight modification I made.
The error is the same with the original code.



André Warnier a écrit le 07/10/2010 12:33:

arnaud icard wrote:
...


It's working for every applications except the appli2.
The appli2 interprets the index.jsp which redirects to 
http://appli2.domain.fr/stylesheets/welcome.faces.
At this point I have a 404 error : /The requested resource 
(/stylesheets/cas.faces) is not available./


How could it interprets the index.jsp but then cannot find the 
/stylesheets/welcome.faces ?

Does it come from my configuration or may it come from the application ?


Hi.
I have no idea if this may be the cause of the problem, but I notice a 
discrepancy between what you are writing, and the error message.
It is not complaining about the welcome.faces, but about not finding 
the cas.faces.
May it be that there is a link in welcome.faces which should point 
to cas.faces, but is incorrect ?



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Error 404 when redirected

2010-10-07 Thread arnaud icard



Caldarale, Charles R a écrit le 07/10/2010 13:50:

I am currently installing and configuring a
webserver with the couple httpd/tomcat.
 

Exact versions?
   


httpd : Apache/2.2.9 (Debian)
tomcat : Apache Tomcat/6.0.29


My current Tomcat configuration is something like that :
Host name=appli1.domain.fr  appBase=/var/www/appli1
unpackWARs=true autoDeploy=true xmlValidation=false
xmlNamespaceAware=false
 Context path= docBase=/var/www/appli1 crossContext=false
 

The above is seriously broken.  First, it is absolutely illegal to have the 
appBase the same as docBase.
Indead. This page helped me to understand why : 
http://www.lisnichenko.com/articles/tomcat-appbase-and-docbase.html

Second, you should not be placingContext  elements in server.xml.
This is not completly true : 
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

I quote the webpage :

   *Context* elements may be explicitly defined:

   * ...
   * Inside a Host element in the main conf/server.xml.

This is what I did there. But I guess this is the complete opposite to 
what is written just above on the same webpage.

Third, eachHost  should have a unique appBase directory.

This is already the case, isn't it?

Fourth, the default webapp for a given appBase must be named ROOT (case 
sensitive)
   
I had to made an exception for an application (uPortal) which is 
deployed in an uPortal/ folder

But I corrected this for the others.

Remove theContext  elements from server.xml, and restructure your file layout 
to look like this:
   

Most of these applications are deployed using /ant deploy/.
Thus I cannot place context file in the application/ROOT/META-INF (well 
I could but it would mean that I had to copy the context file each time 
I launch /ant deploy/)



So I now have the following server.xml :

   Host name=appli1.domain.fr  appBase=/var/www/appli1
   unpackWARs=true autoDeploy=true xmlValidation=false
   xmlNamespaceAware=false
   Context path= docBase=ROOT crossContext=false
...
   Host name=appli2.domain.fr  appBase=/var/www/appli2
   unpackWARs=true autoDeploy=true xmlValidation=false
   xmlNamespaceAware=false
   Context path= docBase=ROOT crossContext=false
   ...
   Host name=uportal.domain.fr  appBase=/var/www/uportal
   unpackWARs=true autoDeploy=true xmlValidation=false
   xmlNamespaceAware=false
   Context path= docBase=uportal crossContext=false
...
   Context path=/ResourceServingWebapp
   docBase=ResourceServingWebapp crossContext=false
   ...

The file layout for uportal is (yes 2 times uportal):
/var/www/uportal/
uportal/
ResourceServingWebapp/


Everything works fine... but I don't get why I had to specify ROOT in 
the docBase argument. Is it not the value by default ?


Regards,
arnaud


/
var/
   www/
 appli1/
   ROOT/
 META-INF/
   context.xml
 WEB-INF/
   classes/
   lib/
 other appli1 directories and files
 appli2/
   ROOT/
 META-INF/
   context.xml
 WEB-INF/
   classes/
   lib/
 other appli2 directories and files

The context.xml file in each ROOT's META-INF directory can actually be omitted for 
the two webapps you showed, since it would contain no useful information (the path 
and docBase attributes must not be used here).  Only if you had some non-default 
attribute to specify would you create aContext  element inside it.

  - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

   

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

RE: Error 404 when redirected

2010-10-07 Thread Caldarale, Charles R
 From: arnaud icard [mailto:arnaud.ic...@univ-avignon.fr] 
 Subject: Re: Error 404 when redirected

  Second, you should not be placing Context elements in server.xml.
 This is not completly true

Note that I said should not rather than must not.  You can place Context 
elements in server.xml, but it is not best practice, and is strongly 
discouraged.  Don't do it.

  Third, each Host should have a unique appBase directory.
 This is already the case, isn't it?

Not really, since docBase == appBase in your original config.  Your original 
configuration was ambiguous.

 Most of these applications are deployed using ant deploy.

Not relevant.

 Thus I cannot place context file in the application/ROOT/META-INF 

Of course you can.  However, as I stated earlier, you don't actually need any 
Context elements in the examples you gave.

 So I now have the following server.xml :
   Context path= docBase=ROOT crossContext=false

Just remove the Context elements like the above - they're unnecessary.

    Context path= docBase=uportal crossContext=false

Remove that one as well, and change the uportal directory name to ROOT.

    Context path=/ResourceServingWebapp docBase=ResourceServingWebapp 
crossContext=false

That Context element is also not necessary - remove it.

 The file layout for uportal is (yes 2 times uportal): 
 /var/www/uportal/
     uportal/

Change the above to ROOT/.

     ResourceServingWebapp/

That one is fine.

 I don't get why I had to specify ROOT in the docBase argument.

You shouldn't have a docBase argument, because you don't need any Context 
elements at all.

 Is it not the value by default ?

No; there is no default for docBase, since it should be used only when a 
Context element is in conf/Catalina/[host]/[appName].xml, and the associated 
webapp is located outside of the Host's appBase directory.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Error 404 when redirected

2010-10-07 Thread arnaud icard

Thank you for these explanations Chuck!



Caldarale, Charles R a écrit le 07/10/2010 15:38:

From: arnaud icard [mailto:arnaud.ic...@univ-avignon.fr]
Subject: Re: Error 404 when redirected
 
   

Second, you should not be placingContext  elements in server.xml.
   

This is not completly true
 

Note that I said should not rather than must not.  You can placeContext  
elements in server.xml, but it is not best practice, and is strongly discouraged.  Don't do it.

   

Third, eachHost  should have a unique appBase directory.
   

This is already the case, isn't it?
 

Not really, since docBase == appBase in your original config.  Your original 
configuration was ambiguous.

   

Most of these applications are deployed using ant deploy.
 

Not relevant.

   

Thus I cannot place context file in the application/ROOT/META-INF
 

Of course you can.  However, as I stated earlier, you don't actually need 
anyContext  elements in the examples you gave.

   

So I now have the following server.xml :
Context path= docBase=ROOT crossContext=false
 

Just remove theContext  elements like the above - they're unnecessary.

   

 Context path= docBase=uportal crossContext=false
 

Remove that one as well, and change the uportal directory name to ROOT.

   

 Context path=/ResourceServingWebapp docBase=ResourceServingWebapp 
crossContext=false
 

ThatContext  element is also not necessary - remove it.

   

The file layout for uportal is (yes 2 times uportal):
/var/www/uportal/
 uportal/
 

Change the above to ROOT/.

   

 ResourceServingWebapp/
 

That one is fine.

   

I don't get why I had to specify ROOT in the docBase argument.
 

You shouldn't have a docBase argument, because you don't need anyContext  
elements at all.

   

Is it not the value by default ?
 

No; there is no default for docBase, since it should be used only when aContext  
element is in conf/Catalina/[host]/[appName].xml, and the associated webapp is located 
outside of theHost's appBase directory.

  - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

   



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Webapp reloading issue and intermittent 404 errors

2010-08-09 Thread Tomislav Petrović

Caldarale, Charles R said on 8.7.2010 3:31:

From: Caldarale, Charles R
Subject: RE: Webapp reloading issue and intermittent 404 errors

Given the test on lines 129-130, it is impossible to have a -1 at line
131 - unless there's a JVM bug.


6u21 was just released tonight, so you might give that a shot and see if the 
problem has been addressed.

Included in 6u21 are fixes for the problems described here:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6875866
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6935535

Both seem to have a lot in common with the issue under discussion.

There's another String-related fix in the bug list, but the details are not 
retrievable at the moment:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6948602




Just to let you know, installing 6u21 seems to solve problem completely 
(hasn't manifested after upgrade at all).


--
Tomy t.petro...@inet.hr

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: 404 with mod_jk

2010-07-15 Thread Michael Powe


On Thu, Jul 15, 2010 at 01:52:17AM -0400, Michael Powe wrote:
 On Thu, Jul 15, 2010 at 02:28:52AM +0200, André Warnier wrote:
  Michael Powe wrote:
 
  To install mod_jk, I resorted to my good friend Google, and used a
  tutorial to set up the connector.  In that tutorial, the method used
  was to create a properties file (workers.properties) which set up the
  worker `worker1'.  
  ...
  I'm installing a clean version of Apache, built from httpd.apache.org
  sources, in /usr/local in order to get around all the weird (IMO)
  configuration for the version installed in Ubuntu by default.  At this
  point, I've fiddled so many things I've lost track of where I'm at.
  Sometimes, when you can't get something to work, it's best to return
  to first principles.
 
  I will not often say this, but I believe your problems may stem from the 
  above, and that you would do better by using the pre-packaged versions of 
  things (except Tomcat)
 
  1) it is hard to judge the correctness of a tutorial found on Google.
  The mod_jk instructions on the mod_jk pages of the Tomcat website are 
  pretty good, and they are at least accurate and up-to-date.
 
 True.  One of them was the `quick start for the impatient' on the
 mod_jk doc page.
  
  2) the standard Apache packages for Debian and Ubuntu are quite good, and a 
  lot easier to install and maintain than working everything out from scratch.
  I suggest the following order :
  apt-get install sun-java6-jdk
  (then Tomcat, but for Tomcat, I suggest installing it from the Tomcat site 
  distribution)
  apt-get install apache2
  apt-get install libapache2-mod-jk
  (the last 2 work out of the box and take max. 3 minutes altogether)

Well, it never rains but it pours.  After doing `sudo apt-get purge
apache2':

po...@ubuntu:~$ sudo apt-get install apache2
Reading package lists... Done
Building dependency tree   
Reading state information... Done
The following extra packages will be installed:
  apache2-mpm-worker
The following NEW packages will be installed:
  apache2 apache2-mpm-worker
0 upgraded, 2 newly installed, 0 to remove and 221 not upgraded.
Need to get 0B/3,846B of archives.
After this operation, 119kB of additional disk space will be used.
Do you want to continue [Y/n]? 
Selecting previously deselected package apache2-mpm-worker.
(Reading database ... 166454 files and directories currently
installed.)
Unpacking apache2-mpm-worker (from
.../apache2-mpm-worker_2.2.14-5ubuntu8_i386.deb) ...
Selecting previously deselected package apache2.
Unpacking apache2 (from .../apache2_2.2.14-5ubuntu8_i386.deb) ...
Setting up apache2-mpm-worker (2.2.14-5ubuntu8) ...
No apache MPM package installed

Now, the Apache installation is completely broken and will not install
properly.  That's the problem with these package systems:  no error
messages to indicate what might have gone wrong and nontrivial to
figure it out.  We'll see what they say over in ubuntu forums.  I
could shoot myself or go to bed.  I choose bed.

Thanks.

mp

-- 
Michael Powemich...@trollope.orgNaugatuck CT USA

He speaks well, he's well-read, but he's an idiot.
  -- N.D. Kalu, describing Rush Limbaugh


pgplCYZ1R46Yl.pgp
Description: PGP signature


Re: 404 with mod_jk

2010-07-15 Thread Rainer Jung

On 13.07.2010 23:17, Michael Powe wrote:

Hello,

I asked this question in the httpd list but no joy.

I have set up tomcat 6 and IBM httpd server to proxy requests using
mod_jk.

IBM_HTTP_Server/6.0.2 Apache/2.0.47 (Unix) mod_jk/1.2.30 Server at
localhost Port 80

I have followed all instructions as nearly as I can make
out.

The mod_jk log shows:

[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
map_uri_to_worker_ext::jk_uri_worker_map.c (951): enter
[Tue Jul 13 16:41:02 2010] [7639:50215792] [debug]
map_uri_to_worker_ext::jk_uri_worker_map.c (1036): Attempting to map
URI '/TlTaggerTest/target.jsp' from 9 maps
[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
find_match::jk_uri_worker_map.c (839): enter
[Tue Jul 13 16:41:02 2010] [7639:50215792] [debug]
find_match::jk_uri_worker_map.c (850): Attempting to map context URI
'/TlTaggerTest/*.jsp=worker1' source 'JkMount'
[Tue Jul 13 16:41:02 2010] [7639:50215792] [debug]
find_match::jk_uri_worker_map.c (863): Found a wildchar match
'/TlTaggerTest/*.jsp=worker1'
[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
find_match::jk_uri_worker_map.c (866): exit
[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
map_uri_to_worker_ext::jk_uri_worker_map.c (1065): exit


The next lines should have been:

... [7639:50215792] [trace] jk_handler::mod_jk.c (2383): enter
... [7639:50215792] [debug] jk_handler::mod_jk.c (2462): Into handler 
jakarta-servlet worker=worker1 r-proxyreq=0


It seems there is some other module, that handles the request instead of 
mod_jk or the handler is not set correctly. If you compiled to module 
yourself, you can easily find out by applying a little change:


2366 static int jk_handler(request_rec * r)
2367 {
2368 const char *worker_name;
2369 jk_server_conf_t *xconf;
2370 int rc, dmt = 1;
2371
2372 /* We do DIR_MAGIC_TYPE here to make sure TC gets all requests, 
even
2373  * if they are directory requests, in case there are no static 
files
2374  * visible to Apache and/or DirectoryIndex was not used. This 
is only

2375  * used when JkOptions has ForwardDirectories set. */
2376 /* Not for me, try next handler */
2377 if (strcmp(r-handler, JK_HANDLER)
2378  (dmt = strcmp(r-handler, DIR_MAGIC_TYPE)))
2379 return DECLINED;
2380

Before line 2372 add the following lines:

if (JK_IS_DEBUG_LEVEL(xconf-log)) {
jk_log(xconf-log, JK_LOG_DEBUG,
   Starting jk handler, Apache thinks it should use '%s',
   r-handler ? r-handler : NULL);
}

Regards,

Rainer

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: 404 with mod_jk

2010-07-15 Thread Michael Powe
Hello,

Thank you!  I did compile the module myself, wanting to be sure it was
properly compatible with my target environments.

I'll mod the code and see what new information is logged.

Thanks.

mp

On Thu, Jul 15, 2010 at 01:54:48PM +0200, Rainer Jung wrote:
 On 13.07.2010 23:17, Michael Powe wrote:
 Hello,
 
 I asked this question in the httpd list but no joy.
 
 I have set up tomcat 6 and IBM httpd server to proxy requests using
 mod_jk.
 
 IBM_HTTP_Server/6.0.2 Apache/2.0.47 (Unix) mod_jk/1.2.30 Server at
 localhost Port 80
 
 I have followed all instructions as nearly as I can make
 out.
 
 The mod_jk log shows:
 
 [Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
 map_uri_to_worker_ext::jk_uri_worker_map.c (951): enter
 [Tue Jul 13 16:41:02 2010] [7639:50215792] [debug]
 map_uri_to_worker_ext::jk_uri_worker_map.c (1036): Attempting to map
 URI '/TlTaggerTest/target.jsp' from 9 maps
 [Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
 find_match::jk_uri_worker_map.c (839): enter
 [Tue Jul 13 16:41:02 2010] [7639:50215792] [debug]
 find_match::jk_uri_worker_map.c (850): Attempting to map context URI
 '/TlTaggerTest/*.jsp=worker1' source 'JkMount'
 [Tue Jul 13 16:41:02 2010] [7639:50215792] [debug]
 find_match::jk_uri_worker_map.c (863): Found a wildchar match
 '/TlTaggerTest/*.jsp=worker1'
 [Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
 find_match::jk_uri_worker_map.c (866): exit
 [Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
 map_uri_to_worker_ext::jk_uri_worker_map.c (1065): exit
 
 The next lines should have been:
 
 ... [7639:50215792] [trace] jk_handler::mod_jk.c (2383): enter
 ... [7639:50215792] [debug] jk_handler::mod_jk.c (2462): Into handler 
 jakarta-servlet worker=worker1 r-proxyreq=0
 
 It seems there is some other module, that handles the request instead of 
 mod_jk or the handler is not set correctly. If you compiled to module 
 yourself, you can easily find out by applying a little change:
 
 2366 static int jk_handler(request_rec * r)
 2367 {
 2368 const char *worker_name;
 2369 jk_server_conf_t *xconf;
 2370 int rc, dmt = 1;
 2371
 2372 /* We do DIR_MAGIC_TYPE here to make sure TC gets all requests, 
 even
 2373  * if they are directory requests, in case there are no static 
 files
 2374  * visible to Apache and/or DirectoryIndex was not used. This 
 is only
 2375  * used when JkOptions has ForwardDirectories set. */
 2376 /* Not for me, try next handler */
 2377 if (strcmp(r-handler, JK_HANDLER)
 2378  (dmt = strcmp(r-handler, DIR_MAGIC_TYPE)))
 2379 return DECLINED;
 2380
 
 Before line 2372 add the following lines:
 
 if (JK_IS_DEBUG_LEVEL(xconf-log)) {
 jk_log(xconf-log, JK_LOG_DEBUG,
Starting jk handler, Apache thinks it should use '%s',
r-handler ? r-handler : NULL);
 }
 
 Regards,
 
 Rainer
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org

-- 
Michael Powemich...@trollope.orgNaugatuck CT USA
In every country and in every age, the priest has been hostile to
liberty.  He is always in alliance with the despot, abetting his
abuses in return for protection to his own. -- Thomas Jefferson to
Horatio G. Spafford, 1814. ME 14:119


pgpbbwaSM5eFq.pgp
Description: PGP signature


Re: 404 with mod_jk

2010-07-14 Thread Rainer Jung
 
(406): exit
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
ajp_validate::jk_ajp_common.c (2616): exit
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] validate::jk_ajp13_worker.c 
(37): exit
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] init::jk_ajp13_worker.c 
(47): enter
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] ajp_init::jk_ajp_common.c 
(2700): enter
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] ajp_init::jk_ajp_common.c 
(2800): setting endpoint options:
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] ajp_init::jk_ajp_common.c 
(2803): keepalive:  0
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] ajp_init::jk_ajp_common.c 
(2807): socket timeout: 0
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] ajp_init::jk_ajp_common.c 
(2811): socket connect timeout: 0
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] ajp_init::jk_ajp_common.c 
(2815): buffer size:0
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] ajp_init::jk_ajp_common.c 
(2819): pool timeout:   0
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] ajp_init::jk_ajp_common.c 
(2823): ping timeout:   1
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] ajp_init::jk_ajp_common.c 
(2827): connect timeout:0
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] ajp_init::jk_ajp_common.c 
(2831): reply timeout:  0
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] ajp_init::jk_ajp_common.c 
(2835): prepost timeout:0
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] ajp_init::jk_ajp_common.c 
(2839): recovery options:   0
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] ajp_init::jk_ajp_common.c 
(2843): retries:2
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] ajp_init::jk_ajp_common.c 
(2847): max packet size:8192
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] ajp_init::jk_ajp_common.c 
(2851): retry interval: 100
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
ajp_create_endpoint_cache::jk_ajp_common.c (2653): enter
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
ajp_create_endpoint_cache::jk_ajp_common.c (2662): setting connection pool size 
to 25 with min 13 and acquire timeout 200
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
ajp_create_endpoint_cache::jk_ajp_common.c (2688): exit
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] ajp_init::jk_ajp_common.c 
(2883): exit


- anything in the httpd error log? Maybe your mod_jk module file is not
really compatible with your web server binary and you get process crashes?


After the server restart, the following:

[Tue Jul 13 22:21:00 2010] [notice] suEXEC mechanism enabled (wrapper: 
/opt/IBMIHS/bin/suexec)
[Tue Jul 13 22:21:02 2010] [notice] IBM_HTTP_Server/6.0.2 Apache/2.0.47 (Unix) 
mod_jk/1.2.30 configured -- resuming normal operations
[Tue Jul 13 22:21:02 2010] [notice] Core file limit is 0; core dumps will be 
not be written for server crashes

Attempt to reach URL http://localhost/TlTaggerTest/target.jsp:

[Tue Jul 13 22:39:46 2010] [error] [client 127.0.0.1] File does not exist: 
target.jsp


If those remarks do not help, we will need your configuration and more
complete logs.


 From httpd.conf:

VirtualHost localhost
 ServerName localhost
 DocumentRoot /opt/IBMIHS/htdocs/en_US
 CustomLog logs/vhost_local_access_log combined

#JkMount /manager ajp13
#JkMount /manager/* ajp13
#
#JkMount /helloworld ajp13
#JkMount /helloworld/* ajp13
#
#JkMount /docs ajp13
#JkMount /docs/* ajp13
#
#JkMount /host-manager ajp13
#JkMount /host-manager/* ajp13

 JkMount /TlTaggerTest/*.jsp worker1
/VirtualHost

Your help is really appreciated.


Thanks for the info, the startup looks good assuming that there were no 
non-debug non-trace lines.


One piece is missing, namely the full log lines from the time sending 
the test request to the return of the 404. My first question aimed at 
asking, whether the few log lines you provided contained really 
everything that gets logged by mod_jk during handling the test request 
(excluding startup).


Regards,

Rainer

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: 404 with mod_jk

2010-07-14 Thread Michael Powe
 22:21:00 2010] [12002:3987136] [debug] 
 ajp_init::jk_ajp_common.c (2851): retry interval: 100
 [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
 ajp_create_endpoint_cache::jk_ajp_common.c (2653): enter
 [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
 ajp_create_endpoint_cache::jk_ajp_common.c (2662): setting connection pool 
 size to 25 with min 13 and acquire timeout 200
 [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
 ajp_create_endpoint_cache::jk_ajp_common.c (2688): exit
 [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
 ajp_init::jk_ajp_common.c (2883): exit
 
 - anything in the httpd error log? Maybe your mod_jk module file is not
 really compatible with your web server binary and you get process crashes?
 
 After the server restart, the following:
 
 [Tue Jul 13 22:21:00 2010] [notice] suEXEC mechanism enabled (wrapper: 
 /opt/IBMIHS/bin/suexec)
 [Tue Jul 13 22:21:02 2010] [notice] IBM_HTTP_Server/6.0.2 Apache/2.0.47 
 (Unix) mod_jk/1.2.30 configured -- resuming normal operations
 [Tue Jul 13 22:21:02 2010] [notice] Core file limit is 0; core dumps will 
 be not be written for server crashes
 
 Attempt to reach URL http://localhost/TlTaggerTest/target.jsp:
 
 [Tue Jul 13 22:39:46 2010] [error] [client 127.0.0.1] File does not exist: 
 target.jsp
 
 If those remarks do not help, we will need your configuration and more
 complete logs.
 
  From httpd.conf:
 
 VirtualHost localhost
  ServerName localhost
  DocumentRoot /opt/IBMIHS/htdocs/en_US
  CustomLog logs/vhost_local_access_log combined
 
 #JkMount /manager ajp13
 #JkMount /manager/* ajp13
 #
 #JkMount /helloworld ajp13
 #JkMount /helloworld/* ajp13
 #
 #JkMount /docs ajp13
 #JkMount /docs/* ajp13
 #
 #JkMount /host-manager ajp13
 #JkMount /host-manager/* ajp13
 
  JkMount /TlTaggerTest/*.jsp worker1
 /VirtualHost
 
 Your help is really appreciated.
 
 Thanks for the info, the startup looks good assuming that there were no 
 non-debug non-trace lines.
 
 One piece is missing, namely the full log lines from the time sending 
 the test request to the return of the 404. My first question aimed at 
 asking, whether the few log lines you provided contained really 
 everything that gets logged by mod_jk during handling the test request 
 (excluding startup).
 
 Regards,
 
 Rainer
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org

-- 
Michael Powemich...@trollope.orgNaugatuck CT USA
Usenet is like a herd of performing elephants with diarrhea --
massive, difficult to redirect, awe-inspiring, entertaining, and a
source of mind-boggling amounts of excrement when you least expect
it. -- Gene Spafford


pgp61Ha8XXwva.pgp
Description: PGP signature


Re: 404 with mod_jk

2010-07-14 Thread André Warnier
): reply timeout:  0
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
ajp_init::jk_ajp_common.c (2835): prepost timeout:0
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
ajp_init::jk_ajp_common.c (2839): recovery options:   0
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
ajp_init::jk_ajp_common.c (2843): retries:2
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
ajp_init::jk_ajp_common.c (2847): max packet size:8192
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
ajp_init::jk_ajp_common.c (2851): retry interval: 100
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
ajp_create_endpoint_cache::jk_ajp_common.c (2653): enter
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
ajp_create_endpoint_cache::jk_ajp_common.c (2662): setting connection pool 
size to 25 with min 13 and acquire timeout 200
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
ajp_create_endpoint_cache::jk_ajp_common.c (2688): exit
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
ajp_init::jk_ajp_common.c (2883): exit



- anything in the httpd error log? Maybe your mod_jk module file is not
really compatible with your web server binary and you get process crashes?

After the server restart, the following:

[Tue Jul 13 22:21:00 2010] [notice] suEXEC mechanism enabled (wrapper: 
/opt/IBMIHS/bin/suexec)
[Tue Jul 13 22:21:02 2010] [notice] IBM_HTTP_Server/6.0.2 Apache/2.0.47 
(Unix) mod_jk/1.2.30 configured -- resuming normal operations
[Tue Jul 13 22:21:02 2010] [notice] Core file limit is 0; core dumps will 
be not be written for server crashes


Attempt to reach URL http://localhost/TlTaggerTest/target.jsp:

[Tue Jul 13 22:39:46 2010] [error] [client 127.0.0.1] File does not exist: 
target.jsp



If those remarks do not help, we will need your configuration and more
complete logs.

From httpd.conf:

VirtualHost localhost
ServerName localhost
DocumentRoot /opt/IBMIHS/htdocs/en_US
CustomLog logs/vhost_local_access_log combined

#JkMount /manager ajp13
#JkMount /manager/* ajp13
#
#JkMount /helloworld ajp13
#JkMount /helloworld/* ajp13
#
#JkMount /docs ajp13
#JkMount /docs/* ajp13
#
#JkMount /host-manager ajp13
#JkMount /host-manager/* ajp13

JkMount /TlTaggerTest/*.jsp worker1
/VirtualHost

Your help is really appreciated.
Thanks for the info, the startup looks good assuming that there were no 
non-debug non-trace lines.


One piece is missing, namely the full log lines from the time sending 
the test request to the return of the 404. My first question aimed at 
asking, whether the few log lines you provided contained really 
everything that gets logged by mod_jk during handling the test request 
(excluding startup).


Regards,

Rainer

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: 404 with mod_jk

2010-07-14 Thread Michael Powe
 options:
 [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
 ajp_init::jk_ajp_common.c (2803): keepalive:  0
 [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
 ajp_init::jk_ajp_common.c (2807): socket timeout: 0
 [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
 ajp_init::jk_ajp_common.c (2811): socket connect timeout: 0
 [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
 ajp_init::jk_ajp_common.c (2815): buffer size:0
 [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
 ajp_init::jk_ajp_common.c (2819): pool timeout:   0
 [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
 ajp_init::jk_ajp_common.c (2823): ping timeout:   1
 [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
 ajp_init::jk_ajp_common.c (2827): connect timeout:0
 [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
 ajp_init::jk_ajp_common.c (2831): reply timeout:  0
 [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
 ajp_init::jk_ajp_common.c (2835): prepost timeout:0
 [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
 ajp_init::jk_ajp_common.c (2839): recovery options:   0
 [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
 ajp_init::jk_ajp_common.c (2843): retries:2
 [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
 ajp_init::jk_ajp_common.c (2847): max packet size:8192
 [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
 ajp_init::jk_ajp_common.c (2851): retry interval: 100
 [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
 ajp_create_endpoint_cache::jk_ajp_common.c (2653): enter
 [Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
 ajp_create_endpoint_cache::jk_ajp_common.c (2662): setting connection 
 pool size to 25 with min 13 and acquire timeout 200
 [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
 ajp_create_endpoint_cache::jk_ajp_common.c (2688): exit
 [Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
 ajp_init::jk_ajp_common.c (2883): exit
 
 - anything in the httpd error log? Maybe your mod_jk module file is not
 really compatible with your web server binary and you get process 
 crashes?
 After the server restart, the following:
 
 [Tue Jul 13 22:21:00 2010] [notice] suEXEC mechanism enabled (wrapper: 
 /opt/IBMIHS/bin/suexec)
 [Tue Jul 13 22:21:02 2010] [notice] IBM_HTTP_Server/6.0.2 Apache/2.0.47 
 (Unix) mod_jk/1.2.30 configured -- resuming normal operations
 [Tue Jul 13 22:21:02 2010] [notice] Core file limit is 0; core dumps 
 will be not be written for server crashes
 
 Attempt to reach URL http://localhost/TlTaggerTest/target.jsp:
 
 [Tue Jul 13 22:39:46 2010] [error] [client 127.0.0.1] File does not 
 exist: target.jsp
 
 If those remarks do not help, we will need your configuration and more
 complete logs.
 From httpd.conf:
 
 VirtualHost localhost
 ServerName localhost
 DocumentRoot /opt/IBMIHS/htdocs/en_US
 CustomLog logs/vhost_local_access_log combined
 
 #JkMount /manager ajp13
 #JkMount /manager/* ajp13
 #
 #JkMount /helloworld ajp13
 #JkMount /helloworld/* ajp13
 #
 #JkMount /docs ajp13
 #JkMount /docs/* ajp13
 #
 #JkMount /host-manager ajp13
 #JkMount /host-manager/* ajp13
 
 JkMount /TlTaggerTest/*.jsp worker1
 /VirtualHost
 
 Your help is really appreciated.
 Thanks for the info, the startup looks good assuming that there were no 
 non-debug non-trace lines.
 
 One piece is missing, namely the full log lines from the time sending 
 the test request to the return of the 404. My first question aimed at 
 asking, whether the few log lines you provided contained really 
 everything that gets logged by mod_jk during handling the test request 
 (excluding startup).
 
 Regards,
 
 Rainer
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org

-- 
Michael Powemich...@trollope.orgNaugatuck CT USA

Oil production is in decline in 33 of the 48 largest oil producing
countries, ...
  -- Chevron Oil web site


pgpmrL74aj0HX.pgp
Description: PGP signature


Re: 404 with mod_jk

2010-07-14 Thread Konstantin Kolinko
2010/7/14 Michael Powe mich...@trollope.org:
 VirtualHost localhost
(...)
 #    JkMount /host-manager ajp13
 #    JkMount /host-manager/* ajp13
 
     JkMount /TlTaggerTest/*.jsp worker1
 /VirtualHost
 

 The VirtualHost section was created by the ApacheConfig option in
 Tomcat.

Trivial question:  are you sure, that your worker name is correct
(worker1 vs. ajp13).  I am curious, why Tomcat-generated
configuration has different worker name.

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: 404 with mod_jk

2010-07-14 Thread Rainer Jung

On 14.07.2010 14:37, Konstantin Kolinko wrote:

2010/7/14 Michael Powemich...@trollope.org:

VirtualHost localhost

(...)

#JkMount /host-manager ajp13
#JkMount /host-manager/* ajp13

JkMount /TlTaggerTest/*.jsp worker1
/VirtualHost



The VirtualHost section was created by the ApacheConfig option in
Tomcat.


Trivial question:  are you sure, that your worker name is correct
(worker1 vs. ajp13).  I am curious, why Tomcat-generated
configuration has different worker name.


The auto configuration feature of Tomcat should be deprecated. It is of 
no real use except for a trivial starter configuration. It *always* uses 
a single worker named ajp13.


Because of this feature (I guess because) mod_jk has a builtin worker 
named ajp13, which even if no worker named ajp13 is explicitely 
defined tries to contact localhost at 8009 if the a URL is mounted to a 
worker named ajp13. Legacy stuff.


Nevertheless, although the config the OP uses is not sufficient for 
prime time, it should work. I didn't yet have the time to compare, where 
exactly the log lines stop compared with a working request.


Regards,

Rainer

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: 404 with mod_jk

2010-07-14 Thread Michael Powe
On Wed, Jul 14, 2010 at 04:37:17PM +0200, Rainer Jung wrote:
 On 14.07.2010 14:37, Konstantin Kolinko wrote:
 2010/7/14 Michael Powemich...@trollope.org:
 VirtualHost localhost
 (...)
 #JkMount /host-manager ajp13
 #JkMount /host-manager/* ajp13
 
 JkMount /TlTaggerTest/*.jsp worker1
 /VirtualHost
 
 
 The VirtualHost section was created by the ApacheConfig option in
 Tomcat.
 
 Trivial question:  are you sure, that your worker name is correct
 (worker1 vs. ajp13).  I am curious, why Tomcat-generated
 configuration has different worker name.
 
 The auto configuration feature of Tomcat should be deprecated. It is of 
 no real use except for a trivial starter configuration. It *always* uses 
 a single worker named ajp13.
 
 Because of this feature (I guess because) mod_jk has a builtin worker 
 named ajp13, which even if no worker named ajp13 is explicitely 
 defined tries to contact localhost at 8009 if the a URL is mounted to a 
 worker named ajp13. Legacy stuff.
 
 Nevertheless, although the config the OP uses is not sufficient for 
 prime time, it should work. I didn't yet have the time to compare, where 
 exactly the log lines stop compared with a working request.

Hello,

The evolution of this process is as follows.  I am updating an Apache
module with some additional functionality.  This module is installed
in two places, one an Apache 2.0 server and the other an IBM httpd
server.  In both instances, Apache is serving pages in front of a
Tomcat server.  Additionally, the module needs to run in multiple
virtual hosts.  Therefore, I have to recreate the production design
locally, in order to be able to install my module and test my new
additions.

To install mod_jk, I resorted to my good friend Google, and used a
tutorial to set up the connector.  In that tutorial, the method used
was to create a properties file (workers.properties) which set up the
worker `worker1'.  

Failing to get that process working, I fell back to the ApacheConfig
directive, given the possibility that I might be leaving out something
simple yet critical in my `hand-rolled' method.  I just changed the
worker name back to `worker1' because I didn't want to keep fiddling
with the conf files, and `worker1' was already in place.  Really, I
just used ApacheConfig to get something to compare to my existing
setup.

I really appreciate your taking time to look at this.  It is such a
huge time-waster for me.  I'm spending more time setting up the test
environment than on my code.

I'm installing a clean version of Apache, built from httpd.apache.org
sources, in /usr/local in order to get around all the weird (IMO)
configuration for the version installed in Ubuntu by default.  At this
point, I've fiddled so many things I've lost track of where I'm at.
Sometimes, when you can't get something to work, it's best to return
to first principles.

Thanks.

mp

-- 
Michael Powemich...@trollope.orgNaugatuck CT USA


And your crybaby whiny opinion would be.?


pgpZDJceFOHaq.pgp
Description: PGP signature


Re: 404 with mod_jk

2010-07-14 Thread André Warnier

Michael Powe wrote:
...


To install mod_jk, I resorted to my good friend Google, and used a
tutorial to set up the connector.  In that tutorial, the method used
was to create a properties file (workers.properties) which set up the
worker `worker1'.  


...

I'm installing a clean version of Apache, built from httpd.apache.org
sources, in /usr/local in order to get around all the weird (IMO)
configuration for the version installed in Ubuntu by default.  At this
point, I've fiddled so many things I've lost track of where I'm at.
Sometimes, when you can't get something to work, it's best to return
to first principles.

I will not often say this, but I believe your problems may stem from the above, and that 
you would do better by using the pre-packaged versions of things (except Tomcat)

.
1) it is hard to judge the correctness of a tutorial found on Google.
The mod_jk instructions on the mod_jk pages of the Tomcat website are pretty good, and 
they are at least accurate and up-to-date.


2) the standard Apache packages for Debian and Ubuntu are quite good, and a lot easier to 
install and maintain than working everything out from scratch.

I suggest the following order :
apt-get install sun-java6-jdk
(then Tomcat, but for Tomcat, I suggest installing it from the Tomcat site 
distribution)
apt-get install apache2
apt-get install libapache2-mod-jk
(the last 2 work out of the box and take max. 3 minutes altogether)

Then you just need to add a workers.properties file and your JkMount mappings, and 
you'll be up and running in no time.


The weird configuration things you are mentioning for Apache, are quite easy to follow 
once you get over the initial surprise, and are actually a clever way to facilitate 
enabling/disabling modules and virtual hosts.

I offer to explain summarily, maybe off-list, if you have trouble there.

This all does not mean that it would not be interesting to find out where your current 
problem is.  But as Konstantin and/or Rainer mentioned, I believe the first thing would be 
to get out of the auto-configure thing.  I do not believe that this part has been well 
maintained since quite a while now.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: 404 with mod_jk

2010-07-14 Thread Michael Powe
On Thu, Jul 15, 2010 at 02:28:52AM +0200, André Warnier wrote:
 Michael Powe wrote:

 To install mod_jk, I resorted to my good friend Google, and used a
 tutorial to set up the connector.  In that tutorial, the method used
 was to create a properties file (workers.properties) which set up the
 worker `worker1'.  
 ...
 I'm installing a clean version of Apache, built from httpd.apache.org
 sources, in /usr/local in order to get around all the weird (IMO)
 configuration for the version installed in Ubuntu by default.  At this
 point, I've fiddled so many things I've lost track of where I'm at.
 Sometimes, when you can't get something to work, it's best to return
 to first principles.

 I will not often say this, but I believe your problems may stem from the 
 above, and that you would do better by using the pre-packaged versions of 
 things (except Tomcat)

 1) it is hard to judge the correctness of a tutorial found on Google.
 The mod_jk instructions on the mod_jk pages of the Tomcat website are 
 pretty good, and they are at least accurate and up-to-date.

True.  One of them was the `quick start for the impatient' on the
mod_jk doc page.
 
 2) the standard Apache packages for Debian and Ubuntu are quite good, and a 
 lot easier to install and maintain than working everything out from scratch.
 I suggest the following order :
 apt-get install sun-java6-jdk
 (then Tomcat, but for Tomcat, I suggest installing it from the Tomcat site 
 distribution)
 apt-get install apache2
 apt-get install libapache2-mod-jk
 (the last 2 work out of the box and take max. 3 minutes altogether)
 
 Then you just need to add a workers.properties file and your JkMount 
 mappings, and you'll be up and running in no time.
 
 The weird configuration things you are mentioning for Apache, are quite 
 easy to follow once you get over the initial surprise, and are actually a 
 clever way to facilitate enabling/disabling modules and virtual hosts.
 I offer to explain summarily, maybe off-list, if you have trouble there.

Well, it can't hurt for me to uninstall/reinstall to get things back
to a clean configuration.

Also, there's more to the weirdness of the Apache installation than
just the module/vh setup.  First, they've arbitrarily renamed some
elements (e.g., replaced `httpd' with `apache2' in various places),
which serves no useful purpose.  Second, `apxs' (renamed to `apxs2')
does not work correctly for compiling and installing my existing
module.  Maybe it works if you create one from scratch, I don't
know. Nor does `apachectl' (renamed to `apache2ctl').  `apache2ctl'
fails sometimes with the weird message `bad user name
${APACHE_RUN_USER}', meaning I take it that this variable is not
properly exported unless you run `/etc/init.d/apache2'.  Which only
takes `start|stop|restart|reload' for arguments.  (And setting the var
in the shell does not work.)  Third, you have files needed for
development/admin work in /etc/apache2, /var/lib/apache2 and
/usr/share/apache2 -- I mean, WTF?

For me, the summary of all that is that I installed the IBM server
into /opt and all the module-related stuff (apxs) and control stuff
(apachectl) just works.  And I'm not giving props to IBM so much as
I'm saying that the design of the installation for Ubuntu was not
intended for usage as a development package.  

/rant

I'll do as you suggest regarding the OOB installation and see where I
get.  I spent most of today working on my module, so at least I have a
feeling of progress.

Thanks.

mp 
 
-- 
Michael Powemich...@trollope.orgNaugatuck CT USA
I'll carry your books, I'll carry a tune, I'll carry on, carry over,
carry forward, Cary Grant, cash  carry, Carry Me Back To Old
Virginia, I'll even Hara Kari if you show me how, but I will *not*
carry a gun.  -- Hawkeye, M*A*S*H


pgpA74AJDIOI1.pgp
Description: PGP signature


404 with mod_jk

2010-07-13 Thread Michael Powe
Hello,

I asked this question in the httpd list but no joy.

I have set up tomcat 6 and IBM httpd server to proxy requests using
mod_jk.  

IBM_HTTP_Server/6.0.2 Apache/2.0.47 (Unix) mod_jk/1.2.30 Server at
localhost Port 80

I have followed all instructions as nearly as I can make
out. 

The mod_jk log shows:

[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
map_uri_to_worker_ext::jk_uri_worker_map.c (951): enter
[Tue Jul 13 16:41:02 2010] [7639:50215792] [debug]
map_uri_to_worker_ext::jk_uri_worker_map.c (1036): Attempting to map
URI '/TlTaggerTest/target.jsp' from 9 maps
[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
find_match::jk_uri_worker_map.c (839): enter
[Tue Jul 13 16:41:02 2010] [7639:50215792] [debug]
find_match::jk_uri_worker_map.c (850): Attempting to map context URI
'/TlTaggerTest/*.jsp=worker1' source 'JkMount'
[Tue Jul 13 16:41:02 2010] [7639:50215792] [debug]
find_match::jk_uri_worker_map.c (863): Found a wildchar match
'/TlTaggerTest/*.jsp=worker1'
[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
find_match::jk_uri_worker_map.c (866): exit
[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
map_uri_to_worker_ext::jk_uri_worker_map.c (1065): exit

The Apache access log shows:

localhost - - [13/Jul/2010:16:41:02 -0400] GET
/TlTaggerTest/target.jsp  404 332 - Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid)
Firefox/3.6.3 -

No indication on the Tomcat side of any activity.

The ajp13 connector is enabled.  Both mod_jk and ajp13 connector are
on port 8009.

The files are available directly from Tomcat through port 8080.

The local files (in htdocs) are properly served.

localhost - - [13/Jul/2010:16:58:01 -0400] GET
/TlTaggerTest/target.html  200 67 - Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid)
Firefox/3.6.3 -

I sure would appreciate any pointers for troubleshooting or
resolution. 

Thanks.

mp

-- 
Michael Powemich...@trollope.orgNaugatuck CT USA


47.3% of all statistics are made up on the spot. - Steven Wright


pgpqpMwrTG7dh.pgp
Description: PGP signature


Re: 404 with mod_jk

2010-07-13 Thread Rainer Jung

On 13.07.2010 23:17, Michael Powe wrote:

Hello,

I asked this question in the httpd list but no joy.

I have set up tomcat 6 and IBM httpd server to proxy requests using
mod_jk.

IBM_HTTP_Server/6.0.2 Apache/2.0.47 (Unix) mod_jk/1.2.30 Server at
localhost Port 80

I have followed all instructions as nearly as I can make
out.

The mod_jk log shows:

[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
map_uri_to_worker_ext::jk_uri_worker_map.c (951): enter
[Tue Jul 13 16:41:02 2010] [7639:50215792] [debug]
map_uri_to_worker_ext::jk_uri_worker_map.c (1036): Attempting to map
URI '/TlTaggerTest/target.jsp' from 9 maps
[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
find_match::jk_uri_worker_map.c (839): enter
[Tue Jul 13 16:41:02 2010] [7639:50215792] [debug]
find_match::jk_uri_worker_map.c (850): Attempting to map context URI
'/TlTaggerTest/*.jsp=worker1' source 'JkMount'
[Tue Jul 13 16:41:02 2010] [7639:50215792] [debug]
find_match::jk_uri_worker_map.c (863): Found a wildchar match
'/TlTaggerTest/*.jsp=worker1'
[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
find_match::jk_uri_worker_map.c (866): exit
[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
map_uri_to_worker_ext::jk_uri_worker_map.c (1065): exit

The Apache access log shows:

localhost - - [13/Jul/2010:16:41:02 -0400] GET
/TlTaggerTest/target.jsp  404 332 - Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid)
Firefox/3.6.3 -

No indication on the Tomcat side of any activity.

The ajp13 connector is enabled.  Both mod_jk and ajp13 connector are
on port 8009.

The files are available directly from Tomcat through port 8080.

The local files (in htdocs) are properly served.

localhost - - [13/Jul/2010:16:58:01 -0400] GET
/TlTaggerTest/target.html  200 67 - Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid)
Firefox/3.6.3 -

I sure would appreciate any pointers for troubleshooting or
resolution.

Thanks.

mp


Since you already have trace logging enabled:

- is this all that gets logged in the jk log file for the request?

- can you see your worker worker1 getting configured during startup
(debug log messages)?

- anything in the httpd error log? Maybe your mod_jk module file is not 
really compatible with your web server binary and you get process crashes?


If those remarks do not help, we will need your configuration and more 
complete logs.


Regards,

Rainer

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: 404 with mod_jk

2010-07-13 Thread Michael Powe
Hello,

Thank you for the reply.

See below for comments.

On Wed, Jul 14, 2010 at 12:37:05AM +0200, Rainer Jung wrote:

 On 13.07.2010 23:17, Michael Powe wrote:
 Hello,
 
 I asked this question in the httpd list but no joy.
 
 I have set up tomcat 6 and IBM httpd server to proxy requests using
 mod_jk.
 
 IBM_HTTP_Server/6.0.2 Apache/2.0.47 (Unix) mod_jk/1.2.30 Server at
 localhost Port 80
 
 I have followed all instructions as nearly as I can make
 out.
 

 
 Since you already have trace logging enabled:
 
 - is this all that gets logged in the jk log file for the request?

I rotated the mod_jk log and restarted the server.  I get a huge trace
log, 33K.  It appears to me to be initializing correctly, in the sense
that there are no error messages.  
 
 - can you see your worker worker1 getting configured during startup
 (debug log messages)?

[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
uri_worker_map_dump::jk_uri_worker_map.c (195): exit
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
uri_worker_map_open::jk_uri_worker_map.c (830): exit
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
uri_worker_map_alloc::jk_uri_worker_map.c (240): exit
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] init_jk::mod_jk.c (3112): 
Using fcntl() for locking.
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] init_jk::mod_jk.c (3128): 
Setting default connection pool max size to 25
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
jk_map_read_property::jk_map.c (491): Adding property 'worker.list' with value 
'worker1' to map.
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
jk_map_read_property::jk_map.c (491): Adding property 'worker.worker1.type' 
with value 'ajp13' to map.
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
jk_map_read_property::jk_map.c (491): Adding property 'worker.worker1.host' 
with value 'localhost' to map.
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
jk_map_read_property::jk_map.c (491): Adding property 'worker.worker1.port' 
with value '8009' to map.
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
jk_map_resolve_references::jk_map.c (766): enter 
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
jk_map_resolve_references::jk_map.c (774): Checking for references with prefix 
worker. with wildcard (recursion 1)
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
jk_map_resolve_references::jk_map.c (830): exit
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
jk_shm_calculate_size::jk_shm.c (97): enter
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
jk_shm_calculate_size::jk_shm.c (132): shared memory will contain 1 ajp workers 
of size 256 and 0 lb workers of size 320 with 0 members of size 320+256
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
jk_shm_calculate_size::jk_shm.c (139): exit

[ ... ]

[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] wc_open::jk_worker.c (50): 
enter
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_map_dump::jk_map.c (589): 
Dump of map: 'ServerRoot' - '/opt/IBMIHS'
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_map_dump::jk_map.c (589): 
Dump of map: 'worker.list' - 'worker1'
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_map_dump::jk_map.c (589): 
Dump of map: 'worker.worker1.type' - 'ajp13'
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_map_dump::jk_map.c (589): 
Dump of map: 'worker.worker1.host' - 'localhost'
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_map_dump::jk_map.c (589): 
Dump of map: 'worker.worker1.port' - '8009'
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
build_worker_map::jk_worker.c (236): enter
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
build_worker_map::jk_worker.c (242): creating worker worker1
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
wc_create_worker::jk_worker.c (126): enter
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
wc_create_worker::jk_worker.c (146): about to create instance worker1 of ajp13
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
ajp13_worker_factory::jk_ajp13_worker.c (80): enter
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
ajp_worker_factory::jk_ajp_common.c (2892): enter
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
ajp_worker_factory::jk_ajp_common.c (2934): exit
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
ajp13_worker_factory::jk_ajp13_worker.c (92): exit
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
wc_create_worker::jk_worker.c (159): about to validate and init worker1
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] validate::jk_ajp13_worker.c 
(35): enter
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
ajp_validate::jk_ajp_common.c (2579): enter
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
ajp_validate::jk_ajp_common.c (2605): worker worker1 contact is 'localhost:8009'
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] jk_resolve::jk_connect.c 
(329): enter
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] jk_resolve::jk_connect.c 
(406): exit
[Tue Jul 13 22:21:00 

Re: Webapp reloading issue and intermittent 404 errors

2010-07-07 Thread Tomislav Petrović
Tomislav Petrović said on 30.6.2010 16:27:
 Forgot to say:
 Tomcat service is started with following parameters:

 JVM: have to check whether server or client, not sure at the moment.

 Server, one would hope. Did you find out the exact version?

 
 Yup JVM path for tomcat is ..\jdk1.6.0_18\jre\bin\server\jvm.dll, so 
 Java 6 update 18 server.

Although initial excpetion and stacktrace (related to webapp reloading, 
actually checking that it should or should not be reloaded) went away with 
reloadable=false workaround I now have similar problem.

Please help since now machine is in (or near) production :(.

New stacktrace in catalina logs looks like (and produces 404 errors):

Jul 5, 2010 7:13:47 AM org.apache.catalina.connector.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the request 
processing
java.lang.StringIndexOutOfBoundsException: String index out of range: 115
at java.lang.String.substring(String.java:1934)
at org.apache.catalina.util.RequestUtil.normalize(RequestUtil.java:131)
at 
org.apache.naming.resources.FileDirContext.normalize(FileDirContext.java:771)
at 
org.apache.naming.resources.FileDirContext.file(FileDirContext.java:811)
at 
org.apache.naming.resources.FileDirContext.getAttributes(FileDirContext.java:429)
at 
org.apache.naming.resources.BaseDirContext.getAttributes(BaseDirContext.java:747)
at 
org.apache.naming.resources.ProxyDirContext.revalidate(ProxyDirContext.java:1501)
at 
org.apache.naming.resources.ProxyDirContext.cacheLookup(ProxyDirContext.java:1457)
at 
org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:288)
at 
org.apache.tomcat.util.http.mapper.Mapper.internalMapWrapper(Mapper.java:823)
at 
org.apache.tomcat.util.http.mapper.Mapper.internalMap(Mapper.java:667)
at org.apache.tomcat.util.http.mapper.Mapper.map(Mapper.java:557)
at 
org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:462)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:296)
at 
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
at 
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
at 
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
at java.lang.Thread.run(Thread.java:619)

Everything else is same as I posted before (config file, JVM versions, etc)
Any advice is appreciated
--
Tomy t.petro...@inet.hr

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Webapp reloading issue and intermittent 404 errors

2010-07-07 Thread Pid
On 07/07/2010 11:07, Tomislav Petrović wrote:
 Tomislav Petrović said on 30.6.2010 16:27:
 Forgot to say:
 Tomcat service is started with following parameters:

 JVM: have to check whether server or client, not sure at the moment.

 Server, one would hope. Did you find out the exact version?


 Yup JVM path for tomcat is ..\jdk1.6.0_18\jre\bin\server\jvm.dll, so 
 Java 6 update 18 server.
 
 Although initial excpetion and stacktrace (related to webapp reloading, 
 actually checking that it should or should not be reloaded) went away with 
 reloadable=false workaround I now have similar problem.
 
 Please help since now machine is in (or near) production :(.
 
 New stacktrace in catalina logs looks like (and produces 404 errors):
 
 Jul 5, 2010 7:13:47 AM org.apache.catalina.connector.CoyoteAdapter service
 SEVERE: An exception or error occurred in the container during the request 
 processing
 java.lang.StringIndexOutOfBoundsException: String index out of range: 115
   at java.lang.String.substring(String.java:1934)
   at org.apache.catalina.util.RequestUtil.normalize(RequestUtil.java:131)
   at 
 org.apache.naming.resources.FileDirContext.normalize(FileDirContext.java:771)
   at 
 org.apache.naming.resources.FileDirContext.file(FileDirContext.java:811)
   at 
 org.apache.naming.resources.FileDirContext.getAttributes(FileDirContext.java:429)
   at 
 org.apache.naming.resources.BaseDirContext.getAttributes(BaseDirContext.java:747)
   at 
 org.apache.naming.resources.ProxyDirContext.revalidate(ProxyDirContext.java:1501)
   at 
 org.apache.naming.resources.ProxyDirContext.cacheLookup(ProxyDirContext.java:1457)
   at 
 org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:288)
   at 
 org.apache.tomcat.util.http.mapper.Mapper.internalMapWrapper(Mapper.java:823)
   at 
 org.apache.tomcat.util.http.mapper.Mapper.internalMap(Mapper.java:667)
   at org.apache.tomcat.util.http.mapper.Mapper.map(Mapper.java:557)
   at 
 org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:462)
   at 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:296)
   at 
 org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
   at 
 org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
   at 
 org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
   at java.lang.Thread.run(Thread.java:619)
 
 Everything else is same as I posted before (config file, JVM versions, 
 etc)
 Any advice is appreciated

I think the general feeling is that it's a JVM bug - but no-one can work
out what it is.  I can't even work out how to get 115 characters out of
a normal file path.

Can you move the installation from:
 D:\Program Files\Apache Software Foundation\Tomcat 6.0

To:
 D:\Tomcat60


?

p

 --
 Tomy t.petro...@inet.hr
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 




signature.asc
Description: OpenPGP digital signature


Re: Webapp reloading issue and intermittent 404 errors

2010-07-07 Thread Tomislav Petrović
Pid said on 7.7.2010 12:26:
 On 07/07/2010 11:07, Tomislav Petrović wrote:
 Tomislav Petrović said on 30.6.2010 16:27:
 Forgot to say:
 Tomcat service is started with following parameters:

 JVM: have to check whether server or client, not sure at the moment.

 Server, one would hope. Did you find out the exact version?


 Yup JVM path for tomcat is ..\jdk1.6.0_18\jre\bin\server\jvm.dll, so
 Java 6 update 18 server.

 Although initial excpetion and stacktrace (related to webapp reloading, 
 actually checking that it should or should not be reloaded) went away with 
 reloadable=false workaround I now have similar problem.

 Please help since now machine is in (or near) production :(.

 New stacktrace in catalina logs looks like (and produces 404 errors):

 Jul 5, 2010 7:13:47 AM org.apache.catalina.connector.CoyoteAdapter service
 SEVERE: An exception or error occurred in the container during the request 
 processing
 java.lang.StringIndexOutOfBoundsException: String index out of range: 115
  at java.lang.String.substring(String.java:1934)
  at org.apache.catalina.util.RequestUtil.normalize(RequestUtil.java:131)
  at 
 org.apache.naming.resources.FileDirContext.normalize(FileDirContext.java:771)
  at 
 org.apache.naming.resources.FileDirContext.file(FileDirContext.java:811)
  at 
 org.apache.naming.resources.FileDirContext.getAttributes(FileDirContext.java:429)
  at 
 org.apache.naming.resources.BaseDirContext.getAttributes(BaseDirContext.java:747)
  at 
 org.apache.naming.resources.ProxyDirContext.revalidate(ProxyDirContext.java:1501)
  at 
 org.apache.naming.resources.ProxyDirContext.cacheLookup(ProxyDirContext.java:1457)
  at 
 org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:288)
  at 
 org.apache.tomcat.util.http.mapper.Mapper.internalMapWrapper(Mapper.java:823)
  at 
 org.apache.tomcat.util.http.mapper.Mapper.internalMap(Mapper.java:667)
  at org.apache.tomcat.util.http.mapper.Mapper.map(Mapper.java:557)
  at 
 org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:462)
  at 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:296)
  at 
 org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
  at 
 org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
  at 
 org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
  at java.lang.Thread.run(Thread.java:619)

 Everything else is same as I posted before (config file, JVM versions, 
 etc)
 Any advice is appreciated
 
 I think the general feeling is that it's a JVM bug - but no-one can work
 out what it is.  I can't even work out how to get 115 characters out of
 a normal file path.
 
 Can you move the installation from:
   D:\Program Files\Apache Software Foundation\Tomcat 6.0
 
 To:
   D:\Tomcat60
 
 

Don't know have to check with customer, but actual index varies in each 
occurrence of stack trace, sometimes it is even -1. In two days we had:
2x java.lang.StringIndexOutOfBoundsException: String index out of range: 131
1x java.lang.StringIndexOutOfBoundsException: String index out of range: 118
1x java.lang.StringIndexOutOfBoundsException: String index out of range: 106
4x java.lang.StringIndexOutOfBoundsException: String index out of range: -1 
3x java.lang.StringIndexOutOfBoundsException: String index out of range: 127
2x java.lang.StringIndexOutOfBoundsException: String index out of range: 126
1x java.lang.StringIndexOutOfBoundsException: String index out of range: 123
Rest of stacktrace is identical in all occurences.

In addition
--
Tomy t.petro...@inet.hr

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Webapp reloading issue and intermittent 404 errors

2010-07-07 Thread Pid
On 07/07/2010 11:35, Tomislav Petrović wrote:
 Pid said on 7.7.2010 12:26:
 On 07/07/2010 11:07, Tomislav Petrović wrote:
 Tomislav Petrović said on 30.6.2010 16:27:
 Forgot to say:
 Tomcat service is started with following parameters:

 JVM: have to check whether server or client, not sure at the moment.

 Server, one would hope. Did you find out the exact version?


 Yup JVM path for tomcat is ..\jdk1.6.0_18\jre\bin\server\jvm.dll, so
 Java 6 update 18 server.

 Although initial excpetion and stacktrace (related to webapp reloading, 
 actually checking that it should or should not be reloaded) went away with 
 reloadable=false workaround I now have similar problem.

 Please help since now machine is in (or near) production :(.

 New stacktrace in catalina logs looks like (and produces 404 errors):

 Jul 5, 2010 7:13:47 AM org.apache.catalina.connector.CoyoteAdapter service
 SEVERE: An exception or error occurred in the container during the request 
 processing
 java.lang.StringIndexOutOfBoundsException: String index out of range: 115
 at java.lang.String.substring(String.java:1934)
 at org.apache.catalina.util.RequestUtil.normalize(RequestUtil.java:131)
 at 
 org.apache.naming.resources.FileDirContext.normalize(FileDirContext.java:771)
 at 
 org.apache.naming.resources.FileDirContext.file(FileDirContext.java:811)
 at 
 org.apache.naming.resources.FileDirContext.getAttributes(FileDirContext.java:429)
 at 
 org.apache.naming.resources.BaseDirContext.getAttributes(BaseDirContext.java:747)
 at 
 org.apache.naming.resources.ProxyDirContext.revalidate(ProxyDirContext.java:1501)
 at 
 org.apache.naming.resources.ProxyDirContext.cacheLookup(ProxyDirContext.java:1457)
 at 
 org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:288)
 at 
 org.apache.tomcat.util.http.mapper.Mapper.internalMapWrapper(Mapper.java:823)
 at 
 org.apache.tomcat.util.http.mapper.Mapper.internalMap(Mapper.java:667)
 at org.apache.tomcat.util.http.mapper.Mapper.map(Mapper.java:557)
 at 
 org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:462)
 at 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:296)
 at 
 org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
 at 
 org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
 at 
 org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
 at java.lang.Thread.run(Thread.java:619)

 Everything else is same as I posted before (config file, JVM versions, 
 etc)
 Any advice is appreciated

 I think the general feeling is that it's a JVM bug - but no-one can work
 out what it is.  I can't even work out how to get 115 characters out of
 a normal file path.

 Can you move the installation from:
   D:\Program Files\Apache Software Foundation\Tomcat 6.0

 To:
   D:\Tomcat60


 
 Don't know have to check with customer, but actual index varies in each 
 occurrence of stack trace, sometimes it is even -1. In two days we had:
 2x java.lang.StringIndexOutOfBoundsException: String index out of range: 131
 1x java.lang.StringIndexOutOfBoundsException: String index out of range: 118
 1x java.lang.StringIndexOutOfBoundsException: String index out of range: 106
 4x java.lang.StringIndexOutOfBoundsException: String index out of range: -1 
 3x java.lang.StringIndexOutOfBoundsException: String index out of range: 127
 2x java.lang.StringIndexOutOfBoundsException: String index out of range: 126
 1x java.lang.StringIndexOutOfBoundsException: String index out of range: 123
 Rest of stacktrace is identical in all occurences.

I wondered if it doesn't like spaces in File paths.


p

 In addition
 --
 Tomy t.petro...@inet.hr
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 




signature.asc
Description: OpenPGP digital signature


Re: Webapp reloading issue and intermittent 404 errors

2010-07-07 Thread André Warnier

Pid wrote:
..


I wondered if it doesn't like spaces in File paths.


I did not want to ask that question. Good that someone did.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Webapp reloading issue and intermittent 404 errors

2010-07-07 Thread Caldarale, Charles R
 From: Tomislav Petrović [mailto:t.petro...@inet.hr]
 Subject: Re: Webapp reloading issue and intermittent 404 errors
 
 Don't know have to check with customer, but actual index varies in each
 occurrence of stack trace, sometimes it is even -1.

Here's the code of interest:

127 while (true) {
128 int index = normalized.indexOf(//);
129 if (index  0)
130 break;
131 normalized = normalized.substring(0, index) +
132 normalized.substring(index + 1);
133 }

Given the test on lines 129-130, it is impossible to have a -1 at line 131 - 
unless there's a JVM bug.

You could try running with a -client option instead of -server (if it's 
available on your platform), or create a .hotspot_compiler file in the Tomcat 
current directory containing this line:

exclude org.apache.catalina.util.RequestUtil normalize

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Webapp reloading issue and intermittent 404 errors

2010-07-07 Thread Konstantin Kolinko
2010/6/30 Tomislav Petrović t.petro...@inet.hr:
 Pid said on 30.6.2010 13:06:

 On 30/06/2010 11:59, Tomislav Petrović wrote:

        Context path=/some_webapp docBase=/some_webapp debug=0
 reloadable=true crossContext=true
        ResourceLink global=jdbc/SomeDB name=jdbc/SomeDB
 type=javax.sql.DataSource /
        ResourceLink global=jdbc/SomeDB2 name=jdbc/SomeDB2
 type=javax.sql.DataSource /

 If these are the actual values then it's a miracle it's working at all.

 Only app name/paths and jdbs names have been changed to dummy values.


 Instead of defining it there, remove the debug, path and docBase
 attributes and put it in

  some_webapp/META-INF/context.xml


 Tomcat will work out the rest automatically.

(...)

 And do you really think this would solve my initial problem, or?


As I mentioned in
https://issues.apache.org/bugzilla/show_bug.cgi?id=49488#c2

having double slash in a path is unusual.

Context path=/some_webapp docBase=/some_webapp
probably should be
Context path=/some_webapp docBase=some_webapp

but it would be much better to place this context definition in a
separate file, as was already
mentioned.


Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Webapp reloading issue and intermittent 404 errors

2010-07-07 Thread Caldarale, Charles R
 From: Caldarale, Charles R
 Subject: RE: Webapp reloading issue and intermittent 404 errors
 
 Given the test on lines 129-130, it is impossible to have a -1 at line
 131 - unless there's a JVM bug.

6u21 was just released tonight, so you might give that a shot and see if the 
problem has been addressed.

Included in 6u21 are fixes for the problems described here:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6875866
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6935535

Both seem to have a lot in common with the issue under discussion.

There's another String-related fix in the bug list, but the details are not 
retrievable at the moment:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6948602

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Webapp reloading issue and intermittent 404 errors

2010-07-07 Thread Konstantin Kolinko
2010/7/8 Caldarale, Charles R chuck.caldar...@unisys.com:
 From: Caldarale, Charles R
 Subject: RE: Webapp reloading issue and intermittent 404 errors

 Given the test on lines 129-130, it is impossible to have a -1 at line
 131 - unless there's a JVM bug.

 6u21 was just released tonight, so you might give that a shot and see if the 
 problem has been addressed.

 Included in 6u21 are fixes for the problems described here:
 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6875866
 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6935535

 Both seem to have a lot in common with the issue under discussion.

 There's another String-related fix in the bug list, but the details are not 
 retrievable at the moment:
 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6948602


Oh. It matches this case.

The issue names mention SSE 4.2, so it supposedly happens only on
certain families of Intel CPUs.

http://en.wikipedia.org/wiki/SSE4

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Webapp reloading issue and intermittent 404 errors

2010-07-07 Thread Caldarale, Charles R
 From: Konstantin Kolinko [mailto:knst.koli...@gmail.com]
 Subject: Re: Webapp reloading issue and intermittent 404 errors
 
 Oh. It matches this case.

All three seem to.

 The issue names mention SSE 4.2, so it supposedly happens only on
 certain families of Intel CPUs.

Right - just Nehalem chips (i7).  The OP didn't say what the hardware was; even 
if it's not an i7, the fixes might address the problem, since Sun often doesn't 
give complete descriptions of fixes.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Tomislav Petrović
Pid said on 29.6.2010 23:20:
 On 29/06/2010 19:29, Konstantin Kolinko wrote:
 2010/6/29 Caldarale, Charles Rchuck.caldar...@unisys.com:
 From: Tomislav Petrović [mailto:t.petro...@inet.hr]
 Subject: Re: Webapp reloading issue and intermittent 404 errors

 org.apache.catalina.util.RequestUtil.normalize(RequestUtil.java:131)

 IIRC, you are not the first person to report an exception at this spot in 
 the code.  (Unfortunately, I can't locate the other thread at the moment, 
 but it was fairly recent.)

 That was
 https://issues.apache.org/bugzilla/show_bug.cgi?id=49488

   The code in question has been run through many test cases, inside and 
 outside of Tomcat, and does not appear to contain any errors (although it 
 could be slightly more efficient).
 
 Weird.  I couldn't find that in bugzilla.  Anyhow, it's Windows this
 time too.
 
 
 Tomislav: where is the Tomcat installation on the filing system, and
 where are the webapps being deployed from, if not tomcat/webapps?
 
 What type of filing system is it?
 
 
 Also, did you manage to get hold of the config files yet?

Good news is when I put reloadable=false on context problem (both of them, 
intermittent 404 too) went away, so I have workaround. Bad news is server is 
going into production so no messing with it no more.

Yes, this is same bug as one in bugzilla, don't know if what triggered is same.

Here is detailed info (my first suspect is Resources in server.xml but this 
is only my guess.

Tomcat is Apache Tomcat/6.0.24, running without tcnative-1.dll

Java version is: 1.6 update 18

Windows version: 2003 SP2 (32 bit)

NTFS file system is used, Tomcat is installed in D:\Program Files\Apache 
Software Foundation\Tomcat 6.0 folder, webapp is in D:\Program Files\Apache 
Software Foundation\Tomcat 6.0\webapps\some_name folder.

This is content of server.xml, I believe that all other conf files are at their 
default values (except for pwd in users file), feel free to ask for any other 
conf file.

?xml version='1.0' encoding='utf-8'?
Server port=8005 shutdown=SHUTDOWN

  Listener className=org.apache.catalina.core.AprLifecycleListener 
SSLEngine=on /
  Listener className=org.apache.catalina.core.JasperListener /
  Listener 
className=org.apache.catalina.core.JreMemoryLeakPreventionListener /
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener /
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  GlobalNamingResources
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
  factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /
Resource name=jdbc/SomeDB auth=Container type=javax.sql.DataSource 
  maxActive=48
  maxIdle=10
  maxWait=1
  driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
  username=auser
  password=*
  
url=jdbc:sqlserver://**.***.*.**:1433;databaseName=SomeName;loginTimeout=5
  removeAbandoned=true
  removeAbandonedTimeout=60
  logAbandoned=true
  validationQuery=SELECT 1/
Resource name=jdbc/SomeDB2 auth=Container type=javax.sql.DataSource 
  maxActive=48
  maxIdle=10
  maxWait=1
  driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
  username=auser2
  password=**
  url=jdbc:sqlserver://**.***.*.**:1433;databaseName=SomeName2
  removeAbandoned=true
  removeAbandonedTimeout=60
  logAbandoned=true
  validationQuery=SELECT 1/

  /GlobalNamingResources

  Service name=Catalina
  
Connector port=8080 protocol=HTTP/1.1 
   connectionTimeout=2 
   redirectPort=8443 /
Connector port=8009 protocol=AJP/1.3 redirectPort=8443 /

Engine name=Catalina defaultHost=localhost

  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 resourceName=UserDatabase/

  Host name=localhost  appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false

Valve className=org.apache.catalina.valves.AccessLogValve 
directory=logs  
   prefix=localhost_access_log. suffix=.txt pattern=common 
resolveHosts=false/

  Context path=/some_webapp docBase=/some_webapp debug=0 
reloadable=true crossContext=true
ResourceLink global=jdbc/SomeDB name=jdbc/SomeDB 
type=javax.sql.DataSource /
ResourceLink global=jdbc/SomeDB2 name=jdbc/SomeDB2 
type=javax.sql.DataSource /
/Context
  /Host
/Engine
  /Service
/Server

Let me know if I can provide any more info or update

Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Tomislav Petrović

Tomislav Petrović said on 30.6.2010 12:59:

Pid said on 29.6.2010 23:20:

On 29/06/2010 19:29, Konstantin Kolinko wrote:

2010/6/29 Caldarale, Charles Rchuck.caldar...@unisys.com:

From: Tomislav Petrović [mailto:t.petro...@inet.hr]
Subject: Re: Webapp reloading issue and intermittent 404 errors

org.apache.catalina.util.RequestUtil.normalize(RequestUtil.java:131)


IIRC, you are not the first person to report an exception at this spot in the 
code.  (Unfortunately, I can't locate the other thread at the moment, but it 
was fairly recent.)


That was
https://issues.apache.org/bugzilla/show_bug.cgi?id=49488


   The code in question has been run through many test cases, inside and 
outside of Tomcat, and does not appear to contain any errors (although it could 
be slightly more efficient).


Weird.  I couldn't find that in bugzilla.  Anyhow, it's Windows this
time too.


Tomislav: where is the Tomcat installation on the filing system, and
where are the webapps being deployed from, if not tomcat/webapps?

What type of filing system is it?


Also, did you manage to get hold of the config files yet?


Good news is when I put reloadable=false on context problem (both of them, 
intermittent 404 too) went away, so I have workaround. Bad news is server is 
going into production so no messing with it no more.

Yes, this is same bug as one in bugzilla, don't know if what triggered is same.

Here is detailed info (my first suspect isResources in server.xml but this is 
only my guess.

Tomcat is Apache Tomcat/6.0.24, running without tcnative-1.dll

Java version is: 1.6 update 18

Windows version: 2003 SP2 (32 bit)

NTFS file system is used, Tomcat is installed in D:\Program Files\Apache Software 
Foundation\Tomcat 6.0 folder, webapp is in D:\Program Files\Apache Software 
Foundation\Tomcat 6.0\webapps\some_name folder.

This is content of server.xml, I believe that all other conf files are at their 
default values (except for pwd in users file), feel free to ask for any other 
conf file.

?xml version='1.0' encoding='utf-8'?
Server port=8005 shutdown=SHUTDOWN

   Listener className=org.apache.catalina.core.AprLifecycleListener 
SSLEngine=on /
   Listener className=org.apache.catalina.core.JasperListener /
   Listener className=org.apache.catalina.core.JreMemoryLeakPreventionListener 
/
   Listener className=org.apache.catalina.mbeans.ServerLifecycleListener /
   Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

   GlobalNamingResources
 Resource name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
   pathname=conf/tomcat-users.xml /
 Resource name=jdbc/SomeDB auth=Container type=javax.sql.DataSource
  maxActive=48
  maxIdle=10
  maxWait=1
  driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
  username=auser
  password=*
  
url=jdbc:sqlserver://**.***.*.**:1433;databaseName=SomeName;loginTimeout=5
  removeAbandoned=true
  removeAbandonedTimeout=60
  logAbandoned=true
  validationQuery=SELECT 1/
 Resource name=jdbc/SomeDB2 auth=Container type=javax.sql.DataSource
  maxActive=48
  maxIdle=10
  maxWait=1
  driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
  username=auser2
  password=**
  url=jdbc:sqlserver://**.***.*.**:1433;databaseName=SomeName2
  removeAbandoned=true
  removeAbandonedTimeout=60
  logAbandoned=true
  validationQuery=SELECT 1/

   /GlobalNamingResources

   Service name=Catalina

 Connector port=8080 protocol=HTTP/1.1
connectionTimeout=2
redirectPort=8443 /
 Connector port=8009 protocol=AJP/1.3 redirectPort=8443 /

 Engine name=Catalina defaultHost=localhost

   Realm className=org.apache.catalina.realm.UserDatabaseRealm
  resourceName=UserDatabase/

   Host name=localhost  appBase=webapps
 unpackWARs=true autoDeploy=true
 xmlValidation=false xmlNamespaceAware=false

 Valve className=org.apache.catalina.valves.AccessLogValve 
directory=logs
prefix=localhost_access_log. suffix=.txt pattern=common 
resolveHosts=false/

Context path=/some_webapp docBase=/some_webapp debug=0 reloadable=true 
crossContext=true
ResourceLink global=jdbc/SomeDB name=jdbc/SomeDB 
type=javax.sql.DataSource /
ResourceLink global=jdbc/SomeDB2 name=jdbc/SomeDB2 
type=javax.sql.DataSource /
 /Context
   /Host
 /Engine
   /Service
/Server

Let me know if I

Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Pid
On 30/06/2010 11:59, Tomislav Petrović wrote:
 Context path=/some_webapp docBase=/some_webapp debug=0 
 reloadable=true crossContext=true
   ResourceLink global=jdbc/SomeDB name=jdbc/SomeDB 
 type=javax.sql.DataSource /
   ResourceLink global=jdbc/SomeDB2 name=jdbc/SomeDB2 
 type=javax.sql.DataSource /

If these are the actual values then it's a miracle it's working at all.

Instead of defining it there, remove the debug, path and docBase
attributes and put it in

 some_webapp/META-INF/context.xml


Tomcat will work out the rest automatically.


p



signature.asc
Description: OpenPGP digital signature


Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Pid
On 30/06/2010 12:04, Tomislav Petrović wrote:
 Tomislav Petrović said on 30.6.2010 12:59:
 Pid said on 29.6.2010 23:20:
 On 29/06/2010 19:29, Konstantin Kolinko wrote:
 2010/6/29 Caldarale, Charles Rchuck.caldar...@unisys.com:
 From: Tomislav Petrović [mailto:t.petro...@inet.hr]
 Subject: Re: Webapp reloading issue and intermittent 404 errors

 org.apache.catalina.util.RequestUtil.normalize(RequestUtil.java:131)

 IIRC, you are not the first person to report an exception at this
 spot in the code.  (Unfortunately, I can't locate the other thread
 at the moment, but it was fairly recent.)

 That was
 https://issues.apache.org/bugzilla/show_bug.cgi?id=49488

The code in question has been run through many test cases,
 inside and outside of Tomcat, and does not appear to contain any
 errors (although it could be slightly more efficient).

 Weird.  I couldn't find that in bugzilla.  Anyhow, it's Windows this
 time too.


 Tomislav: where is the Tomcat installation on the filing system, and
 where are the webapps being deployed from, if not tomcat/webapps?

 What type of filing system is it?


 Also, did you manage to get hold of the config files yet?

 Good news is when I put reloadable=false on context problem (both of
 them, intermittent 404 too) went away, so I have workaround. Bad news
 is server is going into production so no messing with it no more.

 Yes, this is same bug as one in bugzilla, don't know if what triggered
 is same.

 Here is detailed info (my first suspect isResources in server.xml
 but this is only my guess.

 Tomcat is Apache Tomcat/6.0.24, running without tcnative-1.dll

 Java version is: 1.6 update 18

 Windows version: 2003 SP2 (32 bit)

 NTFS file system is used, Tomcat is installed in D:\Program
 Files\Apache Software Foundation\Tomcat 6.0 folder, webapp is in
 D:\Program Files\Apache Software Foundation\Tomcat
 6.0\webapps\some_name folder.

 This is content of server.xml, I believe that all other conf files are
 at their default values (except for pwd in users file), feel free to
 ask for any other conf file.

 ?xml version='1.0' encoding='utf-8'?
 Server port=8005 shutdown=SHUTDOWN

Listener className=org.apache.catalina.core.AprLifecycleListener
 SSLEngine=on /
Listener className=org.apache.catalina.core.JasperListener /
Listener
 className=org.apache.catalina.core.JreMemoryLeakPreventionListener /
Listener
 className=org.apache.catalina.mbeans.ServerLifecycleListener /
Listener
 className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /


GlobalNamingResources
  Resource name=UserDatabase auth=Container
type=org.apache.catalina.UserDatabase
description=User database that can be updated and saved
   
 factory=org.apache.catalina.users.MemoryUserDatabaseFactory
pathname=conf/tomcat-users.xml /
  Resource name=jdbc/SomeDB auth=Container
 type=javax.sql.DataSource
   maxActive=48
   maxIdle=10
   maxWait=1
   driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
   username=auser
   password=*
  
 url=jdbc:sqlserver://**.***.*.**:1433;databaseName=SomeName;loginTimeout=5

   removeAbandoned=true
   removeAbandonedTimeout=60
   logAbandoned=true
   validationQuery=SELECT 1/
  Resource name=jdbc/SomeDB2 auth=Container
 type=javax.sql.DataSource
   maxActive=48
   maxIdle=10
   maxWait=1
   driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
   username=auser2
   password=**
   url=jdbc:sqlserver://**.***.*.**:1433;databaseName=SomeName2
   removeAbandoned=true
   removeAbandonedTimeout=60
   logAbandoned=true
   validationQuery=SELECT 1/

/GlobalNamingResources

Service name=Catalina

  Connector port=8080 protocol=HTTP/1.1
 connectionTimeout=2
 redirectPort=8443 /
  Connector port=8009 protocol=AJP/1.3 redirectPort=8443 /

  Engine name=Catalina defaultHost=localhost

Realm className=org.apache.catalina.realm.UserDatabaseRealm
   resourceName=UserDatabase/

Host name=localhost  appBase=webapps
  unpackWARs=true autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false

  Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs
 prefix=localhost_access_log. suffix=.txt
 pattern=common resolveHosts=false/

 Context path=/some_webapp docBase=/some_webapp debug=0
 reloadable=true crossContext=true
 ResourceLink global=jdbc/SomeDB name=jdbc/SomeDB
 type=javax.sql.DataSource /
 ResourceLink global=jdbc/SomeDB2 name=jdbc/SomeDB2
 type=javax.sql.DataSource /
  /Context
/Host
  /Engine
/Service
 /Server

 Let me know if I can provide any more info or update bugzilla (don't
 have acc

Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Tomislav Petrović

Pid said on 30.6.2010 13:12:

On 30/06/2010 12:04, Tomislav Petrović wrote:

Tomislav Petrović said on 30.6.2010 12:59:

Pid said on 29.6.2010 23:20:

On 29/06/2010 19:29, Konstantin Kolinko wrote:

2010/6/29 Caldarale, Charles Rchuck.caldar...@unisys.com:

From: Tomislav Petrović [mailto:t.petro...@inet.hr]
Subject: Re: Webapp reloading issue and intermittent 404 errors

org.apache.catalina.util.RequestUtil.normalize(RequestUtil.java:131)


IIRC, you are not the first person to report an exception at this
spot in the code.  (Unfortunately, I can't locate the other thread
at the moment, but it was fairly recent.)


That was
https://issues.apache.org/bugzilla/show_bug.cgi?id=49488


The code in question has been run through many test cases,
inside and outside of Tomcat, and does not appear to contain any
errors (although it could be slightly more efficient).


Weird.  I couldn't find that in bugzilla.  Anyhow, it's Windows this
time too.


Tomislav: where is the Tomcat installation on the filing system, and
where are the webapps being deployed from, if not tomcat/webapps?

What type of filing system is it?


Also, did you manage to get hold of the config files yet?


Good news is when I put reloadable=false on context problem (both of
them, intermittent 404 too) went away, so I have workaround. Bad news
is server is going into production so no messing with it no more.

Yes, this is same bug as one in bugzilla, don't know if what triggered
is same.

Here is detailed info (my first suspect isResources in server.xml
but this is only my guess.

Tomcat is Apache Tomcat/6.0.24, running without tcnative-1.dll

Java version is: 1.6 update 18

Windows version: 2003 SP2 (32 bit)

NTFS file system is used, Tomcat is installed in D:\Program
Files\Apache Software Foundation\Tomcat 6.0 folder, webapp is in
D:\Program Files\Apache Software Foundation\Tomcat
6.0\webapps\some_name folder.

This is content of server.xml, I believe that all other conf files are
at their default values (except for pwd in users file), feel free to
ask for any other conf file.

?xml version='1.0' encoding='utf-8'?
Server port=8005 shutdown=SHUTDOWN

Listener className=org.apache.catalina.core.AprLifecycleListener
SSLEngine=on /
Listener className=org.apache.catalina.core.JasperListener /
Listener
className=org.apache.catalina.core.JreMemoryLeakPreventionListener /
Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener /
Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /


GlobalNamingResources
  Resource name=UserDatabase auth=Container
type=org.apache.catalina.UserDatabase
description=User database that can be updated and saved

factory=org.apache.catalina.users.MemoryUserDatabaseFactory
pathname=conf/tomcat-users.xml /
  Resource name=jdbc/SomeDB auth=Container
type=javax.sql.DataSource
   maxActive=48
   maxIdle=10
   maxWait=1
   driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
   username=auser
   password=*

url=jdbc:sqlserver://**.***.*.**:1433;databaseName=SomeName;loginTimeout=5

   removeAbandoned=true
   removeAbandonedTimeout=60
   logAbandoned=true
   validationQuery=SELECT 1/
  Resource name=jdbc/SomeDB2 auth=Container
type=javax.sql.DataSource
   maxActive=48
   maxIdle=10
   maxWait=1
   driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
   username=auser2
   password=**
   url=jdbc:sqlserver://**.***.*.**:1433;databaseName=SomeName2
   removeAbandoned=true
   removeAbandonedTimeout=60
   logAbandoned=true
   validationQuery=SELECT 1/

/GlobalNamingResources

Service name=Catalina

  Connector port=8080 protocol=HTTP/1.1
 connectionTimeout=2
 redirectPort=8443 /
  Connector port=8009 protocol=AJP/1.3 redirectPort=8443 /

  Engine name=Catalina defaultHost=localhost

Realm className=org.apache.catalina.realm.UserDatabaseRealm
   resourceName=UserDatabase/

Host name=localhost  appBase=webapps
  unpackWARs=true autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false

  Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs
 prefix=localhost_access_log. suffix=.txt
pattern=common resolveHosts=false/

 Context path=/some_webapp docBase=/some_webapp debug=0
reloadable=true crossContext=true
 ResourceLink global=jdbc/SomeDB name=jdbc/SomeDB
type=javax.sql.DataSource /
 ResourceLink global=jdbc/SomeDB2 name=jdbc/SomeDB2
type=javax.sql.DataSource /
  /Context
/Host
  /Engine
/Service
/Server

Let me know if I can provide any more info or update bugzilla (don't
have acc but can open).

Thanks to all for your

Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Tomislav Petrović

Pid said on 30.6.2010 13:06:

On 30/06/2010 11:59, Tomislav Petrović wrote:

Context path=/some_webapp docBase=/some_webapp debug=0 reloadable=true 
crossContext=true
ResourceLink global=jdbc/SomeDB name=jdbc/SomeDB 
type=javax.sql.DataSource /
ResourceLink global=jdbc/SomeDB2 name=jdbc/SomeDB2 
type=javax.sql.DataSource /


If these are the actual values then it's a miracle it's working at all.


Only app name/paths and jdbs names have been changed to dummy values.



Instead of defining it there, remove the debug, path and docBase
attributes and put it in

  some_webapp/META-INF/context.xml


Tomcat will work out the rest automatically.



Sorry for newbie question.
Can you post me how my new server.xml should look and how 
some_webapp/META-INF/context.xml should look.


Also would apprecite link to right documentation why it should be that 
way, thanks.


And do you really think this would solve my initial problem, or?

--
Tomy t.petro...@inet.hr

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Caldarale, Charles R
 From: Pid [mailto:p...@pidster.com]
 Subject: Re: Webapp reloading issue and intermittent 404 errors
 
  JVM: have to check whether server or client, not sure at the moment.
 
 Server, one would hope.

Probably not - it's a 32-bit Windows, and you have to build your own JVM if you 
want a server version for that.

 Did you find out the exact version?

He stated 6u18.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Pid
On 30/06/2010 13:38, Caldarale, Charles R wrote:
 From: Pid [mailto:p...@pidster.com]
 Subject: Re: Webapp reloading issue and intermittent 404 errors

 JVM: have to check whether server or client, not sure at the moment.

 Server, one would hope.
 
 Probably not - it's a 32-bit Windows, and you have to build your own JVM if 
 you want a server version for that.

Really?!  I thought later versions had the server JVM too (for some
reason I now can't put my finger on).

 Did you find out the exact version?
 
 He stated 6u18.

I spotted it after I sent. Doh.


p

  - 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: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 




signature.asc
Description: OpenPGP digital signature


Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread David kerber

On 6/30/2010 8:41 AM, Pid wrote:

On 30/06/2010 13:38, Caldarale, Charles R wrote:

From: Pid [mailto:p...@pidster.com]
Subject: Re: Webapp reloading issue and intermittent 404 errors


JVM: have to check whether server or client, not sure at the moment.


Server, one would hope.


Probably not - it's a 32-bit Windows, and you have to build your own JVM if you 
want a server version for that.


Really?!  I thought later versions had the server JVM too (for some
reason I now can't put my finger on).


They do; I've been using the server version for quite a while on32-bit 
windows (the performance jumps were huge for some of my apps), and have 
never built a JVM myself.


D

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Caldarale, Charles R
 From: Pid [mailto:p...@pidster.com]
 Subject: Re: Webapp reloading issue and intermittent 404 errors
 
  Probably not - it's a 32-bit Windows, and you have to build your own
  JVM if you want a server version for that.
 
 Really?!  I thought later versions had the server JVM too (for some
 reason I now can't put my finger on).

You're right - I stand corrected; there are both server and client DLLs in the 
32-bit download.  The 64-bit one continues to have only the server version.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread David kerber

On 6/30/2010 8:38 AM, Caldarale, Charles R wrote:

From: Pid [mailto:p...@pidster.com]
Subject: Re: Webapp reloading issue and intermittent 404 errors


JVM: have to check whether server or client, not sure at the moment.


Server, one would hope.


Probably not - it's a 32-bit Windows, and you have to build your own JVM if you 
want a server version for that.


I think you've made your first mistake here, Chuck (at least the first 
one that I know enough about to catch!!).  If you download the jdk from 
Sun, you can get a server version of the jvm for Win32.  I've been using 
one for months for the performance gain in one of my apps.


D

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Caldarale, Charles R
 From: Tomislav Petrović [mailto:t.petro...@inet.hr]
 Subject: Re: Webapp reloading issue and intermittent 404 errors
 
  Do you actually have an 'endorsed' directory in your Tomcat
  installation?  What's in it if you do?
 
 No I don't, this folder doesn't exist, will have to investigate 
 who put it in here.

Tomcat did, during the service installation.  Perfectly normal, but rarely 
useful.

 -XX:NewSize=16m
 -XX:MaxNewSize=16m

I would definitely remove both NewSize settings.  Not associated with the 
problem at hand, but probably detrimental to performance.  The JVM does a 
decent job of adjusting the NewSize value as needed for the current workload.

 Can you please point me in some doc documentation why it 
 isn't ok cause we had better experience with incgc than 
 default one on our load tests.

-Xincgc used to utilize the train GC model - which was a real dog and not 
capable of using multiple threads.  For current JVMs, -Xincgc triggers the 
concurrent (low pause) collector.  This will generally result in slightly less 
throughput, but much less stoppage time and somewhat less variation in response 
times.  If you're happy with it, leave it.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Pid
On 30/06/2010 12:45, Tomislav Petrović wrote:
 Pid said on 30.6.2010 13:12:
 On 30/06/2010 12:04, Tomislav Petrović wrote:
 Tomislav Petrović said on 30.6.2010 12:59:
 Pid said on 29.6.2010 23:20:
 On 29/06/2010 19:29, Konstantin Kolinko wrote:
 2010/6/29 Caldarale, Charles Rchuck.caldar...@unisys.com:
 From: Tomislav Petrović [mailto:t.petro...@inet.hr]
 Subject: Re: Webapp reloading issue and intermittent 404 errors

 org.apache.catalina.util.RequestUtil.normalize(RequestUtil.java:131)


 IIRC, you are not the first person to report an exception at this
 spot in the code.  (Unfortunately, I can't locate the other thread
 at the moment, but it was fairly recent.)

 That was
 https://issues.apache.org/bugzilla/show_bug.cgi?id=49488

 The code in question has been run through many test cases,
 inside and outside of Tomcat, and does not appear to contain any
 errors (although it could be slightly more efficient).

 Weird.  I couldn't find that in bugzilla.  Anyhow, it's Windows this
 time too.


 Tomislav: where is the Tomcat installation on the filing system, and
 where are the webapps being deployed from, if not tomcat/webapps?

 What type of filing system is it?


 Also, did you manage to get hold of the config files yet?

 Good news is when I put reloadable=false on context problem (both of
 them, intermittent 404 too) went away, so I have workaround. Bad news
 is server is going into production so no messing with it no more.

 Yes, this is same bug as one in bugzilla, don't know if what triggered
 is same.

 Here is detailed info (my first suspect isResources in server.xml
 but this is only my guess.

 Tomcat is Apache Tomcat/6.0.24, running without tcnative-1.dll

 Java version is: 1.6 update 18

 Windows version: 2003 SP2 (32 bit)

 NTFS file system is used, Tomcat is installed in D:\Program
 Files\Apache Software Foundation\Tomcat 6.0 folder, webapp is in
 D:\Program Files\Apache Software Foundation\Tomcat
 6.0\webapps\some_name folder.

 This is content of server.xml, I believe that all other conf files are
 at their default values (except for pwd in users file), feel free to
 ask for any other conf file.

 ?xml version='1.0' encoding='utf-8'?
 Server port=8005 shutdown=SHUTDOWN

 Listener className=org.apache.catalina.core.AprLifecycleListener
 SSLEngine=on /
 Listener className=org.apache.catalina.core.JasperListener /
 Listener
 className=org.apache.catalina.core.JreMemoryLeakPreventionListener /
 Listener
 className=org.apache.catalina.mbeans.ServerLifecycleListener /
 Listener
 className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
 /


 GlobalNamingResources
   Resource name=UserDatabase auth=Container
 type=org.apache.catalina.UserDatabase
 description=User database that can be updated and
 saved

 factory=org.apache.catalina.users.MemoryUserDatabaseFactory
 pathname=conf/tomcat-users.xml /
   Resource name=jdbc/SomeDB auth=Container
 type=javax.sql.DataSource
maxActive=48
maxIdle=10
maxWait=1
   
 driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
username=auser
password=*

 url=jdbc:sqlserver://**.***.*.**:1433;databaseName=SomeName;loginTimeout=5


removeAbandoned=true
removeAbandonedTimeout=60
logAbandoned=true
validationQuery=SELECT 1/
   Resource name=jdbc/SomeDB2 auth=Container
 type=javax.sql.DataSource
maxActive=48
maxIdle=10
maxWait=1
   
 driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
username=auser2
password=**
   
 url=jdbc:sqlserver://**.***.*.**:1433;databaseName=SomeName2
removeAbandoned=true
removeAbandonedTimeout=60
logAbandoned=true
validationQuery=SELECT 1/

 /GlobalNamingResources

 Service name=Catalina

   Connector port=8080 protocol=HTTP/1.1
  connectionTimeout=2
  redirectPort=8443 /
   Connector port=8009 protocol=AJP/1.3 redirectPort=8443 /

   Engine name=Catalina defaultHost=localhost

 Realm className=org.apache.catalina.realm.UserDatabaseRealm
resourceName=UserDatabase/

 Host name=localhost  appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false

   Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs
  prefix=localhost_access_log. suffix=.txt
 pattern=common resolveHosts=false/

  Context path=/some_webapp docBase=/some_webapp debug=0
 reloadable=true crossContext=true
  ResourceLink global=jdbc/SomeDB name=jdbc/SomeDB
 type=javax.sql.DataSource /
  ResourceLink global=jdbc/SomeDB2 name=jdbc/SomeDB2
 type=javax.sql.DataSource /
   /Context
 /Host

RE: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Caldarale, Charles R
 From: Tomislav Petrović [mailto:t.petro...@inet.hr]
 Subject: Re: Webapp reloading issue and intermittent 404 errors
 
 Can you post me how my new server.xml should look and how
 some_webapp/META-INF/context.xml should look.

Just remove all Context elements from server.xml - it's bad practice to have 
them there, since it violates the principle of self-contained webapps, and 
making any changes require restarting Tomcat, not just the webapp.

Context reloadable=true crossContext=true
  ResourceLink global=jdbc/SomeDB name=jdbc/SomeDB 
type=javax.sql.DataSource /
  ResourceLink global=jdbc/SomeDB2 name=jdbc/SomeDB2 
type=javax.sql.DataSource /
/Context

 Also would apprecite link to right documentation why it 
 should be that way, thanks.

http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

 And do you really think this would solve my initial problem, or?

Nope.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Pid
On 30/06/2010 13:07, Tomislav Petrović wrote:
 Pid said on 30.6.2010 13:06:
 On 30/06/2010 11:59, Tomislav Petrović wrote:
 Context path=/some_webapp docBase=/some_webapp debug=0
 reloadable=true crossContext=true
 ResourceLink global=jdbc/SomeDB name=jdbc/SomeDB
 type=javax.sql.DataSource /
 ResourceLink global=jdbc/SomeDB2 name=jdbc/SomeDB2
 type=javax.sql.DataSource /

 If these are the actual values then it's a miracle it's working at all.
 
 Only app name/paths and jdbs names have been changed to dummy values.
 

 Instead of defining it there, remove the debug, path and docBase
 attributes and put it in

   some_webapp/META-INF/context.xml


 Tomcat will work out the rest automatically.
 
 
 Sorry for newbie question.
 Can you post me how my new server.xml should look and how
 some_webapp/META-INF/context.xml should look.

Nope.  Just do the following, it's not complicated:

0. Stop Tomcat.

1. Create a file (in each app) myappname/META-INF/context.xml.

2. Copy the entire Context definition  it's sub-elements into the file

3. Remove the 3 attributes I named (debug is deprecated, path  docBase
aren't used here)

4. Completely delete the Context definitions from server.xml.

5. Start Tomcat.


 Also would apprecite link to right documentation why it should be that
 way, thanks.

It's in the same place as the rest of the documentation:

 http://tomcat.apache.org/tomcat-6.0-doc/config/context.html


 And do you really think this would solve my initial problem, or?

Maybe, maybe not, but if we eliminate all the possible problems, we'll
know it's not one of those.


p




signature.asc
Description: OpenPGP digital signature


Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Tomislav Petrović

Pid said on 30.6.2010 15:05:

On 30/06/2010 13:07, Tomislav Petrović wrote:

Pid said on 30.6.2010 13:06:

On 30/06/2010 11:59, Tomislav Petrović wrote:

 Context path=/some_webapp docBase=/some_webapp debug=0
reloadable=true crossContext=true
 ResourceLink global=jdbc/SomeDB name=jdbc/SomeDB
type=javax.sql.DataSource /
 ResourceLink global=jdbc/SomeDB2 name=jdbc/SomeDB2
type=javax.sql.DataSource /


If these are the actual values then it's a miracle it's working at all.


Only app name/paths and jdbs names have been changed to dummy values.



Instead of defining it there, remove the debug, path and docBase
attributes and put it in

   some_webapp/META-INF/context.xml


Tomcat will work out the rest automatically.



Sorry for newbie question.
Can you post me how my new server.xml should look and how
some_webapp/META-INF/context.xml should look.


Nope.  Just do the following, it's not complicated:

0. Stop Tomcat.

1. Create a file (in each app) myappname/META-INF/context.xml.

2. Copy the entire Context definition  it's sub-elements into the file

3. Remove the 3 attributes I named (debug is deprecated, path  docBase
aren't used here)

4. Completely delete the Context definitions from server.xml.

5. Start Tomcat.



Also would apprecite link to right documentation why it should be that
way, thanks.


It's in the same place as the rest of the documentation:

  http://tomcat.apache.org/tomcat-6.0-doc/config/context.html



And do you really think this would solve my initial problem, or?


Maybe, maybe not, but if we eliminate all the possible problems, we'll
know it's not one of those.




All advise them to do so in future installations but can't change that 
on this particular server anymore. Since workaround works server is 
going into production and hence freezed for all changes :(.


--
Tomy t.petro...@inet.hr

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Webapp reloading issue and intermittent 404 errors

2010-06-30 Thread Tomislav Petrović

Caldarale, Charles R said on 30.6.2010 15:03:

From: Tomislav Petrović [mailto:t.petro...@inet.hr]
Subject: Re: Webapp reloading issue and intermittent 404 errors

Can you post me how my new server.xml should look and how
some_webapp/META-INF/context.xml should look.


Just remove allContext  elements from server.xml - it's bad practice to have 
them there, since it violates the principle of self-contained webapps, and making any 
changes require restarting Tomcat, not just the webapp.

Context reloadable=true crossContext=true
   ResourceLink global=jdbc/SomeDB name=jdbc/SomeDB 
type=javax.sql.DataSource /
   ResourceLink global=jdbc/SomeDB2 name=jdbc/SomeDB2 
type=javax.sql.DataSource /
/Context


Also would apprecite link to right documentation why it
should be that way, thanks.


http://tomcat.apache.org/tomcat-6.0-doc/config/context.html


And do you really think this would solve my initial problem, or?


Nope.


Thanks for info, but any idea what caused original problem? And if I can 
provide any additional info to help resolve it.
Unfortunately can't test it anymore since server where it happened 
(doesn't anymore with reloadable=false) is going into production.


--
Tomy t.petro...@inet.hr

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



<    1   2   3   4   5   6   7   8   9   10   >