Exception processing JAR

2003-08-20 Thread Tim Davidson
We are using the jregex package in our application, and when tomcat starts it causes 
this error in the tomcat logs, can anyone suggest a reason for it? The same error has 
been seen on other machines with different JAR, but the same exception.

we are using tomcat 4.1.24 java 1.4 winNT

2003-08-20 14:28:09 ContextConfig[crisp] Exception processing JAR at resource path 
/WEB-INF/lib/jregex.jar
javax.servlet.ServletException: Exception processing JAR at resource path 
/WEB-INF/lib/jregex.jar
at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
- Root Cause -
java.io.FileNotFoundException
at 
org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:344)
at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:161)
at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:42)
at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:78)
at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:85)
at 
sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:69)
at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:906)
at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Thanks in advance.

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



How can you give someone a role?

2003-08-14 Thread Tim Davidson
Hi,

How can you give someone a security-role?

when someone accesses a certain jsp, I want to give them a role (no authentication)
how is this possible? All of the examples I've seen require some sort of login.

eg. something like:
 user.setRole(manager);

where I have defined manager:
  security-role
   
  descriptionA manager/description
  
  role-namemanager/role-name
  
  /security-role
  
  login-config
  
  auth-methodFORM/auth-method
  
  realm-namemanager/realm-name
  
  form-login-config
  
 form-login-page/login.jsp/form-login-page
 
 form-error-page/loginError.jsp/form-error-page
 
  /form-login-config
  
  /login-config

many thanks in advance.

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



Preventing access to a directory

2003-08-14 Thread Tim Davidson
Hi,
how can we prevent access to a set of JSP's inside a specific directory?
aparrently there is a directory tag for server.xml?
thanks in advance.

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



RE: Tomcat 4.1 https problem

2003-08-08 Thread Tim Davidson
I've managed to get it working (a problem with the path to the keystore), I'm reading 
a tomcat book, and its really useful to know to type catalina run if tomcat exits 
and you cant see the error messages.

-Original Message-
From: Scott Stewart [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 2:15 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.1  https problem


I am running Tomcat 4.1.24 in standalone mode using https with no problems.

How do you have the non-SSL and SSL Connectors defined in your server.xml?
Also, where do your key/cert files live (i.e. within the Tomcat directory
structure somewhere)?

Thanks,

Scott Stewart
[Manager, Software Development]
[EMAIL PROTECTED]

ClearSky Mobile Media, Inc.
56 E. Pine St. Suite 200
Orlando, FL 32801
USA



-Original Message-
From: Tim Davidson [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2003 9:08 AM
To: Tomcat Users List
Subject: RE: Tomcat 4.1  https problem


I had the same problem, it seems to occur when you uncomment the connector
in server.xml and causes tomcat to exit, making it impossible to see what
the error message was. I gave up in the end. Have you been able to get it
working?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 12:42 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Tomcat 4.1  https problem


Hou, Rowena,
you may by change server.xml like this,try again. You will be
sucessful.
   keystoreFile=mykeystore 
   keystorePass = password 

=== 2003-08-06 16:23:00 ===

Hi,

I've been running Tomcat as a standalone Web server for a while. My 
project run fine at http with sign applet. I want to switch from HTTP 
to HTTPS. I followed the directions in the document 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html; :

   1. keytool -genkey -alias tomcat -keyalg RSA -keystore mykeystore
   2. keytool -certreq -keyalg RSA -alias tomcat -file certreq.csr 
-keystore mykeystore
   and
   3. uncommented the connector provided by the config file:
   Connector className=org.apache.coyote.tomcat4.CoyoteConnector
 port=8443 minProcessors=5 maxProcessors=75
 enableLookups=true
 acceptCount=10 debug=0 scheme=https secure=true
 useURIValidationHack=false
Factory 
className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
   clientAuth=false protocol=TLS 
   keystoreFile=full path to mykeystore 
   keystorePass- changeit 
/
 /Connector

However, it isn't working. I can't start Tomcat at all. I don't get any 
errors at prompt or in the logs; I tried to use command window run 
start tomcat. It popup a command prompt and disappear. If I change 
className to Factory 
className=org.apache.catalina.net.SSLServerSocketFactory
which used in document. I can start Tomcat and get http://localhost:8443;
work but not https://localhost:8443 ( I commented out connector for http in
server.xml file).
I use jakarta-tomcat-4.1.12-LE-jdk14 which come with jbuilder 8. runing on
Window 2000 and IE 6

Question:
1. How can I fix the problem.
2. How can I find out error message? I tried to rum catalina debug 
-security from command prompt. Most of error message is unrecognized.



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

= = = = = = = = = = = = = = = = = = = =




 
 

[EMAIL PROTECTED]
2003-08-08




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



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

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



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



RE: Tomcat 4.1 https problem

2003-08-08 Thread Tim Davidson
I had the same problem, it seems to occur when you uncomment the connector in 
server.xml and causes tomcat to exit, making it impossible to see what the error 
message was. I gave up in the end. Have you been able to get it working?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 12:42 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Tomcat 4.1  https problem


Hou, Rowena,
you may by change server.xml like this,try again. You will be sucessful.
   keystoreFile=mykeystore 
   keystorePass = password 

=== 2003-08-06 16:23:00 ===

Hi,

I've been running Tomcat as a standalone Web server for a while. My project
run fine at http with sign applet. I want to switch from HTTP to HTTPS. 
I followed the directions in the document
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html; : 

   1. keytool -genkey -alias tomcat -keyalg RSA -keystore mykeystore
   2. keytool -certreq -keyalg RSA -alias tomcat -file certreq.csr -keystore
mykeystore
   and
   3. uncommented the connector provided by the config file:
   Connector className=org.apache.coyote.tomcat4.CoyoteConnector
 port=8443 minProcessors=5 maxProcessors=75
 enableLookups=true
 acceptCount=10 debug=0 scheme=https secure=true
 useURIValidationHack=false
Factory
className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
   clientAuth=false protocol=TLS 
   keystoreFile=full path to mykeystore 
   keystorePass- changeit 
/
 /Connector

However, it isn't working. I can't start Tomcat at all. I don't get any
errors at prompt or in the logs; I tried to use command window run start
tomcat. It popup a command prompt and disappear. If I change className to 
Factory className=org.apache.catalina.net.SSLServerSocketFactory 
which used in document. I can start Tomcat and get http://localhost:8443;
work but not https://localhost:8443 ( I commented out connector for http in
server.xml file).
I use jakarta-tomcat-4.1.12-LE-jdk14 which come with jbuilder 8. runing on
Window 2000 and IE 6

Question:
1. How can I fix the problem.
2. How can I find out error message? I tried to rum catalina debug
-security from command prompt. Most of error message is unrecognized. 



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

= = = = = = = = = = = = = = = = = = = =




 
 

[EMAIL PROTECTED]
2003-08-08




-
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: Preventing access to a directory

2003-08-06 Thread Tim Davidson
Thanks.
I googled for examples using secrity-constraint but with not much luck (just many 
people asking how to do it), and I've tried a few things but I'm not having much luck. 
something like:

security-constraint
web-resource-collection  
web-resource-namefoo/web-resource-name
descriptionprevent access to jsp's under bar directory in foo 
webapp/description   
url-pattern/foo/bar/*.jsp/url-pattern  
  /web-resource-collection
/security-constraint

can you help?

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 1:35 PM
To: Tomcat Users List
Subject: Re: Preventing access to a directory


To prevent directlory listings:
http://jakarta.apache.org/tomcat/faq/misc.html#listing

To prevent individual access to jsps, use web.xml and a security constraint.

-Tim

Tim Davidson wrote:
 Hi,
   how can we prevent access to a set of JSP's inside a specific directory?
   aparrently there is a directory tag for server.xml?
 thanks in advance.
  


-
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: Checking for invalidated session

2003-08-01 Thread Tim Davidson
But surely theres a better way?
 Whould I be better off replacing session.invalidate() with session = null?

-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 6:44 PM
To: Tomcat Users List
Subject: Re: Checking for invalidated session


At 08:31 AM 7/31/2003, you wrote:
How can you check to see if a session has already been validated?
i.e.
  if( !session.isInvalidated()) -- what should go here?
{
 session.invalidate();
}

to prevent the following exception:
org.apache.jasper.JasperException: invalidate: Session already invalidated

If you don't want to just catch and ignore the JasperException, then use 
something like this:

try
{
 session.getAttributeNames();
}
catch (java.lang.IllegalStateException isse)
{
 // Session is already invalid
}

justin


Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential
See http://www.nextengine.com/confidentiality.php



-
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: Checking for invalidated session

2003-08-01 Thread Tim Davidson
thanks.
the other option which I dont like was:
try
{
 session.invalidate();
}
catch (Throwable t)
{
 // Session is already invalid
}

-Original Message-
From: Murray [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 2:14 PM
To: Tomcat Users List
Subject: RE: Checking for invalidated session


I'm trying to ensure that a session is newly created when I reach my index
page.  The logic is reversed from your question but I believe the principle
is the same inasmuchas I want to know whether or not a valid session exists.

  if (! session.isNew() )
  {
   session.invalidate();
   %
   rsp:sendRedirect
rsp:encodeRedirectUrl/scoutgroup/index.jsp/rsp:encodeRedirectUrl
   /rsp:sendRedirect
   %
  }

The redirect is to cause the page to be reloaded after the invalidate()
since JSP, by default, creates a new session when the page is loaded.

In the body of the page I had a line
  pYou are in session.  The session id is %=session.getId()%.
which produces The session id is null prior to inserting the redirect.
After the redirect was inserted the html was not sent to the browser until a
valid session was established at which time each visit to or browser refresh
of the page produced a new session id.

Someone with more than three months of playing with this as a spare time
hobby feel free to critique the solution please.

Murray

-Original Message-
From: Tim Davidson [mailto:[EMAIL PROTECTED]
Sent: Friday, 1 August 2003 18:10
To: Tomcat Users List
Subject: RE: Checking for invalidated session


But surely theres a better way?
 Whould I be better off replacing session.invalidate() with session =
null?

-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 6:44 PM
To: Tomcat Users List
Subject: Re: Checking for invalidated session


At 08:31 AM 7/31/2003, you wrote:
How can you check to see if a session has already been validated?
i.e.
  if( !session.isInvalidated()) -- what should go here?
{
 session.invalidate();
}

to prevent the following exception:
org.apache.jasper.JasperException: invalidate: Session already
invalidated

If you don't want to just catch and ignore the JasperException, then use
something like this:

try
{
 session.getAttributeNames();
}
catch (java.lang.IllegalStateException isse)
{
 // Session is already invalid
}

justin


Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential
See http://www.nextengine.com/confidentiality.php



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



Checking for invalidated session

2003-07-31 Thread Tim Davidson
Hi,

How can you check to see if a session has already been validated?
i.e.
 if( !session.isInvalidated()) -- what should go here?
{
session.invalidate();
}

to prevent the following exception:
org.apache.jasper.JasperException: invalidate: Session already invalidated

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



RE: Checking for invalidated session

2003-07-31 Thread Tim Davidson
No that wont work, because if the session was null it would throw a 
nullpointerexception not a servletException with the session is already invalidated 

-Original Message-
From: Moraes, Fabio [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 4:39 PM
To: 'Tomcat Users List'
Subject: RE: Checking for invalidated session
Importance: High



sorry.

session = request.getSession( false );

if( session != null )
{
session.invalidate();
}

---
 Fabio Moraes
 [EMAIL PROTECTED]
 System Engineer
 Work Force Management System
 +55 21 3088 9548


-Original Message-
From: Moraes, Fabio [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 12:37
To: 'Tomcat Users List'
Subject: RE: Checking for invalidated session
Importance: High



i guess this will work fine ...

session = request.getSession( false );

if( session.isNew( ) )
{
out.println( new session );
}

someone let me know if i'm wrong.

hugs,

---
 Fabio Moraes
 [EMAIL PROTECTED]
 System Engineer
 Work Force Management System
 +55 21 3088 9548


-Original Message-
From: Tim Davidson [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 12:32
To: [EMAIL PROTECTED]
Subject: Checking for invalidated session


Hi,

How can you check to see if a session has already been validated?
i.e.
 if( !session.isInvalidated()) -- what should go here?
{
session.invalidate();
}

to prevent the following exception:
org.apache.jasper.JasperException: invalidate: Session already invalidated

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



[OFF-TOPIC] possible virus No Valid Command Found

2003-07-11 Thread Tim Davidson

 Has anyone else recieved about 30 emails from [EMAIL PROTECTED]

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



RE: Custom 500 error page

2003-06-27 Thread Tim Davidson
The change notes are in the distribution under release-notes.txt.

This works for me:
error-page
 error-code500/error-code
 location/jsp/errorPage.jsp/location
 /error-page

-Original Message-
From: Nate [mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2003 5:15 PM
To: Tomcat Users List
Subject: Custom 500 error page


Hi all,

I'm using tomcat 4.1.18 and am having a problem with custom error pages.
I have included the following in my global web.xml file

   error-page
error-code500/error-code
location/server_err.jsp/location
/error-page

however, when a 500 error is returned, it still shows the stack trace
instead of my custom page.  Has anybody seen this before?  I've tried to
search the archives, but they are currently unavailable.

While I'm at it, where can I track down a changelog form 4.1.18 to 4.1.24?

Thanks..
Nathan McMinn


-
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: servlet response.sendRedirect() illegal state exception

2003-06-26 Thread Tim Davidson
It means a response has already been committed (i.e. you have already committed to 
sending HTML from that servlet). Somewhere it your code you are using the printWriter 
or response.sendRedirect or you are already forwarding to another servlet. You should 
avoid having more than one response.sendRedirect/forward or controling it with if 
statements.
You cant do this:
 out.print(HTML);
 response.sendRedirect(..);
 this would cause the llegal state exception.

-Original Message-
From: Shanta B [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 10:49 AM
To: Tomcat Users List
Subject: servlet response.sendRedirect() illegal state exception 


Hi
In my servlet response.sendRedirect i am getting illegal state exception
...could pl tell me how to avoid this...whats does it mean...


Thanks
Shanta.B

-Original Message-
From: Hartmut Bernecker [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 9:40 AM
To: [EMAIL PROTECTED]
Subject: ISAPI integration: Tomcat 4.1.24, IIS 5 with HTTP PUT request


Hello,

I am faced to the problem that the Tomcat-IIS integration doesn't work when
doing some HTTP PUT Request!
HTTP GET and HTTP POST requests works well.
Also HTTP PUT Request works well when running Tomcat standalone (w/o IIS,
Port 8080).

You have some Idea? I do not.

Hartmut Bernecker



THE REQUEST:

PUT /asim/savexml?hierid=12 HTTP/1.1
Content-Type: text/xml
User-Agent: XMLSpyDocEditPlugIn
Host: ep158:
Content-Length: 943
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: JSESSIONID=9A85D9E5B0796C0C309DBC3EB207235F

?xml version=1.0 encoding=UTF-8?
af-longtext
[... some xml data ...]
/af-longtext

THE RESPONSE:

HTTP/1.1 500 Server Error
Server: Microsoft-IIS/5.0
Date: Wed, 25 Jun 2003 14:06:05 GMT
Connection: close
Content-Type: text/html
Content-Length: 79

htmlheadtitleError/title/headbodyFalscher Parameter.
/body/html

THE ISAPI-LOG:

[Wed Jun 25 16:02:16 2003]  [jk_ajp_common.c (1318)]: Error connecting to
tomcat. Tomcat is probably not started or is listening on the wrong port.
Failed errno = 61
[Wed Jun 25 16:02:16 2003]  [jk_isapi_plugin.c (928)]: HttpExtensionProc
error, service() failed

WORKERS PROPERTIES:

worker.list=testWorker
worker.testWorker.port=8009
worker.testWorker.host=localhost
worker.testWorker.type=ajp13

URIWORKERMAP PROPERTIES:

/myApp/*=testWorker





-
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: servlet response.sendRedirect() illegal state exception

2003-06-26 Thread Tim Davidson
h...
 I'm not sure that out.println() is the best way for downloading files (sending files 
to the client), but i dont know enough about file downloading and servlets to be able 
to help. I know there is another approach (or several appraches for that matter 
including setting something in the HTML header to tell the browser to request a file) 
but I dont know enough about it.
 Since you call out.println(..) your response is commited and you cant subsequently 
call response.sendRedirect(..). I think this is more a design issue of your approach 
and without knowing more about what it is you are trying to do I'm afraid i cant help.

-Original Message-
From: Shanta B [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 12:42 PM
To: Tomcat Users List
Subject: RE: servlet response.sendRedirect() illegal state exception 


Hi Tim
  We have one download servlet ..which is called from different
servletsin download servlet
we used out.println() for downloading csv files...so each servlets calls one
servlet ..this servlets redirects request to download servlet...

Ex: FirtServlet calls CentralServlet 
CentralServlet Calls Download servlet

SecondServlet callls CentralServlet
CentralServlet Calls Download servlet
 

so we have used rsp.sendRedirect() in CentralServlet ...In download servlet
we used both following statements 
   PrintWriter out=new PrintWriter(rsp.getOutputStream())
   out.println(messagetodownload);
   out.flush();



sugget  me whats the alternative .

-Original Message-
From: Tim Davidson [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 12:17 PM
To: Tomcat Users List
Subject: RE: servlet response.sendRedirect() illegal state exception 


It means a response has already been committed (i.e. you have already
committed to sending HTML from that servlet). Somewhere it your code you are
using the printWriter or response.sendRedirect or you are already forwarding
to another servlet. You should avoid having more than one
response.sendRedirect/forward or controling it with if statements.
You cant do this:
 out.print(HTML);
 response.sendRedirect(..);
 this would cause the llegal state exception.

-Original Message-
From: Shanta B [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 10:49 AM
To: Tomcat Users List
Subject: servlet response.sendRedirect() illegal state exception 


Hi
In my servlet response.sendRedirect i am getting illegal state exception
...could pl tell me how to avoid this...whats does it mean...


Thanks
Shanta.B

-Original Message-
From: Hartmut Bernecker [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 9:40 AM
To: [EMAIL PROTECTED]
Subject: ISAPI integration: Tomcat 4.1.24, IIS 5 with HTTP PUT request


Hello,

I am faced to the problem that the Tomcat-IIS integration doesn't work when
doing some HTTP PUT Request!
HTTP GET and HTTP POST requests works well.
Also HTTP PUT Request works well when running Tomcat standalone (w/o IIS,
Port 8080).

You have some Idea? I do not.

Hartmut Bernecker



THE REQUEST:

PUT /asim/savexml?hierid=12 HTTP/1.1
Content-Type: text/xml
User-Agent: XMLSpyDocEditPlugIn
Host: ep158:
Content-Length: 943
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: JSESSIONID=9A85D9E5B0796C0C309DBC3EB207235F

?xml version=1.0 encoding=UTF-8?
af-longtext
[... some xml data ...]
/af-longtext

THE RESPONSE:

HTTP/1.1 500 Server Error
Server: Microsoft-IIS/5.0
Date: Wed, 25 Jun 2003 14:06:05 GMT
Connection: close
Content-Type: text/html
Content-Length: 79

htmlheadtitleError/title/headbodyFalscher Parameter.
/body/html

THE ISAPI-LOG:

[Wed Jun 25 16:02:16 2003]  [jk_ajp_common.c (1318)]: Error connecting to
tomcat. Tomcat is probably not started or is listening on the wrong port.
Failed errno = 61
[Wed Jun 25 16:02:16 2003]  [jk_isapi_plugin.c (928)]: HttpExtensionProc
error, service() failed

WORKERS PROPERTIES:

worker.list=testWorker
worker.testWorker.port=8009
worker.testWorker.host=localhost
worker.testWorker.type=ajp13

URIWORKERMAP PROPERTIES:

/myApp/*=testWorker





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

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



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

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



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



RE: Tomcat/Eclipse tutorial?

2003-06-23 Thread Tim Davidson
Theres an even better way - use the MyEclipse plugin at www.myeclipse.com. The plugin 
(EA2), relaesed today supports tomcat webapps and JSP development with JSP syntax 
highlighting and debugging etc..
regards.

-Original Message-
From: Mohun Biswas [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 22, 2003 2:15 PM
To: [EMAIL PROTECTED]
Subject: Tomcat/Eclipse tutorial?


Is there a how-to out there for getting started with Eclipse and Tomcat 
together? I'm reasonably familiar with Tomcat but not Eclipse. To date I've 
set up Eclipse, installed the sysdeo plug-in 
(http://www.sysdeo.com/eclipse/tomcatPlugin.html), and been able to use it 
to start up Tomcat. But I haven't been able to figure out how to do things 
like install and manage my webapp via Eclipse. Eventually I expect to use 
Ant for build and webapp management but if there are basic tools built into 
the Eclipse GUI for this I'd like to start there in order to partition the 
problem of coming up to speed.

Specific help is appreciated, but it feels like there should be a URL 
giving step-by-step instructions somewhere and that would be fine too. Is 
there a John Turner in the Tomcat/Eclipse space?

TIA,
MB


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



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



RE: Tomcat/Eclipse tutorial?

2003-06-23 Thread Tim Davidson
sorry..
http://www.myeclipseide.com/index.php

-Original Message-
From: Keshava Murthy [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 12:13 PM
To: Tomcat Users List
Subject: Re: Tomcat/Eclipse tutorial?


url not working

regards,
Keshava Murthy. S
- Original Message -
From: Tim Davidson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, June 23, 2003 3:20 PM
Subject: RE: Tomcat/Eclipse tutorial?


Theres an even better way - use the MyEclipse plugin at www.myeclipse.com.
The plugin (EA2), relaesed today supports tomcat webapps and JSP development
with JSP syntax highlighting and debugging etc..
regards.

-Original Message-
From: Mohun Biswas [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 22, 2003 2:15 PM
To: [EMAIL PROTECTED]
Subject: Tomcat/Eclipse tutorial?


Is there a how-to out there for getting started with Eclipse and Tomcat
together? I'm reasonably familiar with Tomcat but not Eclipse. To date I've
set up Eclipse, installed the sysdeo plug-in
(http://www.sysdeo.com/eclipse/tomcatPlugin.html), and been able to use it
to start up Tomcat. But I haven't been able to figure out how to do things
like install and manage my webapp via Eclipse. Eventually I expect to use
Ant for build and webapp management but if there are basic tools built into
the Eclipse GUI for this I'd like to start there in order to partition the
problem of coming up to speed.

Specific help is appreciated, but it feels like there should be a URL
giving step-by-step instructions somewhere and that would be fine too. Is
there a John Turner in the Tomcat/Eclipse space?

TIA,
MB


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