Re: Example build.xml error?

2005-10-12 Thread Anto Paul
On 10/10/05, René Schade [EMAIL PROTECTED] wrote:
 Hi List,

 Starting a new project, I deceided to move to Tomcat 5.5.

 In the Application Developer's Guide

 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html

 There is an example build.xml file for installing  reloading the project, a 
 basic build-file:

 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/build.xml.txt

 Using this build.xml file works fine, except for one thing. Whenever I do a 
 change followed by ant reload, it does not deploy the changes to the 
 server. The changed files are recompiled in to the local /build folder, 
 followed by a reload of the server, but the changed files are never deployed 
 to the server.

It should be that class files are not compiled to Tomcats applications
WEB-INF\classes folder. You can check this by comparing timestamps of
a modified class file.
Perhaps you have to make property build.home  point to the application
context directory of Tomcat. ie. something like
property name=build.homevalue=${catalina.home}/myapp/

--
rgds
Anto Paul

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



RE: Illegal Field Name Error

2005-10-12 Thread Asad Habib

Hello, below I have provided the struts configuration file:

?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE struts-config PUBLIC
   -//Apache Software Foundation//DTD Struts Configuration 1.2//EN
   http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd;

struts-config
   global-forwards
  forward name=home path=/home.jsp /
   /global-forwards

   action-mappings
  action path=/registrationType 
type=registration.RegistrationTypeAction
 forward name=missing-registration-type 
path=/missingRegistrationType.html /
  /action
   /action-mappings
/struts-config

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


- Asad


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


Cant you send the struts-config.xml ?

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


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

- Asad


HTTP Status 500 -

type Exception report

message

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

exception

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Apache Tomcat/5.5.9


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

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




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



RE: Illegal Field Name Error

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


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


Hello, below I have provided the struts configuration file:

?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE struts-config PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 1.2//EN
http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd;

struts-config
global-forwards
   forward name=home path=/home.jsp /
/global-forwards

action-mappings
   action path=/registrationType
type=registration.RegistrationTypeAction
  forward name=missing-registration-type
path=/missingRegistrationType.html /
   /action
/action-mappings
/struts-config

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

- Asad


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

 Cant you send the struts-config.xml ?

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


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

 - Asad


 HTTP Status 500 -

 type Exception report

 message

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

 exception

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

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


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

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

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


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


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


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


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


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


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


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


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

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

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


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

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

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


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

 Apache Tomcat/5.5.9


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

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



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



Context Relative versus Path Relative error pages

2005-10-12 Thread Arlene Milgram
Hi All,

We ran into a problem with JSP pages under Tomcat 5.5.9 which did not
exist under Tomcat 4.1.31.

In Tomcat 5.5.9 if we forward to a JSP page that is in a different
directory then the initial request the errorPage directive does not work
as we expected.

If we use a path relative errorPage directive then Tomcat 5.5.9 seems to
assume that the errorPage path is relative to the path of the initial
HTTP request not the JSP page.  Is this behavior correct?

For example, Error 404, /servlet/PopError.jsp appears if an HTTP request
of /servlet/PathServ forwards to a JSP page, /popdrv/pathRelative.jsp,
that uses relative paths and then throws an exception.

%@ page language=java
session=true
errorPage=PopError.jsp
%

We found a similar entry in BugZilla which was closed because the
problem could not be reproduced.

http://issues.eu.apache.org/bugzilla/show_bug.cgi?id=35230

One can get the correct errorPage by using a Context relative path.

%@ page language=java
session=true
errorPage=/popdrv/PopError.jsp
%

We have attached 6 files, PathServ.java, pathRelative.jsp,
ContextServ.java, contextRelative.jsp, PopError.jsp, and web.xml.  To
see the issue one can create a context and place PathServ.java in the
directory com.optimedsys.servlet, pathRelative.jsp and PopError.jsp in
the directory popdrv.   To see the workaround one can place
ContextServ.java in the directory com.optimedsys.servlet,
contextRelative.jsp and PopError.jsp in the popdrv directory.

Request context/servlet/PathServ to see the 404 error or
context/servlet/ContextServ to get the correct errorPage.

Thank You

Lee Breslow
[EMAIL PROTECTED]

Arlene Milgram
[EMAIL PROTECTED]
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
	servlet
		servlet-namePathServ/servlet-name
		display-nameDemo use of error directive with error page being relative to the path./display-name
		descriptionPath Servlet/description
		servlet-classcom.optimedsys.servlet.PathServ/servlet-class
	/servlet
	servlet
		servlet-nameContextServ/servlet-name
		display-nameDemo use of error directive with error page being relative to the context/display-name
		descriptionContext Servlet/description
		servlet-classcom.optimedsys.servlet.ContextServ/servlet-class
	/servlet
	servlet
		servlet-namecontextRelative.jsp/servlet-name
		display-namecontextRelative/display-name
		descriptioncontext Relative/description
		jsp-file/popdrv/contextRelative.jsp/jsp-file
	/servlet
	servlet
		servlet-namepathRelative.jsp/servlet-name
		display-namepathRelative/display-name
		descriptionpath Relative/description
		jsp-file/popdrv/pathRelative.jsp/jsp-file
/servlet
	servlet
		servlet-namePopError.jsp/servlet-name
		display-namePopError/display-name
		descriptionPopError/description
		jsp-file/popdrv/PopError.jsp/jsp-file
	/servlet
	servlet-mapping
		servlet-nameContextServ/servlet-name
		url-pattern/servlet/ContextServ/url-pattern
	/servlet-mapping
	servlet-mapping
		servlet-namePathServ/servlet-name
		url-pattern/servlet/PathServ/url-pattern
	/servlet-mapping
/web-app
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Problems with error handling framework in Tomcat 5.5 (includes workaround)

2005-10-11 Thread Robert Graf-Waczenski
Hi!

We have a complex web application with lots of JSPs and a considerable
amount of servlets for various purposes. Our app runs in Tomcat 5.5 and
among other custom error handling techniques we also used the Servlet
API mechanism of placing the following directive in our web.xml:

error-page
exception-typejava.lang.Throwable/exception-type
location/JSP/unhandledJSPError.jsp/location
/error-page

Due to the complexity of our application, it is unpredictable if the
unhandled exception occurs before or after the response has already been
committed. One example where the exception definitely occurs after the
response has been committed is a class that serves download requests. If
the user downloads a big amount of data, pressing the cancel button
while waiting for the download is normal and must be dealt with in the
server application. (Note that i'm using this only as an example, of
course the server-side errors that are caused by cancelled user requests
can be safely ignored, but this is a totally different discussion
outside the scope of this thread.)

So, here's what's happening:

- user clicks download link
- servlet starts writing (say) 100 MB of data to the response
- user grows impatient and clicks cancel
- servlet encounters a SocketException or similar because it is
  unable to write further data
- while trying to handling the error situation, tomcat calls the
  reset() method on the response. This causes an
  IllegalStateException because the servlet has already written
  and flushed the response.

According to the Servlet API, trying to undo a response in any way
*after* already having written physical data to the HTTP client is a
no-no, hence the IllegalStateException. In this light, it may or may
not be OK to actually call the reset() method as is done now (talking of
Tomcat 5.5.12) in StandardHostValve.custom().

[Try googling for StandardHostValve.custom(, the numerous results tell
you that this error situation occurs frequently out there...]

However, the mechanism of a standard error page is of somewhat meager
use for a complex application because, as the scenario above shows, it
does only work if the response is clean i.e. has not yet been written
to physically.

We decided to work around this as follows:

- Our JSPs will be augmented with a JavaScript redirect to
  the error page instead of the web.xml error page directive.
- Our Struts Action classes will handle all Throwables by
  redirecting to the error page
- Our servlets will handle all Throwables internally

So, effectively, no Throwable ever travels outside of the application.
(Note of course that browsers w/o JavaScript will probably see an ugly
IllegalStateException error instead of our carefully designed error
page. Since our app checks that JavaScript is enabled, this is no
problem for us.)

We're not 100% sure if our approach was actually intended by the Servlet
API gurus, so we'd like to know what others think about this and how
this issue is dealt with in other nontrivial apps.

The most important (and simple) lesson to learn probably is that if your
app once has committed data to the client, then it must find a clean
method of saying Oops, sorry, there was a problem *together* with the
already written data.

Any other ideas / suggestions?

-
Robert Graf-Waczenski
LISTSERV Maestro Core Development Team
L-Soft Germany GmbH

Knowledge is just a click away: http://www.lsoft.com/optin.html


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



Illegal Field Name Error

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


- Asad


HTTP Status 500 -

type Exception report

message

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


exception

javax.servlet.ServletException: Illegal field name has inconsistent hierarchy 
in class

registration/RegistrationTypeAction

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

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

java.lang.ClassFormatError: Illegal field name has inconsistent hierarchy in 
class

registration/RegistrationTypeAction
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)

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

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

org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)

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

org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143)

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

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

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

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

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

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

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

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


Apache Tomcat/5.5.9


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



RE: Illegal Field Name Error

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

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


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

- Asad


HTTP Status 500 -

type Exception report

message

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

exception

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Apache Tomcat/5.5.9


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

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



Re: Illegal Field Name Error

2005-10-11 Thread Anto Paul
On 10/10/05, Asad Habib [EMAIL PROTECTED] wrote:
 I am receiving the following error when trying to run a Struts
 application. I checked and it seems that I do have all of the appropriate
 jar files installed. But for some reason, the Action class is not being
 recognized. Any help would be greatly appreciated. Thank you.

 - Asad


 HTTP Status 500 -

 type Exception report

 message

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

 exception

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

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

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

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

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

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

 org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)

 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)

 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)

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

 org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143)

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

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

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

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

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

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

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

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

 Apache Tomcat/5.5.9


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

--
rgds
Anto Paul

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



Illegal Field Name Error

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


- Asad


HTTP Status 500 -

type Exception report

message

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


exception

javax.servlet.ServletException: Illegal field name has inconsistent 
hierarchy in class

registration/RegistrationTypeAction

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

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

java.lang.ClassFormatError: Illegal field name has inconsistent 
hierarchy in class

registration/RegistrationTypeAction
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)

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

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

org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)

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

org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143)

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

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

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

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

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

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

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

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


Apache Tomcat/5.5.9


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



Example build.xml error?

2005-10-10 Thread René Schade
Hi List,

Starting a new project, I deceided to move to Tomcat 5.5. 

In the Application Developer's Guide 

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html

There is an example build.xml file for installing  reloading the project, a 
basic build-file:

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/build.xml.txt

Using this build.xml file works fine, except for one thing. Whenever I do a 
change followed by ant reload, it does not deploy the changes to the server. 
The changed files are recompiled in to the local /build folder, followed by a 
reload of the server, but the changed files are never deployed to the server.

Maybe my setup is wrong, maybe it is not supposed to support this, or maybe 
it's just an error?

Regards,
René

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



tomcat 5.0.28 redirect issue (error 302)

2005-10-10 Thread Tony Qian

All,

I installed jakarta-tomcat-5.0.28 on my PC and changed port to 8283 and 
added a simple servlet which has doGet and doPost.

I used a java program which uses httpclient to send doGet and doPost 
requests to that servlet. doGet worked well. However, I got following 
error msg for doPost request:

Oct 7, 2005 3:56:52 PM org.apache.commons.httpclient.HttpMethodBase 
processRedirectResponse
INFO: Redirect requested but followRedirects is disabled
The Status code = 302


Same program worked fine for tomcat 4. Any ideas?

Thanks in advance.

Tony


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



Re: Getting NoClassDefFound error for Rectangle.class (rt.jar)

2005-10-09 Thread Bob Hall
Instead of rebuilding FOP, I wrote a simple test class
that attempts to instantiate 'Rectangle'.  It runs
successfully on one system and fails on the other
(the one with the NoClassDefFoundError):

$ java -Djava.awt.headless=true TestRectangle

Exception in thread main
java.lang.UnsatisfiedLinkError:
/usr/local/j2sdk1.4.2_08/jre/lib/i386/libawt.so:
libXp.so.6: cannot open shared object file: No such
file or directory

Sure enough, /usr/X11R6/lib/libXp.so.6 exists on one
box, but not the other.  Hopefully, it won't be too
much of an ordeal to get the missing piece(s)
installed.

- Bob

--- Bob Hall [EMAIL PROTECTED] wrote:

 No joy with -Djava.awt.headless=true; looks a
 rebuild of FOP on the target system... though that
 *really* does not make sense.
 
 - Bob
 
 --- Bob Hall [EMAIL PROTECTED] wrote:
 
  Thanks, David.  I'll try that.
  
  If that doesn't do the trick I plan to build
 fop.jar
  from source on the target machine.
  
  - Bob
  
  --- David Delbecq [EMAIL PROTECTED] wrote:
  
   if it's *java.awt.Rectangle*
   and the computer you are trying to run fop on
 does
   not have
   graphical environment, maybe you should wonsider
   using headless java
   see
  
 

http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless
   
   Bob Hall a écrit :
   
   I'm getting a NoClassDefFoundError in a FOP
  class,
   PageViewport.  At line 89, the code is
 attempting
   to
   do
   'new Rectangle()'.
   
   The same code works fine on 3 other systems (2
   Windows,
   and one Linux).  It does not work on a Linux
 box.
   The two linux boxes have the same version of
 Java
   (1.4.2_08-b03) and the same version of Tomcat
   5.0.28).
   The versions of RedHat *are* different.  I even
   compiled
   the code on the target Linux system.
   
   Any ideas?
   
   - Bob
   
   

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

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

-
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
   
   
  
  
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
  protection around 
  http://mail.yahoo.com 
  
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 
   
 __ 
 Yahoo! Mail - PC Magazine Editors' Choice 2005 
 http://mail.yahoo.com
 

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


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

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



Error: Connection was refused when attempting to contact 127.0.0.1

2005-10-07 Thread André
Hi people!

I'm facing this error with my Tomcat (version 4.0.6) on Debian.
It seems that is everything ok: I can access the JSP
and servlets examples, the tomcat docs and others
without any errors.
The problem occurs when I attempt to run an
application called maca_ad_web.war, that is available
at http://maca.sourceforge.net. 
I put the war file on the webapps folder; then  I
start tomcat (startup.sh); so, the folder maca_ad_web
is created. So, when I put the URL
 http://127.0.0.1:8080/maca_ad_web

I received the error listed.
Someone can help me?

André Thiago.




__
Faça ligações para outros computadores com o novo Yahoo! Messenger 
http://br.beta.messenger.yahoo.com/ 
__
Faça ligações para outros computadores com o novo Yahoo! Messenger 
http://br.beta.messenger.yahoo.com/ 

error-page 503 in web.xml not working in tomcat 5.5.9

2005-10-06 Thread Archana Mathur
Hi,I am using tomcat 5.5.9. I have set up global error pages for 404 and 503 in 
web.xml file under tomcat home dir/conf folder. 
Example - 
error-page 
error-code404/error-code 
location/systemDown.html/location 
/error-page 
error-page 
error-code503/error-code 
location/systemDown.html/location 
/error-page 

Error 404 is working fine and tomcat displays my page but for 503, it displays 
its own message( HTTP Status 503 - This application is not currently 
available...)

Please help. 
Regards,
Arch



Error: Connection was refused when attempting to contact

2005-10-05 Thread André
Hi people!

I'm facing this error with my Tomcat (version 4.0.6) on Debian.
It seems that is everything ok: I can access the JSP
and servlets examples, the tomcat docs and others
without any errors.
The problem occurs when I attempt to run an
application called maca_ad_web.war, that is available
at http://maca.sourceforge.net. 
I put the war file on the webapps folder; then  I
start tomcat (startup.sh); so, the folder maca_ad_web
is created. So, when I put the URL
 http://127.0.0.1:8080/maca_ad_web

I received the error listed.
Someone can help me?

André Thiago.



__
Faça ligações para outros computadores com o novo Yahoo! Messenger 
http://br.beta.messenger.yahoo.com/ 

Getting NoClassDefFound error for Rectangle.class (rt.jar)

2005-10-03 Thread Bob Hall
I'm getting a NoClassDefFoundError in a FOP class,
PageViewport.  At line 89, the code is attempting to
do
'new Rectangle()'.

The same code works fine on 3 other systems (2
Windows,
and one Linux).  It does not work on a Linux box.
The two linux boxes have the same version of Java
(1.4.2_08-b03) and the same version of Tomcat 5.0.28).
The versions of RedHat *are* different.  I even
compiled
the code on the target Linux system.

Any ideas?

- Bob



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

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



Re: Getting NoClassDefFound error for Rectangle.class (rt.jar)

2005-10-03 Thread David Delbecq
if it's *java.awt.Rectangle*
and the computer you are trying to run fop on does not have
graphical environment, maybe you should wonsider using headless java
see http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless

Bob Hall a écrit :

I'm getting a NoClassDefFoundError in a FOP class,
PageViewport.  At line 89, the code is attempting to
do
'new Rectangle()'.

The same code works fine on 3 other systems (2
Windows,
and one Linux).  It does not work on a Linux box.
The two linux boxes have the same version of Java
(1.4.2_08-b03) and the same version of Tomcat 5.0.28).
The versions of RedHat *are* different.  I even
compiled
the code on the target Linux system.

Any ideas?

- Bob


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

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

  



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



Why getting this error?

2005-10-03 Thread Ritchie Gillam
Do anyone out there know why I am getting this Tomcat error?

SEVERE: Servlet.service() for servlet jsp threw exception
javax.faces.el.EvaluationException: java.lang.OutOfMemoryError: PermGen space
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:206)
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
at javax.faces.component.UIOutput.getValue(UIOutput.java:147)
at 
com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:82)
at 
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:191)
at 
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:169)
at 
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:623)
at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:546)
at 
com.sun.faces.taglib.html_basic.OutputTextTag.doEndTag(OutputTextTag.java:173)
at 
org.apache.jsp.dialSummary_jsp._jspx_meth_h_outputText_1(org.apache.jsp.dialSummary_jsp:271)
at 
org.apache.jsp.dialSummary_jsp._jspx_meth_h_form_0(org.apache.jsp.dialSummary_jsp:220)
at 
org.apache.jsp.dialSummary_jsp._jspx_meth_f_view_0(org.apache.jsp.dialSummary_jsp:161)
at 
org.apache.jsp.dialSummary_jsp._jspService(org.apache.jsp.dialSummary_jsp:120)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:673)
at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:464)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at 
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
at 
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
at 
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
ca.halifax.internal.utils.HRMJGatekeeper.doFilter(HRMJGatekeeper.java:56)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.OutOfMemoryError: PermGen space


Sun Solaris 9
Tomcat 5.5.7

Thanks in advance.

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

RE: Why getting this error?

2005-10-03 Thread Peter Crowther
 From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
 java.lang.OutOfMemoryError: PermGen space

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

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

- Peter

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



RE: Why getting this error?

2005-10-03 Thread Ritchie Gillam
Thanks Peter!  Can you provide an example please?   Is this defined somewhere 
in the server.xml file?

Thanks

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

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

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

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

- Peter

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



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



RE: Why getting this error?

2005-10-03 Thread Peter Crowther
 From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
 Thanks Peter!  Can you provide an example please?   Is this 
 defined somewhere in the server.xml file?

You should be able to set JAVA_OPTS, either within
$CATALINA_HOME/bin/catalina (from memory - CHECK! - it's too long since
I had to configure Tomcat on UNIX) or from the command line before
starting Tomcat:

export JAVA_OPTS=-XX:MaxPermSize=128m

Put it in the same place as the options to set your heap size.  If you
aren't already setting the heap size by some means, my guess is that
that'll be the next out-of-memory error you get!

- Peter

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



RE: Why getting this error?

2005-10-03 Thread Trung Nguyen
Ritchie,

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

JAVA_OPTS=-server -XX:MaxPermSize=256m

Hope this help

--Trung


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


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

Thanks

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

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

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

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

- Peter

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



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


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



RE: Why getting this error?

2005-10-03 Thread Ritchie Gillam
Thanks, I will set the JAVA_OPTS variable. Is there a way to see what the Size 
is now before I change it?

Thanks,

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

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

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

JAVA_OPTS=-server -XX:MaxPermSize=256m

Hope this help

--Trung


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


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

Thanks

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

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

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

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

- Peter

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



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


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



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



RE: Why getting this error?

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

--Trung


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


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

Thanks,

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

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

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

JAVA_OPTS=-server -XX:MaxPermSize=256m

Hope this help

--Trung


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


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

Thanks

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

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

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

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

- Peter

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



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


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



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


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



RE: Why getting this error?

2005-10-03 Thread Ritchie Gillam
This command don't seem to work?  Is there another way to see all of the 
Parameters for the JVM?

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

 [EMAIL PROTECTED] 10/03/05 10:55 am 
If you haven't set this variable elsewhere within the box, PermGen defaults to 
64MB, otherwise, you can see the size by using ps -avx command

--Trung


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


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

Thanks,

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

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

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

JAVA_OPTS=-server -XX:MaxPermSize=256m

Hope this help

--Trung


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


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

Thanks

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

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

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

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

- Peter

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



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


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



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


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



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



RE: Why getting this error?

2005-10-03 Thread Lisa Woodring
I get the java.lang.OutOfMemoryError: PermGen space error periodically
when I use Tomcat Manager to deploy my web application (as opposed to
re-starting Tomcat).  It eventually runs out of memory on the deploy.
However, since I only use the manager for development -- I just restart
Tomcat when the error happens.


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

This command don't seem to work?  Is there another way to see all of the
Parameters for the JVM?

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

 [EMAIL PROTECTED] 10/03/05 10:55 am 
If you haven't set this variable elsewhere within the box, PermGen defaults
to 64MB, otherwise, you can see the size by using ps -avx command

--Trung


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


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

Thanks,

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

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

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

JAVA_OPTS=-server -XX:MaxPermSize=256m

Hope this help

--Trung


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


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

Thanks

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

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

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

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

- Peter

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



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


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



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


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



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



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



Re: Getting NoClassDefFound error for Rectangle.class (rt.jar)

2005-10-03 Thread Bob Hall
Thanks, David.  I'll try that.

If that doesn't do the trick I plan to build fop.jar
from source on the target machine.

- Bob

--- David Delbecq [EMAIL PROTECTED] wrote:

 if it's *java.awt.Rectangle*
 and the computer you are trying to run fop on does
 not have
 graphical environment, maybe you should wonsider
 using headless java
 see

http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless
 
 Bob Hall a écrit :
 
 I'm getting a NoClassDefFoundError in a FOP class,
 PageViewport.  At line 89, the code is attempting
 to
 do
 'new Rectangle()'.
 
 The same code works fine on 3 other systems (2
 Windows,
 and one Linux).  It does not work on a Linux box.
 The two linux boxes have the same version of Java
 (1.4.2_08-b03) and the same version of Tomcat
 5.0.28).
 The versions of RedHat *are* different.  I even
 compiled
 the code on the target Linux system.
 
 Any ideas?
 
 - Bob
 
 
  
 __ 
 Yahoo! Mail - PC Magazine Editors' Choice 2005 
 http://mail.yahoo.com
 

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

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


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

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



Re: Getting NoClassDefFound error for Rectangle.class (rt.jar)

2005-10-03 Thread Bob Hall
No joy with -Djava.awt.headless=true; looks a
rebuild of FOP on the target system... though that
*really* does not make sense.

- Bob

--- Bob Hall [EMAIL PROTECTED] wrote:

 Thanks, David.  I'll try that.
 
 If that doesn't do the trick I plan to build fop.jar
 from source on the target machine.
 
 - Bob
 
 --- David Delbecq [EMAIL PROTECTED] wrote:
 
  if it's *java.awt.Rectangle*
  and the computer you are trying to run fop on does
  not have
  graphical environment, maybe you should wonsider
  using headless java
  see
 

http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless
  
  Bob Hall a écrit :
  
  I'm getting a NoClassDefFoundError in a FOP
 class,
  PageViewport.  At line 89, the code is attempting
  to
  do
  'new Rectangle()'.
  
  The same code works fine on 3 other systems (2
  Windows,
  and one Linux).  It does not work on a Linux box.
  The two linux boxes have the same version of Java
  (1.4.2_08-b03) and the same version of Tomcat
  5.0.28).
  The versions of RedHat *are* different.  I even
  compiled
  the code on the target Linux system.
  
  Any ideas?
  
  - Bob
  
  
 
  __ 
  Yahoo! Mail - PC Magazine Editors' Choice 2005 
  http://mail.yahoo.com
  
 

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

  
  
  
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.yahoo.com 
 

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




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

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



XP SP1 and WebDav, login error (domain name prefix)

2005-09-29 Thread Salvatore Denaro
I'm having troubles setting up WebDav with tomcat 5.5.9 on JDK 1.5_04 on 
Fedora Linux FC4


The webdav share works perfectly from my Mac running OS X.3.

When I try to connect to the WebDav share from my laptop running XP, the 
login box comes up and insists on putting changing the login name to 
domain-name.net\username rather than using just username


There seems to be no setting in XP's networking setting to change this.

I've been googling for an answer for the past week with no luck.

Does anyone know a work around?

Thanks.

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



Re: An error about Tomcat 4.0

2005-09-27 Thread Tim Funk

See the error logs ..
 java.lang.NoClassDefFoundError at
...
org.apache.jsp.fr110_0005fchartTest$jsp._jspService(fr110_0005fchartTest$jsp.java:72) 



For some reason - a class is missing. The source of the JSP should tell you 
the missing class.


-Tim

Greece wrote:

Hi,Everyone,
 
I am using cewolf to draw chart in Tomcat 4.0. And The program has been run successfully, but when I moved the same program file and used JAR file to the web server, whose OS is Solorias, there has been appearing the error message as below:
 
javax.servlet.ServletException

at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:463)
at 
org.apache.jsp.fr110_0005fchartTest$jsp._jspService(fr110_0005fchartTest$jsp.java:262)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:534)




root cause 
java.lang.NoClassDefFoundError	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)	at java.lang.reflect.Constructor.newInstance(Constructor.java:274)	at java.lang.Class.newInstance0(Class.java:308)	at java.lang.Class.newInstance(Class.java:261)	at java.beans.Beans.instantiate(Beans.java:204)	at java.beans.Beans.instantiate(Beans.java:48)	at org.apache.jsp.fr110_0005fchartTest$jsp._jspService(fr110_0005fchartTest$jsp.java:72)	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)	at

 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)  at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247

An error about Tomcat 4.0

2005-09-26 Thread Greece
Hi,Everyone,
 
I am using cewolf to draw chart in Tomcat 4.0. And The program has been run 
successfully, but when I moved the same program file and used JAR file to the 
web server, whose OS is Solorias, there has been appearing the error message as 
below:
 
javax.servlet.ServletException
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:463)
at 
org.apache.jsp.fr110_0005fchartTest$jsp._jspService(fr110_0005fchartTest$jsp.java:262)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:534)




root cause 
java.lang.NoClassDefFoundError  at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:274)  at 
java.lang.Class.newInstance0(Class.java:308) at 
java.lang.Class.newInstance(Class.java:261)  at 
java.beans.Beans.instantiate(Beans.java:204) at 
java.beans.Beans.instantiate(Beans.java:48)  at 
org.apache.jsp.fr110_0005fchartTest$jsp._jspService(fr110_0005fchartTest$jsp.java:72)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)  
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)   
  at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)  at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853

NullPointerException during error page forward

2005-09-26 Thread Scott Goldstein
I'm running Tomcat 5.0.28 and running into a problem during forward to
the error page.  Specifically, I'm seeing a NullPointerException and I'm
losing the original exception which I'd like to track.

 

When looking into the source code, in JspServlet.service(), I see the
following:

 

try {

String includeUri 

= (String)
request.getAttribute(Constants.INC_SERVLET_PATH);

String requestUri 

= (String)
request.getAttribute(Constants.INC_REQUEST_URI);



String jspUri;



// When jsp-property-group/url-matching is used, and when
the 

// jsp is not defined with servlet-name, the url

// as to be passed as it is to the JSP container (since 

// Catalina doesn't know anything about the requested JSP 



// The first scenario occurs when the jsp is not directly
under /

// example: /utf16/foo.jsp

if (requestUri != null){

String currentIncludedUri 

=
requestUri.substring(requestUri.indexOf(includeUri));  --

 

if ( !includeUri.equals(currentIncludedUri) ) {

includeUri = currentIncludedUri;

}

}



...

 

What appears to be happening, is that the requestUri is set to the URI
of the page on which the exception originally occurred and the
includeUri is null.  Therefore, when requestUri.indexOf(includeUri) is
invoked, a NullPointerException occurs.

 

The only info I've been able to find out, is that in PageContextImpl
during the handlePageException() method, forward() is invoked to forward
to the error page.  In the doForward() method, the attribute for the
include uri (Constants.INC_SERVLET_PATH) above is removed.  This leads
to it being null.  However, I don't see the other attribute ever being
removed.

 

So, the question is, what is the expected behavior of these two
attributes?  I believe that they should both be null for a forward (in
this case to the error page), correct?  Is there something that I can do
to avoid this NullPointerException?  Is it a bug which has been resolved
in future releases?

 

Thanks for the information.

 

Scott



error in the servlet spec v2.4?, not the Session issue!

2005-09-26 Thread Trond Hersløv
Hi,
How precise is the servlet spec v2.4? I guess the spec has been worked over 
many, many times before it is released so probably it is me that has got it 
wrong.

The introduction of srv.5 The Response: .this information is transmitted 
from the server to the client either by HTTP headers or the message body of the 
request. My question: shouldn't it be ...body of the response?

\trond
 


**
This email message has been swept by
MIMEsweeper for the presence of computer viruses.
**


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



An error about Tomcat 4.0

2005-09-26 Thread Greece
Hi,Everyone,
 
I am using cewolf to draw chart in Tomcat 4.0. And The program has been run 
successfully, but when I moved the same program file and used JAR file to the 
web server, whose OS is Solorias, there has been appearing the error message as 
below:
 
javax.servlet.ServletException
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:463)
at 
org.apache.jsp.fr110_0005fchartTest$jsp._jspService(fr110_0005fchartTest$jsp.java:262)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:534)




root cause 
java.lang.NoClassDefFoundError  at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:274)  at 
java.lang.Class.newInstance0(Class.java:308) at 
java.lang.Class.newInstance(Class.java:261)  at 
java.beans.Beans.instantiate(Beans.java:204) at 
java.beans.Beans.instantiate(Beans.java:48)  at 
org.apache.jsp.fr110_0005fchartTest$jsp._jspService(fr110_0005fchartTest$jsp.java:72)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)  
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)   
  at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)  at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243

Tomcat on Unix - error message at shutdown

2005-09-23 Thread Sabitha
Hi,

 

Every time I stop tomcat 5.0 on Unix , it gives the following error. 

 

I  think this issue is already been discussed, but I could not find any link
to the solution.

 

I would appreciate if you could help me solving this issue.

 

 

Sep 23, 2005 1:31:22 PM org.apache.jk.common.ChannelSocket acceptConnections

WARNING: Exception executing accept

java.net.SocketException: Invalid argument

at java.net.PlainSocketImpl.socketSetOption(Native Method)

at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:240)

at java.net.Socket.setSoLinger(Socket.java:814)

at
org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:300)

at
org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)

at
org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:847)

at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)

at java.lang.Thread.run(Thread.java:534)

 

thanks

sanugu



someone familar with this error?

2005-09-22 Thread Leon Rosenberg
starting tomcat:

22.09.2005 12:41:27 org.apache.coyote.tomcat5.MapperListener init
WARNUNG: Error registering contexts
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
at java.util.HashMap$EntryIterator.next(HashMap.java:824)
at java.util.HashMap.putAllForCreate(HashMap.java:424)
at java.util.HashMap.clone(HashMap.java:656)
at 
mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56)
at 
mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:1603)
at 
mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568)
at mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512)
at 
org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115)
at 
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1510)

tomcat 5.0.25, jdk1.4, winxp

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



Re: someone familar with this error?

2005-09-22 Thread andy gordon
Leon, 
 
Not sure if this will help, but it looks like there was an error when 
registering MBeans. Did make any modifications with the Coyote Connnector? This 
is the connector that integrates with Apachr or IIS for example. 
 
- andy

Leon Rosenberg [EMAIL PROTECTED] wrote:
starting tomcat:

22.09.2005 12:41:27 org.apache.coyote.tomcat5.MapperListener init
WARNUNG: Error registering contexts
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
at java.util.HashMap$EntryIterator.next(HashMap.java:824)
at java.util.HashMap.putAllForCreate(HashMap.java:424)
at java.util.HashMap.clone(HashMap.java:656)
at mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56)
at mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:1603)
at mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568)
at mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512)
at org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115)
at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1510)

tomcat 5.0.25, jdk1.4, winxp

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


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

Re: someone familar with this error?

2005-09-22 Thread Jilles van Gurp

Leon Rosenberg wrote:

starting tomcat:

22.09.2005 12:41:27 org.apache.coyote.tomcat5.MapperListener init
WARNUNG: Error registering contexts
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
at java.util.HashMap$EntryIterator.next(HashMap.java:824)
at java.util.HashMap.putAllForCreate(HashMap.java:424)
at java.util.HashMap.clone(HashMap.java:656)
at 
mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56)
at 
mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:1603)
at 
mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568)
at mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512)
at 
org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115)
at 
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1510)

tomcat 5.0.25, jdk1.4, winxp

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



Yes, the jmx.jar shipped with tomcat 5.0.2x has a bug that has been 
fixed by the mx4j people. Later tomcat releases (5.0.31? and 5.5.9) 
include a newer version. The jar file is located in the tomcat bin 
directory and the solution is to download an updated version from


http://mx4j.sourceforge.net/

I think you need the latest 2.x version, not the 3.x version.

BTW. I'd really appreciate a stable 5.0.x release with this fix. This 
little issue has been driving me nuts since I need to fix this manually 
on all deployments of our product on tomcat 5.0.28.


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



Re: someone familar with this error?

2005-09-22 Thread Leon Rosenberg
Thanx Jilles.

On 9/22/05, Jilles van Gurp [EMAIL PROTECTED] wrote:
 Leon Rosenberg wrote:
  starting tomcat:
 
  22.09.2005 12:41:27 org.apache.coyote.tomcat5.MapperListener init
  WARNUNG: Error registering contexts
  java.util.ConcurrentModificationException
  at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
  at java.util.HashMap$EntryIterator.next(HashMap.java:824)
  at java.util.HashMap.putAllForCreate(HashMap.java:424)
  at java.util.HashMap.clone(HashMap.java:656)
  at 
  mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56)
  at 
  mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:1603)
  at 
  mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568)
  at 
  mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512)
  at 
  org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115)
  at 
  org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1510)
 
  tomcat 5.0.25, jdk1.4, winxp
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 Yes, the jmx.jar shipped with tomcat 5.0.2x has a bug that has been
 fixed by the mx4j people. Later tomcat releases (5.0.31? and 5.5.9)
 include a newer version. The jar file is located in the tomcat bin
 directory and the solution is to download an updated version from

 http://mx4j.sourceforge.net/

 I think you need the latest 2.x version, not the 3.x version.

 BTW. I'd really appreciate a stable 5.0.x release with this fix. This
 little issue has been driving me nuts since I need to fix this manually
 on all deployments of our product on tomcat 5.0.28.

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



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



HTTP 500 Error occurs whith errorPage directive in Tomcat 5.5.9

2005-09-21 Thread Bachler, Elisabeth (Elisabeth)

Hello,

I am using Tomcat 5.5.9 and I have found out that the errorPage directive is
not working.
I always get a HTTP 500 ERROR.
I can solve the problem handling excpetion but I don't want to do it. I want
to use the errorPage.jsp
Looking into Google, I found out the following comment but I don't know
understand how to solve the problem.

 
CAUSE: 
Unlike previous versions of tomcat; the version 5 returns error code 500
when returning error page (with directive isErrorPage=true. Internet
explorer scans for returned error codes and when it seems error 500 it
checks the length of the the error message and if it is not long enough (not
sure of exact size) it replaces it with its own message (so called friendly
message about error 500).
Note that IE replaces messages only if option 'Show friendly error messages'
is selected under tools-options-Adanced-browsing.

SOLUTION: 

1. Uncheck that friendly error message option; which is not desirable since
can't control client browser:  HOW CAN I DO IT?

2. Increase size of your error page; to tell IE that there is enough
information in this error so please don't replace it. 
===

Thanks for helping
Elisabeth
 

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



RE: HTTP 500 Error occurs whith errorPage directive in Tomcat 5.5.9

2005-09-21 Thread Jason Bell
Elisabeth,
Could you post a small snippet of your code, then I will try and have a look 
at what is going on.

Regards
Jason

--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
w: http://www.spikesource.com
b: http://jasonbell.blog-city.com
m: +44 (0)787 529 2693

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



RE: Error with Error Document defined (really need ideas)

2005-09-21 Thread Barbara.Townsend-Batten
Please remove me from this reply list. Thanks

-Original Message-
From: Jason Bell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 20, 2005 5:33 PM
To: tomcat-user@jakarta.apache.org
Subject: RE: Error with Error Document defined (really need ideas)


Your config file suggests that you expect Tomcat to load the .html files
to a 
path on your server.  The specified files should be relevent to your web

application.  

So more than likely it will look something like:
  location/NotFound.html/location

If memory serves me Tomcat, according to your xml config, would be
looking for 
the error pages in
http://localhost:8080/srv/www/tomcat/base/errorpages/NotFound.html

I hope this helps you.

 ==
 2005-09-19 17:28:37 StandardContext[/Servlets]default:
DefaultServlet.serveResource:  Serving resource '/' headers and data
 2005-09-19 17:28:37 StandardContext[/Servlets]default:
DefaultServlet.serveResource:  Serving resource 
'/srv/www/tomcat/base/errorpages/NotFound.html' headers and data
 ==


--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
w: http://www.spikesource.com
b: http://jasonbell.blog-city.com
m: +44 (0)787 529 2693

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


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



RE: HTTP 500 Error occurs whith errorPage directive in Tomcat 5.5 .9

2005-09-21 Thread Bachler, Elisabeth (Elisabeth)
Hello,
I have modified something and it seems to work now!!! If the problem comes
back I will e-mail you again.
Thank you 
Elisabeth

-Original Message-
From: Jason Bell [mailto:[EMAIL PROTECTED]
Sent: miércoles, 21 de septiembre de 2005 12:38
To: tomcat-user@jakarta.apache.org
Subject: RE: HTTP 500 Error occurs whith errorPage directive in Tomcat
5.5.9


Elisabeth,
Could you post a small snippet of your code, then I will try and have a look

at what is going on.

Regards
Jason

--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
w: http://www.spikesource.com
b: http://jasonbell.blog-city.com
m: +44 (0)787 529 2693

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

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



RE: 5.5.9 Build Script Error Help !!!

2005-09-21 Thread Barbara.Townsend-Batten
Please remove me from this list.

Thanks

-Original Message-
From: Bovy, Stephen J [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 20, 2005 3:57 PM
To: Tomcat Users List
Subject: RE: 5.5.9 Build Script Error Help !!!


 
BUILD FAILED
C:\ESI\jakarta-tomcat-5.5.9-src\build.xml:49: The following error
occurred while  executing this line:
C:\ESI\jakarta-tomcat-5.5.9-src\jakarta-tomcat-5\build.xml:1811: The
following e rror occurred while executing this line:
C:\ESI\jakarta-tomcat-5.5.9-src\jakarta-tomcat-5\build.xml:1911: Error
while exp anding \usr\share\java\file.zip

Total time: 13 seconds
The system cannot find the batch label specified - end

C:\ESI\jakarta-tomcat-5.5.9-src

Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
e-mail: [EMAIL PROTECTED]

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


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



AW: 5.5.9 Build Script Error Help !!!

2005-09-21 Thread Markus . Jakob
Please send an email to this adress!!  ;-(

[EMAIL PROTECTED]

Markus

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 21. September 2005 13:29
An: tomcat-user@jakarta.apache.org
Betreff: RE: 5.5.9 Build Script Error Help !!!
Wichtigkeit: Hoch


Please remove me from this list.

Thanks

-Original Message-
From: Bovy, Stephen J [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 20, 2005 3:57 PM
To: Tomcat Users List
Subject: RE: 5.5.9 Build Script Error Help !!!


 
BUILD FAILED
C:\ESI\jakarta-tomcat-5.5.9-src\build.xml:49: The following error occurred
while  executing this line:
C:\ESI\jakarta-tomcat-5.5.9-src\jakarta-tomcat-5\build.xml:1811: The
following e rror occurred while executing this line:
C:\ESI\jakarta-tomcat-5.5.9-src\jakarta-tomcat-5\build.xml:1911: Error while
exp anding \usr\share\java\file.zip

Total time: 13 seconds
The system cannot find the batch label specified - end

C:\ESI\jakarta-tomcat-5.5.9-src

Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
e-mail: [EMAIL PROTECTED]

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


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


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



RE: HTTP 500 Error occurs whith errorPage directive in Tomcat 5.5 .9

2005-09-21 Thread Bachler, Elisabeth (Elisabeth)
Hello again,
I managed to make it work but I am having another problem. I normally
prevent the user from going backward using the following line:
script language=JavaScript
javascript:window.history.forward(1);
/script

Now, it works perfectly with the other page but not with errorPage=true.
Is it Tomcat? or another problem?

Elisabeth


throwError.jsp
=
html
head
titleThrow Exception/title
script language=JavaScript
javascript:window.history.forward(1);
/script
/head
[EMAIL PROTECTED] errorPage=errorPage0.jsp %
[EMAIL PROTECTED] language=java %
body
Throwing exception
%
// throw ArithmeticException
int badInt = 12/0;
%
/body
/html

errorPage0.jsp

html
head
titlePaacute;gina de Error/title
script language=JavaScript
javascript:window.history.forward(1);
/script
/head
%@ page language=java isErrorPage=true %
centerH1 DETALLES DEL ERROR OCURRIDO: /H1/center

%
if (exception != null)
{
%
pre% exception.printStackTrace(new java.io.PrintWriter(out)); %/pre
%
}
%
/body
/html


-Original Message-
From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
Sent: miércoles, 21 de septiembre de 2005 13:31
To: 'Tomcat Users List'
Subject: RE: HTTP 500 Error occurs whith errorPage directive in Tomcat
5.5 .9


Hello,
I have modified something and it seems to work now!!! If the problem comes
back I will e-mail you again.
Thank you 
Elisabeth

-Original Message-
From: Jason Bell [mailto:[EMAIL PROTECTED]
Sent: miércoles, 21 de septiembre de 2005 12:38
To: tomcat-user@jakarta.apache.org
Subject: RE: HTTP 500 Error occurs whith errorPage directive in Tomcat
5.5.9


Elisabeth,
Could you post a small snippet of your code, then I will try and have a look

at what is going on.

Regards
Jason

--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
w: http://www.spikesource.com
b: http://jasonbell.blog-city.com
m: +44 (0)787 529 2693

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

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

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



Re: Error with Error Document defined (really need ideas)

2005-09-20 Thread Yassine ELassad



 directBOX Reply ---
From: Yassine ELassad ([EMAIL PROTECTED])
To: tomcat-user@jakarta.apache.org
Date: 19.09.2005 17:57:50

hello every one i have a strange issue again with tomcat :)

here is the problem:

i defined an error 404 document unnder the web.xml lie the following :


=
 welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
/welcome-file-list

   error-page
   error-code500/error-code

location/srv/www/tomcat/base/errorpages/InternalServerError.html/location
/error-page
error-page
error-code404/error-code
location/srv/www/tomcat/base/errorpages/NotFound.html/location
/error-page





after calling a non existing document all i have been served is a blank page 
nothing inside not even a html code nothing  i was wondering what could be the 
problem and i have checked my log which show me this :

==
2005-09-19 17:28:37 StandardContext[/Servlets]default: 
DefaultServlet.serveResource:  Serving resource '/' headers and data
2005-09-19 17:28:37 StandardContext[/Servlets]default: 
DefaultServlet.serveResource:  Serving resource 
'/srv/www/tomcat/base/errorpages/NotFound.html' headers and data
==


anyone of you guys have a plan what could be hapening out here ??


thanks for your help

Regards Yassine





__
Verpassen Sie keine eBay-Auktion und bieten Sie bequem
und schnell über das Telefon mit http://www.telefonbieten.de

Ihre eMails auf dem Handy lesen - ohne Zeitverlust - 24h/Tag
eMail, FAX, SMS, VoiceMail mit http://www.directbox.com



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



WARNING: Error registering contexts

2005-09-20 Thread Dom Cara
Dear Tomcat,
 
Operating system: SunOS 5.8
JDK: j2sdk1.4.2_01
Tomcat: 5.0.28
 
Logged in as root, upon startup, I am getting the following exception
from my tomcat container:
 
Sep 20, 2005 1:59:17 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-5028
Sep 20, 2005 1:59:17 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Sep 20, 2005 1:59:17 PM org.apache.coyote.tomcat5.MapperListener init
WARNING: Error registering contexts
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
at java.util.HashMap$EntryIterator.next(HashMap.java:824)
at java.util.HashMap.putAllForCreate(HashMap.java:424)
at java.util.HashMap.clone(HashMap.java:656)
at
mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56)
at
mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:160
3)
at
mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568)
at
mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512)
at
org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115)
at
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:153
7)
at
org.apache.catalina.core.StandardService.start(StandardService.java:489)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Sep 20, 2005 1:59:17 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-80
Sep 20, 2005 1:59:17 PM org.apache.coyote.tomcat5.MapperListener init
WARNING: Error registering contexts
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
at java.util.HashMap$EntryIterator.next(HashMap.java:824)
at java.util.HashMap.putAllForCreate(HashMap.java:424)
at java.util.HashMap.clone(HashMap.java:656)
at
mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56)
at
mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:160
3)
at
mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568)
at
mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512)
at
org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115)
at
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:153
7)
at
org.apache.catalina.core.StandardService.start(StandardService.java:489)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Sep 20, 2005 1:59:17 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Sep 20, 2005 1:59:17 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=2/74
config=/opt/gsp/tomcat-5.0.28/conf/jk2.properties
Sep 20, 2005 1:59:18 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 376219 ms
 
Please help,
Dominic


RE: 5.5.9 Build Script Error Help !!!

2005-09-20 Thread Bovy, Stephen J
 
BUILD FAILED
C:\ESI\jakarta-tomcat-5.5.9-src\build.xml:49: The following error
occurred while
 executing this line:
C:\ESI\jakarta-tomcat-5.5.9-src\jakarta-tomcat-5\build.xml:1811: The
following e
rror occurred while executing this line:
C:\ESI\jakarta-tomcat-5.5.9-src\jakarta-tomcat-5\build.xml:1911: Error
while exp
anding \usr\share\java\file.zip

Total time: 13 seconds
The system cannot find the batch label specified - end

C:\ESI\jakarta-tomcat-5.5.9-src

Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
e-mail: [EMAIL PROTECTED]

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



RE: Error with Error Document defined (really need ideas)

2005-09-20 Thread Jason Bell
Your config file suggests that you expect Tomcat to load the .html files to a 
path on your server.  The specified files should be relevent to your web 
application.  

So more than likely it will look something like:
  location/NotFound.html/location

If memory serves me Tomcat, according to your xml config, would be looking for 
the error pages in
http://localhost:8080/srv/www/tomcat/base/errorpages/NotFound.html

I hope this helps you.

 ==
 2005-09-19 17:28:37 StandardContext[/Servlets]default: 
DefaultServlet.serveResource:  Serving resource '/' headers and data
 2005-09-19 17:28:37 StandardContext[/Servlets]default: 
DefaultServlet.serveResource:  Serving resource 
'/srv/www/tomcat/base/errorpages/NotFound.html' headers and data
 ==


--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
w: http://www.spikesource.com
b: http://jasonbell.blog-city.com
m: +44 (0)787 529 2693

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



Error Document defined and Served but still not visible any idea ??

2005-09-19 Thread Yassine ELassad
hello every one i have a strange issue again with tomcat :)

here is the problem:

i defined an error 404 document unnder the web.xml lie the following :


=
 welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
/welcome-file-list

   error-page
   error-code500/error-code

location/srv/www/tomcat/base/errorpages/InternalServerError.html/location
/error-page
error-page
error-code404/error-code
location/srv/www/tomcat/base/errorpages/NotFound.html/location
/error-page





after calling a non existing document all i have been served is a blank page 
nothing inside not even a html code nothing  i was wondering what could be the 
problem and i have checked my log which show me this :

==
2005-09-19 17:28:37 StandardContext[/Servlets]default: 
DefaultServlet.serveResource:  Serving resource '/' headers and data
2005-09-19 17:28:37 StandardContext[/Servlets]default: 
DefaultServlet.serveResource:  Serving resource 
'/srv/www/tomcat/base/errorpages/NotFound.html' headers and data
==


anyone of you guys have a plan what could be hapening out here ??


thanks for your help

Regards Yassine




__
Verpassen Sie keine eBay-Auktion und bieten Sie bequem
und schnell über das Telefon mit http://www.telefonbieten.de

Ihre eMails auf dem Handy lesen - ohne Zeitverlust - 24h/Tag
eMail, FAX, SMS, VoiceMail mit http://www.directbox.com



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



Re: password authentication causes 403 error

2005-09-18 Thread paul
Thanks Bill - that did it! 

Bill Barker writes: 



[EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]

Hi there,
I would like to set up my development tomcat-5.0.28 (on port 8080) so that 
all webapps that are not password protected, to have password 
authentification. Since it is my dev box I would like to use the memory 
realm.

I have this in my web.xml:
security-constraint
web-resource-collection
url-pattern/*/url-pattern
http-methodGET/http-method
http-methodPOST/http-method
/web-resource-collection
auth-constraint role-name=admin/


It's:
  auth-constraint
  role-nameadmin/role-name
  /auth-constraint 

What you have (other than being invalid, if validation-checking was enabled 
:), tells Tomcat to forbid access to everyone. 


user-data-constraint
transport-guaranteeNONE/transport-guarantee
/user-data-constraint
/security-constraint
login-config
auth-methodBASIC/auth-method
/login-config 


I have this in my tomcat-users.xml:
tomcat-users
role rolename=tomcat/
role rolename=role1/
role rolename=manager/
role rolename=admin/
user username=mylogin password=mypassword 
roles=admin,manager,role1/

/tomcat-users
If I go to http://localhost:8080/manager it asks me to login and then 
gives me access to the webapp as expected. If I go to 
http://localhost:8080/ it asks me to login and if I get it wrong is gives 
me a 401 error as expected but if I get it right it gives me a 403 error 
instead of allowing access to the webapp. This happens with all webapps 
that do not have their own authentication.
How do I configure tomcat to give me access to my webapps when I login 
correctly?

Thanks,
Paul
--
Paul Mackinlay (PhD, MEng)
http://www.webotech.co.uk/
[EMAIL PROTECTED]
Tel: +44(0)7050 699971
Fax: +44(0)7050 699972 
 

 


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





--
Paul Mackinlay (PhD, MEng)
http://www.webotech.co.uk/
[EMAIL PROTECTED]
Tel: +44(0)7050 699971
Fax: +44(0)7050 699972 



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



javax.servlet.UnavailableException: Parsing error processing resource path

2005-09-17 Thread Kam Lung Leung
Hi,
   
I have not been able to figure out why I have the following exception 
from tomcat:
StandardContext[/ClientComponentTier]: Servlet /ClientComponentTier threw 
load() exception
javax.servlet.UnavailableException: Parsing error processing resource path  
/WEB-INF/struts-config-client.xml

The struts-config.xml and the struts-config-client.xml files contain
minimum decleration that are listed in this email.

Any help is greagly appreciated.

Kam Lung Leung

  debug information 
 2005-09-17 10:43:40 WebappLoader[/ClientComponentTier]: Deploy JAR 
/WEB-INF/lib/xercesImpl.jar to /usr/local/catalina/webapps/ClientCom
ponentTier/WEB-INF/lib/xercesImpl.jar
2005-09-17 10:43:41 StandardManager[/ClientComponentTier]: Seeding random 
number generator class java.security.SecureRandom
2005-09-17 10:43:41 StandardManager[/ClientComponentTier]: Seeding of random 
number generator has been completed
2005-09-17 10:43:42 
StandardWrapper[/ClientComponentTier:AlertClientActionServet]: Marking servlet 
AlertClientActionServet as unavailab
le
2005-09-17 10:43:42 StandardContext[/ClientComponentTier]: Servlet 
/ClientComponentTier threw load() exception
javax.servlet.UnavailableException: Parsing error processing resource path  
/WEB-INF/struts-config-client.xml
at 
org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:1035)
at 
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1014)
at 
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3427)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3628)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:788)
at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:492)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:400)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

*web.xml   
web-app
  !-- Standard Action Servlet Configuration (with debugging) --
  servlet
servlet-nameAlertClientActionServet/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml, 
/WEB-INF/struts-config-client.xml/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value0/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value0/param-value
/init-param
load-on-startup1/load-on-startup
  /servlet


  servlet-mapping
servlet-nameAlertClientActionServet/servlet-name
url-pattern*.do/url-pattern
  /servlet-mapping

 !-- Struts Tag Library Descriptors --
  taglib
taglib-uristruts-bean/taglib-uri
taglib-location/WEB-INF/tld/struts

Re: Suppress Connection reset by peer: socket write error.

2005-09-17 Thread Bill Barker

Dola Woolfe [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hi,

 I apologize for asking this question again for I
 remembering asking this question in the past, but I
 can't find the response.

 What setting (and where) will suppress the
 aforementioned exception in the tomcat log?


Including the Tomcat version helps ;-).

I'm assuming that this is for the AJP/1.3 Connector.  The answer is to 
change the logging level for that component to be one higher than the level 
in the message (in the latest version, it's at DEBUG level and I don't 
remember what it used to be).  For example, if you are using JDK1.4 logging 
you would do something like:
  org.apache.jk.common.level=SEVERE

in your logging.properties file.

 Thank you very much in advance, again!

 Dola



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




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



Re: password authentication causes 403 error

2005-09-17 Thread Bill Barker

[EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hi there,
 I would like to set up my development tomcat-5.0.28 (on port 8080) so that 
 all webapps that are not password protected, to have password 
 authentification. Since it is my dev box I would like to use the memory 
 realm.
 I have this in my web.xml:
 security-constraint
 web-resource-collection
 url-pattern/*/url-pattern
 http-methodGET/http-method
 http-methodPOST/http-method
 /web-resource-collection
 auth-constraint role-name=admin/

It's:
  auth-constraint
  role-nameadmin/role-name
  /auth-constraint

What you have (other than being invalid, if validation-checking was enabled 
:), tells Tomcat to forbid access to everyone.

 user-data-constraint
 transport-guaranteeNONE/transport-guarantee
 /user-data-constraint
 /security-constraint
 login-config
 auth-methodBASIC/auth-method
 /login-config

 I have this in my tomcat-users.xml:
 tomcat-users
 role rolename=tomcat/
 role rolename=role1/
 role rolename=manager/
 role rolename=admin/
 user username=mylogin password=mypassword 
 roles=admin,manager,role1/
 /tomcat-users
 If I go to http://localhost:8080/manager it asks me to login and then 
 gives me access to the webapp as expected. If I go to 
 http://localhost:8080/ it asks me to login and if I get it wrong is gives 
 me a 401 error as expected but if I get it right it gives me a 403 error 
 instead of allowing access to the webapp. This happens with all webapps 
 that do not have their own authentication.
 How do I configure tomcat to give me access to my webapps when I login 
 correctly?
 Thanks,
 Paul
 --
 Paul Mackinlay (PhD, MEng)
 http://www.webotech.co.uk/
 [EMAIL PROTECTED]
 Tel: +44(0)7050 699971
 Fax: +44(0)7050 699972 




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



password authentication causes 403 error

2005-09-16 Thread paul
Hi there, 

I would like to set up my development tomcat-5.0.28 (on port 8080) so that 
all webapps that are not password protected, to have password 
authentification. Since it is my dev box I would like to use the memory 
realm. 

I have this in my web.xml: 


security-constraint
web-resource-collection
url-pattern/*/url-pattern
http-methodGET/http-method
http-methodPOST/http-method
/web-resource-collection
auth-constraint role-name=admin/
user-data-constraint
transport-guaranteeNONE/transport-guarantee
/user-data-constraint
/security-constraint 


login-config
auth-methodBASIC/auth-method
/login-config 



I have this in my tomcat-users.xml: 


tomcat-users
role rolename=tomcat/
role rolename=role1/
role rolename=manager/
role rolename=admin/
user username=mylogin password=mypassword roles=admin,manager,role1/
/tomcat-users 

If I go to http://localhost:8080/manager it asks me to login and then gives 
me access to the webapp as expected. If I go to http://localhost:8080/ it 
asks me to login and if I get it wrong is gives me a 401 error as expected 
but if I get it right it gives me a 403 error instead of allowing access to 
the webapp. This happens with all webapps that do not have their own 
authentication. 

How do I configure tomcat to give me access to my webapps when I login 
correctly? 

Thanks, 

Paul 


--
Paul Mackinlay (PhD, MEng)
http://www.webotech.co.uk/
[EMAIL PROTECTED]
Tel: +44(0)7050 699971
Fax: +44(0)7050 699972

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



Suppress Connection reset by peer: socket write error.

2005-09-16 Thread Dola Woolfe
Hi,

I apologize for asking this question again for I
remembering asking this question in the past, but I
can't find the response.

What setting (and where) will suppress the
aforementioned exception in the tomcat log?

Thank you very much in advance, again!

Dola



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

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



Struts, JSP 2.0 and Jasper2 compiler/code generation error

2005-09-13 Thread Clark Wright


I am running into a class hierarchy mismatch with taglibs and jasper2 out 
of tomcat 5.5 and precompiling jsp pages built with the struts taglibs.


I have:
Jboss AS 4.0.2
Tomcat 5.5 (bundled)
Struts 1.2.4

The error I am getting at compile time is:

[javac] 
F:\Sandboxes\Projects\rainier-1\cudgel\tmp\jsp-java\com\lqmi\admin\contact_jsp.java:119:
 _jspx_meth_html_link_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) 


in com.lqmi.admin.contact_jsp
cannot be applied to 
(org.apache.struts.taglib.html.HtmlTag,javax.servlet.jsp.PageContext)


The issue is that JBoss AS 4/Tomcat 5.5 is conforming to JSP 2.0.
Struts confirms to JSP 1.x.

In 2.0, a new base interface is defined (JspTag) for all tag classes, and 
that is causing the compile error.


Has anyone run into this, and if so, what is the work around?

Thank you.

- clark.  



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



Getting this error when trying to generate a graphic

2005-09-13 Thread Ritchie Gillam
javax.servlet.ServletException: 
/data0/apps/java/jdk1.5.0_02/jre/lib/sparc/libawt.so: ld.so.1: 
/data0/apps/java/jdk1.5.0_02/bin/java: fatal: libmlib_image.so: open failed: No 
such file or directory

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)

All I am trying to do is run this Dashboard application that basically 
dynamically generates graphic files based on data from a database.I am 
running this successfully on the other Sun Solaris 9 box (identical 
environment) yet on this new Production server with the same version of Tomcat 
(5.5.7) I get this error.

Any help is greatly appreciated.

Thanks,



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


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



Re: Getting this error when trying to generate a graphic

2005-09-13 Thread Sonja Löhr

Hi!
Althogh my error sounded a bit different, I think I had the same
problem.
You already specified
headless=true 
as sysprop or java option in catalina.sh?

Unfortunately this is not enough under linux/unix. 
On my linux at home, there are a lot of .so-files under
/usr/X11R6/lib, especially those with libXt and libXst in the name,
which where absent on the server. I had to copy these onto the server to
be able to do anything that is calling an awt package.
I cannot tell you now wich files are needed, but perhaps someone else?

Greetings,
sonja


Am Dienstag, den 13.09.2005, 11:18 -0300 schrieb Ritchie Gillam:
 javax.servlet.ServletException: 
 /data0/apps/java/jdk1.5.0_02/jre/lib/sparc/libawt.so: ld.so.1: 
 /data0/apps/java/jdk1.5.0_02/bin/java: fatal: libmlib_image.so: open failed: 
 No such file or directory
   
 org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
 
 All I am trying to do is run this Dashboard application that basically 
 dynamically generates graphic files based on data from a database.I am 
 running this successfully on the other Sun Solaris 9 box (identical 
 environment) yet on this new Production server with the same version of 
 Tomcat (5.5.7) I get this error.
 
 Any help is greatly appreciated.
 
 Thanks,
 
 
 
 Ritchie Gillam
 Programmer Analyst, Information Services, Halifax Regional Municipality
 Email: [EMAIL PROTECTED]
 Phone: (902) 490-6167
 Fax: (902) 490-6583
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
-- 
Sonja Löhr [EMAIL PROTECTED]


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



RE: JK 1.2.14.1 SIG BUS Error on Solaris 9

2005-09-09 Thread Guernsey, Byron \(GE Consumer Industrial\)

Thanks Dave, I'll second the report and confirm that it is an issue on
Solaris as well.

Byron
 

-Original Message-
From: David Rees [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 06, 2005 2:30 PM
To: Tomcat Users List
Subject: Re: JK 1.2.14.1 SIG BUS Error on Solaris 9

On 9/6/05, David Rees [EMAIL PROTECTED] wrote:
 
 That is the exact same core dump and back trace that I reported a 
 while back when running on SGI Irix.  Could be a 64bit or big endian 
 problem?
 
 http://marc.theaimsgroup.com/?l=tomcat-devm=112501659012202w=2

I've opened a bug for this issue:
http://issues.apache.org/bugzilla/show_bug.cgi?id=36525

-Dave

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




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



RE: jasper jsp precompilation error

2005-09-07 Thread Ramnish Kalsi
This method was added in Servlet API version 2.3. 

Can you check if you are using that version ? 

Have a look at whats in your classpath at JSP precompilation time !!!


-Original Message-
From: Aaron Phillips [mailto:[EMAIL PROTECTED]
Sent: 06 September 2005 23:27
To: tomcat-user@jakarta.apache.org
Subject: jasper jsp precompilation error


Hi
I am trying to do JSP precompilation as described at 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html. I can run

the application fine if I do not precompile, but when I do attempt to 
precompile the JSP, I get the message: 

BUILD FAILED
/home/aaron/projects/cdquery/build.xml:307: java.lang.NoSuchMethodError: 
javax.servlet.ServletContext.getResourcePaths
(Ljava/lang/String;)Ljava/util/Set;

I am using Tomcat 5.0.30  Ant 1.6.2.
Does anyone have an idea what I should do? Below is my ant target XML.
Thanks,
Aaron

target name=jspc

taskdef classname=org.apache.jasper.JspC name=jasper2 
classpath id=jspc.classpath
pathelement location=${java.home}/../lib/tools.jar/
fileset dir=${catalina.home}/bin
include name=*.jar/
/fileset
fileset dir=${catalina.home}/server/lib
include name=*.jar/
/fileset
fileset dir=${catalina.home}/common/lib
include name=*.jar/
/fileset
/classpath
/taskdef

jasper2
validateXml=false
uriroot=${web.home}
webXmlFragment=${web.home}/WEB-INF/generated_web.xml
outputDir=${web.home}/WEB-INF/src /

/target


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


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



Re: JK 1.2.14.1 SIG BUS Error on Solaris 9

2005-09-06 Thread David Rees
On 9/2/05, Guernsey, Byron (GE Consumer  Industrial)
[EMAIL PROTECTED] wrote:
 I apoligize for adding to this, but I'm hoping to jar someones memory.
 I gdb'ed the process now and the BUS error occurs in:
snip
 Program received signal SIGBUS, Bus error.
 0xfdfb4208 in service (e=0xf7c90, s=0xfe501848, l=0x118b40,
 is_error=0xfe500840) at jk_lb_worker.c:605
 jk_lb_worker.c:605: No such file or directory.
 (gdb) bt
 #0  0xfdfb4208 in service (e=0xf7c90, s=0xfe501848, l=0x118b40,
 is_error=0xfe500840) at jk_lb_worker.c:605

That is the exact same core dump and back trace that I reported a
while back when running on SGI Irix.  Could be a 64bit or big endian
problem?

http://marc.theaimsgroup.com/?l=tomcat-devm=112501659012202w=2

-Dave

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



Re: JK 1.2.14.1 SIG BUS Error on Solaris 9

2005-09-06 Thread David Rees
On 9/6/05, David Rees [EMAIL PROTECTED] wrote:
 
 That is the exact same core dump and back trace that I reported a
 while back when running on SGI Irix.  Could be a 64bit or big endian
 problem?
 
 http://marc.theaimsgroup.com/?l=tomcat-devm=112501659012202w=2

I've opened a bug for this issue:
http://issues.apache.org/bugzilla/show_bug.cgi?id=36525

-Dave

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



jasper jsp precompilation error

2005-09-06 Thread Aaron Phillips
Hi
I am trying to do JSP precompilation as described at 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html. I can run 
the application fine if I do not precompile, but when I do attempt to 
precompile the JSP, I get the message: 

BUILD FAILED
/home/aaron/projects/cdquery/build.xml:307: java.lang.NoSuchMethodError: 
javax.servlet.ServletContext.getResourcePaths
(Ljava/lang/String;)Ljava/util/Set;

I am using Tomcat 5.0.30  Ant 1.6.2.
Does anyone have an idea what I should do? Below is my ant target XML.
Thanks,
Aaron

target name=jspc

taskdef classname=org.apache.jasper.JspC name=jasper2 
classpath id=jspc.classpath
pathelement location=${java.home}/../lib/tools.jar/
fileset dir=${catalina.home}/bin
include name=*.jar/
/fileset
fileset dir=${catalina.home}/server/lib
include name=*.jar/
/fileset
fileset dir=${catalina.home}/common/lib
include name=*.jar/
/fileset
/classpath
/taskdef

jasper2
validateXml=false
uriroot=${web.home}
webXmlFragment=${web.home}/WEB-INF/generated_web.xml
outputDir=${web.home}/WEB-INF/src /

/target


Re: Manager error 'FAIL - Invalid context path null was specified'

2005-09-04 Thread Mark Thomas

Andy wrote:

When I request a reload like this -

http://testxtb.example.com/manager/reload?xtb

I get this response-

FAIL - Invalid context path null was specified

However according to this page -

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html

This is a valid syntax


You need to read this page again and look more closely at the 
examples. For a reload the example is:

http://localhost:8080/manager/reload?path=/examples

so you need

http://localhost:8080/manager/reload?path=/xtb

Mark


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



Manager error 'FAIL - Invalid context path null was specified'

2005-09-03 Thread Andy

Hi All,

I'm trying to configure the manager application with virtual
hosts.

When I request a reload like this -

http://testxtb.example.com/manager/reload?xtb

I get this response-

FAIL - Invalid context path null was specified

However according to this page -

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html

This is a valid syntax, as 'xtb' is my web application name in the
webapps directory - my web application works fine btw, and so does the
manager's list command.

I can only think I haven't understood something correctly, and my
configuration is somehow wrong.

It would be great if somebody could tell me what's wrong so I don't
spend an entire weekend on this. My config follows -

$CATALINA_HOME/conf/server.xml (chopped)

Engine name=Catalina defaultHost=testxtb.example.com

Host name=testxtb.example.com appBase=C:\Program Files\Apache
Software Foundation\Tomcat 5.5\webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false

... chopped ...

/Host

/Engine

$CATALINA_HOME/conf/Catalina/testxtb.example.com/context.xml.default


Context docBase=xtb
 privileged=true antiResourceLocking=false
antiJARLocking=false

/Context


$CATALINA_HOME/conf/Catalina/testxtb.example.com/manager.xml
-

Context docBase=${catalina.home}/server/webapps/manager
 privileged=true antiResourceLocking=false
antiJARLocking=false

  !-- Link to the user database we will get roles from --
  ResourceLink name=users global=UserDatabase
type=org.apache.catalina.UserDatabase/

/Context


$CATALINA_HOME/webapps/xtb/
--

Web application files under this directory - this is why
reload?xtb should work.


Thanks,

Andy.





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



Re: How to specify Tomcat error encoding?

2005-09-02 Thread Volker Krebs
Hi there,

Hiroshi Iwatani wrote:
 Our environment is LANG=ja_JP.UTF-8 on Linux Fedora Core 3.
 
 My question is: how could we have Tomcat display correct Japanese error
 message when JSP java code has errors for java compiler et al?
 
 Thanks in advance.
 
We have the same problem.

IMO the encoding form
org.apache.coyote.Constants.DEFAULT_CHARACTER_ENCODING should be used.
Which we haved patched that it is UTF-8.
But it doesent work for us as well.

Can anybody else help ?

Volker


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



JK 1.2.14.1 SIG BUS Error on Solaris 9

2005-09-02 Thread Guernsey, Byron \(GE Consumer Industrial\)

I tried to upgrade our JK modules from 1.2.12 to 1.2.14.1 and now every
Apache process crashes while processing a request with:

[Fri Sep 02 14:23:54 2005] [notice] child pid 11079 exit signal Bus
error (10)

For every request in the logs.

The config works fine with JK 1.2.12 (I can swap it in and things work)
and looks like:

==
httpd.conf:
==
JkShmSize 60
JkShmFile logs/jk1.shm
JkWorkersFile conf/workers.properties
JkMountFile conf/uriworkermap.properties
JkLogFile logs/mod_jk_log
JkLogLevelinfo
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkRequestLogFormat %w %V:%p%U%q %s %T

Location /jkstatus/
JkMount jkstatus
Order deny,allow
Deny from all
Allow from 127.
/Location

==
workers.properties:
==
ps=/
worker.list=jkstatus,CAMCentral_lb
worker.jkstatus.type=status
worker.CAMCentral_lb.type=lb
worker.CAMCentral_lb.balance_workers=ap1lnx60,ap1lnx61

worker.ap1lnx60.type=ajp13
worker.ap1lnx60.host=3.130.232.239
worker.ap1lnx60.port=15753

worker.ap1lnx61.type=ajp13
worker.ap1lnx61.host=3.130.233.24
worker.ap1lnx61.port=15753

==
uriworkermap.properties
==
/CAMCentral/*=CAMCentral_lb
/CAMCentral=CAMCentral_lb

Apache version:

Server version: Apache/2.0.52
Server built:   Oct 28 2004 12:24:42
Server's Module Magic Number: 20020903:9
Architecture:   32-bit
Server compiled with
 -D APACHE_MPM_DIR=server/mpm/worker
 -D APR_HAS_MMAP
 -D APR_USE_FCNTL_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT=/usr/local/apache2
 -D SUEXEC_BIN=/usr/local/apache2/bin/suexec
 -D DEFAULT_SCOREBOARD=logs/apache_runtime_status
 -D DEFAULT_ERRORLOG=logs/error_log
 -D AP_TYPES_CONFIG_FILE=conf/mime.types
 -D SERVER_CONFIG_FILE=conf/httpd.conf

What am I missing?  I built jk with configure
--with-apxs=/usr/local/apache2/bin/apxs;make

I've had no problems building/running in the past with mod_jk 1.2.12.  I
thought it must have been something in my config, but apparently not?

Byron




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



RE: JK 1.2.14.1 SIG BUS Error on Solaris 9

2005-09-02 Thread Guernsey, Byron \(GE Consumer Industrial\)
Some addition information- I trussed httpd -X to get this trace:

...
11438:  lwp_cond_wait(0xFEE434E8, 0xFEE434F8, 0xFEE3CD80) (sleeping...)
11438:  accept(3, 0x001EAAF4, 0x001EAB04, 1)= 14
11438:  lwp_sema_wait(0xFE909E60)   = 0
11438:  lwp_sema_post(0xFE909E60)   = 0
11438:  lwp_mutex_lock(0xFEE434F8)  = 0
11438:  lwp_mutex_wakeup(0xFEE434F8)= 0
11438:  lwp_sema_post(0xFE909E60)   = 0
11438:  lwp_sema_wait(0xFE909E60)   = 0
11438:  lwp_mutex_lock(0xFEE434F8)  = 0
11438:  lwp_mutex_wakeup(0xFEE434F8)= 0
11438:  fcntl(14, F_GETFL, 0x)  = 2
11438:  fstat64(14, 0xFE909630) = 0
11438:  getsockopt(14, 65535, 8192, 0xFE909730, 0xFE909728, 44) = 0
11438:  fstat64(14, 0xFE909630) = 0
11438:  getsockopt(14, 65535, 8192, 0xFE909730, 0xFE90972C, 44) = 0
11438:  setsockopt(14, 65535, 8192, 0xFE909730, 4, 44)  = 0
11438:  fcntl(14, F_SETFL, 0x0082)  = 0
11438:  read(14,  G E T   / C A M C e n t.., 8000)= 114
11438:  time()  = 1125691419
11438:  time()  = 1125691419
11438:  brk(0x001FC478) = 0
11438:  brk(0x001FE478) = 0
11438:  brk(0x001FE478) = 0
11438:  brk(0x00200478) = 0
11438:  brk(0x00200478) = 0
11438:  brk(0x00202478) = 0
11438:  brk(0x00202478) = 0
11438:  brk(0x00204478) = 0
11438:  so_socket(2, 2, 0, , 1)   = 15
11438:  setsockopt(15, 6, 1, 0xFE908574, 4, 1)  = 0
11438:  setsockopt(15, 65535, 128, 0xFE908578, 8, 1)= 0
11438:  connect(15, 0x000F6CB0, 16, 1)  = 0
11438:  fcntl(15, F_GETFL, 0x)  = 2
11438:  fstat64(15, 0xFE908290) = 0
11438:  getsockopt(15, 65535, 8192, 0xFE908390, 0xFE908388, 0) = 0
11438:  fstat64(15, 0xFE908290) = 0
11438:  getsockopt(15, 65535, 8192, 0xFE908390, 0xFE90838C, 0) = 0
11438:  setsockopt(15, 65535, 8192, 0xFE908390, 4, 0)   = 0
11438:  fcntl(15, F_SETFL, 0x0002)  = 0
11438:  write(15, 12 4\0AD0202\0\b H T T P.., 177)= 177
11438:  read(15,  A B\0A4, 4) = 4
11438:  read(15, 04\0C8\0\0\0\003\0\n S e.., 164) = 164
11438:  read(15,  A B\0D7, 4) = 4
11438:  read(15, 03\0D3\r\n\r\n\r\n  h t.., 215) = 215
11438:  brk(0x00204478) = 0
11438:  brk(0x00206478) = 0
11438:  read(15,  A B\002, 4) = 4
11438:  read(15, 0501, 2) = 2
11438:  brk(0x00206478) = 0
11438:  brk(0x00208478) = 0
11438:  brk(0x00208478) = 0
11438:  brk(0x0020A478) = 0
11438:  writev(14, 0xFE907E38, 2)   = 583
11438:  Incurred fault #5, FLTACCESS  %pc = 0xFDFC4208
11438:siginfo: SIGBUS BUS_ADRALN addr=0xFE0E0234
11438:  Received signal #10, SIGBUS [default]
11438:siginfo: SIGBUS BUS_ADRALN addr=0xFE0E0234
11438:  *** process killed ***
 
I hope I don't have to build a debug version of apache/mod_jk and gdb it
to find this issue. 

Help?

Byron

-Original Message-
From: Guernsey, Byron (GE Consumer  Industrial) 
Sent: Friday, September 02, 2005 4:00 PM
To: Tomcat Users List
Subject: JK 1.2.14.1 SIG BUS Error on Solaris 9


I tried to upgrade our JK modules from 1.2.12 to 1.2.14.1 and now every
Apache process crashes while processing a request with:

[Fri Sep 02 14:23:54 2005] [notice] child pid 11079 exit signal Bus
error (10)

For every request in the logs.

The config works fine with JK 1.2.12 (I can swap it in and things work)
and looks like:

==
httpd.conf:
==
JkShmSize 60
JkShmFile logs/jk1.shm
JkWorkersFile conf/workers.properties
JkMountFile conf/uriworkermap.properties
JkLogFile logs/mod_jk_log
JkLogLevelinfo
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkRequestLogFormat %w %V:%p%U%q %s %T

Location /jkstatus/
JkMount jkstatus
Order deny,allow
Deny from all
Allow from 127.
/Location

==
workers.properties:
==
ps=/
worker.list=jkstatus,CAMCentral_lb
worker.jkstatus.type=status
worker.CAMCentral_lb.type=lb
worker.CAMCentral_lb.balance_workers=ap1lnx60,ap1lnx61

worker.ap1lnx60.type=ajp13
worker.ap1lnx60.host

RE: JK 1.2.14.1 SIG BUS Error on Solaris 9

2005-09-02 Thread Guernsey, Byron \(GE Consumer Industrial\)
I apoligize for adding to this, but I'm hoping to jar someones memory.
I gdb'ed the process now and the BUS error occurs in:

Starting program: /usr/local/apache2/bin/httpd -X -f
/opt/GEinet/webconfigs/ap_i1/conf/httpd.conf -DMOD_JK -DCGI
[New LWP2]
[New LWP3]
[New LWP4]
[New LWP5]
[New LWP6]
[New LWP7]

Program received signal SIGBUS, Bus error.
[Switching to LWP3]

Program received signal SIGBUS, Bus error.
0xfdfb4208 in service (e=0xf7c90, s=0xfe501848, l=0x118b40,
is_error=0xfe500840) at jk_lb_worker.c:605
jk_lb_worker.c:605: No such file or directory.
(gdb) bt
#0  0xfdfb4208 in service (e=0xf7c90, s=0xfe501848, l=0x118b40,
is_error=0xfe500840) at jk_lb_worker.c:605
#1  0xfdfa9a7c in jk_handler (r=0x1feac0) at mod_jk.c:1889
#2  0x33f8c in ap_run_handler (r=0x1feac0) at config.c:151
#3  0x34588 in ap_invoke_handler (r=0x1feac0) at config.c:363
#4  0x2f82c in ap_process_request (r=0x1feac0) at http_request.c:246
#5  0x2aab4 in ap_process_http_connection (c=0x1f2b60) at
http_core.c:250
#6  0x3e660 in ap_run_process_connection (c=0x1f2b60) at connection.c:42
#7  0x3e95c in ap_process_connection (c=0x1f2b60, csd=0x1f2a90) at
connection.c:175
#8  0x30a5c in process_socket (p=0x1f2a58, sock=0x1f2a90,
my_child_num=0, my_thread_num=4, bucket_alloc=0x1fca80) at worker.c:520
#9  0x310f4 in worker_thread (thd=0x120c10, dummy=0x1f2a58) at
worker.c:834
#10 0xff1144c4 in dummy_worker (opaque=0x74000) at thread.c:88

And jk_lb_worker.c:605 looks like:

if (rec  rec != prec) {
int is_service_error = JK_HTTP_OK;
int service_stat = JK_FALSE;
jk_endpoint_t *end = NULL;

s-jvm_route = rec-r;
rc = rec-w-get_endpoint(rec-w, end, l);

if (JK_IS_DEBUG_LEVEL(l))
jk_log(l, JK_LOG_DEBUG,
   service worker=%s jvm_route=%s,
   rec-s-name, s-jvm_route);
rec-s-elected++;
if (rc  end) {
/* Reset endpoint read and write sizes for
 * this request.
 */
end-rd = end-wr = 0;
/* Increment the number of workers serving request
*/
p-worker-s-busy++;
if (p-worker-s-busy  p-worker-s-max_busy)
p-worker-s-max_busy = p-worker-s-busy;
rec-s-busy++;
if (rec-s-busy  rec-s-max_busy)
rec-s-max_busy = rec-s-busy;
service_stat = end-service(end, s, l,
is_service_error);
/* Update partial reads and writes if any */
605:rec-s-readed += end-rd;
rec-s-transferred += end-wr;
end-done(end, l);

From the debugger:

 (gdb) print *end
$6 = {rd = 393, wr = 177, endpoint_private = 0x14e990, service =
0xfdfc1c34 ajp_service, done = 0xfdfc309c ajp_done}

(gdb) print *rec-s
$5 = {id = 2, busy = 1, max_busy = 1, name = ap1lnx60, '\000' repeats
55 times, domain = '\000' repeats 63 times, 
  redirect = '\000' repeats 63 times, is_disabled = 0, is_stopped = 0,
is_busy = 0, lb_factor = 1, lb_value = 0, 
  in_error_state = 0, in_recovering = 0, sticky_session = 0,
sticky_session_force = 0, recover_wait_time = 0, retries = 0, 
  error_time = 0, readed = 0, transferred = 0, elected = 1, errors = 0}

(gdb) print *s
$7 = {ws_private = 0xfe5018e8, pool = 0xfe5018e8, method = 0x1ff838
GET, protocol = 0x1ff888 HTTP/1.0, 
  req_uri = 0x1ff870 /CMSCentral/Dispatcher, remote_addr = 0x1f2ee0
64.37.211.156, remote_host = 0x0, remote_user = 0x0, 
  auth_type = 0x0, query_string = 0x0, server_name = 0xf5030 hostname,
server_port = 80, 
  server_software = 0x118cf8 Apache/2.0.52 (Unix) mod_jk/1.2.14 DAV/2,
content_length = 0, is_chunked = 0, no_more_chunks = 0, 
  content_read = 0, is_ssl = 0, ssl_cert = 0x0, ssl_cert_len = 0,
ssl_cipher = 0x0, ssl_session = 0x0, ssl_key_size = -1, 
  headers_names = 0x200248, headers_values = 0x200258, num_headers = 4,
attributes_names = 0x0, attributes_values = 0x0, 
  num_attributes = 0, jvm_route = 0xfe0d0140 ap1lnx60, secret = 0x0,
reco_buf = 0xfe500848, reco_status = 1, retries = 3, 
  flush_packets = 0, uw_map = 0x14a818, start_response = 0xfdfa754c
ws_start_response, read = 0xfdfa76e4 ws_read, 
  write = 0xfdfa77ac ws_write, flush = 0xfdfa777c ws_flush}

Byron

-Original Message-
From: Guernsey, Byron (GE Consumer  Industrial) 
Sent: Friday, September 02, 2005 4:15 PM
To: Tomcat Users List
Subject: RE: JK 1.2.14.1 SIG BUS Error on Solaris 9

Some addition information- I trussed httpd -X to get this trace:

...
11438:  lwp_cond_wait(0xFEE434E8, 0xFEE434F8, 0xFEE3CD80) (sleeping...)
11438:  accept(3, 0x001EAAF4, 0x001EAB04, 1)= 14
11438:  lwp_sema_wait(0xFE909E60)   = 0
11438:  lwp_sema_post

How to specify Tomcat error encoding?

2005-09-01 Thread Hiroshi Iwatani
Our environment is LANG=ja_JP.UTF-8 on Linux Fedora Core 3.

--below are copies from browser screen--

Tomcat error output for JSP page is garbled for Japanese:
[Tomcat(5.0.19) with javac]--compiler error mesg part quoted:
/usr/jakarta-tomcat-5.0.19/work/Catalina/localhost/testapp/org/apache/jsp/index_jsp.java:45:
??
:  sendRedirect(java.lang.String)
??: javax.servlet.http.HttpServletRequest ? ???
 request.sendRedirect(/testapp/redir.html);
^

while Resin(3.0.14) displays correct Japanese for compiler error mesg:
[Resin with javac]
jsp.java:45: シンボルを見つけられません。
シンボル: メソッド sendRedirect(java.lang.String)
場所: javax.servlet.http.HttpServletRequest の インタフェース
 request.sendRedirect(/testapp/redir.html);
^

[Resin with jikes]--jikis doesn't emit Japanese error mesg, that's OK.
/index.jsp:6: Semantic Error: No accessible method with signature
sendRedirect(java.lang.String)
was found in type javax.servlet.http.HttpServletRequest.

My question is: how could we have Tomcat display correct Japanese error
message when JSP java code has errors for java compiler et al?

Thanks in advance.

-- 
Hiroshi Iwatani

*stop cruelty* Annual number of institutionally euthanized cats and dogs
including kittens and puppies: US 5 million, JP 500 thousand. How about
your country? *for our better karma*
-

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



RE: How to specify Tomcat error encoding?

2005-09-01 Thread Hildegard Bronkhorst XH (ZA/ESA)
I never asked anybody to subscribe me to your web site / service.  Please 
delete my details IMMEDIATELY!

 Hildegard Bronkhorst
 Senior Facilities Manager
 Kagiso Integrated Services (Pty) Ltd.
 Tel: +27 11 844 2015
 Fax: +27 11 844 2130
 Mobile: +27 83 212 4303
 mailto:[EMAIL PROTECTED] 
 
 E-mail disclaimer
 
 This communication is confidential and intended solely for the addressee(s).  
 Any unauthorized review; use, disclosure, or distribution is prohibited.  If 
 you believe this message has been sent to you in error, please notify the 
 sender by replying to this transmission and delete the message without 
 disclosing it.  Thank you.  E-mail including attachments is susceptible to 
 data corruption, interruption, unauthorized amendment, tampering and viruses, 
 and we only send and receive e-mails on the basis that we are not liable for 
 any such corruption, interception, amendment, tampering or viruses or any 
 consequences thereof.
 


-Original Message-
From: Hiroshi Iwatani [mailto:[EMAIL PROTECTED]
Sent: 01 September 2005 05:24
To: Tomcat Users List
Subject: How to specify Tomcat error encoding?


Our environment is LANG=ja_JP.UTF-8 on Linux Fedora Core 3.

--below are copies from browser screen--

Tomcat error output for JSP page is garbled for Japanese:
[Tomcat(5.0.19) with javac]--compiler error mesg part quoted:
/usr/jakarta-tomcat-5.0.19/work/Catalina/localhost/testapp/org/apache/jsp/index_jsp.java:45:
??
:  sendRedirect(java.lang.String)
??: javax.servlet.http.HttpServletRequest ? ???
 request.sendRedirect(/testapp/redir.html);
^

while Resin(3.0.14) displays correct Japanese for compiler error mesg:
[Resin with javac]
jsp.java:45: シンボルを見つけられません。
シンボル: メソッド sendRedirect(java.lang.String)
場所: javax.servlet.http.HttpServletRequest の インタフェース
 request.sendRedirect(/testapp/redir.html);
^

[Resin with jikes]--jikis doesn't emit Japanese error mesg, that's OK.
/index.jsp:6: Semantic Error: No accessible method with signature
sendRedirect(java.lang.String)
was found in type javax.servlet.http.HttpServletRequest.

My question is: how could we have Tomcat display correct Japanese error
message when JSP java code has errors for java compiler et al?

Thanks in advance.

-- 
Hiroshi Iwatani

*stop cruelty* Annual number of institutionally euthanized cats and dogs
including kittens and puppies: US 5 million, JP 500 thousand. How about
your country? *for our better karma*
-

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


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



RE: How to specify Tomcat error encoding?

2005-09-01 Thread Hildegard Bronkhorst XH (ZA/ESA)
I  never asked anybody to subscribe me to your web site / service.  Please 
delete my details IMMEDIATELY!

 Hildegard Bronkhorst
 Senior Facilities Manager
 Kagiso Integrated Services (Pty) Ltd.
 Tel: +27 11 844 2015
 Fax: +27 11 844 2130
 Mobile: +27 83 212 4303
 mailto:[EMAIL PROTECTED] 
 
 E-mail disclaimer
 
 This communication is confidential and intended solely for the addressee(s).  
 Any unauthorized review; use, disclosure, or distribution is prohibited.  If 
 you believe this message has been sent to you in error, please notify the 
 sender by replying to this transmission and delete the message without 
 disclosing it.  Thank you.  E-mail including attachments is susceptible to 
 data corruption, interruption, unauthorized amendment, tampering and viruses, 
 and we only send and receive e-mails on the basis that we are not liable for 
 any such corruption, interception, amendment, tampering or viruses or any 
 consequences thereof.
 


-Original Message-
From: Hildegard Bronkhorst XH (ZA/ESA) [mailto:[EMAIL PROTECTED]
Sent: 01 September 2005 08:59
To: Tomcat Users List
Subject: RE: How to specify Tomcat error encoding?


I never asked anybody to subscribe me to your web site / service.  Please 
delete my details IMMEDIATELY!

 Hildegard Bronkhorst
 Senior Facilities Manager
 Kagiso Integrated Services (Pty) Ltd.
 Tel: +27 11 844 2015
 Fax: +27 11 844 2130
 Mobile: +27 83 212 4303
 mailto:[EMAIL PROTECTED] 
 
 E-mail disclaimer
 
 This communication is confidential and intended solely for the addressee(s).  
 Any unauthorized review; use, disclosure, or distribution is prohibited.  If 
 you believe this message has been sent to you in error, please notify the 
 sender by replying to this transmission and delete the message without 
 disclosing it.  Thank you.  E-mail including attachments is susceptible to 
 data corruption, interruption, unauthorized amendment, tampering and viruses, 
 and we only send and receive e-mails on the basis that we are not liable for 
 any such corruption, interception, amendment, tampering or viruses or any 
 consequences thereof.
 


-Original Message-
From: Hiroshi Iwatani [mailto:[EMAIL PROTECTED]
Sent: 01 September 2005 05:24
To: Tomcat Users List
Subject: How to specify Tomcat error encoding?


Our environment is LANG=ja_JP.UTF-8 on Linux Fedora Core 3.

--below are copies from browser screen--

Tomcat error output for JSP page is garbled for Japanese:
[Tomcat(5.0.19) with javac]--compiler error mesg part quoted:
/usr/jakarta-tomcat-5.0.19/work/Catalina/localhost/testapp/org/apache/jsp/index_jsp.java:45:
??
:  sendRedirect(java.lang.String)
??: javax.servlet.http.HttpServletRequest ? ???
 request.sendRedirect(/testapp/redir.html);
^

while Resin(3.0.14) displays correct Japanese for compiler error mesg:
[Resin with javac]
jsp.java:45: シンボルを見つけられません。
シンボル: メソッド sendRedirect(java.lang.String)
場所: javax.servlet.http.HttpServletRequest の インタフェース
 request.sendRedirect(/testapp/redir.html);
^

[Resin with jikes]--jikis doesn't emit Japanese error mesg, that's OK.
/index.jsp:6: Semantic Error: No accessible method with signature
sendRedirect(java.lang.String)
was found in type javax.servlet.http.HttpServletRequest.

My question is: how could we have Tomcat display correct Japanese error
message when JSP java code has errors for java compiler et al?

Thanks in advance.

-- 
Hiroshi Iwatani

*stop cruelty* Annual number of institutionally euthanized cats and dogs
including kittens and puppies: US 5 million, JP 500 thousand. How about
your country? *for our better karma*
-

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


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


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



RE: How to specify Tomcat error encoding?

2005-09-01 Thread pacea
Send an email to this link to unsubscribe . . .
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 I  never asked anybody to subscribe me to your web site / service.  Please 
 delete my details IMMEDIATELY!
 
  Hildegard Bronkhorst
  Senior Facilities Manager
  Kagiso Integrated Services (Pty) Ltd.
  Tel: +27 11 844 2015
  Fax: +27 11 844 2130
  Mobile: +27 83 212 4303
  mailto:[EMAIL PROTECTED] 
  
  E-mail disclaimer
  
  This communication is confidential and intended solely for the 
  addressee(s).  
 Any unauthorized review; use, disclosure, or distribution is prohibited.  If 
 you 
 believe this message has been sent to you in error, please notify the sender 
 by 
 replying to this transmission and delete the message without disclosing it.  
 Thank you.  E-mail including attachments is susceptible to data corruption, 
 interruption, unauthorized amendment, tampering and viruses, and we only send 
 and receive e-mails on the basis that we are not liable for any such 
 corruption, 
 interception, amendment, tampering or viruses or any consequences thereof.
  
 
 
 -Original Message-
 From: Hildegard Bronkhorst XH (ZA/ESA) 
 [mailto:[EMAIL PROTECTED]
 Sent: 01 September 2005 08:59
 To: Tomcat Users List
 Subject: RE: How to specify Tomcat error encoding?
 
 
 I never asked anybody to subscribe me to your web site / service.  Please 
 delete 
 my details IMMEDIATELY!
 
  Hildegard Bronkhorst
  Senior Facilities Manager
  Kagiso Integrated Services (Pty) Ltd.
  Tel: +27 11 844 2015
  Fax: +27 11 844 2130
  Mobile: +27 83 212 4303
  mailto:[EMAIL PROTECTED] 
  
  E-mail disclaimer
  
  This communication is confidential and intended solely for the 
  addressee(s).  
 Any unauthorized review; use, disclosure, or distribution is prohibited.  If 
 you 
 believe this message has been sent to you in error, please notify the sender 
 by 
 replying to this transmission and delete the message without disclosing it.  
 Thank you.  E-mail including attachments is susceptible to data corruption, 
 interruption, unauthorized amendment, tampering and viruses, and we only send 
 and receive e-mails on the basis that we are not liable for any such 
 corruption, 
 interception, amendment, tampering or viruses or any consequences thereof.
  
 
 
 -Original Message-
 From: Hiroshi Iwatani [mailto:[EMAIL PROTECTED]
 Sent: 01 September 2005 05:24
 To: Tomcat Users List
 Subject: How to specify Tomcat error encoding?
 
 
 Our environment is LANG=ja_JP.UTF-8 on Linux Fedora Core 3.
 
 --below are copies from browser screen--
 
 Tomcat error output for JSP page is garbled for Japanese:
 [Tomcat(5.0.19) with javac]--compiler error mesg part quoted:
 /usr/jakarta-tomcat-5.0.19/work/Catalina/localhost/testapp/org/apache/jsp/index_
 jsp.java:45:
 ??
 :  sendRedirect(java.lang.String)
 ??: javax.servlet.http.HttpServletRequest ? ???
  request.sendRedirect(/testapp/redir.html);
 ^
 
 while Resin(3.0.14) displays correct Japanese for compiler error mesg:
 [Resin with javac]
 jsp.java:45: $B%7%s%\%k$r8+$D$1$i$l$^$;$s!#(J
 $B%7%s%\%k(J: $B%a%=%C%I(J sendRedirect(java.lang.String)
 $Bl=j(J: javax.servlet.http.HttpServletRequest $B$N(J 
 $B%$%s%?%U%'!%9(J
  request.sendRedirect(/testapp/redir.html);
 ^
 
 [Resin with jikes]--jikis doesn't emit Japanese error mesg, that's OK.
 /index.jsp:6: Semantic Error: No accessible method with signature
 sendRedirect(java.lang.String)
 was found in type javax.servlet.http.HttpServletRequest.
 
 My question is: how could we have Tomcat display correct Japanese error
 message when JSP java code has errors for java compiler et al?
 
 Thanks in advance.
 
 -- 
 Hiroshi Iwatani
 
 *stop cruelty* Annual number of institutionally euthanized cats and dogs
 including kittens and puppies: US 5 million, JP 500 thousand. How about
 your country? *for our better karma*
 -
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: No Host matches server name localhost error

2005-08-31 Thread Thomas Corte

Hello,

Parsons Technical Services wrote:

Now as for the issue, I am not sure that it is a bug but just a feature. 
Unless you can show where it does not meet the servlet specs then it 
will not be considered a bug.


Ok, and since the issue is actually documented, it cannot be called a 
bug. Understood; no offense intended :-)


I am not sure why this is causing such a problem. The only time a 
default context will ever be used is if the browser is using an IP 
instead of a URL or if you have a DNS entry that points to your IP with 
no matching application.


So unless you are using only the IP or are directing multiple unmatched 
URLs at the server there is no issue. If you are, then knowing what the 
war is about is only a small piece of the puzzle that exist in the setup.


I may really be missing something here, but my impression was that a 
host's default web application is used whenever a URL is requested that 
does not match any other context's path prefix within the host - 
regardless of the access being made by IP address or by domain name.
To me, this means that I *need* a default context if I want to see the 
welcome page of my foo web application (within the host named 
www.foodomain.com) at http://www.foodomain.com; and not at 
http://www.foodomain.com/foo;, right?


If this is right, then I'd have to tamper with server.xml or name my 
.war file ROOT.war. I can live with the latter, but it feels somewhat 
unclean. IMO, the same applies to setting up a minimal ROOT.war that 
simply forwards to another context, since this will also cause an 
unnecessary /foo prefix in every subsequent request URL.


--
Thomas Corte
[EMAIL PROTECTED]

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



RE: Page cannot be displayed error

2005-08-31 Thread Barnett, Brian W.
I think we solved this one. Ever heard of MTU? Well, I hadn't, but a bright
network guy had and he suggested we adjust it on the boxes that were
experiencing the problem to see if that would fix it.

Here's a link to a definition of MTU -
http://www.webopedia.com/TERM/M/MTU.html

Using a little utility program called DRTCP021.exe (Dr. TCP), we adjusted
the MTU on our NIC to 1450, and it fixed the problem. I believe it can be
adjusted at the network level as well so that you don't have to adjust each
individual pc.



-Original Message-
From: Barnett, Brian W. 
Sent: Monday, August 29, 2005 3:23 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: Page cannot be displayed error


We are experiencing a strange problem that we can't seem to figure out.

We have a Struts web app running on Tomcat 5.0.28/Apache web server. All the
computers of a particular client are getting a Page cannot be displayed
error when they click a certain button. They can then go home and access it
fine from their home computer, without the error. They can also access a
number of other pages on the site. Other clients are not reporting the
problem.

Here on our network at work, we all experience the same problem when
clicking that button, except one computer that works fine. The button
essentially executes some db queries to populate a choice box on the page.

It seems that we've isolated it to a network or ip type issue but have no
idea what to check for. If anyone has any suggestions, we'd love to hear
them.

TIA,
Brian Barnett




This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


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



JNDI resource error

2005-08-31 Thread BATCHELOR, SCOTT \(CONTRACTOR\)
Can anyone give me some insite on this???

I am getting this error:

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 
'' for connect URL 'null'
at 
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
at 
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
at org.ncaa.TES.Servlets.TESControllerServlet.init(TESControllerServlet.java:46)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.velocity.servlet.VelocityServlet.init(VelocityServlet.java:193)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Unknown Source) 

Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(Unknown Source)
at 
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:773)

And here is my server.xml:
?xml version='1.0' encoding='utf-8'?
Server
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/
  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/
Resource auth=Container description=User database that can be updated 
and saved name=UserDatabase type=org.apache.catalina.UserDatabase/
Resource auth=Container name=jdbc/iss_dev type=javax.sql.DataSource/
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
ResourceParams name=jdbc/iss_dev
  parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
nameurl/name
valuejdbc:oracle:thin:@hostname:1521:database/value
  /parameter
  parameter
nameusername/name
valueuname/value
  /parameter
  parameter
namepassword/name
valuepword/value
  /parameter
  parameter
namevalidationQuery/name
valueselect sysdate from dual/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
  parameter
namemaxActive/name
value20/value
  /parameter
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
/ResourceParams
  /GlobalNamingResources
  Service name=Catalina
Connector acceptCount=100 connectionTimeout=2 
disableUploadTimeout=true port=8080 redirectPort=8443 
maxSpareThreads=75 maxThreads=150 minSpareThreads=25
/Connector
Connector port=8009 protocol=AJP/1.3 
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler 
redirectPort=8443
/Connector
Engine defaultHost=localhost name=Catalina
  Host appBase=webapps name=localhost
Logger className

Re: JNDI resource error

2005-08-31 Thread Brian Cook


That error means that Tomcat could not find the JNDI resource requested 
in either the web.xml, and or context.xml files.  What do they look like?




BATCHELOR, SCOTT (CONTRACTOR) wrote:

Can anyone give me some insite on this???

I am getting this error:

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 
'' for connect URL 'null'
at 
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
at 
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
at org.ncaa.TES.Servlets.TESControllerServlet.init(TESControllerServlet.java:46)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.velocity.servlet.VelocityServlet.init(VelocityServlet.java:193)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Unknown Source) 


Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(Unknown Source)
at 
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:773)

And here is my server.xml:
?xml version='1.0' encoding='utf-8'?
Server
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/
  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/
Resource auth=Container description=User database that can be updated and saved 
name=UserDatabase type=org.apache.catalina.UserDatabase/
Resource auth=Container name=jdbc/iss_dev type=javax.sql.DataSource/
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
ResourceParams name=jdbc/iss_dev
  parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
nameurl/name
valuejdbc:oracle:thin:@hostname:1521:database/value
  /parameter
  parameter
nameusername/name
valueuname/value
  /parameter
  parameter
namepassword/name
valuepword/value
  /parameter
  parameter
namevalidationQuery/name
valueselect sysdate from dual/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
  parameter
namemaxActive/name
value20/value
  /parameter
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
/ResourceParams

  /GlobalNamingResources
  Service name=Catalina
Connector acceptCount=100 connectionTimeout=2 disableUploadTimeout=true port=8080 
redirectPort=8443 maxSpareThreads=75 maxThreads=150 minSpareThreads=25
/Connector
Connector port=8009 protocol=AJP/1.3

RE: JNDI resource error

2005-08-31 Thread BATCHELOR, SCOTT \(CONTRACTOR\)
Here is my web.xml...Thank you for your prompt response.

?xml version = '1.0' encoding = 'windows-1252'?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
descriptionweb.xml file for TEST Application/description
servlet
servlet-namecontroller/servlet-name

servlet-classorg.ncaa.TES.Servlets.TESControllerServlet/servlet-class
init-param
param-nameconfig/param-name
param-value/WEB-INF/app.xml/param-value
/init-param
init-param
param-nameproperties/param-name
param-value/velocity.properties/param-value
/init-param
init-param
param-namemail-session/param-name
param-valuemail/Session/param-value
/init-param
init-param
param-namedatasource/param-name
param-valuejdbc/iss_dev/param-value
/init-param
/servlet
servlet-mapping
servlet-namecontroller/servlet-name
url-pattern/exec/*/url-pattern
/servlet-mapping
session-config
session-timeout35/session-timeout
/session-config
mime-mapping
extensionhtml/extension
mime-typetext/html/mime-type
/mime-mapping
mime-mapping
extensiontxt/extension
mime-typetext/plain/mime-type
/mime-mapping
mime-mapping
extensionxml/extension
mime-typetext/xml/mime-type
/mime-mapping
mime-mapping
extensionpdf/extension
mime-typeapplication/pdf/mime-type
/mime-mapping
resource-ref
descriptionOracle Datasource example/description
res-ref-namejdbc/iss_dev/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref


/web-app

==
Scott Batchelor 
Web Services Administrator  
[EMAIL PROTECTED]   
(317)510-7389   



-Original Message-
From: Brian Cook [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 31, 2005 3:14 PM
To: Tomcat Users List
Subject: Re: JNDI resource error



That error means that Tomcat could not find the JNDI resource requested 
in either the web.xml, and or context.xml files.  What do they look like?



BATCHELOR, SCOTT (CONTRACTOR) wrote:
 Can anyone give me some insite on this???
 
 I am getting this error:
 
 org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of 
 class '' for connect URL 'null'
 at 
 org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
 at 
 org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
 at 
 org.ncaa.TES.Servlets.TESControllerServlet.init(TESControllerServlet.java:46)
 at javax.servlet.GenericServlet.init(GenericServlet.java:211)
 at org.apache.velocity.servlet.VelocityServlet.init(VelocityServlet.java:193)
 at 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
 at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687)
 at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144)
 at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at 
 org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
 at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
 at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
 at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
 at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
 at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
 at 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
 at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
 at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
 at java.lang.Thread.run(Unknown Source) 
 
 Caused

RE: JNDI resource error

2005-08-31 Thread Sunjay Gunda
Hi Scott,
  Try doing this. Create a new file under \Tomcat
5.0\conf\Catalina\localhost\xyz.xml where xyz is the
name of your application under webapps (by default,
you will be having admin, balancer, etc). Content
of the file should like this...

?xml version='1.0' encoding='utf-8'?
Context crossContext=true debug=5
displayName=XYZ Application docBase=xyz
path=/xyz reloadable=true
workDir=work\Catalina\localhost\xyz
  Logger
className=org.apache.catalina.logger.FileLogger
prefix=localhost_DBConnector_log. suffix=.txt
timestamp=true/
  Resource auth=Container name=jdbc/DBCPool
type=javax.sql.DataSource/
  ResourceParams name=jdbc/DBCPool
parameter
  namefactory/name
 
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
  nameurl/name
 
valuejdbc:mysql://localhost:3306/YourDBName?autoReconnect=true/value
/parameter
parameter
  namepassword/name
  valuePASSWORD/value
/parameter
parameter
  namemaxWait/name
  value1/value
/parameter
parameter
  namemaxActive/name
  value100/value
/parameter
parameter
  namedriverClassName/name
  valuecom.mysql.jdbc.Driver/value
/parameter
parameter
  nameusername/name
  valueUSERNAME/value
/parameter
parameter
  namemaxIdle/name
  value30/value
/parameter
  /ResourceParams
/Context


Try doing this... It doesn't make sense having the
samething at two different places, but thats how it
worked for me. Let me know if you get a better
solution.

Thanks
Sunjay




--- BATCHELOR, SCOTT (CONTRACTOR)
[EMAIL PROTECTED] wrote:

 Here is my web.xml...Thank you for your prompt
 response.
 
 ?xml version = '1.0' encoding = 'windows-1252'?
 !DOCTYPE web-app PUBLIC -//Sun Microsystems,
 Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
 web-app
 descriptionweb.xml file for TEST
 Application/description
 servlet
 servlet-namecontroller/servlet-name


servlet-classorg.ncaa.TES.Servlets.TESControllerServlet/servlet-class
 init-param
 param-nameconfig/param-name

 param-value/WEB-INF/app.xml/param-value
 /init-param
 init-param
 param-nameproperties/param-name

 param-value/velocity.properties/param-value
 /init-param
 init-param
 param-namemail-session/param-name
 param-valuemail/Session/param-value
 /init-param
 init-param
 param-namedatasource/param-name
 param-valuejdbc/iss_dev/param-value
 /init-param
 /servlet
 servlet-mapping
 servlet-namecontroller/servlet-name
 url-pattern/exec/*/url-pattern
 /servlet-mapping
 session-config
 session-timeout35/session-timeout
 /session-config
 mime-mapping
 extensionhtml/extension
 mime-typetext/html/mime-type
 /mime-mapping
 mime-mapping
 extensiontxt/extension
 mime-typetext/plain/mime-type
 /mime-mapping
 mime-mapping
 extensionxml/extension
 mime-typetext/xml/mime-type
 /mime-mapping
 mime-mapping
 extensionpdf/extension
 mime-typeapplication/pdf/mime-type
 /mime-mapping
 resource-ref
 descriptionOracle Datasource
 example/description
 res-ref-namejdbc/iss_dev/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref
 
 
 /web-app
 
 ==
 Scott Batchelor   
 Web Services Administrator
 [EMAIL PROTECTED] 
 (317)510-7389 
 
 
 
 -Original Message-
 From: Brian Cook [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 31, 2005 3:14 PM
 To: Tomcat Users List
 Subject: Re: JNDI resource error
 
 
 
 That error means that Tomcat could not find the JNDI
 resource requested 
 in either the web.xml, and or context.xml files. 
 What do they look like?
 
 
 
 BATCHELOR, SCOTT (CONTRACTOR) wrote:
  Can anyone give me some insite on this???
  
  I am getting this error:
  
  org.apache.commons.dbcp.SQLNestedException: Cannot
 create JDBC driver of class '' for connect URL
 'null'
  at

org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
  at

org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
  at

org.ncaa.TES.Servlets.TESControllerServlet.init(TESControllerServlet.java:46)
  at

javax.servlet.GenericServlet.init(GenericServlet.java:211)
  at

org.apache.velocity.servlet.VelocityServlet.init(VelocityServlet.java:193)
  at

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
  at

org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687)
  at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144)
  at

org.apache.catalina.core.StandardValveContext.invokeNext

Error starting modern compiler, (Unknown Source) errors

2005-08-30 Thread rueh hänä
Hi folks!

My Tomcat server seems to be working. I can access the websites without any
problems. But i have suspicious entries the logs for each jsp site. 
I think, there is one problem, on which the remaining problems depend, but i
dont know it really. What could be the reason of this problem?
I doublechecked the permissions, they are ok.

I run  tomcat5-5.0.30-5jpp_6fc and apache 2.0.54 on a Fedora Core 4 Server.
They work together. 

Here is the log entry. it doesnt say much to me:

2005-08-29 13:30:44 ApplicationDispatcher[] Servlet.service() for servlet
jsp threw exception
Error starting modern compiler
   at org.apache.tools.ant.taskdefs.compilers.Javac13.execute() (Unknown
Source)
   at org.apache.tools.ant.taskdefs.Javac.compile() (Unknown Source)
   at org.apache.tools.ant.taskdefs.Javac.execute() (Unknown Source)
   at org.apache.jasper.compiler.Compiler.generateClass(java.lang.String[])
(Unknown Source)
   at org.apache.jasper.compiler.Compiler.compile(boolean, boolean) (Unknown
Source)
   at org.apache.jasper.compiler.Compiler.compile(boolean) (Unknown Source)
   at org.apache.jasper.compiler.Compiler.compile() (Unknown Source)
   at org.apache.jasper.JspCompilationContext.compile() (Unknown Source)
   at
org.apache.jasper.servlet.JspServletWrapper.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, boolean) (Unknown Source)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, java.lang.String,
java.lang.Throwable, boolean) (Unknown Source)
   at
org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) (Unknown Source)
   at javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at
org.apache.catalina.core.ApplicationDispatcher.invoke(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at
org.apache.catalina.core.ApplicationDispatcher.doInclude(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at
org.apache.catalina.core.ApplicationDispatcher.include(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at
org.apache.jasper.runtime.JspRuntimeLibrary.include(javax.servlet.ServletRequest,
javax.servlet.ServletResponse, java.lang.String,
javax.servlet.jsp.JspWriter, boolean) (Unknown Source)
   at org.apache.jasper.runtime.PageContextImpl.include(java.lang.String)
(Unknown Source)
   at ch.ten.taglibs.site.PageTag.getPageInfo(java.lang.String,
java.io.File) (Unknown Source)
   at ch.ten.taglibs.site.PageTag.generateTreeByPath(java.lang.String,
java.io.File) (Unknown Source)
   at ch.ten.taglibs.site.PageTag.generateTreeByPath(java.lang.String,
java.io.File) (Unknown Source)
   at ch.ten.taglibs.site.PageTag.doStartTag() (Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
   at java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
(/usr/lib/libgcj.so.6.0.0)
   at org.apache.tools.ant.taskdefs.compilers.Javac13.execute() (Unknown
Source)
   at org.apache.tools.ant.taskdefs.Javac.compile() (Unknown Source)
   at org.apache.tools.ant.taskdefs.Javac.execute() (Unknown Source)
   at org.apache.jasper.compiler.Compiler.generateClass(java.lang.String[])
(Unknown Source)
   at org.apache.jasper.compiler.Compiler.compile(boolean, boolean) (Unknown
Source)
   at org.apache.jasper.compiler.Compiler.compile(boolean) (Unknown Source)
   at org.apache.jasper.compiler.Compiler.compile() (Unknown Source)
   at org.apache.jasper.JspCompilationContext.compile() (Unknown Source)
   at
org.apache.jasper.servlet.JspServletWrapper.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, boolean) (Unknown Source)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, java.lang.String,
java.lang.Throwable, boolean) (Unknown Source)
   at
org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) (Unknown Source)
   at javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at
org.apache.catalina.core.ApplicationDispatcher.invoke

No Host matches server name localhost error

2005-08-30 Thread Brian Moseley


i'm using tomcat 5.5.9 with a single webapp deployed with a context path 
of  and a default host named localhost. when i request the webapp's 
root resource (http://localhost:8080/), i get a 400 error with the 
message No Host matches server name localhost.


as you can see from my very minimal server.xml, i do in fact have a Host 
named localhost and have specified it as the default host for the 
engine. so, i must admit to being confused as to why i'm receiving that 
particular error message. :) i have turned on debug logging to verify 
that the context is being loaded, but i have yet to step through a 
request with a debugger. any ideas?


server.xml:

Server port=8005 shutdown=SHUTDOWN
  Service name=Catalina
Connector port=8080 enableLookups=false/
Engine name=Catalina defaultHost=localhost
  Host name=localhost appBase=webapps autoDeploy=false/
/Engine
  /Service
/Server

context.xml (in conf/Catalina/localhost/):

Context path= docBase=cosmo reloadable=true
  Environment name=cosmo/version value=0.2-4
   type=java.lang.String override=false/
  Environment name=cosmo/serverAdmin value=[EMAIL PROTECTED]
   type=java.lang.String override=false/
  Environment name=cosmo/repository/username
   value=cosmo_repository
   type=java.lang.String override=false/
  Environment name=cosmo/repository/password
   value=
   type=java.lang.String override=false/
  Resource name=jcr/cosmo
type=javax.jcr.Repository

factory=org.apache.jackrabbit.core.jndi.BindableRepositoryFactory
configFilePath=etc/repository.xml
repHomeDir=data/repository/
  Resource name=jdbc/cosmo
type=javax.sql.DataSource
maxActive=5
maxIdle=3
maxWait=1
username=sa
parameter=
driverClassName=org.hsqldb.jdbcDriver
url=jdbc:hsqldb:file:data/db/userdb/
  Resource name=mail/cosmo
type=javax.mail.Session
mail.transport.protocol=smtp/
mail.smtp.host=localhost/
mail.smtps.host=localhost/
mail.smtp.starttls.enable=false/
  Valve className=org.apache.catalina.valves.AccessLogValve
 directory=../logs prefix=access. suffix=.log
 pattern=combined resolveHosts=false/
/Context

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



Re: No Host matches server name localhost error

2005-08-30 Thread Paul Austin
Try renaming the context.xml to ROOT.xml, I normally get the 400 error
if it can't find the context for a particular path. For some reason
Tomcat tends to ignore the path on the context.

Paul

On Tue, 2005-08-30 at 09:50 -0700, Brian Moseley wrote:

 i'm using tomcat 5.5.9 with a single webapp deployed with a context path 
 of  and a default host named localhost. when i request the webapp's 
 root resource (http://localhost:8080/), i get a 400 error with the 
 message No Host matches server name localhost.
 
 as you can see from my very minimal server.xml, i do in fact have a Host 
 named localhost and have specified it as the default host for the 
 engine. so, i must admit to being confused as to why i'm receiving that 
 particular error message. :) i have turned on debug logging to verify 
 that the context is being loaded, but i have yet to step through a 
 request with a debugger. any ideas?
 
 server.xml:
 
 Server port=8005 shutdown=SHUTDOWN
Service name=Catalina
  Connector port=8080 enableLookups=false/
  Engine name=Catalina defaultHost=localhost
Host name=localhost appBase=webapps autoDeploy=false/
  /Engine
/Service
 /Server
 
 context.xml (in conf/Catalina/localhost/):
 
 Context path= docBase=cosmo reloadable=true
Environment name=cosmo/version value=0.2-4
 type=java.lang.String override=false/
Environment name=cosmo/serverAdmin value=[EMAIL PROTECTED]
 type=java.lang.String override=false/
Environment name=cosmo/repository/username
 value=cosmo_repository
 type=java.lang.String override=false/
Environment name=cosmo/repository/password
 value=
 type=java.lang.String override=false/
Resource name=jcr/cosmo
  type=javax.jcr.Repository
  
 factory=org.apache.jackrabbit.core.jndi.BindableRepositoryFactory
  configFilePath=etc/repository.xml
  repHomeDir=data/repository/
Resource name=jdbc/cosmo
  type=javax.sql.DataSource
  maxActive=5
  maxIdle=3
  maxWait=1
  username=sa
  parameter=
  driverClassName=org.hsqldb.jdbcDriver
  url=jdbc:hsqldb:file:data/db/userdb/
Resource name=mail/cosmo
  type=javax.mail.Session
  mail.transport.protocol=smtp/
  mail.smtp.host=localhost/
  mail.smtps.host=localhost/
  mail.smtp.starttls.enable=false/
Valve className=org.apache.catalina.valves.AccessLogValve
   directory=../logs prefix=access. suffix=.log
   pattern=combined resolveHosts=false/
 /Context
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: No Host matches server name localhost error

2005-08-30 Thread Brian Cook



The error your getting is more likely saying that you computer can not 
resolve localhost as domain name.  If so it would have nothing to do 
with your server config.  Try using the loop back IP(127.0.0.1).  If 
this is happening on a windows box you may want to run a check for 
viruses or spyware.  If it is Linux make sure you have a listing for 
localhost in your /etc/hosts file.



Brian Moseley wrote:


i'm using tomcat 5.5.9 with a single webapp deployed with a context path 
of  and a default host named localhost. when i request the webapp's 
root resource (http://localhost:8080/), i get a 400 error with the 
message No Host matches server name localhost.


as you can see from my very minimal server.xml, i do in fact have a Host 
named localhost and have specified it as the default host for the 
engine. so, i must admit to being confused as to why i'm receiving that 
particular error message. :) i have turned on debug logging to verify 
that the context is being loaded, but i have yet to step through a 
request with a debugger. any ideas?


server.xml:

Server port=8005 shutdown=SHUTDOWN
  Service name=Catalina
Connector port=8080 enableLookups=false/
Engine name=Catalina defaultHost=localhost
  Host name=localhost appBase=webapps autoDeploy=false/
/Engine
  /Service
/Server

context.xml (in conf/Catalina/localhost/):

Context path= docBase=cosmo reloadable=true
  Environment name=cosmo/version value=0.2-4
   type=java.lang.String override=false/
  Environment name=cosmo/serverAdmin value=[EMAIL PROTECTED]
   type=java.lang.String override=false/
  Environment name=cosmo/repository/username
   value=cosmo_repository
   type=java.lang.String override=false/
  Environment name=cosmo/repository/password
   value=
   type=java.lang.String override=false/
  Resource name=jcr/cosmo
type=javax.jcr.Repository

factory=org.apache.jackrabbit.core.jndi.BindableRepositoryFactory
configFilePath=etc/repository.xml
repHomeDir=data/repository/
  Resource name=jdbc/cosmo
type=javax.sql.DataSource
maxActive=5
maxIdle=3
maxWait=1
username=sa
parameter=
driverClassName=org.hsqldb.jdbcDriver
url=jdbc:hsqldb:file:data/db/userdb/
  Resource name=mail/cosmo
type=javax.mail.Session
mail.transport.protocol=smtp/
mail.smtp.host=localhost/
mail.smtps.host=localhost/
mail.smtp.starttls.enable=false/
  Valve className=org.apache.catalina.valves.AccessLogValve
 directory=../logs prefix=access. suffix=.log
 pattern=combined resolveHosts=false/
/Context

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





--
Brian Cook
Digital Services Analyst
Print Time Inc.
[EMAIL PROTECTED]
913.345.8900

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

Re: No Host matches server name localhost error

2005-08-30 Thread Parsons Technical Services
Per the 5.5 doc you can't do it that way. You can only specify the path as a 
blank string when the context element is in the server.xml.


http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html

Look at the path attribute.

Doug


- Original Message - 
From: Brian Moseley [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, August 30, 2005 12:50 PM
Subject: No Host matches server name localhost error




i'm using tomcat 5.5.9 with a single webapp deployed with a context path 
of  and a default host named localhost. when i request the webapp's 
root resource (http://localhost:8080/), i get a 400 error with the message 
No Host matches server name localhost.


as you can see from my very minimal server.xml, i do in fact have a Host 
named localhost and have specified it as the default host for the engine. 
so, i must admit to being confused as to why i'm receiving that particular 
error message. :) i have turned on debug logging to verify that the 
context is being loaded, but i have yet to step through a request with a 
debugger. any ideas?


server.xml:

Server port=8005 shutdown=SHUTDOWN
  Service name=Catalina
Connector port=8080 enableLookups=false/
Engine name=Catalina defaultHost=localhost
  Host name=localhost appBase=webapps autoDeploy=false/
/Engine
  /Service
/Server

context.xml (in conf/Catalina/localhost/):

Context path= docBase=cosmo reloadable=true
  Environment name=cosmo/version value=0.2-4
   type=java.lang.String override=false/
  Environment name=cosmo/serverAdmin value=[EMAIL PROTECTED]
   type=java.lang.String override=false/
  Environment name=cosmo/repository/username
   value=cosmo_repository
   type=java.lang.String override=false/
  Environment name=cosmo/repository/password
   value=
   type=java.lang.String override=false/
  Resource name=jcr/cosmo
type=javax.jcr.Repository

factory=org.apache.jackrabbit.core.jndi.BindableRepositoryFactory
configFilePath=etc/repository.xml
repHomeDir=data/repository/
  Resource name=jdbc/cosmo
type=javax.sql.DataSource
maxActive=5
maxIdle=3
maxWait=1
username=sa
parameter=
driverClassName=org.hsqldb.jdbcDriver
url=jdbc:hsqldb:file:data/db/userdb/
  Resource name=mail/cosmo
type=javax.mail.Session
mail.transport.protocol=smtp/
mail.smtp.host=localhost/
mail.smtps.host=localhost/
mail.smtp.starttls.enable=false/
  Valve className=org.apache.catalina.valves.AccessLogValve
 directory=../logs prefix=access. suffix=.log
 pattern=combined resolveHosts=false/
/Context

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







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



Re: No Host matches server name localhost error

2005-08-30 Thread Brian Moseley

Parsons Technical Services wrote:
Per the 5.5 doc you can't do it that way. You can only specify the path 
as a blank string when the context element is in the server.xml.


http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html

Look at the path attribute.


aha! man, if only somebody had written a 5.0 - 5.5 migration guide :)

thanks for the pointer. after moving my context definition into 
server.xml, requests are serviced successfully (well, not under ssl, but 
that's another message).


i wonder what the motivation was for making it such that i can't 
configure the root context in its own file? seems a bit shortsighted, 
but maybe there was a good reason?


thanks for the suggestions all.

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



RE: No Host matches server name localhost error

2005-08-30 Thread Caldarale, Charles R
 From: Brian Moseley [mailto:[EMAIL PROTECTED] 
 Subject: Re: No Host matches server name localhost error
 
 thanks for the pointer. after moving my context definition into 
 server.xml

Bad move.  This is specifically discouraged in 5.5.

 i wonder what the motivation was for making it such that i can't 
 configure the root context in its own file?

As far as I know, you can - just put your default context in
webapps/ROOT, and its associated Context element in
webapps/ROOT/META-INF/context.xml.

 - Chuck


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

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



RE: No Host matches server name localhost error

2005-08-30 Thread Paul Austin
On Tue, 2005-08-30 at 13:25 -0500, Caldarale, Charles R wrote:
  From: Brian Moseley [mailto:[EMAIL PROTECTED] 
  Subject: Re: No Host matches server name localhost error
  
  thanks for the pointer. after moving my context definition into 
  server.xml
 
 Bad move.  This is specifically discouraged in 5.5.

It seems that Tomcat 5.5 discourages you from putting contexts in the
server.xml, and that is something that is a good idea as it's easier to
manage them when they are outside. But the context path is only
supported when you put it in the server.xml so you can't deploy the wars
to any other path other than the name of the context file so deploying
to /apps/admin.

I know there is the special ROOT.xml for the root context but that
doesn't solve the sub path issue which no one seems to know the answer
to.

 
  i wonder what the motivation was for making it such that i can't 
  configure the root context in its own file?
 
 As far as I know, you can - just put your default context in
 webapps/ROOT, and its associated Context element in
 webapps/ROOT/META-INF/context.xml.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: No Host matches server name localhost error

2005-08-30 Thread Caldarale, Charles R
 From: Paul Austin [mailto:[EMAIL PROTECTED] 
 Subject: RE: No Host matches server name localhost error
 
 But the context path is only supported when you put it 
 in the server.xml so you can't deploy the wars to any 
 other path other than the name of the context file so 
 deploying to /apps/admin.

I believe the usual mechanism for handling this is a trivial ROOT webapp
that forwards to the true default application.

 - Chuck


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

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



Re: No Host matches server name localhost error

2005-08-30 Thread Brian Moseley

Paul Austin wrote:


It seems that Tomcat 5.5 discourages you from putting contexts in the
server.xml, and that is something that is a good idea as it's easier to
manage them when they are outside. But the context path is only
supported when you put it in the server.xml so you can't deploy the wars
to any other path other than the name of the context file so deploying
to /apps/admin.


right. ideally i'd not put the context definition in server.xml. but 
deploying my webapp at the root path is more important to me (i'm 
operating in a pretty specific context and don't have to worry much 
about additional webapps being deployed into the container).


i saw the suggestion for adding a ROOT webapp that forwards to the true 
webapp, but that seems silly. hopefully the folks who made this design 
decision can speak up and explain it.



I know there is the special ROOT.xml for the root context but that
doesn't solve the sub path issue which no one seems to know the answer
to.


i don't recall seeing any references to a ROOT.xml. i tried renaming my 
context xml file to ROOT.xml (within conf/Catalina/localhost of course) 
but it did not seem to have been processed (requests to / gave that same 
400 error).


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



Re: No Host matches server name localhost error

2005-08-30 Thread Brian Moseley

Brian Moseley wrote:

i don't recall seeing any references to a ROOT.xml. i tried renaming my 
context xml file to ROOT.xml (within conf/Catalina/localhost of course) 
but it did not seem to have been processed (requests to / gave that same 
400 error).


and gosh, what a misleading error message - No Host matches server name 
localhost is obviously not true. maybe the message can be changed to 
more accurately convey that no context can be found for the request uri?


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



Re: No Host matches server name localhost error

2005-08-30 Thread Thomas Corte

Hi,

Parsons Technical Services wrote:

Per the 5.5 doc you can't do it that way. You can only specify the path 
as a blank string when the context element is in the server.xml.


To reiterate: so the only 2 ways to define the *default web app* for the 
host are either


- to define the context in server.xml (which is inconvenient because it
  may e.g. contain JNDI resource definitions that have to be updated
  whenever META-INF/context.xml within the war changes)

or

- to name the war file for the default webapp ROOT.war
  (which is somewhat crappy, too, since it e.g. leaves no hint
  at what the war is about if someone just looks at the webapps drawer)


If the above is true, I wonder why the path attribute of the context 
defined in META-INF/context.xml isn't simply considered in *any* case?

Shouldn't this be considered a tomcat bug?

--
Thomas Corte
[EMAIL PROTECTED]

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



Re: No Host matches server name localhost error

2005-08-30 Thread Parsons Technical Services
First, let me clarify that I am only a user of Tomcat and was simply 
pointing out the part of the documentation.


Now as for the issue, I am not sure that it is a bug but just a feature. 
Unless you can show where it does not meet the servlet specs then it will 
not be considered a bug.


I am not sure why this is causing such a problem. The only time a default 
context will ever be used is if the browser is using an IP instead of a URL 
or if you have a DNS entry that points to your IP with no matching 
application.


So unless you are using only the IP or are directing multiple unmatched URLs 
at the server there is no issue. If you are, then knowing what the war is 
about is only a small piece of the puzzle that exist in the setup.


Just my understanding of the setup. Feel free to enlighten me if you think I 
am off base.


Every aspect of a program is considered a feature. No matter how good or bad 
one may think it is. It only become a bug when it breaks a rule. Either the 
programmers rule, a system rule or a specification rule.


If a feature that was considered bad by some could be classed as a bug, then 
90% of the code written in the world would be bugs because somewhere there 
is someone who doesn't like it.


Doug

- Original Message - 
From: Thomas Corte [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, August 30, 2005 4:28 PM
Subject: Re: No Host matches server name localhost error



Hi,

Parsons Technical Services wrote:

Per the 5.5 doc you can't do it that way. You can only specify the path 
as a blank string when the context element is in the server.xml.


To reiterate: so the only 2 ways to define the *default web app* for the 
host are either


- to define the context in server.xml (which is inconvenient because it
  may e.g. contain JNDI resource definitions that have to be updated
  whenever META-INF/context.xml within the war changes)

or

- to name the war file for the default webapp ROOT.war
  (which is somewhat crappy, too, since it e.g. leaves no hint
  at what the war is about if someone just looks at the webapps drawer)


If the above is true, I wonder why the path attribute of the context 
defined in META-INF/context.xml isn't simply considered in *any* case?

Shouldn't this be considered a tomcat bug?

--
Thomas Corte
[EMAIL PROTECTED]

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







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



Error listenerStart when deploying an application

2005-08-29 Thread Ittay Dror

Hi,

I have a fairly large application I'm trying to port from jboss to tomcat.

I've turned on debug logging with log4j (the contents at the end of this mail).

In the log, I see the following:
 2005-08-29 19:01:27,106 DEBUG [WebappClassLoader] (main:)   Loading class 
from local repository
 2005-08-29 19:01:27,106 DEBUG [WebappClassLoader] (main:)   Loading class 
from local repository

 2005-08-29 19:01:27,115 ERROR [StandardContext] (main:) Error listenerStart
 2005-08-29 19:01:27,115 ERROR [StandardContext] (main:) Error listenerStart
 2005-08-29 19:01:27,115 ERROR [StandardContext] (main:) Error listenerStart
 2005-08-29 19:01:27,115 ERROR [StandardContext] (main:) Context [] startup 
failed due to previous errors
 2005-08-29 19:01:27,115 ERROR [StandardContext] (main:) Context [] startup 
failed due to previous errors
 2005-08-29 19:01:27,115 ERROR [StandardContext] (main:) Context [] startup 
failed due to previous errors


No other erros are in the log. So I'm at a complete loss. Looking at the code 
doesn't help either (since this message is printed when an 'ok' variable is 
false, and this can happen in many places).


Please help,
Ittay

my log4j.properties:
log4j.rootLogger=ALL, R

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=${catalina.home}/logs/tomcat.log
log4j.appender.R.MaxFileSize=50MB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d %-5p [%c{1}] (%t:%x) %m%n

log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=ALL, 
R
log4j.logger.org.apache.catalina.core=ALL, R
log4j.logger.org.apache.catalina.session=ALL, R

log4j.logger.org.apache.catalina=ALL, R



--
===
Ittay Dror ([EMAIL PROTECTED])
Application Team Leader, RD
Qlusters Inc.
+972-3-6081994 Fax: +972-3-6081841

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



Tomcat crash with no error messages!

2005-08-29 Thread Kenneth Litwak
Hi,

  I have an application that is the only application running on a given
tomcat instance (there are multiple tomcat instances on the same box).
The application has been running for weeks, but the code has not been
changed for weeks.  Suddenly, Friday afternoon the application began
failing as soon as it tried to do anything besides check an id in LDAP.
The failure causes the tomcat process to crash.  Unfortunately, nothing
shows up on Catalina.out, or in the log4j logs that the application
generally writes both errors and progress to.  So I'm not sure what to
do to diagnose the problem.  Any suggestions for the first step?  If I
had an error message, that would be good.  Thanks.

Ken


 Kenneth D. Litwak
Software Engineer III
IMT
Azusa Pacific University
901 E. Alosta
Azusa, CA 91702


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



Connection timed out error when shutting down tomcat

2005-08-29 Thread Darek Czarkowski
Hello,

Tomcat takes long time to shut down, it takes about a minute from the
shut down command until it terminates with an error in catalina.out.

Apache should have nothing to do with it. 

Tomcat version: jakarta-tomcat-4.1.27
Server version: Apache/2.0.46 with mod_jk2
OS RHE Linux 2.4.21-32.0.1.EL

Does any one know possible resons?



From Catalina.out log file:


Stopping service Tomcat-Standalone
java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:169)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.init(Socket.java:309)
at java.net.Socket.init(Socket.java:153)
at
org.apache.jk.common.ChannelSocket.destroy(ChannelSocket.java:384)
at org.apache.jk.server.JkMain.stop(JkMain.java:311)
at
org.apache.jk.server.JkCoyoteHandler.destroy(JkCoyoteHandler.java:181)
at
org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1205)
at
org.apache.catalina.core.StandardService.stop(StandardService.java:546)
at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:2225)
at org.apache.catalina.startup.Catalina.start(Catalina.java:543)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)


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



Page cannot be displayed error

2005-08-29 Thread Barnett, Brian W.
We are experiencing a strange problem that we can't seem to figure out.

We have a Struts web app running on Tomcat 5.0.28/Apache web server. All the
computers of a particular client are getting a Page cannot be displayed
error when they click a certain button. They can then go home and access it
fine from their home computer, without the error. They can also access a
number of other pages on the site. Other clients are not reporting the
problem.

Here on our network at work, we all experience the same problem when
clicking that button, except one computer that works fine. The button
essentially executes some db queries to populate a choice box on the page.

It seems that we've isolated it to a network or ip type issue but have no
idea what to check for. If anyone has any suggestions, we'd love to hear
them.

TIA,
Brian Barnett


 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 



How to Configure Tomcat to display the error on to Client rather than into logs

2005-08-26 Thread shyama

Hi All,
 
When a client asks for a jsp file and an error has been encountered by
Server while compiling the .jsp to .class then I would like to display
that on the client browser rather than it dumping to the log file
local_host ...log. 
 
Please let me know whether there is any parameter to be set...
 
 
Thanks in advance,
Shyama
 
 
 


Confidentiality Notice  
The information contained in this electronic 
message and any attachments to this message are
intended for the exclusive use of the addressee(s)
and may contain confidential or privileged information.
If you are not the intended recipient, please notify 
the sender at Wipro or [EMAIL PROTECTED] immediately 
and destroy all copies of this message and any attachments.

Re: How to Configure Tomcat to display the error on to Client rather than into logs

2005-08-26 Thread Brian Cook


What is it you want to display?  The stack trace?


shyama wrote:

Hi All,
 
When a client asks for a jsp file and an error has been encountered by

Server while compiling the .jsp to .class then I would like to display
that on the client browser rather than it dumping to the log file
local_host ...log. 
 
Please let me know whether there is any parameter to be set...
 
 
Thanks in advance,

Shyama
 
 
 



Confidentiality Notice  
The information contained in this electronic 
message and any attachments to this message are

intended for the exclusive use of the addressee(s)
and may contain confidential or privileged information.
If you are not the intended recipient, please notify 
the sender at Wipro or [EMAIL PROTECTED] immediately 
and destroy all copies of this message and any attachments.



--
Brian Cook
Digital Services Analyst
Print Time Inc.
[EMAIL PROTECTED]
913.345.8900

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

  1   2   3   4   5   6   7   8   9   10   >