Re: Download file Problem - 404 error

2006-01-31 Thread vineesh kumar
that may be the correct path
also check that
package com.deepa.servlet;
at the first line itself
is declared in ur java file

On 1/31/06, Bob Hall [EMAIL PROTECTED] wrote:
 Deepa,

 As someone pointed out in an earlier post you need to
 include the following in your DownloadFile.java file:
 (usually, as the first line)

 package com.deepa.servlet;

 You would also normally place DownloadFiles.java in
 a directory that ended in com/deepa/servlet.  In
 WinSpeak:
 D:\data\eclipse\workspace\com\deepa\servlet\DownloadFiles.java

 After a successful compile,
 com\deepa\servlet\DownloadFiles.class
 should be copied to the WEB-INF\classes directory of
 your
 web app.

 - Bob

-Original Message-
From: DEEPA M N [mailto:[EMAIL PROTECTED]
Sent: Tue 1/31/2006 11:43 AM
To: Tomcat Users List
Cc:
 
 D:\Tomcat5.0\jakarta-tomcat-5.0.28\webapps\DownloadFile\WEB-INF\classesjava
  com.deepa.servlet.DownloadFiles
Exception in thread main
  java.lang.NoClassDefFoundError:
  com/deepa/servlet/DownloadFiles (wrong name:
  DownloadFiles)


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



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



Re: Download file Problem - 404 error

2006-01-31 Thread vineesh kumar
that may be the correct path
also check that
package com.deepa.servlet;
at the first line itself
is declared in ur java file
- Show quoted text -

On 1/31/06, vineesh kumar [EMAIL PROTECTED] wrote:
 that may be the correct path
 also check that
 package com.deepa.servlet;
 at the first line itself
 is declared in ur java file

 On 1/31/06, Bob Hall [EMAIL PROTECTED] wrote:
  Deepa,
 
  As someone pointed out in an earlier post you need to
  include the following in your DownloadFile.java file:
  (usually, as the first line)
 
  package com.deepa.servlet;
 
  You would also normally place DownloadFiles.java in
  a directory that ended in com/deepa/servlet.  In
  WinSpeak:
  D:\data\eclipse\workspace\com\deepa\servlet\DownloadFiles.java
 
  After a successful compile,
  com\deepa\servlet\DownloadFiles.class
  should be copied to the WEB-INF\classes directory of
  your
  web app.
 
  - Bob
 
 -Original Message-
 From: DEEPA M N [mailto:[EMAIL PROTECTED]
 Sent: Tue 1/31/2006 11:43 AM
 To: Tomcat Users List
 Cc:
  
  D:\Tomcat5.0\jakarta-tomcat-5.0.28\webapps\DownloadFile\WEB-INF\classesjava
   com.deepa.servlet.DownloadFiles
 Exception in thread main
   java.lang.NoClassDefFoundError:
   com/deepa/servlet/DownloadFiles (wrong name:
   DownloadFiles)
 
 
  __
  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]
 
 


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



Jaas authentication refresh

2006-01-31 Thread lio tomcat
Hello world,
I wonder what configuration or piece of code is doing a jaas
authentication refresh
while it's unecessary and unwanted...
I have a web-app running on jboss 3.2.2/tomcat 4.1. It's form based
authenticated.

login-config
auth-methodFORM/auth-method
realm-namemyRealm/realm-name
form-login-config
form-login-page/authentication.jsp/form-login-page
form-error-page/authenticationFailed.jsp/form-error-page
/form-login-config
/login-config

BTW, the session is declared in web infinite :
session-config
  session-timeout-1/session-timeout
/session-config

The JSPs contains the j_security_check form, j_username, j_password...

The realm is defined for my web in a jboss-web.xml :

jboss-web
 security-domainjava:/jaas/MyRealm/security-domain  
/jboss-web

And once it's authenticated, this realm (that extends
org.jboss.security.auth.spi.UsernamePasswordLoginModule) put in
session
the principal and relevant information.

Shoud be Ok. But after few hours (5/6). Something is calling my realm in order
to re-perform authentication whereas the session is still valid (i
guess) and user
info, roles are still there. And redirect the users to authentication JSP...

I had a look on jboss things like AuthenticationCacheJndiName (set by
default to 1800s) and DefautCacheResolution (set to 60s). I did not
change anything on this side. Anyway these times don't match the time
i face for this focres re-authentication issue.

I known this may be more jboss forums relevant but maybe one of you
-clever people- can give me a clue,

Thx,

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



Re: Download file Problem - 404 error

2006-01-31 Thread DEEPA M N

Here r few lines of codes;
   
  package com.deepa.servlet;
import java.io.*;
import java.util.*;
import java.net.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.zip.GZIPOutputStream;
  public class DownloadFiles extends HttpServlet
{
  private static final String DIR = dir;
private String separator;
private String root; 
  public DownloadFiles()
{
Properties propFile = null;
FileInputStream in = null;
String JAVA_HOME = application.properties; 
// Get a handle on the properties file
try{ 
in = new FileInputStream(JAVA_HOME);
propFile = new Properties();
propFile.load(in);
}
catch (IOException ignore){} 
separator = /;
// Get the directory from the application.properties file
// e.g. C:\\Temp\\Files\\
root = propFile.getProperty(app.directory);
}
  Code continues...
  I m typing the url as
  http://localhost:8080/Downloadfile/servlet/DownloadFiles
   
  I m trying in all possible ways, but still i am getting the same error.
  Pls help
  Thanks in advance
  Deepa
vineesh kumar [EMAIL PROTECTED] wrote:
  that may be the correct path
also check that
package com.deepa.servlet;
at the first line itself
is declared in ur java file
- Show quoted text -



-
 Jiyo cricket on Yahoo! India cricket

Re: From Java to C#, ASP.NET [Off Topic]

2006-01-31 Thread Hans Sowa
Hi Chuck

See this link from Sun
http://java.sun.com/j2ee/1.4/docs/glossary.html#120385

I know Sun says typically a distributed system but of course most of the
J2EE are distributed.



2006/1/30, Caldarale, Charles R [EMAIL PROTECTED]:

  From: Hans Sowa [mailto:[EMAIL PROTECTED]
  Subject: Re: From Java to C#, ASP.NET [Off Topic]
 
  I want to mentioned that it is not important which API is
  used from JAVA to say that your application is a J2EE
  application or not. The only two thinks which count are
  1) it is written in java (of course) and 2) it is a
  distributed application.

  That doesn't jibe with any use of the term distributable that I'm
 familiar with; perhaps you're using it in an unusual sense?

 J2EE is a large defined set of APIs and behaviors, so I think it is, in
 fact, the use of those APIs that determines whether or not a given
 application is J2EE-based or not.  The question is somewhat moot, since
 it's difficult not to use J2EE in some fashion in anything but trivial
 applications.

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




--
mfg Hans Sowa
mailto:[EMAIL PROTECTED]


Re: Download file Problem - 404 error

2006-01-31 Thread vineesh kumar
do u changed ur web.xml also

the code is ok it should work.but u hav to check all the other files
also like web.xml
from the older web.xml file it was written that the servlet class is
Downloadfiles
but u hav to change it to
   com.deepa.servlet.Downloadfiles
if all these things are working, ur code should work
but if still it's not working try to setup another tomcat that will be
time saving.as u are having the code files with u.u can easily
recreate another hierarchy of ur code on the newly setup tomcat.If u
are having much time u can try reconfiguring everything
regards
 vineesh

On 1/31/06, DEEPA M N [EMAIL PROTECTED] wrote:

 Here r few lines of codes;

   package com.deepa.servlet;
 import java.io.*;
 import java.util.*;
 import java.net.*;
 import javax.servlet.*;
 import javax.servlet.http.*;
 import java.util.zip.GZIPOutputStream;
   public class DownloadFiles extends HttpServlet
 {
   private static final String DIR = dir;
 private String separator;
 private String root;
   public DownloadFiles()
 {
 Properties propFile = null;
 FileInputStream in = null;
 String JAVA_HOME = application.properties;
 // Get a handle on the properties file
 try{
 in = new FileInputStream(JAVA_HOME);
 propFile = new Properties();
 propFile.load(in);
 }
 catch (IOException ignore){}
 separator = /;
 // Get the directory from the application.properties file
 // e.g. C:\\Temp\\Files\\
 root = propFile.getProperty(app.directory);
 }
   Code continues...
   I m typing the url as
   http://localhost:8080/Downloadfile/servlet/DownloadFiles

   I m trying in all possible ways, but still i am getting the same error.
   Pls help
   Thanks in advance
   Deepa
 vineesh kumar [EMAIL PROTECTED] wrote:
   that may be the correct path
 also check that
 package com.deepa.servlet;
 at the first line itself
 is declared in ur java file
 - Show quoted text -



 -
  Jiyo cricket on Yahoo! India cricket


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



Re: Download file Problem - 404 error

2006-01-31 Thread vineesh kumar
one more thing u can do is put an index.html on ur Downloadfile
directory(ie the root folder of ur app).and try typing
 http://localhost:8080/Downloadfile/
then the tomcat should show the html file
if that too is not happening, the problem may be with ur server.xml
or even worse on ur catalina configuration

On 1/31/06, vineesh kumar [EMAIL PROTECTED] wrote:
 do u changed ur web.xml also

 the code is ok it should work.but u hav to check all the other files
 also like web.xml
 from the older web.xml file it was written that the servlet class is
 Downloadfiles
 but u hav to change it to
com.deepa.servlet.Downloadfiles
 if all these things are working, ur code should work
 but if still it's not working try to setup another tomcat that will be
 time saving.as u are having the code files with u.u can easily
 recreate another hierarchy of ur code on the newly setup tomcat.If u
 are having much time u can try reconfiguring everything
 regards
  vineesh

 On 1/31/06, DEEPA M N [EMAIL PROTECTED] wrote:
 
  Here r few lines of codes;
 
package com.deepa.servlet;
  import java.io.*;
  import java.util.*;
  import java.net.*;
  import javax.servlet.*;
  import javax.servlet.http.*;
  import java.util.zip.GZIPOutputStream;
public class DownloadFiles extends HttpServlet
  {
private static final String DIR = dir;
  private String separator;
  private String root;
public DownloadFiles()
  {
  Properties propFile = null;
  FileInputStream in = null;
  String JAVA_HOME = application.properties;
  // Get a handle on the properties file
  try{
  in = new FileInputStream(JAVA_HOME);
  propFile = new Properties();
  propFile.load(in);
  }
  catch (IOException ignore){}
  separator = /;
  // Get the directory from the application.properties file
  // e.g. C:\\Temp\\Files\\
  root = propFile.getProperty(app.directory);
  }
Code continues...
I m typing the url as
http://localhost:8080/Downloadfile/servlet/DownloadFiles
 
I m trying in all possible ways, but still i am getting the same error.
Pls help
Thanks in advance
Deepa
  vineesh kumar [EMAIL PROTECTED] wrote:
that may be the correct path
  also check that
  package com.deepa.servlet;
  at the first line itself
  is declared in ur java file
  - Show quoted text -
 
 
 
  -
   Jiyo cricket on Yahoo! India cricket
 


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



Re: RE: context.xml

2006-01-31 Thread Warren Pace

 
 From: Klotz Jr, Dennis [EMAIL PROTECTED]
 Date: 2006/01/30 Mon PM 08:28:10 EST
 To: Tomcat Users List users@tomcat.apache.org
 Subject: RE: context.xml
 
 Thanks Warren for the reply.
 
 Wouldn't that version of the file be deleted when I undeploy?
 
If you're using the manager app to un-deploy the entire folder gets deleted.  
But if you're packaging your app as a .war file, then you always have that copy.
 -Dennis
 
 -Original Message-
 From: Warren Pace [mailto:[EMAIL PROTECTED] 
 Sent: Monday, January 30, 2006 7:41 PM
 To: Tomcat Users List
 Subject: Re: context.xml
 
 
  
  From: Klotz Jr, Dennis [EMAIL PROTECTED]
  Date: 2006/01/30 Mon PM 07:00:03 EST
  To: Tomcat Users List users@tomcat.apache.org
  Subject: context.xml
  
  I thought the name of the xml file located in :
  
  $CATALINA_HOME/conf/[enginename]/[hostname]/
  
  had to match the name of your webapp directory. 
  
  I just read some documentation for 5.5.9 that says otherwise. It
  mentions that under certain conditions it will be created for you. But
 I
  would like to have a persistent xml file that will not be deleted when
 I
  un-deploy the app.
  
 
 save your context file as:
 webapp_name/META-INF/context.xml
 
  Can someone please tell me which is correct?
  
  Regards,
  
  -Dennis
  
  
  -
  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: Download file Problem - 404 error

2006-01-31 Thread DEEPA M N
I hav changed web.xml after including package. In this code i m not accessing 
the servlet thr' html rather i m using the url in the browser window.
  http://localhost:8080/DownloadFile/servlet/DownloadFiles
   
  
 
  
vineesh kumar [EMAIL PROTECTED] wrote:
  one more thing u can do is put an index.html on ur Downloadfile
directory(ie the root folder of ur app).and try typing
http://localhost:8080/Downloadfile/
then the tomcat should show the html file
if that too is not happening, the problem may be with ur server.xml
or even worse on ur catalina configuration

On 1/31/06, vineesh kumar wrote:
 do u changed ur web.xml also

 the code is ok it should work.but u hav to check all the other files
 also like web.xml
 from the older web.xml file it was written that the servlet class is
 Downloadfiles
 but u hav to change it to
 com.deepa.servlet.Downloadfiles
 if all these things are working, ur code should work
 but if still it's not working try to setup another tomcat that will be
 time saving.as u are having the code files with u.u can easily
 recreate another hierarchy of ur code on the newly setup tomcat.If u
 are having much time u can try reconfiguring everything
 regards
 vineesh

 On 1/31/06, DEEPA M N wrote:
 
  Here r few lines of codes;
 
  package com.deepa.servlet;
  import java.io.*;
  import java.util.*;
  import java.net.*;
  import javax.servlet.*;
  import javax.servlet.http.*;
  import java.util.zip.GZIPOutputStream;
  public class DownloadFiles extends HttpServlet
  {
  private static final String DIR = dir;
  private String separator;
  private String root;
  public DownloadFiles()
  {
  Properties propFile = null;
  FileInputStream in = null;
  String JAVA_HOME = application.properties;
  // Get a handle on the properties file
  try{
  in = new FileInputStream(JAVA_HOME);
  propFile = new Properties();
  propFile.load(in);
  }
  catch (IOException ignore){}
  separator = /;
  // Get the directory from the application.properties file
  // e.g. C:\\Temp\\Files\\
  root = propFile.getProperty(app.directory);
  }
  Code continues...
  I m typing the url as
  http://localhost:8080/Downloadfile/servlet/DownloadFiles
 
  I m trying in all possible ways, but still i am getting the same error.
  Pls help
  Thanks in advance
  Deepa
  vineesh kumar wrote:
  that may be the correct path
  also check that
  package com.deepa.servlet;
  at the first line itself
  is declared in ur java file
  - Show quoted text -
 
 
 
  -
  Jiyo cricket on Yahoo! India cricket
 


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

  



-
 Jiyo cricket on Yahoo! India cricket

Re: Download file Problem - 404 error

2006-01-31 Thread vineesh kumar
that's ok.
the test is for checking the path is recognised by tomcat or not.if
tomcat is not showing the index.html, then the problem is in ur
servel.xml ot context,xml. for making sure what's the problem only i
suggesterd the test

On 1/31/06, DEEPA M N [EMAIL PROTECTED] wrote:
 I hav changed web.xml after including package. In this code i m not accessing 
 the servlet thr' html rather i m using the url in the browser window.
   http://localhost:8080/DownloadFile/servlet/DownloadFiles




 vineesh kumar [EMAIL PROTECTED] wrote:
   one more thing u can do is put an index.html on ur Downloadfile
 directory(ie the root folder of ur app).and try typing
 http://localhost:8080/Downloadfile/
 then the tomcat should show the html file
 if that too is not happening, the problem may be with ur server.xml
 or even worse on ur catalina configuration

 On 1/31/06, vineesh kumar wrote:
  do u changed ur web.xml also
 
  the code is ok it should work.but u hav to check all the other files
  also like web.xml
  from the older web.xml file it was written that the servlet class is
  Downloadfiles
  but u hav to change it to
  com.deepa.servlet.Downloadfiles
  if all these things are working, ur code should work
  but if still it's not working try to setup another tomcat that will be
  time saving.as u are having the code files with u.u can easily
  recreate another hierarchy of ur code on the newly setup tomcat.If u
  are having much time u can try reconfiguring everything
  regards
  vineesh
 
  On 1/31/06, DEEPA M N wrote:
  
   Here r few lines of codes;
  
   package com.deepa.servlet;
   import java.io.*;
   import java.util.*;
   import java.net.*;
   import javax.servlet.*;
   import javax.servlet.http.*;
   import java.util.zip.GZIPOutputStream;
   public class DownloadFiles extends HttpServlet
   {
   private static final String DIR = dir;
   private String separator;
   private String root;
   public DownloadFiles()
   {
   Properties propFile = null;
   FileInputStream in = null;
   String JAVA_HOME = application.properties;
   // Get a handle on the properties file
   try{
   in = new FileInputStream(JAVA_HOME);
   propFile = new Properties();
   propFile.load(in);
   }
   catch (IOException ignore){}
   separator = /;
   // Get the directory from the application.properties file
   // e.g. C:\\Temp\\Files\\
   root = propFile.getProperty(app.directory);
   }
   Code continues...
   I m typing the url as
   http://localhost:8080/Downloadfile/servlet/DownloadFiles
  
   I m trying in all possible ways, but still i am getting the same error.
   Pls help
   Thanks in advance
   Deepa
   vineesh kumar wrote:
   that may be the correct path
   also check that
   package com.deepa.servlet;
   at the first line itself
   is declared in ur java file
   - Show quoted text -
  
  
  
   -
   Jiyo cricket on Yahoo! India cricket
  
 

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





 -
  Jiyo cricket on Yahoo! India cricket


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



kein Betreff

2006-01-31 Thread Lothar Krenzien
Hi,

I'm having a struts application within Tomcat 5.5.9 and Java 5 but just become 
a (for me) mysterious problem. After changing a simple JSP (just removed a row 
in a table) I got lots of problems. Now I can't load any JSP anymore. It means 
that I even can't start my application. There are really no changes. Yesterday 
evening all works fine, but today - after changing the JSP - I get the 
following exception :

2006-01-31 11:49:42,697 [ERROR] 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/conergy].[jsp].Servlet.service()
 for servlet jsp threw exception
javax.servlet.ServletException: org/apache/tools/ant/BuildException
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062)

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)

root cause:
java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException

org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:202)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:470)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


In the Tomcat log I can see that my login action is executed and then the above 
error occurs:
2006-01-31 11:49:42,494 [DEBUG] 
com.sr2.struts.actions.portal.LoginAction.doExecute: End
2006-01-31 11:49:42,494 [DEBUG] 
com.sr2.struts.actions.portal.LoginAction.execute: End

Before this error occours I get once some messages that the changed JSP can't 
compiled because I have to implement some methods starting with 'JSP...' (I 
can't remenber the name anymore). A few days ago I switched to the last recent 
struts version, but now changed back to 1.1. 

So what I'm doing wrong ?
Lothar
__
Erweitern Sie FreeMail zu einem noch leistungsstarkeren E-Mail-Postfach!

Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131


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



can't load any JSP anymore

2006-01-31 Thread Lothar Krenzien
Hi,

I'm having a struts application within Tomcat 5.5.9 and Java 5 but just become 
a (for me) mysterious problem. After changing a simple JSP (just removed a row 
in a table) I got lots of problems. Now I can't load any JSP anymore. It means 
that I even can't start my application. There are really no changes. Yesterday 
evening all works fine, but today - after changing the JSP - I get the 
following exception :

2006-01-31 11:49:42,697 [ERROR] 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/conergy].[jsp].Servlet.service()
 for servlet jsp threw exception
javax.servlet.ServletException: org/apache/tools/ant/BuildException
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)

root cause:
java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException
org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:202)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:470)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


In the Tomcat log I can see that my login action is executed and then the above 
error occurs:
2006-01-31 11:49:42,494 [DEBUG] 
com.sr2.struts.actions.portal.LoginAction.doExecute: End
2006-01-31 11:49:42,494 [DEBUG] 
com.sr2.struts.actions.portal.LoginAction.execute: End

Before this error occours I get once some messages that the changed JSP can't 
compiled because I have to implement some methods starting with 'JSP...' (I 
can't remenber the name anymore). A few days ago I switched to the last recent 
struts version, but now changed back to 1.1.

So what I'm doing wrong ?
Lothar
__
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


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



Help to run the program

2006-01-31 Thread Charles Curi
Hi people.
I have the source code of a shopping cart made with struts  without errors.
No matter how hard I try I can´t run the program.
I need help
If anybody support me I will be grateful.
Send me an e-mail and I send the source code back
Charles
I always receive this log:

javax.servlet.ServletException: Exception forwarding for name bemvindo:
javax.servlet.ServletException: Erro ao adquirir datasource - Name jdbc is
not bound in this Context
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(
PageContextImpl.java:848)
org.apache.jasper.runtime.PageContextImpl.handlePageException(
PageContextImpl.java:781)
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:68)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause


Help to run the program

2006-01-31 Thread Charles Curi
Hi people.
I have the source code of a shopping cart made with struts  without errors.
No matter how hard I try I can´t run the program.
I need help
If anybody support me I will be grateful.
Send me an e-mail and I send the source code back
Charles
I always receive this log:

javax.servlet.ServletException: Exception forwarding for name bemvindo:
javax.servlet.ServletException: Erro ao adquirir datasource - Name jdbc is
not bound in this Context
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(
PageContextImpl.java:848)
org.apache.jasper.runtime.PageContextImpl.handlePageException(
PageContextImpl.java:781)
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:68)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause


Re: can't load any JSP anymore

2006-01-31 Thread Lothar Krenzien
I solved it partially by adding ant.jar to the classpath. But now I get the 
following errors:

2006-01-31 13:12:26,220 [ERROR] [jsp].Servlet.service() for servlet jsp threw 
exception
org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
Class must implement the inherited abstract method HttpJspBase.getIncludes()

Generated servlet error:
The method getTagHandlerPool(ServletConfig) is undefined for the type 
TagHandlerPool

.


An error occurred at line: 10 in the jsp file: /jsp/portalLogin.jsp
Generated servlet error:
The method proprietaryEvaluate(String, Class, PageContext, null, boolean) is 
undefined for the type PageContextImpl

An error occurred at line: 48 in the jsp file: /jsp/portalLogin.jsp
Generated servlet error:
The method proprietaryEvaluate(String, Class, PageContext, null, boolean) is 
undefined for the type PageContextImpl

An error occurred at line: 51 in the jsp file: /jsp/portalLogin.jsp
Generated servlet error:
The method proprietaryEvaluate(String, Class, PageContext, null, boolean) is 
undefined for the type PageContextImpl

An error occurred at line: 68 in the jsp file: /jsp/portalLogin.jsp
Generated servlet error:
The method proprietaryEvaluate(String, Class, PageContext, null, boolean) is 
undefined for the type PageContextImpl

.

at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
at 
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
...

But the jsp is absolutly unchanged in comparison to the last working 
configuration (I checked it with a diff tool). So I can't figure out what wrong 
!?
Lothar


Hi,

I'm having a struts application within Tomcat 5.5.9 and Java 5 but just become 
a (for me) mysterious problem. After changing a simple JSP (just removed a row 
in a table) I got lots of problems. Now I can't load any JSP anymore. It 
means that I even can't start my application. There are really no changes. 
Yesterday evening all works fine, but today - after changing the JSP - I get 
the following exception :

2006-01-31 11:49:42,697 [ERROR] 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/conergy].[jsp].Servlet.service()
 for servlet jsp threw exception
javax.servlet.ServletException: org/apache/tools/ant/BuildException
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)

root cause:
java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException
org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:202)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:470)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


In the Tomcat log I can see that my login action is executed and then the 
above error occurs:
2006-01-31 11:49:42,494 [DEBUG] 
com.sr2.struts.actions.portal.LoginAction.doExecute: End
2006-01-31 11:49:42,494 [DEBUG] 
com.sr2.struts.actions.portal.LoginAction.execute: End

Before this error occours I get once some messages that the changed JSP can't 
compiled because I have to implement some methods starting with 'JSP...' (I 
can't remenber the name anymore). A few days ago I switched to the last 
recent struts version, but now changed back to 1.1.

So what I'm doing wrong ?
Lothar

__
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


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

RE: RE: context.xml

2006-01-31 Thread Klotz Jr, Dennis
Thanks again Warren. 

I guess I must be approaching this from the wrong perspective of what
the designers originally intended.

I am hoping to find a place for a context.xml to live where it will
never get deleted. That a customer can change and when we give them a
new war file, the context.xml changes that they have made will stick
around.

Is there a way to do this that you know of?

-Dennis

-Original Message-
From: Warren Pace [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 31, 2006 5:19 AM
To: Tomcat Users List
Subject: Re: RE: context.xml


 
 From: Klotz Jr, Dennis [EMAIL PROTECTED]
 Date: 2006/01/30 Mon PM 08:28:10 EST
 To: Tomcat Users List users@tomcat.apache.org
 Subject: RE: context.xml
 
 Thanks Warren for the reply.
 
 Wouldn't that version of the file be deleted when I undeploy?
 
If you're using the manager app to un-deploy the entire folder gets
deleted.  But if you're packaging your app as a .war file, then you
always have that copy.
 -Dennis
 
 -Original Message-
 From: Warren Pace [mailto:[EMAIL PROTECTED] 
 Sent: Monday, January 30, 2006 7:41 PM
 To: Tomcat Users List
 Subject: Re: context.xml
 
 
  
  From: Klotz Jr, Dennis [EMAIL PROTECTED]
  Date: 2006/01/30 Mon PM 07:00:03 EST
  To: Tomcat Users List users@tomcat.apache.org
  Subject: context.xml
  
  I thought the name of the xml file located in :
  
  $CATALINA_HOME/conf/[enginename]/[hostname]/
  
  had to match the name of your webapp directory. 
  
  I just read some documentation for 5.5.9 that says otherwise. It
  mentions that under certain conditions it will be created for you.
But
 I
  would like to have a persistent xml file that will not be deleted
when
 I
  un-deploy the app.
  
 
 save your context file as:
 webapp_name/META-INF/context.xml
 
  Can someone please tell me which is correct?
  
  Regards,
  
  -Dennis
  
  

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



SSL Client Authentication

2006-01-31 Thread Markus
Hi!

Setting clientAuth to true in the coyote connector configuration
forces the client to send his client certificate before a ssl session
to any page/servlet is established.

I'd like to divide my webapp into two areas:

1) a public area whith ssl encryption only
   for example mydomain.com/public/...

and

2) a private (personalized) area which is only accessible by ssl AND
client authentication.
   for example mydomain.com/private/...

Is it possible to enable/disable client authentication by directory or
by servlet using tomcat?

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



Tomcat log to syslog

2006-01-31 Thread Mark F
I have installed Tomcat 5.0.19 on Suse Linux Enterprise Server 9 
SP3(SLES) If there is a newer version available for SLES could someone 
please let me know where to find it.


As a relatively new user of SLES, poor package availability has been my 
only significant gripe.


I would like to configure the logger to use syslog instead of the 
default logging mechanism for both application logs and system log 
(catalina.out)


Your help would be greatly appreciated.

Thanks,
-Mark


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



Tomcat and client certificates

2006-01-31 Thread Tom Bednarz
Is it possible to run on the same container (instance of Tomcat) web 
application that DO require certificates and other applications that do 
NOT require certificates?


To define required client certificate authorization one needs to define 
in SERVER.XML


Connector className= port=8443... scheme=https..
  Factory className 
=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
  clientAuth=true protocol=TLS 
keystoreFile=MyPath/MyKeystoreFile ./

/Connector

The thing is, I have at a customer site a web-application that serves a 
mixed PKI environment. This means, that some users use chip-cards and a 
Single Sign On solution to authenticate. But there is also a quite big 
population of users who still use a standard username/password 
authentication over an SSL connection. So for both cases I need SSL.


Is there any way of defining this on an application level, which would 
mean the definition should go into web.xml instead of server.xml. I then 
could make two web applications, one defined for users with a 
Certificate and one for users without. If that is not possible, I need 
two servers, each running an instance of Tomcat with different 
server.xml settings.


Any suggestions would be greatly apreciated.

Tom

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



Re: is there any way to monitor application server when it is working ?

2006-01-31 Thread Haroon Rafique
On Today at 12:25am, LW=Legolas Woodland [EMAIL PROTECTED] wrote:

LW thank you for reading my post
LW 
LW is there any application that help monitor an application server when it is
LW working ?
LW for example , total active sessions , Connections , ... i need this 
LW application to monitor my tomcat and sun application server , but if 
LW there is no application that help monitor both of them , then i will 
LW be happy to monitor at least one of them (TOMCAT)
LW 

Hi Legolas,

I use my own homegrown scripts to capture the output from 
/manager/status?XML=true and then feed it into an RRD graphing system.
The downside is that you will have a bit of a learning curve when trying 
to setup RRD for the first time.

You can see my live stats at:
http://haroon.sis.utoronto.ca/perl/rrd.cgi/tomcat_stats/

The scripts are available at:
http://haroon.sis.utoronto.ca/rrd/scripts/

--
Haroon Rafique
[EMAIL PROTECTED]


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



Specifying SSL Provider During Startup

2006-01-31 Thread Jeba Bhaskaran
Is there any way to to speicify which SSL provider an
tomcat instance should during startup? I know I can
specify it in the java.security file, but I can not
modify the existing java.security as it is shared by
other instances of tomcat as well as app servers. 

Jeba

__
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: Tomcat and client certificates

2006-01-31 Thread Caldarale, Charles R
 From: Tom Bednarz [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat and client certificates
 
 If that is not possible, I need two servers, each running 
 an instance of Tomcat with different server.xml settings.

I haven't tried it, but I would think all you need is two sets of
Connector tags, not two complete installations.  You'd have to
differentiate between them by IP address or port numbers, of course.

 - Chuck


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

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



RE: Tomcat log to syslog

2006-01-31 Thread Caldarale, Charles R
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of Mark F
 Subject: Tomcat log to syslog
 
 If there is a newer version available for SLES 
 could someone please let me know where to find it.

Other than the optional APR connector, Tomcat is pure Java, so just grab
the latest level from the Tomcat download page.  You'll need a
GNU-compatible untar program.

http://tomcat.apache.org/download-55.cgi

 - 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: Cannot create JDBC driver of class '' for connect URL 'null'

2006-01-31 Thread Petr Hadraba
Hi,

I have the following problem. I found this solution:

There is in the server.xml the Resource tag describing your
dataSource. Move this element into the Context element in the same xml
file (at the bottom).

See http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html
section `JDBC Data Sources'

Have a nice time

PETR


On 1/31/06, Lothar Krenzien [EMAIL PROTECTED] wrote:
 Hi,

 after switching from Tomcat 5.5.9 to 5.5.15  I get the following error :

 2006-01-31 16:43:38,130 [INFO ] QueryLogger.*** error.
 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of 
 class '' for connect URL 'null'
 at 
 org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
 at 
 org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
 at 
 org.objectstyle.cayenne.access.DataNode.performQueries(DataNode.java:298)
 at 
 org.objectstyle.cayenne.access.DataDomainQueryAction.performQuery(DataDomainQueryAction.java:107)
 at 
 org.objectstyle.cayenne.access.DataDomain.performQueries(DataDomain.java:643)
 at 
 org.objectstyle.cayenne.access.DataContext.performQueries(DataContext.java:1100)
 at 
 org.objectstyle.cayenne.access.Transaction.performQueries(Transaction.java:207)
 at 
 org.objectstyle.cayenne.access.DataContext.performQueries(DataContext.java:1068)
 at 
 org.objectstyle.cayenne.access.DataContextSelectAction.performQuery(DataContextSelectAction.java:173)
 at 
 org.objectstyle.cayenne.access.DataContextSelectAction.performQuery(DataContextSelectAction.java:93)
 at 
 org.objectstyle.cayenne.access.DataContext.performQuery(DataContext.java:1200)
 at com.sr2.back.dao.UserDAO.getAvailableRoles(UserDAO.java:168)
 

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


 I have copied the settings and libraries from the old (5.5.9) tomcat version 
 to the new (5.5.19) version. And there *is* a JDBC driver in the commons/lib 
 dir. I'm not sure is it a tomcat or cayenne problem. So I will post it here 
 and in the cayenne group. But database access seems to work anyway. 
 Additionally I've just realized that the UserDAO class is called twice and 
 the second one it works without an error. So where does Tomcat searching for 
 the database ? Normally it should passed per JNDI.


 Thanks, Lothar
 __
 XXL-Speicher, PC-Virenschutz, Spartarife  mehr: Nur im WEB.DE Club!
 Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130


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




Re: Tomcat 5.5.9 + JDK 1.4.2 + Freebsd 5.3

2006-01-31 Thread Mike Sabroff

and shutdown.sh

Vinu Varghese wrote:

Hi,

I am running Tomcat 5.5.9 with JDK 1.4.2 on freebsd 5.3. I use the 
'catalina.sh start' to start tomcat. Now it creates a bunch of java 
processes - which can be seen using ps command. Now the problem is 
when I shutdown tomcat with command 'catalina.sh stop' , still there 
exists some java processes that doesn't get killed. Why is this so ?


- Regards
Vinu



--
Mike Sabroff
Web Services
Developer
[EMAIL PROTECTED]
920-568-8379


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



Re: From Java to C#, ASP.NET [Off Topic]

2006-01-31 Thread David Tonhofer, m-plify S.A.

Hello,

I think will have to make amends for my post where I recommended
to consider steering clear of J2EE. Thus deepening the off-topicness.

Jess Holle said it:


This affects things ranging from surveys of developers asking Which of
the following do you use? (a) J2EE, (b) .NET, ... where developers may
say no, I don't use J2EE as I don't use EJBs to a silly stigma against
things like Hibernate (...)


I have indeed fallen into the trap of equating J2EE and EJB. Sorry about
that.

But I must somewhat disagree with Wade Chandler
[EMAIL PROTECTED] when he says:


J2EE is an API set to support some specifications


and strongly with Leon rosenberg [EMAIL PROTECTED]:


Hibernate and spring are heavily J2EE based


Going by the large bookshelf on my left, wherefrom I grab the olde book from
O'Reilly, Java Enterprise In A Nutshell, I read:

: Before we go any further, let's be clear. The term 'enterprise computing'
: is simply a synonym for distributed computing: computation done by groups of
: programs interacting over a network.

Oops, let's jump directly to the reference then! (Note: For me at least,
'enterprise computing' is a synonym for reliable, stable applications possibly
running on a single central server for which the APIs used and exported are
well known, for which you can find support and for which you can do maintenance.
Or put another way: I don't care about the 'distributed' part until I need it.
End of Note.)

Skipping the adjectives, a J2EE-compliant platform is a container environment
that presents the following APIs, called the Java Enterprise APIs, to client
code:

- JDBC 2.0: Working with databases (now in J2SE)
- RMI: Remote method Invocation (Java RMI + RMI/IIOP, Java RMI is now in
  J2SE)
- Java IDL: CORBA distributed objects
- JNDI: Accessing Naming and Directory Services, generally through LDAP (now
  in J2SE I think)
- EJB: Enterprise JavaBeans
- Servlets: Everyone knows what that is. Have a Tomcat.
- JMS: Enterprise Messaging.
- JTA: Managing Distributed Transactions.

plus (according to http://java.sun.com/j2ee/1.4/docs/api/index.html)

- JavaMail: Mail sending and Mail processing API (can be downloaded separately)
- JMX: Instrumentation and Management interfaces (can be downloaded separately)
- XML: DOM and SAX and XSLT and stuff (can be downloaded separately)
- XML-RPC: The SOAP way of doing RMI

You can chuck the J2EE container environment and mix-and-match open or closed
implementations of the above APIs. Then you can layer higher-level stuff on
top of the above: JDO, Hibernate, iBATIS, JSP/Struts, Java Tuple Spaces.
Whatever. But using the APIs does not mean that you are 'J2EE based'. It
just means that you use an API that has been included in the J2EE specification.

Wade again:


I believe what we see more of is the marketing hype
and FUD confuses the use cases for many people and
recruiters and human resource departments at
organizations make it even more confusing for some
others by the fact they don't know what their
organization needs and all they know is what is on
paper and then they try to talk about things like they
know what they are talking about.


Couldn't agree more. Myself, I have to stop and ask Do I REALLY need
this API? Would it make my life easier or would it make it more
difficult? What about about using 'simple solution X' here?

And given the time constraints, 'simple solution X' it often is.

Jess Holle again:


The fact is that EJBs are just the most complex piece of J2EE.
App server vendors love to get you all wrapped up in them because
unlike most everything else in J2EE you need a full blown app server
to do them (...)


This paragraph made me think of this article by Neil_Ward Dutton
http://www.regdeveloper.co.uk/2005/12/16/service_component_architecture/:


I’m happy to admit that there’s long been a conspiracy theorist
living in my brain, telling me that J2EE was an attempt by the
established players (IBM, BEA and Oracle, aided by Sun) to lock small
vendors out from the Java application server market opportunity. For most
of the time the primary evidence to support my feverish imaginings was
the fact that certifying products to J2EE has always been expensive ? and
it has become more expensive as the specification has become more
complicated. Small vendors had real trouble getting the resources together
to play that game. Now, though, I’m starting to think that the increasingly
audible developer discontent with J2EE adds fuel to my fire.



It is entirely possible that J2EE was developed altruistically by the
folks involved in the process. However good the original intention was,
though, the large vendors’ sales and marketing teams have certainly been
happy to associate complete J2EE compliance with the ability to deal
with real-world requirements in customers’ minds.


Right, my bus leaves in 2 minutes...

Best regards,

-- David


-
To unsubscribe, e-mail: [EMAIL PROTECTED]

File /jsp/struts-html not found

2006-01-31 Thread Lothar Krenzien
Hi,

I'm having a struts 1.1 application on tomcat 5.5.9. Because of some mysterious 
problems (see my previous post can't load any JSP anymore in this list) I 
switched to 5.5.15 but now have an another problem. In the browser I get the 
following error:

org.apache.jasper.JasperException: File /jsp/struts-html not found
at 
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:105)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:430)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154)
at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:180)
at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:354)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:381)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:795)
at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

In the log file I found the following line 
2006-01-31 19:07:38,801 [INFO ]Exception initializing TldLocationsCache: XML 
parsing error on file /WEB-INF/web.xml: (line 3, col 9): Document is invalid: 
no grammar found.

But the file is *absolutly* identically with the last working version. Here's 
the begin of the web.xml :

?xml version=1.0 encoding=ISO-8859-1?

web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd
version=2.4

/web-app


I can't see any error on it. Does anybody know what could be wrong ? A few days 
ago I upgraded to stuts 1.2 but now swichted back to 1.1. In earlier post I've 
read that there was a problem with Xerces:

  http://mail-archives.apache.org/mod_mbox/tomcat-users/200312.mbox/browser

But I use the same version that worked all the time. I can't figure out what 
could be wrong.
Lothar
__
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


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



RE: File /jsp/struts-html not found

2006-01-31 Thread Diwan, Dronesh \(Genworth, Contractor\)
Hi Lothar,
Seems there is some configration problem or tld file is not in place.Can
you send your web.xml and struts-conf.xml.

Thanks,

Dronesh

-Original Message-
From: Lothar Krenzien [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 31, 2006 1:42 PM
To: users@tomcat.apache.org
Subject: File /jsp/struts-html not found


Hi,

I'm having a struts 1.1 application on tomcat 5.5.9. Because of some
mysterious problems (see my previous post can't load any JSP anymore
in this list) I switched to 5.5.15 but now have an another problem. In
the browser I get the following error:

org.apache.jasper.JasperException: File /jsp/struts-html not found
at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand
ler.java:105)
at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java
:430)
at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java
:154)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:1
80)
at
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:354)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:381)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:795)
at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:
199)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:
153)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:473)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:190)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

In the log file I found the following line 
2006-01-31 19:07:38,801 [INFO ]Exception initializing TldLocationsCache:
XML parsing error on file /WEB-INF/web.xml: (line 3, col 9): Document is
invalid: no grammar found.

But the file is *absolutly* identically with the last working version.
Here's the begin of the web.xml :

?xml version=1.0 encoding=ISO-8859-1?

web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd
version=2.4

/web-app


I can't see any error on it. Does anybody know what could be wrong ? A
few days ago I upgraded to stuts 1.2 but now swichted back to 1.1. In
earlier post I've read that there was a problem with Xerces:

 
http://mail-archives.apache.org/mod_mbox/tomcat-users/200312.mbox/browse
r

But I use the same version that worked all the time. I can't figure out
what could be wrong.
Lothar
__
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


-
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: Cannot create JDBC driver of class '' for connect URL 'null'

2006-01-31 Thread Lothar Krenzien

Hi Petr,

thanks for your answer. That exactly the configuration I have. But after 
playing around I got success by removing the line

Listener className=org.apache.catalina.core.AprLifecycleListener /

from the server.xml. Even I don't know what it means ;)


Lothar

Tomcat Users List users@tomcat.apache.org schrieb am 31.01.06 17:55:29:
 
 Hi,
 
 I have the following problem. I found this solution:
 
 There is in the server.xml the Resource tag describing your
 dataSource. Move this element into the Context element in the same xml
 file (at the bottom).
 
 See http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html
 section `JDBC Data Sources'
 
 Have a nice time
 
 PETR
 
 
 On 1/31/06, Lothar Krenzien [EMAIL PROTECTED] wrote:
  Hi,
 
  after switching from Tomcat 5.5.9 to 5.5.15  I get the following error :
 
  2006-01-31 16:43:38,130 [INFO ] QueryLogger.*** error.
  org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver 
  of class '' for connect URL 'null'
  at 
  org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
  at 
  org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
  at 
  org.objectstyle.cayenne.access.DataNode.performQueries(DataNode.java:298)
  at 
  org.objectstyle.cayenne.access.DataDomainQueryAction.performQuery(DataDomainQueryAction.java:107)
  at 
  org.objectstyle.cayenne.access.DataDomain.performQueries(DataDomain.java:643)
  at 
  org.objectstyle.cayenne.access.DataContext.performQueries(DataContext.java:1100)
  at 
  org.objectstyle.cayenne.access.Transaction.performQueries(Transaction.java:207)
  at 
  org.objectstyle.cayenne.access.DataContext.performQueries(DataContext.java:1068)
  at 
  org.objectstyle.cayenne.access.DataContextSelectAction.performQuery(DataContextSelectAction.java:173)
  at 
  org.objectstyle.cayenne.access.DataContextSelectAction.performQuery(DataContextSelectAction.java:93)
  at 
  org.objectstyle.cayenne.access.DataContext.performQuery(DataContext.java:1200)
  at com.sr2.back.dao.UserDAO.getAvailableRoles(UserDAO.java:168)
  
 
  Caused by: java.sql.SQLException: No suitable driver
  at java.sql.DriverManager.getDriver(DriverManager.java:243)
  at 
  org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:773)
 
 
  I have copied the settings and libraries from the old (5.5.9) tomcat 
  version to the new (5.5.19) version. And there *is* a JDBC driver in the 
  commons/lib dir. I'm not sure is it a tomcat or cayenne problem. So I will 
  post it here and in the cayenne group. But database access seems to work 
  anyway. Additionally I've just realized that the UserDAO class is called 
  twice and the second one it works without an error. So where does Tomcat 
  searching for the database ? Normally it should passed per JNDI.
 
 
  Thanks, Lothar
  __
  XXL-Speicher, PC-Virenschutz, Spartarife  mehr: Nur im WEB.DE Club!
  Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


__
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


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



Re: Tomcat 5.5.9 + JDK 1.4.2 + Freebsd 5.3

2006-01-31 Thread Vinu Varghese

Hi Mike
Thank you.
But what is difference in using startup.sh and catalina.sh start. The 
startup.sh simply calls catalina.sh with start .


- Regards
Vinu

Mike Sabroff wrote:


and shutdown.sh

Vinu Varghese wrote:


Hi,

I am running Tomcat 5.5.9 with JDK 1.4.2 on freebsd 5.3. I use the 
'catalina.sh start' to start tomcat. Now it creates a bunch of java 
processes - which can be seen using ps command. Now the problem is 
when I shutdown tomcat with command 'catalina.sh stop' , still there 
exists some java processes that doesn't get killed. Why is this so ?


- Regards
Vinu





--


Vinu Varghese
[EMAIL PROTECTED]
www.x-minds.org



Session.getId() throws IllegalStateException

2006-01-31 Thread Blair Cooper
The following code generates an exception when getId() is called with 

Tomcat 5.5.15. In 5.5.7 it returned the session id.

 

I realize that the session is being invalidated, thus valueUnbound()
being 

called. I also realize that the servlet spec/errata says that this 

exception should be thrown when the session is invalid. I would contend 

that; at the time valueUnbound() is called the session should still be 

considered valid.

 

In our code we need to know which session is being invalidated in order
to 

do some cleanup. Any chance that Tomcat would be changed/fixed to not
mark 

the session as invalid until it has finished notifying the 

HttpSessionBindingListeners?

 

Thanks,

Blair Cooper

 

 

public void valueUnbound(HttpSessionBindingEvent event) 

{

  String sessId = event.getSession().getId();

}

 

 

java.lang.IllegalStateException: getId: Session already invalidated

  at 

org.apache.catalina.session.StandardSession.getId(StandardSession.java:3
28)

  at 

org.apache.catalina.session.StandardSessionFacade.getId(StandardSessionF
acade.java:78)

  at
com.teamon.util.system.SessionList.valueUnbound(SessionList.java:99)

  at 

org.apache.catalina.session.StandardSession.removeAttributeInternal(Stan
dardSession.java:1607)

  at 

org.apache.catalina.session.StandardSession.expire(StandardSession.java:
737)

  at 

org.apache.catalina.session.StandardSession.isValid(StandardSession.java
:577)

  at 

org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:
678)

  at 

org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.ja
va:663)

  at 

org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.j
ava:1283)

  at 

org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
essChildren(ContainerBase.java:1568)

  at 

org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
essChildren(ContainerBase.java:1577)

  at 

org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
essChildren(ContainerBase.java:1577)

  at 

org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(
ContainerBase.java:1557)

  at java.lang.Thread.run(Unknown Source)

 




-
This transmission (including any attachments) may contain confidential 
information, privileged material (including material protected by the 
solicitor-client or other applicable privileges), or constitute non-public 
information. Any use of this information by anyone other than the intended 
recipient is prohibited. If you have received this transmission in error, 
please immediately reply to the sender and delete this information from your 
system. Use, dissemination, distribution, or reproduction of this transmission 
by unintended recipients is not authorized and may be unlawful.


Re: Tomcat 5.5.9 + JDK 1.4.2 + Freebsd 5.3

2006-01-31 Thread Mike Sabroff
I can't answer that, but it seems to make a difference. It also helps to 
have a setenv.sh which contains all of the environment variables i.e 
CATALINA_HOME JAVA_HOME, etc.

catalina.sh looks for this.

Actually, I never tried to go straight to the catalina.sh

Vinu Varghese wrote:

Hi Mike
Thank you.
But what is difference in using startup.sh and catalina.sh start. The 
startup.sh simply calls catalina.sh with start .


- Regards
Vinu

Mike Sabroff wrote:


and shutdown.sh

Vinu Varghese wrote:


Hi,

I am running Tomcat 5.5.9 with JDK 1.4.2 on freebsd 5.3. I use the 
'catalina.sh start' to start tomcat. Now it creates a bunch of java 
processes - which can be seen using ps command. Now the problem is 
when I shutdown tomcat with command 'catalina.sh stop' , still there 
exists some java processes that doesn't get killed. Why is this so ?


- Regards
Vinu







--
Mike Sabroff
Web Services
Developer
[EMAIL PROTECTED]
920-568-8379


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



MAPPING configuration error for request URI /

2006-01-31 Thread Sadjied Idoe
Hi,

I am a newbie in Tomcat. I have just installed Tomcat4 on Apache2, on a
debian sarge system.

This is what I see in the log file :
2006-01-31 19:28:39 StandardHost[unlimited-xs.com]: MAPPING configuration
error for request URI /numguess.jsp
2006-01-31 20:03:11 StandardHost[unlimited-xs.com]: MAPPING configuration
error for request URI /
2006-01-31 20:03:18 StandardHost[unlimited-xs.com]: MAPPING configuration
error for request URI /index.jsp

What can be wrong? I hope someone can helpe me?

Thank you

Sadjied Idoe



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



Cannot transform and load jsp file with Tomcat under Eclipse

2006-01-31 Thread David Ziants
This is the first time I have had to do my own configuration of tomcat 
(5.5) using eclipse (3.1) and Java 5, and I am having a few teething 
problems.


Everything is installed under Windows XP. I just took the latest release 
of Tomcat as I see there ought to be proper support for Java 5 which I 
am using for my project.


I wish to write a JSP and also a servlet, and I added markups to my 
WEB-INF/web.xml :


==

  servlet
  servlet-nameorg.musaravicha.servlets.ControlServlet/servlet-name
  
servlet-classorg.musaravicha.servlets.ControlServlet/servlet-class

  /servlet

  servlet-mapping
  servlet-nameorg.musaravicha.servlets.ControlServlet/servlet-name
  url-pattern/ControlServlet/url-pattern
  /servlet-mapping

  servlet
  servlet-nameshowlogin_jsp/servlet-name
  servlet-classshowlogin_jsp/servlet-class
  load-on-startup6/load-on-startup
  /servlet
==

I also added META-INF\context.xml file:
==
?xml version=1.0 encoding=UTF-8?
Context path=D:\eclipse_ws_swing\MusarAvicha/
==

What am I (or might be) missing or doing wrong?

When I start Tomcat from within Eclipse I get a log which I quote at the 
end of this posting. I put file showlogin.jsp directly in the WebContent 
directory.


From the log it seems that it does not transform the .jsp into the 

showlogin_jsp class file for loading to Tomcat. How do I incorperate jsp ?


Thank you in advance.

David Ziants

[EMAIL PROTECTED]



==

usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] 
[ -nonaming ] { start | stop }
Jan 31, 2006 5:13:51 PM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance 
in production environments was not found on the java.library.path: 
C:\Program 
Files\Java\jdk1.5.0_04\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program 
Files\Java\jdk1.5.0_04\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program 
Files\MySQL\MySQL Server 5.0\bin

Jan 31, 2006 5:13:51 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jan 31, 2006 5:13:51 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 906 ms
Jan 31, 2006 5:13:51 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 31, 2006 5:13:51 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.15
Jan 31, 2006 5:13:51 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jan 31, 2006 5:13:51 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet showlogin_jsp as unavailable
Jan 31, 2006 5:13:51 PM org.apache.catalina.core.ApplicationContext log
SEVERE: Error loading WebappClassLoader
delegate: false
repositories:
  /WEB-INF/classes/
-- Parent Classloader:
[EMAIL PROTECTED]
showlogin_jsp
java.lang.ClassNotFoundException: showlogin_jsp
  at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
  at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
  at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1034)
  at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
  at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)
  at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)

  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
  at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
  at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
  at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)

  at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

  at java.lang.reflect.Method.invoke(Method.java:585)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jan 31, 2006 5:13:51 PM org.apache.catalina.core.StandardContext 
loadOnStartup

SEVERE: Servlet /MusarAvicha threw load() exception
java.lang.ClassNotFoundException: showlogin_jsp
  at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
  at 

Re: Cannot transform and load jsp file with Tomcat under Eclipse

2006-01-31 Thread Vinu Varghese

Hi David,
Just put your jsp files to 'D:\eclipse_ws_swing\MusarAvicha' directory 
and remove the

servlet
 servlet-nameshowlogin_jsp/servlet-name
 servlet-classshowlogin_jsp/servlet-class
 load-on-startup6/load-on-startup
 /servlet

from your web.xml. Then try to access the jsp files thru the browser.

- Regards
Vinu

David Ziants wrote:

This is the first time I have had to do my own configuration of tomcat 
(5.5) using eclipse (3.1) and Java 5, and I am having a few teething 
problems.


Everything is installed under Windows XP. I just took the latest 
release of Tomcat as I see there ought to be proper support for Java 5 
which I am using for my project.


I wish to write a JSP and also a servlet, and I added markups to my 
WEB-INF/web.xml :


==

  servlet
  
servlet-nameorg.musaravicha.servlets.ControlServlet/servlet-name
  
servlet-classorg.musaravicha.servlets.ControlServlet/servlet-class

  /servlet

  servlet-mapping
  
servlet-nameorg.musaravicha.servlets.ControlServlet/servlet-name

  url-pattern/ControlServlet/url-pattern
  /servlet-mapping

  servlet
  servlet-nameshowlogin_jsp/servlet-name
  servlet-classshowlogin_jsp/servlet-class
  load-on-startup6/load-on-startup
  /servlet
==

I also added META-INF\context.xml file:
==
?xml version=1.0 encoding=UTF-8?
Context path=D:\eclipse_ws_swing\MusarAvicha/
==

What am I (or might be) missing or doing wrong?

When I start Tomcat from within Eclipse I get a log which I quote at 
the end of this posting. I put file showlogin.jsp directly in the 
WebContent directory.


From the log it seems that it does not transform the .jsp into the 


showlogin_jsp class file for loading to Tomcat. How do I incorperate 
jsp ?



Thank you in advance.

David Ziants

[EMAIL PROTECTED]



== 



usage: java org.apache.catalina.startup.Catalina [ -config {pathname} 
] [ -nonaming ] { start | stop }
Jan 31, 2006 5:13:51 PM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the 
java.library.path: C:\Program 
Files\Java\jdk1.5.0_04\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program 
Files\Java\jdk1.5.0_04\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program 
Files\MySQL\MySQL Server 5.0\bin

Jan 31, 2006 5:13:51 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jan 31, 2006 5:13:51 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 906 ms
Jan 31, 2006 5:13:51 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 31, 2006 5:13:51 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.15
Jan 31, 2006 5:13:51 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jan 31, 2006 5:13:51 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet showlogin_jsp as unavailable
Jan 31, 2006 5:13:51 PM org.apache.catalina.core.ApplicationContext log
SEVERE: Error loading WebappClassLoader
delegate: false
repositories:
  /WEB-INF/classes/
-- Parent Classloader:
[EMAIL PROTECTED]
showlogin_jsp
java.lang.ClassNotFoundException: showlogin_jsp
  at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352) 

  at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198) 

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

  at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
  at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915) 

  at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
  at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)

  at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
  at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
  at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
  at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
  at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)

  at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 


  at java.lang.reflect.Method.invoke(Method.java:585)
  at 

RE: Cannot transform and load jsp file with Tomcat under Eclipse

2006-01-31 Thread Caldarale, Charles R
 From: David Ziants [mailto:[EMAIL PROTECTED] 
 Subject: Cannot transform and load jsp file with Tomcat under Eclipse
 
 I also added META-INF\context.xml file:
 ==
 ?xml version=1.0 encoding=UTF-8?
 Context path=D:\eclipse_ws_swing\MusarAvicha/
 ==

The path attribute is not used when the Context tag is in
META-INF/context.xml, nor when inside a
conf/Catalina/[host_name]/[app_name].xml file.  It may only be used when
your Context is configured in server.xml, and then it gives the
web-visible name of the app, not where the app is stored in your local
file system.  Perhaps you meant to use the docBase attribute.  Suggest a
close reading of the doc:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

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



Performance twice slower on a multiprocessor machine

2006-01-31 Thread Karim Zaki
Dear all,

I'm facing a very odd situation with my Tomcat installation. I don't
know if it is a Tomcat problem or a Java problem, but here is the
situation:

I have a Java-based Vignette app that uses Tomcat as its back-end app
server. I'm running Tomcat 5.0.28 using the server JVM from 1.4.2.

I'm testing the application on two HP servers, a ProLiant DL580 G2
(quad 2.2GHz Xeon, 2GB RAM, hyperthreading disabled) and a ProLiant
DL380 G4 (dual 3.2GHz Xeon, 1GB RAM, hyperthreading enabled), both
running Windows 2000 Advanced Server SP4. On both servers, performance
appears to double when I disable all but one CPU. Performance is
almost the same on both machines when only one processor is enabled on
each, so I don't think it's related to hyperthreading.

Has anyone seen anything like this before? I searched the Tomcat
archives and found no reference to anything similar. Any help would be
appreciated.

Thanks,
Karim

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



RE: Re: Re: APR Connector Shutdown Problem

2006-01-31 Thread Fenlason, Josh
I added the following line to
tomcat-native.1.1.1/jni/native/src/network.c (added at line 388):
apr_socket_opt_set( s, APR_SO_REUSEADDR, 1 );
But I'm still running into the same problem.  

Does anyone who works on the APR Connector have any input on this?  Or
do I need to post this issue on the dev list?  Thanks.
,
Josh.

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
 Sent: Monday, January 30, 2006 10:07 PM
 To: users@tomcat.apache.org
 Subject: Re: Re: APR Connector Shutdown Problem
 
 
 Not by me, I don't really work on the APR Connector ;-).
 
 In the bind method in network.c is probably easiest.  If you 
 want your patch 
 to be accepted by the dev team, then you should probably wrap it in a 
 '#ifndef WIN32' like httpd does (don't know why, and care 
 even less :).
 
 Fenlason, Josh [EMAIL PROTECTED] wrote in message 
 news:[EMAIL PROTECTED]
 Is there no intent to fix this issue?  Where would I need to 
 make that patch?  Thanks. , Josh.
 
  -Original Message-
  From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
  Sent: Friday, January 27, 2006 8:59 PM
  To: users@tomcat.apache.org
  Subject: Re: APR Connector Shutdown Problem
 
 
  Yeah, the difference is that Httpd calls:
apr_socket_opt_set(s, APR_SO_REUSEADDR, one);
  on the Socket before binding it.  That allows it to bind 
 even though 
  there are still half-closed sockets on systems like Solaris.
 
  About the only work-around is to hack the tcnative code, 
 and recompile 
  it.
 
  Fenlason, Josh [EMAIL PROTECTED] wrote in message 
  
 news:[EMAIL PROTECTED]
  I added the Listener you mentioned to server.xml, but I'm 
 still seeing 
  the issue.  The problem is happening when run the 
 shutdown.sh.  I can 
  understand if things aren't all clean and tidy if Tomcat 
 crashed, but 
  you shouldn't have to wait 4 minutes to restart Tomcat 
 after a planned 
  shutdown.  Apache doesn't work like that.  Any other suggestions on 
  how to get this to shutdown properly?  Thanks in advance. , Josh.
 
   -Original Message-
   From: Mladen Turk [mailto:[EMAIL PROTECTED]
   Sent: Friday, January 27, 2006 1:24 AM
   To: Tomcat Users List
   Subject: Re: APR Connector Shutdown Problem
  
  
   Fenlason, Josh wrote:
I'm running into a problem with the APR connector not
  shutting down
properly.  Tomcat runs fine and there are no errors on
   shutdown, but if
I shut Tomcat down and start it up again I get a socket
  bind failed
error in the catalina log (attached).  I have to wait 
 for several 
minutes between shutdown and startup for Tomcat to be able
   to startup
correctly.  If I run Tomcat without the APR connector, I
   don't have this
issue.  This does not occur on Windows, but does on
  Solaris and AIX.
Has anyone else seen this? One thing I noticed is that 
 the first 
thing logged on
   shutdown is an
AjpAprProtocol pause entry, but there is no shutdown,
   stop or destroy.
Is there any chance the APR connector is just getting
   paused and nothing
is actually stopping it?
Any help would be greatly appreciated.  Thanks in advance.
  
  
   I suppose you have:
   Listener
  className=org.apache.catalina.core.AprLifecycleListener /
   in your server.xml
  
   But of course it doesn't guarantee it will be executed in
  all cases,
   if the JVM crashes for example. On Solaris it can take up
  to 4 minutes
   until the OS recycles the zombie socket.
   You can use:
   ndd -set /dev/tcp tcp_time_wait_interval 6
   To lower that value.
  
   APR does not try to fool the OS like JVM, but rather behaves like 
   Apache httpd.
  
   Regards,
   Mladen.
  
  
  
  
  
 -
   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: Session.getId() throws IllegalStateException

2006-01-31 Thread Remy Maucherat
On 1/31/06, Blair Cooper [EMAIL PROTECTED] wrote:
 The following code generates an exception when getId() is called with
 Tomcat 5.5.15. In 5.5.7 it returned the session id.

 I realize that the session is being invalidated, thus valueUnbound()
 being
 called. I also realize that the servlet spec/errata says that this
 exception should be thrown when the session is invalid. I would contend
 that; at the time valueUnbound() is called the session should still be
 considered valid.

valueUnbond is called after the session has been invalidated.

 In our code we need to know which session is being invalidated in order
 to
 do some cleanup. Any chance that Tomcat would be changed/fixed to not
 mark
 the session as invalid until it has finished notifying the
 HttpSessionBindingListeners?

No (it was the same timing before, but Session.getId didn't throw an
exception), but I agree the change was a very bad decision. Hacking
Tomcat to remove the if (valid) is Session.getId is the way to go.
Other workaround: get the session id in valueBound and store it in a
field of your object.

--
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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



APP/1.3 stops responding

2006-01-31 Thread Eddie Dimond
We are running five apache 2 web servers which all load balance between 12
tomcat 5.0.28 app servers all on SuSE 9.3 machines.  We are experiencing
occasional problems with tomcat not responding to the apache servers.  The
apache/logs/jk.log reports [error] ajp_service::jk_ajp_common.c (1758):
Error connecting to tomcat. Tomcat is probably n
ot started or is listening on the wrong port. every few seconds.  
 
When we access tomcat through the tcp/ip connector port, it responds
correctly. If we try to access the AJP/1.3 port from a browser, the browser
never connects.  When the server is not causing problems, the browser
connects and generates a Severe error in the catalina.out file.
 
The only solution we have found to remedy this problem is to stop and
restart the tomcat server, often having to resort to a kill command to
terminate the process.
 
I've seen this issue discussed on various sites but most of the discussion
concerned some bugs in Red Hat's thread libraries.
 
If any one has experienced this problem, I would appreciate your input.  I
can send config files for analysis.
 
Thanks,
 
 
Eddie Dimond
 


How to secure a folder?

2006-01-31 Thread François
Hi all, 



I've been trying to secure a folder so that BASIC authentication occurs 
whenever someone tries to access a .txt under it, configuring both 
web.xml and tomcat-users.xml. 



I've successfully implemented this type of authentication for jsp files 
(using url-pattern/path/to/my/folder/*/url-pattern), but any other 
type of ressources, and in particular .txt type of files, are not 
protected at all. 



Is there a way to accomplish that? 



Thanks, 



François



rotating tomcat logs

2006-01-31 Thread Patrick Ward

Does Tomcat have a directive for rotating logs?

I would like to rotate out the following logs:

admin.log
catalina.log
host-manager.log
localhost.log
localhost_access_log
manager.log

or do I need to rotate them out manually, e.g.

cp -p admin.log admin.`date +%Y-%m-%d`.log
cat /dev/null  admin.log
--
__

__   ___   Patrick Ward
   /_/| //\  /_/|   Jet Propulsion Lab
   || | | |__ \| || |  Pasadena, CA
___|| | | |__)/| || |___   M/S 2923-120
   /___|| | | |___/  ||/___/|  818-354-7788
  |_|/  |_|/ |_|/   [EMAIL PROTECTED]
__


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



RE: rotating tomcat logs

2006-01-31 Thread Tim Lucia
I use log4j as the logging implementation, and then chose the
RollingFileAppender (Daily or Size--your choice)

Tim

-Original Message-
From: Patrick Ward [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 31, 2006 7:39 PM
To: users@tomcat.apache.org
Subject: rotating tomcat logs


Does Tomcat have a directive for rotating logs?

I would like to rotate out the following logs:

admin.log
catalina.log
host-manager.log
localhost.log
localhost_access_log
manager.log

or do I need to rotate them out manually, e.g.

cp -p admin.log admin.`date +%Y-%m-%d`.log
cat /dev/null  admin.log
-- 
__

 __   ___   Patrick Ward
/_/| //\  /_/|   Jet Propulsion Lab
|| | | |__ \| || |  Pasadena, CA
 ___|| | | |__)/| || |___   M/S 2923-120
/___|| | | |___/  ||/___/|  818-354-7788
   |_|/  |_|/ |_|/   [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: RE: context.xml

2006-01-31 Thread Warren Pace

 
 From: Klotz Jr, Dennis [EMAIL PROTECTED]
 Date: 2006/01/31 Tue AM 08:01:01 EST
 To: Tomcat Users List users@tomcat.apache.org
 Subject: RE: RE: context.xml
 
 Thanks again Warren. 
 
 I guess I must be approaching this from the wrong perspective of what
 the designers originally intended.
 
 I am hoping to find a place for a context.xml to live where it will
 never get deleted. That a customer can change and when we give them a
 new war file, the context.xml changes that they have made will stick
 around.
 
 Is there a way to do this that you know of?
 
Dennis,
Short of defining the context in server.xml, there's nothing I can think of.  I 
believe it's still OK to do this in Tomcat 5.0.  I believe it works in 5.5 but 
is frowned upon. I have a feeling this won't be an option in future releases.
Warren

 -Dennis
 
 -Original Message-
 From: Warren Pace [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, January 31, 2006 5:19 AM
 To: Tomcat Users List
 Subject: Re: RE: context.xml
 
 
  
  From: Klotz Jr, Dennis [EMAIL PROTECTED]
  Date: 2006/01/30 Mon PM 08:28:10 EST
  To: Tomcat Users List users@tomcat.apache.org
  Subject: RE: context.xml
  
  Thanks Warren for the reply.
  
  Wouldn't that version of the file be deleted when I undeploy?
  
 If you're using the manager app to un-deploy the entire folder gets
 deleted.  But if you're packaging your app as a .war file, then you
 always have that copy.
  -Dennis
  
  -Original Message-
  From: Warren Pace [mailto:[EMAIL PROTECTED] 
  Sent: Monday, January 30, 2006 7:41 PM
  To: Tomcat Users List
  Subject: Re: context.xml
  
  
   
   From: Klotz Jr, Dennis [EMAIL PROTECTED]
   Date: 2006/01/30 Mon PM 07:00:03 EST
   To: Tomcat Users List users@tomcat.apache.org
   Subject: context.xml
   
   I thought the name of the xml file located in :
   
   $CATALINA_HOME/conf/[enginename]/[hostname]/
   
   had to match the name of your webapp directory. 
   
   I just read some documentation for 5.5.9 that says otherwise. It
   mentions that under certain conditions it will be created for you.
 But
  I
   would like to have a persistent xml file that will not be deleted
 when
  I
   un-deploy the app.
   
  
  save your context file as:
  webapp_name/META-INF/context.xml
  
   Can someone please tell me which is correct?
   
   Regards,
   
   -Dennis
   
   
 
 -
 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: RE: context.xml

2006-01-31 Thread Caldarale, Charles R
 From: Klotz Jr, Dennis [mailto:[EMAIL PROTECTED] 
 Subject: RE: RE: context.xml
 
 I am hoping to find a place for a context.xml to live where it will
 never get deleted. That a customer can change and when we give them a
 new war file, the context.xml changes that they have made will stick
 around.

Perhaps you could provide your customers with an installation package
that provides the .war file and a master context copy for editing
somewhere outside of Tomcat, along with a deployment script that copies
both the .war and the edited context file into Tomcat.  [Sorry, that
sentence was way too long...]

 - Chuck


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

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



re: Tomcat Manager behaviour difference between 5.0 and 5.5

2006-01-31 Thread Grandy Fu
It seems that no one can answer my question, maybe my English is not 
good enough to express the problem, sorry about that.


Let me rephrase the problem:

Objective:
Allow all users (students) to enable/disable/reload their own tomcat 
applications by using Tomcat Manager.


How:
Users are require to fill some information on the web and a back-end 
program (written in php) will contact Tomcat Manager to do the rest.


Problem:
In Tomcat 5.0.x, there is no problem at all except we like to upgrade it 
to Tomcat 5.5. Tomcat 5.0 will create a XML file under 
$CATALINA_HOME/conf/Catalina/localhost for user's application.


In Tomcat 5.5.x, Tomcat Manager will COPY ALL (including non-servlet, 
non-jsp) files from users' web application directory (public_html) to 
$CATALINA_HOME/webapps directory. This behavior caused 2 major problem: 
1. My $CATALINOA_HOME partition may not be big enough to all hundreds of 
users' web. 2. Tomcat Manager will cause exception and stop copying if 
NOT ALL files under user's public_html directory is world readable hence 
user's servelet application or jsp application may not be able to 
execute and have 404 error.


Question:
Are there any way, parameter to instruct Tomcat Manager to create XML 
file (like Tomcat 5.0.x) for a new application instead copying all files 
to $CATALINA_HOME/webapps?



Grandy


Hi All,

I had setup Tomcat 5.0.x in a school environment for students to write 
their servlet programs. With


 Listener className=org.apache.catalina.startup.UserConfig
directoryName=public_html
homeBase=/home
userClass=org.apache.catalina.startup.HomesUserDatabase/

and some little scripts that make use of tomcat manager, all students 
can deploy/undeploy/reload their own application at their will.


Recently, I was going to upgrade our Tomcat server from 5.0.x to 5.5.x 
and found that my little scripts were not alwyas working as they should 
suppose to. The reason I for this was, in Tomcat 5.0.x, when I call  
http://tomcatserver.edu/manager/deploy?path=/userwar=/home/user/public_html http://tomcatserver.edu/manager/deploy?path=/userwar=/home/user/public_html, 
it will create an XML file (user.xml) under 
$CATALINA_HOME/conf/Catalina/localhost, however, in Tomcat5.5x, it will 
actually COPY all files from user's public_html directory into 
$CATALINA_HOME/webapps/user directory. This behavior have 2 problems, 
this first one is my tomcat server's partition may not be big enough to 
hold few hundred students' servlet files. The second problem is the 
manager application will have exception if not all files in 
/home/user/public_html are world readable. The copying process simply 
stop without copying ALL files but manager application still got the OK 
and those students' servlet will have 404 error.



My question is, are there any parameters for me to set so that Tomcat 
5.5.x manager will behave just like Tomcat 5.0.x which only create an 
XML file when manger's deploy command executed?


Grandy



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



Re: Re: was 404 - now 500

2006-01-31 Thread DEEPA M N
Hi,
  I jus tried this. I created another folder under webapps and the tree 
structure is as below.
  Download1--
  --WEB-INF/web.xml
  --WEB-INF/classes/com/deepa/servlet/DownloadFiles.class
  --WEB-INF/lib
   
  Download1 is under webapps folder. 
  But after trying this too i am getting the same error. The web.xml is shown 
below.
   
  ?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
  display-nameTomcat Documentation/display-name
  description
 Tomcat Documentation.
  /description
servlet
 servlet-nameDownloadFiles/servlet-name
 servlet-classcom.deepa.servlet.DownloadFiles/servlet-class
/servlet
  servlet-mapping
 servlet-nameDownloadFiles/servlet-name
 url-pattern/servlet/DownloadFiles/url-pattern
/servlet-mapping
  /web-app
   
  Here is a error logs file:
   
  2006-02-01 10:15:18 StandardWrapperValve[DownloadFiles]: Servlet 
DownloadFiles is currently unavailable
2006-02-01 10:15:28 StandardWrapperValve[DownloadFiles]: Servlet DownloadFiles 
is currently unavailable
2006-02-01 10:28:45 StandardContext[/jsp-examples]ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@c6f734')
2006-02-01 10:28:45 StandardContext[/jsp-examples]ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@8f9a32')
2006-02-01 10:28:45 StandardContext[/jsp-examples]ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@1d47b2b')
2006-02-01 10:28:45 StandardContext[/jsp-examples]SessionListener: 
contextDestroyed()
2006-02-01 10:28:45 StandardContext[/jsp-examples]ContextListener: 
contextDestroyed()
2006-02-01 10:28:45 StandardContext[/servlets-examples]ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@1aa2c23')
2006-02-01 10:28:45 StandardContext[/servlets-examples]ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@137d4a4')
2006-02-01 10:28:45 StandardContext[/servlets-examples]ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@6963d0')
2006-02-01 10:28:45 StandardContext[/servlets-examples]SessionListener: 
contextDestroyed()
2006-02-01 10:28:45 StandardContext[/servlets-examples]ContextListener: 
contextDestroyed()
2006-02-01 10:28:54 
StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init(): 
ruleChain: [org.apache.webapp.balancer.RuleChain: 
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / 
Redirect URL: http://www.cnn.com], 
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: 
paramName / Target param value: paramValue / Redirect URL: 
http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: 
Redirect URL: http://jakarta.apache.org]]
2006-02-01 10:28:54 StandardContext[/jsp-examples]SessionListener: 
contextInitialized()
2006-02-01 10:28:54 StandardContext[/servlets-examples]SessionListener: 
contextInitialized()
2006-02-01 10:29:25 StandardContext[/Download1]Marking servlet DownloadFiles as 
unavailable
2006-02-01 10:29:25 StandardWrapperValve[DownloadFiles]: Allocate exception for 
servlet DownloadFiles
javax.servlet.ServletException: Error instantiating servlet class 
com.deepa.servlet.DownloadFiles at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:996)
 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 at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
 at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
 at 

Re: Download file Problem - 404 error

2006-01-31 Thread DEEPA M N
Hi,
  wen i checked the log file, i think the error might be in the line of the 
code.
  root = propFile.getProperty(app.directory);
   
  This code should be able to download the files from the server. so i m using 
application.properties where
  app.directory=D:\\temp\\files\\
   
  I doubt because of this line am i not able to run the appln. Pls let me know 
where should i place this application.properties file.
   
  Regards
  deepa
   
  Here is a code snnipet:
  String JAVA_HOME = application.properties;
 // Get a handle on the properties file
 try{
 in = new FileInputStream(JAVA_HOME);
 propFile = new Properties();
 propFile.load(in);
 }
 catch (IOException ignore){}
 separator = /;
 // Get the directory from the application.properties file
 // e.g. C:\\Temp\\Files\\
 root = propFile.getProperty(app.directory);
   
  Deepa
  
 }




-
 Jiyo cricket on Yahoo! India cricket

Re: was 404 - now 500

2006-01-31 Thread Glen Mazza

DEEPA M N wrote:


Hi,
  I jus tried this. I created another folder under webapps and the tree 
structure is as below.
  Download1--
  --WEB-INF/web.xml
  --WEB-INF/classes/com/deepa/servlet/DownloadFiles.class
  --WEB-INF/lib
   
  Download1 is under webapps folder. 
  But after trying this too i am getting the same error. The web.xml is shown below.
   


Since your application appears rather simple, perhaps you can use the 
webapps/servlet-examples (or /jsp-examples) web apps provided by TC by 
default as a base for your work.  (Make sure those are working on your 
TC instance first.)  You can also look at the web.xml files in those two 
 webapps for guidance.


Glen

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



Re: Download file Problem - 404 error

2006-01-31 Thread Glen Mazza

DEEPA M N wrote:


Hi,
  wen i checked the log file, i think the error might be in the line of the 
code.
  root = propFile.getProperty(app.directory);
   
  This code should be able to download the files from the server. so i m using application.properties where

  app.directory=D:\\temp\\files\\
   
  I doubt because of this line am i not able to run the appln. Pls let me know where should i place this application.properties file.
   


I believe it should go in the WEB-INF/classes directory.  (not a 
subdirectory of that, I am unsure if that would also work.)


But I would comment out this portion of the code that opens and reads 
from the properties file and just hardcode the directory for now, while 
you are trying to get your servlet to activate.  (Better yet, even 
comment out the portion that uses this directory information, while you 
are trying to get the servlet to activate.  Best to proceed sequentially 
here rather than try to solve multiple problems at once.)


Glen

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



Re: was 404 - now 500

2006-01-31 Thread vineesh kumar
Ok now u hav created a new hirarchy
 now try make a new file like Download1.xml in the
{TOMCAT_HOME}/conf/Catalina/localhost directory and add the following
lines in that file
  ?xml version=1.0 encoding=UTF-8?
Context docBase=TOMCATDIR/webapps/Download1 path=/Download1/
On 2/1/06, Glen Mazza [EMAIL PROTECTED] wrote:
 DEEPA M N wrote:

  Hi,
I jus tried this. I created another folder under webapps and the tree 
  structure is as below.
Download1--
--WEB-INF/web.xml
--WEB-INF/classes/com/deepa/servlet/DownloadFiles.class
--WEB-INF/lib
 
Download1 is under webapps folder.
But after trying this too i am getting the same error. The web.xml is 
  shown below.
 

 Since your application appears rather simple, perhaps you can use the
 webapps/servlet-examples (or /jsp-examples) web apps provided by TC by
 default as a base for your work.  (Make sure those are working on your
 TC instance first.)  You can also look at the web.xml files in those two
   webapps for guidance.

 Glen

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

2006-01-31 Thread Antonio W. Lagnada
Hi Everyone,

Is there an assumption or some unwritten rule on what the context path
should be when deploying a web application in Tomcat (or any other standard
J2EE Web Server)?

Should an application context like this be allowed?

   # Context 1
   context = /myapp/app1

   # Context 2
   context = /myapp/app2

I double checked the current Servlet Specification (2.4) and the document
was not very specific on what the rules are on the context path.  All it
noted was that the web application context path must be unique.

We have a lead architect that insists on deploying applications this way.
The problems where running into now is that the Tomcat deployer (/manager)
app fails to deploy the second application that has a similar appcontext
pattern (/myapp).  It's probably obvious to most of you why.

Deploy app1.war to context /myapp/app1 (using /manager)  --- SUCCESS
Deploy app2.war to context /myapp/app2 (using /manager)   FAILED

The only issue I see with this is that when Tomcat extracts the contents to
${catalina.home}/webapps directory it super imposes the /myapp/app1
directory when deploying /myapp/app2.

Anyways, you're worthy insights will be appreciated.


Re: Tomcat upgrade: 3.3.1 -- 5.0.28, hang up after running 1 or 2 days

2006-01-31 Thread Glen Mazza

Monica Wu wrote:


This is a update for this problem/solution.

After removing Java 1.5 + Tomcat 5.0, reinstalling Java 1.3 + Tomcat 3.3.1 on 
last Monday, 1/23/2006, everything has been running fine by far.

I have certain confidence to conclude that different versions of Java and 
Tomcat coexisting introduced the upgrade problem.



By the way, may I ask why you needed to install J2EE 1.3 (see below) 
also? I can understand the J2SE SDK, but am unsure why you needed J2EE 
downloaded as well.  I wonder if that is causing conflicts with whatever 
TC itself provides.


Glen



Thank you all for your attention and help!

- Monica

-Original Message-
From: Monica Wu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 24, 2006 11:11 AM
To: Tomcat Users List
Subject: RE: Tomcat upgrade: 3.3.1 -- 5.0.28, hang up after running 1
or 2 days


Thank you for your attention, Glen!

These 2 (good and buggy) production tomcat servers run different web applications on different physical machines. Their hardware and operation systems including Windows service packs are same. Tomcat configuration is very similar. The good tomcat server was brand new (new installed operating system, new web application) and started Java 5.0 + tomcat 5.0 at the very beginning. The buggy one started with Java1.3 + Tomcat 3.3.1 and had ran smoothly about 4 years. 


Regarding the web application on the buggy tomcat 5.0 server. The source code remain the 
same before and after the tomcat upgrade. The only change is to use the new java 1.5 
compiler with option -souce 1.4. Compiling is not a problem. Starting the 
buggy tomcat 5.0 is not a problem. The only problem is hangup after some user access.

All possible changes were minimized during tomcat upgrade.

The buggy tomcat server was rolled back to Java 1.3 + tomcat 3.3.1 again last Friday. This rollback did not fix the problem. Yesterday (last Monday) I removed Java 1.5 + Tomcat 5.0 completely. JDK 1.3 + J2EE 1.3 were re-installed. At this point, everything was rolled back to the state before tomcat upgrade. 


This buggy tomcat server has run okay by far ( 24 hours), but is too early to 
say it is fixed. If it can behave until the end of this week, I may dare to say it 
is fixed and the problem is caused by the upgrade. Maybe the co-existence of Java 
1.3 and 1.5. Maybe co-existence of Tomcat 3.3 and 5.0. Maybe ...

- Monica


-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 24, 2006 10:47 AM
To: Tomcat Users List
Subject: Re: Tomcat upgrade: 3.3.1 -- 5.0.28, hang up after running 1
or 2 days


Monica Wu wrote:



First of all, upgraded to the version I have ever tested. Tomcat 5.0 has been 
running well on my another production server about one year. At that 
installation time, Tomcat 5.0 was the latest. Moreover, having all productions 
share the same Java + tomcat versions is one of my agendas to ease the 
development and maintenance.




Oh!  Now I understand.  Thanks for the explanation and sorry I couldn't 
help you that much with your problem.  It is strange that Tomcat 5.0 has 
been running well for a year on one server but not the new one.  BTW, 
are you running different or the same web applications on the 
good-for-one-year 5.0 server and the buggy new 5.0 one?  I wonder if the 
source of the problem is with the applications that the buggy TC is 
running rather than TC itself.


Glen



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



Re: Jasper 2 JSP Engine How To ant script - ServletException not found

2006-01-31 Thread Glen Mazza

Olinga K. Abbott wrote:


BUILD FAILED
E:\workspace\progsoftware\trunk\source\jasper\build.xml:5: taskdef A class 
needed by class
org.apache.jasper.JspC cannot be found: javax/servlet/ServletException



Of course, it looks like it can't find javax.servlet.ServletException 
while building.  This is kept in servlet-api.jar.




ant -Dtomcat.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5
-Dwebapp.path=E:\workspace\progsoftware\trunk\source\jasper

webapp.path is the working directory, target directory, and source directory, 
since I want to keep
things as simple as possible while getting everything working correctly.


- BEGIN 

project name=Webapp Precompilation default=jspc basedir=. 


property name=ant.lib location=C:/apache-ant-1.6.5/lib/
property name=tomcat.home location=C:/Program Files/Apache Software 
Foundation/Tomcat 5.5/
property name=jdk.tools location=C:/Program 
Files/Java/jdk1.5.0_06/lib/tools.jar/
property name=jasper.compiler location=${ant.lib}/jasper-compiler.jar/
property name=jasper.runtime location=${ant.lib}/jasper-runtime.jar/
property name=servlet.api 
location=${tomcat.home}/common/lib/servlet-api.jar/

echo message=${jasper.compiler}/
echo message=${servlet.api}/
echo message=${jdk.tools}/

path id=classpath
pathelement location=${jdk.javac.path}/
pathelement location=${jasper.compiler}/
pathelement location=${jasper.runtime}/
pathelement location=${servlet.api}/
/path



jdk.javac.path doesn't seem to be defined anywhere--that may be a 
problem.  Also, I'm unsure if it matters, but  ${servlet.api} is listed 
last in this set, so the Jasper libraries listed earlier may not be able 
to find it, and hence may not be able to see the ServletException class. 
 I would move servlet.api before the jasper references.




taskdef classname=org.apache.jasper.JspC name=jasper2
classpath refid=classpath /
/taskdef

target name=jspc
classpath refid=classpath /
jasper2
validateXml=false
uriroot=.
webXmlFragment=./generated_web.xml
outputDir=. /
/target

/project



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