AW: Apache Tomcat Filter

2002-06-21 Thread Ralph Einfeldt

If apache serves the static resources you can't protect 
them by a Filter-Servlet. The requests never reach your 
servlet.

AFAIK in a future version of mod_webapp it will be 
possible to define security contraints on the tomcat 
side which will be honored by the connector. (Currently 
it's not clear to me if the connector will directly 
honor this restrictions or if it will just let tomcat 
handle the request. In the later case there would be a 
performance penalty to use this feature)

 -Ursprüngliche Nachricht-
 Von: Günter Kukies [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 21. Juni 2002 07:44
 An: Tomcat Users List
 Betreff: Apache Tomcat Filter
 
 
 Hi,
 
 is it possible to let Apache serve static HTML-Pages from a 
 dir in web-module from tomcat? This dir should be protected 
 by a Filter-Servlet. Is that combination faster than letting 
 tomcat serve the static Pages?
 
 Günter Kukies
 

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




AW: JasperException: Unable to compile class for JSP

2002-06-21 Thread Ralph Einfeldt


Your error message sounds as if pageContext.handlePageException() 
is is defined to accept just an Instance of Exception not Throwable.
That could be caused be a jar file that contains an older version
of the jsdk. (servlet.jar, ...) Have a look at your jar files
that are used for your tomcat. (Don't forget {JAVA_HOME}\jre\lib\ext !)

- Which Version of tomcat do you use ?  

 -Ursprüngliche Nachricht-
 Von: Pearsall, Kyle [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 20. Juni 2002 02:00
 An: Tomcat (E-mail)
 Betreff: JasperException: Unable to compile class for JSP
 
 
 Now I get a different problem.  The jsp files can't compile 
 correctly at runtime.  This code works properly on Weblogic 
 5.1.  Do I need to fix something in Tomcat?  Any suggestions?
 
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 D:\TOMCAT\work\Standalone\localhost\dhimaging\jsp\Albums$jsp.j
 ava:689: Incompatible type for method. Explicit cast needed 
 to convert java.lang.Throwable to java.lang.Exception.
   if (pageContext != null)  pageContext.handlePageException(t);
  ^

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




jsp compiler error

2002-06-21 Thread Halil AKINCI

Hi all,

I installed my computer (windows 98) jdk1.3 and Apache Tomcat 4.0, than I started 
Tomcat 4.0 and it is running now. I typed http://localhost:8080/ my browser and 
accessed tomcat index file. I can run servlet examples but when I want to run JSP 
examples I receive following error message.

What is the wrong? What can I do?

A Servlet Exception Has Occurred
Exception Report:
org.apache.jasper.JasperException: Unable to compile class for JSP
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:558)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2366)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1005)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1098)
at java.lang.Thread.run(Thread.java:536)

Root Cause:
java.lang.NumberFormatException:  Invalid class file format in C
at java.lang.Integer.parseInt(Integer.java:426)
at java.lang.Integer.parseInt(Integer.java:476)
at org.apache.jasper.compiler.Compiler.getJspLineErrors(Compiler.java:321)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:280)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:543)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215)
at 

Catalina.start: LifecycleException:

2002-06-21 Thread Gita

Hello!

I have installed new version of tomcat 4.0.4, which i want working
with j2sdk1.4.0. There for i added two jars wich is important for that
in classpathes ojdbc14.jar and nls_charset12.jar.

My server.xml looks like that:
  Realm className=org.apache.catalina.realm.MemoryRealm /

  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 connectionName=username
 connectionPassword=passwd
 driverName=oracle.jdbc.OracleDriver
  connectionURL=jdbc:oracle:thin:@datsuns:1521:dev8i
  userTable=users userNameCol=user_name userCredCol=user_pass
  userRoleTable=user_roles roleNameCol=role_name /
  
When im starting Tomcat i get such error:

HttpConnector Opening server socket on all host IP addresses
Starting service Tomcat-Standalone
Apache Tomcat/4.0.4
Catalina.start: LifecycleException:  Exception opening database connection:  jav
a.sql.SQLException: oracle.jdbc.OracleDriver
LifecycleException:  Exception opening database connection:  java.sql.SQLExcepti
on: oracle.jdbc.OracleDriver
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343
)
at org.apache.catalina.core.StandardService.start(StandardService.java:3
88)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:506
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.sql.SQLException: oracle.jdbc.OracleDriver
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:538)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343
)
at org.apache.catalina.core.StandardService.start(StandardService.java:3
88)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:506
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)


Any suggestions?

Gita


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




Re: webapp coredump

2002-06-21 Thread Sebastien Reboux

Thanks for your reply,

I do want to integrate both servers as my company believes that Apache
http server is better than Tomcat's, and we want to use apaches's mod_ssl
and user access mechanism, As 'standalone' I was just trying to
explain that Tomcat worked perfectly on its own.
Now it works, if someone can explain why it doesn't with 4.0.3+ .

Regards,

Seb

On Thu, 20 Jun 2002, Eddie Bush wrote:

 I believe you should probably be using one of the http connectors if you're
 running Tomcat stand-alone.  Unless I am mistaken, the mod_webapp connector
 is for integration with Apache.

 HTH,

 Eddie

 - Original Message -
 From: Sebastien Reboux [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, June 20, 2002 11:42 AM
 Subject: Re: webapp coredump


  Re-Hi !
 
  Finally it works :)
 
  I dont know the reason but I can give you my solution in case you
  encounter the same troubles : do not use Tomcat version 4.0.4 nor 4.0.3,
  it works with the 4.0.1 and the associated connectors.
  Of course if anyone can give me an explanation...
 
  Bye.
 
 
  On Thu, 20 Jun 2002, Sebastien Reboux wrote:
 
   Hi !
  
   I try to connect apache 1.3.24 running under solaris 2.7 with Tomcat
 4.0.4
   using mod_webapp 1.2.0-dev ; I would also use mod_ssl (2.8.8) to secure
   everything.
   I'm able to run apache standalone with both http and https, I compiled
 the
   appropriate mod_webapp.so (with -DEAPI to fit with the Apache compil
   options) and I can see the webapp-info page in http and https. Of course
   Tomcat runs Standalone.
   The problem comes when I try to run a jsp from apache via webapp : the
 url
   http(s)://myhost:myapacheport/examples/ produces a webapp 404 error and
 my
   apache error_log looks like this :
  
   [Thu Jun 20 14:58:55 2002] [notice] Apache/1.3.24 (Unix)
   mod_webapp/1.2.0-dev mod_ssl/2.8.8 OpenSSL/0.9.6c configured -- resuming
   normal operations
   [Thu Jun 20 14:58:55 2002] [notice] Accept mutex: fcntl (Default: fcntl)
   [Thu Jun 20 14:59:01 2002] [notice] child pid 18767 exit signal
   Segmentation Fault (11), possible coredump in
 /usr/local/genoplante/apache_1.3.24
  
   The core is created each time I try to access a Deployed directory.
  
   However I sometimes find a deploy application /examples error in my
   apache logs either at startup and at runtime...
  
   Sometimes Netscape shows a dialog box with an I/O error or a Document
   contains no data error.
  
   Can anyone help me ?
  
   ...I already tried tomcat 4.0.3, pre compiled and self
   compiled mod_webapp/jk...
  
  
   --
   Sebastien Reboux
   BioInformaticien
   Genoplante-Info
  
  
   --
   To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
  
 
  --
  Sebastien Reboux
  BioInformaticien
  Genoplante-Info
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


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



-- 
Sebastien Reboux
BioInformaticien
Genoplante-Info


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




Re: Catalina.start: LifecycleException:

2002-06-21 Thread Ravishankar S

hi Gita,

AFAIK the type 4 driver for oracle is called classes112.zip...u have to put
this zip file in tomcat home\lib...if it is still unable to find the
driver...then rename it as classes112.jar or simply unzip the zip file to
classes..

HTH,

ravi

- Original Message -
From: Gita [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, June 21, 2002 12:59 PM
Subject: Catalina.start: LifecycleException:


 Hello!

 I have installed new version of tomcat 4.0.4, which i want working
 with j2sdk1.4.0. There for i added two jars wich is important for that
 in classpathes ojdbc14.jar and nls_charset12.jar.

 My server.xml looks like that:
   Realm className=org.apache.catalina.realm.MemoryRealm /

   Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  connectionName=username
  connectionPassword=passwd
  driverName=oracle.jdbc.OracleDriver
   connectionURL=jdbc:oracle:thin:@datsuns:1521:dev8i
   userTable=users userNameCol=user_name
userCredCol=user_pass
   userRoleTable=user_roles roleNameCol=role_name /

 When im starting Tomcat i get such error:

 HttpConnector Opening server socket on all host IP addresses
 Starting service Tomcat-Standalone
 Apache Tomcat/4.0.4
 Catalina.start: LifecycleException:  Exception opening database
connection:  jav
 a.sql.SQLException: oracle.jdbc.OracleDriver
 LifecycleException:  Exception opening database connection:
java.sql.SQLExcepti
 on: oracle.jdbc.OracleDriver
 at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)

 at
org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)

 at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343
 )
 at
org.apache.catalina.core.StandardService.start(StandardService.java:3
 88)
 at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506
 )
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 - Root Cause -
 java.sql.SQLException: oracle.jdbc.OracleDriver
 at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:538)
 at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)

 at
org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)

 at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343
 )
 at
org.apache.catalina.core.StandardService.start(StandardService.java:3
 88)
 at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506
 )
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)


 Any suggestions?

 Gita


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



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




Re: Segmentation Fault/Document Contains No Data...

2002-06-21 Thread Sebastien Reboux

Hi,

I've spent the last two days having the same troubles, and all I could do
is get rid of 4.0.3 an go back to the 4.0.1 binary version ; I
compiled the 4.0.1 mod_webapp and it now works like a charm.
See Re: webapp coredump a few posts upper.

Good luck,

Seb.

On 20 Jun 2002, Keith Pemberton wrote:

 All Tomcat gurus,

  I was hoping that getting Tomcat4.0.3 and apache 1.3.22 working
 under Redhat would be a quick and easy setup.  I have spent the last
 month, though, just trying to get the examples to come up from
 http://mydomain.com/examples as opposed to
 http://mydomain.com:8180/examples.  Since I have installed using rpms,
 the server.xml file uses port 8180.  Tomcat has no problem running when
 I use the port at the end of my domain name.  I have yet to get apache
 to correctly send the request to Tomcat, though, by not calling the port
 number.  There are two common errors that I keep getting.  In the
 error_log for apache I keep getting a Segmentation Fault.  As well, when
 I try http://mydomain.com/examples I keep getting a popup dialog box
 saying that the document contains no data.  I am trying to use
 mod_webapp module.  Any suggestions would be greatly appreciated!  I
 have been pulling my hair out on this one.  Thanks!

 Keith




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



-- 
Sebastien Reboux
BioInformaticien
Genoplante-Info


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




AW: Catalina.start: LifecycleException:

2002-06-21 Thread Ralph Einfeldt

Shouldn't it be 

oracle.jdbc.driver.OracleDriver instead 
of oracle.jdbc.OracleDriver ?

 -Ursprüngliche Nachricht-
 Von: Gita [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 21. Juni 2002 09:30
 An: Tomcat Users List
 Betreff: Catalina.start: LifecycleException:
 
  driverName=oracle.jdbc.OracleDriver


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




SV: set content type to text/pdf

2002-06-21 Thread hermod . opstvedt

Hi

Install Acrobat Reader - That will do the trick. Currently you have no
association with the .pdf extension.

Hermod

-Opprinnelig melding-
Fra: Alex [mailto:[EMAIL PROTECTED]]
Sendt: 21. juni 2002 09:37
Til: [EMAIL PROTECTED]
Emne: set content type to text/pdf


I have a servlet that generates pdf content.
In the initData method, I use:
  httpservletresponse.setContentType(text/pdf);

When i access the servlet from the browser (i'm using win2k), it opens
a small window asking me what to do with the file (open, save,
cancel..), and then, when i choose open, it asks me which
application should i use to open that file (it is called Tiparire[1],
because my servlet is called Tiparire), and then i choose acrobat
reader.
What can i do so my browser automatically opens the pdf content
generated
by the servlet ?
Thanks in advance...

Alex.



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


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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




RE: set content type to text/pdf

2002-06-21 Thread Dennis van den Berg

Hi,

I think when you make the request go to Tiparire.pdf it should open in your browser.
It somehow also has something to do with the extension.

Dennis.

-Original Message-
From: Alex [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 21 juni 2002 9:37
To: [EMAIL PROTECTED]
Subject: set content type to text/pdf


I have a servlet that generates pdf content.
In the initData method, I use:
  httpservletresponse.setContentType(text/pdf);

When i access the servlet from the browser (i'm using win2k), it opens
a small window asking me what to do with the file (open, save,
cancel..), and then, when i choose open, it asks me which
application should i use to open that file (it is called Tiparire[1],
because my servlet is called Tiparire), and then i choose acrobat
reader.
What can i do so my browser automatically opens the pdf content generated
by the servlet ?
Thanks in advance...

Alex.



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


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




Re: tomcat crash

2002-06-21 Thread Guillaume Mignot

hello
thats tomcat 3.3.1 from freebsd ports with apache
i think it comes from the JVM ?


Bye

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, June 20, 2002 5:59 PM
Subject: RE: tomcat crash


 Howdy,
 Did you build tomcat yourself?  What platform are you running?

 If the JVM ran out of memory, you would see a java.lang.OutOfMemoryError
 in your logs.  You can set the max heap size using ths -Xmx parameter to
 java.

 A segmentation fault is more serious than that, though.  What version of
 tomcat?  With/without Apache or another server?  What hardware?

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: Guillaume Mignot [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 20, 2002 11:49 AM
 To: Tomcat Users List
 Subject: Re: tomcat crash
 
 ok
 if tomcat crash (segfault) is it possible that it is because of the
 stack
 size of the JVM?
 how can i change that?
 
 
 Regards
 - Original Message -
 From: [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, June 20, 2002 4:44 PM
 Subject: Re: tomcat crash
 
 
 
 
  put an infinate, non terminating loop into your servlet doGet() or
 doPost()
  method and the servlet will hang.
 
  Other issues such as running out of JVM memory won't do it any good
 either.
 
  I'm sure there are plenty of other ways to cause mischief if you are
 that
  way inclined
 
 
  Brendan
 
  ---
 
  Hello
  is it possible that a servlet  make tomcat crash?
  domeone has already see that?
 
  Txs
 
  Guillaume
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]


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


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




Re: set content type to text/pdf

2002-06-21 Thread Liam Morley

right. Mozilla and other such browsers listen to the mime type, but IE 
(living in a microsoft world where everything is done via file 
extensions) is famous for relying on the extension rather than the mime 
type.

Liam Morley

Dennis van den Berg wrote:

Hi,

I think when you make the request go to Tiparire.pdf it should open in your browser.
It somehow also has something to do with the extension.

Dennis.



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




Re: AW: Catalina.start: LifecycleException:

2002-06-21 Thread Gita

Hi,

no. in new version there are oracle.jdbc.OracleDriver...

There were written:
Your code should use the package oracle.jdbc instead of the package
oracle.jdbc.driver used in earlier versions of Oracle. Use of the
package oracle.jdbc.driver is now deprecated, but will be supported
for backwards compatibility.
All that is required to covert your code is to replace
oracle.jdbc.driver with oracle.jdbc in the source and
recompile. This cannot be done piecewise. You must convert all classes
and interfaces that are referenced by an application. Conversion is
not required, but is highly recommended.

Gita

RE Shouldn't it be 

RE oracle.jdbc.driver.OracleDriver instead 
RE of oracle.jdbc.OracleDriver ?

 -Ursprüngliche Nachricht-
 Von: Gita [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 21. Juni 2002 09:30
 An: Tomcat Users List
 Betreff: Catalina.start: LifecycleException:
 
  driverName=oracle.jdbc.OracleDriver


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





Gita Kakse Information Technologies
Programming engineer   10 Miesnieku str.
   Riga LV-1050, Latvia
e-mail: [EMAIL PROTECTED] phone: +371-7227577
http://www.it.lv   cell:  +371-9799679



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




AW: set content type to text/pdf

2002-06-21 Thread Ralph Einfeldt

MS IE has sometimes his own opinion what to open and 
ignores the content type.

The safest way to convince IE to open PDF is to set the 
content type to load the file from a url that has the 
extension .pdf.

Additional hint:
  Make shure that your servlet supports Byte range
  requests (HTTP 1.1). The acrobat reader sometimes 
  uses this. (Have a look at the source for the 
  servlet that implements the fileserving for tomcat)

 -Ursprüngliche Nachricht-
 Von: Alex [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 21. Juni 2002 09:37
 An: [EMAIL PROTECTED]
 Betreff: set content type to text/pdf
 
 What can i do so my browser automatically opens the pdf 
 content generated
 by the servlet ?
 Thanks in advance...

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




Changing the JVM

2002-06-21 Thread Guillaume Mignot

Hello

after all my segmentation violation probleme i think i had better to change my JVM.

But, if i install it in aother directory than the first,  the only things to do are to 
change the env PATH en JAVA_HOME?

Or do i have to work in tomcat conf files also?

Tomcat 3.3.1 with Apache on Freebsd


Bye



AW: AW: Catalina.start: LifecycleException:

2002-06-21 Thread Ralph Einfeldt

Looks like I'm a bit outdated. Sorry.

 -Ursprüngliche Nachricht-
 Von: Gita [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 21. Juni 2002 09:53
 An: Tomcat Users List
 Betreff: Re: AW: Catalina.start: LifecycleException:
 
 no. in new version there are oracle.jdbc.OracleDriver...
 

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




AW: set content type to text/pdf

2002-06-21 Thread Ralph Einfeldt

Sorry a little typo:

The safest way to convince IE to open PDF is to set the 
content type and to load the file from a url that has the 
^
extension .pdf.

 -Ursprüngliche Nachricht-
 Von: Ralph Einfeldt 
 Gesendet: Freitag, 21. Juni 2002 09:44
 An: Tomcat Users List
 Betreff: AW: set content type to text/pdf
 
 The safest way to convince IE to open PDF is to set the 
 content type to load the file from a url that has the 
 extension .pdf.
 

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




Re: AW: set content type to text/pdf

2002-06-21 Thread Alex

Hello Ralph,

  I can't point my browser to a location that ends with .pdf,
  because i have to point it to my servlet, for ex:
  document.location.href=/servlet/Tiparire
  Is there any trick to do this ?

  Alex.
  

Friday, June 21, 2002, 10:44:00 AM, you wrote:

RE MS IE has sometimes his own opinion what to open and 
RE ignores the content type.

RE The safest way to convince IE to open PDF is to set the 
RE content type to load the file from a url that has the 
RE extension .pdf.

RE Additional hint:
RE   Make shure that your servlet supports Byte range
RE   requests (HTTP 1.1). The acrobat reader sometimes 
RE   uses this. (Have a look at the source for the 
RE   servlet that implements the fileserving for tomcat)

 -Ursprüngliche Nachricht-
 Von: Alex [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 21. Juni 2002 09:37
 An: [EMAIL PROTECTED]
 Betreff: set content type to text/pdf
 
 What can i do so my browser automatically opens the pdf 
 content generated
 by the servlet ?
 Thanks in advance...

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



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




Re[2]: Catalina.start: LifecycleException:

2002-06-21 Thread Gita

Hi,

I have classes111.jar and this is not working. Where can i get
classes112.jar?
(New JDBC supporting only jar files and will not accept zips.)

Gita

RS hi Gita,

RS AFAIK the type 4 driver for oracle is called classes112.zip...u have to put
RS this zip file in tomcat home\lib...if it is still unable to find the
RS driver...then rename it as classes112.jar or simply unzip the zip file to
RS classes..

RS HTH,

RS ravi

RS - Original Message -
RS From: Gita [EMAIL PROTECTED]
RS To: Tomcat Users List [EMAIL PROTECTED]
RS Sent: Friday, June 21, 2002 12:59 PM
RS Subject: Catalina.start: LifecycleException:


 Hello!

 I have installed new version of tomcat 4.0.4, which i want working
 with j2sdk1.4.0. There for i added two jars wich is important for that
 in classpathes ojdbc14.jar and nls_charset12.jar.

 My server.xml looks like that:
   Realm className=org.apache.catalina.realm.MemoryRealm /

   Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  connectionName=username
  connectionPassword=passwd
  driverName=oracle.jdbc.OracleDriver
   connectionURL=jdbc:oracle:thin:@datsuns:1521:dev8i
   userTable=users userNameCol=user_name
RS userCredCol=user_pass
   userRoleTable=user_roles roleNameCol=role_name /

 When im starting Tomcat i get such error:

 HttpConnector Opening server socket on all host IP addresses
 Starting service Tomcat-Standalone
 Apache Tomcat/4.0.4
 Catalina.start: LifecycleException:  Exception opening database
RS connection:  jav
 a.sql.SQLException: oracle.jdbc.OracleDriver
 LifecycleException:  Exception opening database connection:
RS java.sql.SQLExcepti
 on: oracle.jdbc.OracleDriver
 at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
 at
RS org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)

 at
RS org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
 at
RS org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)

 at
RS org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343
 )
 at
RS org.apache.catalina.core.StandardService.start(StandardService.java:3
 88)
 at
RS org.apache.catalina.core.StandardServer.start(StandardServer.java:506
 )
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
RS sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
RS sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 - Root Cause -
 java.sql.SQLException: oracle.jdbc.OracleDriver
 at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:538)
 at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613)
 at
RS org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)

 at
RS org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
 at
RS org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)

 at
RS org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343
 )
 at
RS org.apache.catalina.core.StandardService.start(StandardService.java:3
 88)
 at
RS org.apache.catalina.core.StandardServer.start(StandardServer.java:506
 )
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
RS sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
RS sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)


 Any suggestions?

 Gita


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






Gita Kakse Information Technologies
Programming engineer   10 Miesnieku str.
   Riga LV-1050, Latvia
e-mail: [EMAIL PROTECTED] phone: +371-7227577
http://www.it.lv   cell:  +371-9799679



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

Re: AW: set content type to text/pdf

2002-06-21 Thread Liam Morley

I'm sure there's a better way, but in case there's not, there's always 
mod_rewrite. You could rewrite the url so that /(*).pdf goes to /$1.

Liam Morley


Alex wrote:

Hello Ralph,

  I can't point my browser to a location that ends with .pdf,
  because i have to point it to my servlet, for ex:
  document.location.href=/servlet/Tiparire
  Is there any trick to do this ?

  Alex.
  

Friday, June 21, 2002, 10:44:00 AM, you wrote:

RE MS IE has sometimes his own opinion what to open and 
RE ignores the content type.

RE The safest way to convince IE to open PDF is to set the 
RE content type to load the file from a url that has the 
RE extension .pdf.

RE Additional hint:
RE   Make shure that your servlet supports Byte range
RE   requests (HTTP 1.1). The acrobat reader sometimes 
RE   uses this. (Have a look at the source for the 
RE   servlet that implements the fileserving for tomcat)

  

-Ursprüngliche Nachricht-
Von: Alex [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 21. Juni 2002 09:37
An: [EMAIL PROTECTED]
Betreff: set content type to text/pdf

What can i do so my browser automatically opens the pdf 
content generated
by the servlet ?
Thanks in advance...
  


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



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



  




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




hi all

2002-06-21 Thread Yenny/LKUNotes



hi all, i'm new user to tomcat, as i'm planning to use tomcat for my school
project, i kinda having some difficulties in runnin the tomcat 4.0
servlet/jsp container.
a warning  cannot find the file '-Djava.endorsed.dirs=' (or one of its
components). Make sure the path and filename are correct and that all
required libraries are available. exist, may somebody please assist me?
thanks for the help

attach is my configuration of building tomcat 4.0 servlet/jsp container,
for additional information, i fail to install jndi (ldap.jar), jsse and
tyrex data souce libraries.
(See attached file: build.properties.sample)
(See attached file: build.properties.sample)


build.properties.sample
Description: Binary data

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


RE: AW: set content type to text/pdf

2002-06-21 Thread Dennis van den Berg

You could also map your servlet to the pattern *.pdf

Dennis.

-Original Message-
From: Liam Morley [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 21 juni 2002 9:57
To: Tomcat Users List
Subject: Re: AW: set content type to text/pdf


I'm sure there's a better way, but in case there's not, there's always 
mod_rewrite. You could rewrite the url so that /(*).pdf goes to /$1.

Liam Morley


Alex wrote:

Hello Ralph,

  I can't point my browser to a location that ends with .pdf,
  because i have to point it to my servlet, for ex:
  document.location.href=/servlet/Tiparire
  Is there any trick to do this ?

  Alex.
  

Friday, June 21, 2002, 10:44:00 AM, you wrote:

RE MS IE has sometimes his own opinion what to open and 
RE ignores the content type.

RE The safest way to convince IE to open PDF is to set the 
RE content type to load the file from a url that has the 
RE extension .pdf.

RE Additional hint:
RE   Make shure that your servlet supports Byte range
RE   requests (HTTP 1.1). The acrobat reader sometimes 
RE   uses this. (Have a look at the source for the 
RE   servlet that implements the fileserving for tomcat)

  

-Ursprüngliche Nachricht-
Von: Alex [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 21. Juni 2002 09:37
An: [EMAIL PROTECTED]
Betreff: set content type to text/pdf

What can i do so my browser automatically opens the pdf 
content generated
by the servlet ?
Thanks in advance...
  


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



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



  




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


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




AW: AW: set content type to text/pdf

2002-06-21 Thread Ralph Einfeldt

It's possible to configure tomcat to let you request
/servlet/Tiparire/text.pdf and to get /servlet/Tiparire
executed. I haven't tried by now to do something like 
that so can't give you much more help.

Maybe something like this should do the trick:

servlet-mapping
  servlet-nameTiparire/servlet-name
  url-pattern*.pdf/url-pattern
/servlet-mapping

 -Ursprüngliche Nachricht-
 Von: Alex [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 21. Juni 2002 09:57
 An: Tomcat Users List
 Betreff: Re: AW: set content type to text/pdf
 
   I can't point my browser to a location that ends with .pdf,
   because i have to point it to my servlet, for ex:
   document.location.href=/servlet/Tiparire
   Is there any trick to do this ?
 

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




Re: AW: AW: set content type to text/pdf

2002-06-21 Thread Alex

Hello Ralph,

  I've modified web.xml from ROOT\WEB-INF, and i've added
  something like this:
servlet-mapping
servlet-nameTiparire/servlet-name
url-patternTiparire.pdf/url-pattern
/servlet-mapping
  My servlet is called Tiparire.class and is located into
  ROOT\WEB-INF\classes
  But, when i start tomcat, it says:
   ERROR reading java.io.ByteArrayInputStream@4e280c
   At Line 11 /web-app/servlet-mapping/
  What is wrong ?

  Alex.

Friday, June 21, 2002, 11:01:10 AM, you wrote:

RE It's possible to configure tomcat to let you request
RE /servlet/Tiparire/text.pdf and to get /servlet/Tiparire
RE executed. I haven't tried by now to do something like 
RE that so can't give you much more help.

RE Maybe something like this should do the trick:

RE servlet-mapping
RE   servlet-nameTiparire/servlet-name
RE   url-pattern*.pdf/url-pattern
RE /servlet-mapping



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




AW: AW: AW: set content type to text/pdf

2002-06-21 Thread Ralph Einfeldt

This was posted some hours ago to an error that looks 
similar to yours:

This error is caused by a problem in the web.xml file and
the full error can be seen in the webapp loader log files.
If you have not overridden this with a Logger tag, then
the file will be named catalina_somedate.log in your
CATALINA_HOME/logs folder.  That error will tell you
exactly what is going wrong.

Best Regards,
Neale Rudd
metawerx
http://www.metawerx.net

 -Ursprüngliche Nachricht-
 Von: Alex [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 21. Juni 2002 10:29
 An: Tomcat Users List
 Betreff: Re: AW: AW: set content type to text/pdf
 
 
   But, when i start tomcat, it says:
ERROR reading java.io.ByteArrayInputStream@4e280c
At Line 11 /web-app/servlet-mapping/
   What is wrong ?
 

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




Re: AW: AW: set content type to text/pdf

2002-06-21 Thread Liam Morley

You might need to declare the servlet from within a servlet element like 
this as well:

|servlet-mapping
  servlet-nameTiparire/servlet-name
  url-patternTiparire.pdf/url-pattern
/servlet-mapping
servlet
  servlet-nameTiparire/servlet-name
  servlet-classTiparire/servlet-class
/servlet
|
servlet-class is actually the fully qualified class name (with package 
name etc), just in case it's part of a package.

Liam Morley

Alex wrote:

Hello Ralph,

  I've modified web.xml from ROOT\WEB-INF, and i've added
  something like this:
servlet-mapping
servlet-nameTiparire/servlet-name
url-patternTiparire.pdf/url-pattern
/servlet-mapping
  My servlet is called Tiparire.class and is located into
  ROOT\WEB-INF\classes
  But, when i start tomcat, it says:
   ERROR reading java.io.ByteArrayInputStream@4e280c
   At Line 11 /web-app/servlet-mapping/
  What is wrong ?

  Alex.

Friday, June 21, 2002, 11:01:10 AM, you wrote:

RE It's possible to configure tomcat to let you request
RE /servlet/Tiparire/text.pdf and to get /servlet/Tiparire
RE executed. I haven't tried by now to do something like 
RE that so can't give you much more help.

RE Maybe something like this should do the trick:

RE servlet-mapping
RE   servlet-nameTiparire/servlet-name
RE   url-pattern*.pdf/url-pattern
RE /servlet-mapping



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



  




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




Re[2]: AW: AW: set content type to text/pdf

2002-06-21 Thread Alex

Hello Liam,

  I've inserted into the web.xml file these lines:
 servlet-mapping
servlet-nameTiparire/servlet-name
url-patternTiparire.pdf/url-pattern
 /servlet-mapping
 servlet
servlet-nameTiparire/servlet-name
servlet-classTiparire/servlet-class
 /servlet
  Tiparire.class is not part of any package.
  Tomcat starts ok, but, when i'm trying to access the location
  servlet/Tiparire.pdf, it says:
The requested resource (/servlet/Tiparire.pdf) is not
available
 Where is the problem ?

 Alex.

Friday, June 21, 2002, 11:56:32 AM, you wrote:

LM You might need to declare the servlet from within a servlet element like 
LM this as well:

LM |servlet-mapping
LM   servlet-nameTiparire/servlet-name
LM   url-patternTiparire.pdf/url-pattern
LM /servlet-mapping
LM servlet
LM   servlet-nameTiparire/servlet-name
LM   servlet-classTiparire/servlet-class
LM /servlet
LM |
LM servlet-class is actually the fully qualified class name (with package 
LM name etc), just in case it's part of a package.

LM Liam Morley

LM Alex wrote:

Hello Ralph,

  I've modified web.xml from ROOT\WEB-INF, and i've added
  something like this:
servlet-mapping
servlet-nameTiparire/servlet-name
url-patternTiparire.pdf/url-pattern
/servlet-mapping
  My servlet is called Tiparire.class and is located into
  ROOT\WEB-INF\classes
  But, when i start tomcat, it says:
   ERROR reading java.io.ByteArrayInputStream@4e280c
   At Line 11 /web-app/servlet-mapping/
  What is wrong ?

  Alex.

Friday, June 21, 2002, 11:01:10 AM, you wrote:

RE It's possible to configure tomcat to let you request
RE /servlet/Tiparire/text.pdf and to get /servlet/Tiparire
RE executed. I haven't tried by now to do something like 
RE that so can't give you much more help.

RE Maybe something like this should do the trick:

RE servlet-mapping
RE   servlet-nameTiparire/servlet-name
RE   url-pattern*.pdf/url-pattern
RE /servlet-mapping



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




Re: Re[2]: AW: AW: set content type to text/pdf

2002-06-21 Thread Constantin Wolber

Freitag, 21. Juni 2002 11:10 schrieb Alex:
   Tiparire.class is not part of any package.
   Tomcat starts ok, but, when i'm trying to access the location
   servlet/Tiparire.pdf, it says:

Hi,

cause your using a servlet Mapping and your servlet is in the ROOT 
Context you have to leave the servlet in servlet/Tiparire.pdf away

You should reach your servlet by connecting to this URL

http://yourserver:8080/Tiparire.pdf

Cu

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




'charSet' property JDBC-Driver

2002-06-21 Thread Günter Kukies

Hi,

is it possible to set the 'charSet' property of the JDBC-Driver via Context-Resource 
in the server.xml?
If not, any solution for setting 'charSet'??

 Example:

Resource name=jdbc/db auth=Container type=javax.sql.DataSource /
  ResourceParams name=jdbc/db

parameternamefactory/namevalueorg.apache.commons.dbcp.BasicDataSourceFactory/value/parameter
parameternamemaxActive/namevalue100/value/parameter
parameternamemaxIdle/namevalue3/value/parameter
parameternamemaxWait/namevalue100/value/parameter
parameternameusername/namevaluetomcat/value/parameter
parameternamepassword/namevaluexxoxxo/value/parameter
parameternamecharSet/namevalueCP1252/value/parameter

parameternamedriverClassName/namevalueorg.postgresql.Driver/value/parameter

parameternameurl/namevaluejdbc:postgresql://192.14.47.11:5432/mydb/value/parameter
  /ResourceParams

Günter Kukies



path info for servlets and JSPs

2002-06-21 Thread cbarnes

In web.xml I have added a servlet mapping so that the servlet can take extra
path information as follows:

servlet-mapping
servlet-namemyservlet/servlet-name
url-pattern/myservlet/*/url-pattern
/servlet-mapping

Is it possible to do something similar with JSPs - and if so how and where
do I configure this?
I would like to be able to use a URL such as
http://server/application/mypage.jsp/extra/path/info

Thanks,
Catharine


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




timestamps in jakarta log file

2002-06-21 Thread frederik . de . backer

Hello,

Is there a way to include timestamp information in the catalina.out logfile of jakarta 
tomcat. Is it a setting in the server.xml file??

Thanks a lot,

Frederik De Backer.

 DISCLAIMER  
This e-mail and any attachments thereto may contain information 
which is confidential and/or protected by intellectual property 
rights and are intended for the sole use of the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, 
total or partial reproduction, communication or distribution in any form) 
by persons other than the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either 
by telephone or by e-mail and delete the material from any computer. 
Thank you for your cooperation.


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




RE: set content type to text/pdf

2002-06-21 Thread Jim Urban

Alex,

Instead of httpservletresponse.setContentType(text/pdf); try
httpservletresponse.setContentType(application/pdf);


Jim Urban - [EMAIL PROTECTED]
Park City Solutions Inc.
Clinical Connectivity Suite Product Manager
Suite 295
500 Park Blvd.
Itasca, IL  60143
Voice:  (630) 250-3045 x106
Fax:  (630) 250-3046

CONFIDENTIALITY NOTICE
This message and any included attachments are from Park City Solutions Inc.
and are intended only for the entity to which it is addressed. The contained
information is confidential and privileged material. If you are not the
intended recipient, you are hereby notified that any use, dissemination, or
copying of this communication is strictly prohibited and may be unlawful. If
you have received this communication in error please notify the sender of
the delivery error by e-mail or call Park City Solutions Inc. corporate
offices at (435) 654-0621

-Original Message-
From: Alex [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 2:37 AM
To: [EMAIL PROTECTED]
Subject: set content type to text/pdf

I have a servlet that generates pdf content.
In the initData method, I use:
  httpservletresponse.setContentType(text/pdf);

When i access the servlet from the browser (i'm using win2k), it opens
a small window asking me what to do with the file (open, save,
cancel..), and then, when i choose open, it asks me which
application should i use to open that file (it is called Tiparire[1],
because my servlet is called Tiparire), and then i choose acrobat
reader.
What can i do so my browser automatically opens the pdf content generated
by the servlet ?
Thanks in advance...

Alex.



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


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




Multiple App deployment

2002-06-21 Thread Chen, Dean (Zhun)

Hi, I have a simple question regarding where to put files for deployment of
multiple applications that will share common files.

Currently, I have 
root
--commons
css
images
jsp
--images
--jsp
--WEB-INF

This is good because you can package all these up into a WAR file and
everything works. However, if the files in the commons directory changes,
the application would need to be recompiled. If I move the commons directory
up a level, it would be outside the scope of the application and it wouldn't
be able to refer to it. Any ideas? Is there a way to do this but still have
deploy WAR files instead of individual files?

Thanks,

Dean Chen

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




RE: mod_jk for Windows

2002-06-21 Thread Turner, John


I have apache 1.3 and tomcat working successfully with mod_jk on Windows
2000 Pro.  I follwed the instructions at this location:

http://www.galatea.com/flashguides/apache-tomcat-4-win32.xml

John Turner
[EMAIL PROTECTED]
http://www.aas.com


-Original Message-
From: Koes, Derrick [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 6:03 PM
To: '[EMAIL PROTECTED]'
Subject: mod_jk for Windows


I cannot seem to find a combination of apache httpd and tomcat that will
work together.

 

I've tried:

 

Apache 1.3.26 + Tomcat 3.3.1  -- Doesn't understand any of the Jk
configuration...Invalid command 'JkWorkersFile'...

Apache 1.3.26 + Tomcat 4.0.3  -- same

Apache 2.0.39 + Tomcat 4.0.3  -- Can't get to webapp's through tomcat let
alone apache (Yes, of course I can get to the examples through tomcat, but
still not through apache)

Apache 2.0.39 + Tomcat 4.0.4  -- same

 

/**

 * Contact information.

 */

public interface INFO

{

static final String NAME = Derrick Koes;

String title = Senior Software Engineer;

String company = Smith + Nephew Endoscopy;

URL companyURL = new URL(

http://www.smith-nephew.com/index-flash.html
http://www.smith-nephew.com/index-flash.html );

String aolIM = codeauthor2001;

String EMAIL = [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]@smith-nephew.com ;

String PHONE = (978) 749-1288;

String FAX = (978) 749-1487;

}

 




RE: Using JkMount with mod_jk question...

2002-06-21 Thread Turner, John


Thanks for the reply, I think.

The configurations I have have been working since tomcat 3.1.  They work on
tomcat 4 with mod_jk.  I see no reason to change them, especially
considering the amount of time I wasted trying to get mod_webapp to work,
and the amount of posts to this list from people having problems when
changing their configuration to something new.

The JkMount directives may be redundant, I'm not worried about it.  They
work.

John Turner
[EMAIL PROTECTED]
http://www.aas.com


-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 6:56 PM
To: Tomcat Users List
Subject: RE: Using JkMount with mod_jk question...


On Thu, 20 Jun 2002, Turner, John wrote:

 Good questions, all.  It doesn't matter to me if servlet shows up
 in the URL (it matters to some people/projects) so I haven't worried
 about it.  I think using servlet is just a convention...in my
 projects, I usually prepend the application name to it.  For
 example, if the application is XYZ, then I use XYZServlet to denote
 that application's servlet directory, not servlet.  Same goes for
 company names...if you have company ABC using a particular app, you
 might say ABCServlet.

Maybe I can add a little here.  A long time ago in a galaxy far away,
servlets used to be called with URL's like
http://www.domain.com/servlet/ServletName;, where ServletName was the
actual name of the servlet class.  servlet/ was a virtual directory
that told the servlet container (servlet engine back then) to find the
named servlet.  Of course, the web server had to be told to pass URL's
with servlet/ in them to the servlet container.

That was before they came up with the idea of defining servlets in the
web.xml file, and specifying servlet-mapping's to allow url-pattern's
to point to these defined servlets.  Then you could define a servlet
dothis that was actually ServletName, and with the appropriate
mappings, you could use a URL like http://www.domain.com/dothis;.

Now, I don't recall what the spec has to say about this, that is,
whether it requires/allows/disallows using the old style URL's with
servlet/ and the actual servlet class name.  But some people think
it's a good idea not to use them, in fact, even to disable it, such
that you can only reach servlets that have been defined in web.xml.
In some ways, it allows more control and greater security.

Anyway, the

JkMount /servlet ajp13

in the examples is a vestige of all this.


 I think, if you tell apache that index.jsp is a valid starting
 page, you can just call /mydir instead of /mydir/ and have that
 JSP page redirect wherever you want.

Wouldn't specifying index.jps as a welcome-file in web.xml be a better
way of doing this?


 -Original Message-
 From: Sean M Alderman [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 20, 2002 5:00 PM
 To: Tomcat Users List
 Subject: RE: Using JkMount with mod_jk question...


 So I need to shut apache down, change the config and restart everytime I
 deploy a new webapp?

 OK...so I did what you said, and now I can point my browser to
 http://host/examples/ and it shows me a directory listing like
 page...which is better than I saw before.  If I do
 http://host/examples/jsp/ I get the index.html page I expect to get.
 Great!

 so I put a JkMount /myApp ajp13 in httpd.conf and if I have
 $TOMCAT_HOME/webapps/myApp.war the app will deploy and I should be able
 to visit http://host/myApp and run the app.

 One last stupid question... So what's JkMount /servlet ajp13 for in the
 examples?...I mean is /servlet specific or should there be an additional
 note for stupid guys like me who don't get that /servlet should be
 replaced with actual real servlets on your system?

 On Thu, 2002-06-20 at 16:44, Turner, John wrote:
 
  If you were using mod_jk, apache, and tomcat, and wanted to reach the
 tomcat
  examples (default install) on port 80 (instead of 8080 or whatever),
this
  would work:
 
  JkMount /examples ajp13
  JkMount /examples/* ajp13
 
  Season to taste, that is, you could easily put /path/*.jsp or some
other
  expression...it doesn't have to be /*.
 
  HTH
 
  John Turner
  [EMAIL PROTECTED]
  http://www.aas.com
 
  -Original Message-
  From: Sean M Alderman [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, June 20, 2002 4:38 PM
  To: Tomcat Users List
  Subject: Using JkMount with mod_jk question...
 
 
  Hi again,
 
Is there a good source to read for understanding how the JkMount
  path relates to $TOMCAT_HOME/webapps ?
 
  Everytime I put a url in that works for the standalone server, I get a
  404 when I try it via the AJP connector.

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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



RE: mod_jk and mod_jk2 HELP

2002-06-21 Thread Turner, John


OK, thanks.  That's what I was asking...it wasn't clear to me from your
posts how apache knew to pick up workers2.properties, and I have no
experience with mod_jk2 (and no desire to try until things settle down quite
a bit).

John Turner
[EMAIL PROTECTED]
http://www.aas.com

-Original Message-
From: Mark Pelillo [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 7:46 PM
To: Tomcat Users List
Subject: RE: mod_jk and mod_jk2 HELP


John,
When you include the LoadModule line in the httpd.conf, the
mod_jk2.so
automatically looks for a file called workers2.properties.  It if
doesn't find it, it pukes.  Under the site I have now (Apache1.3 with
mod_jk) I have put the JkMounts in a seperate file and in the httpd.conf
I have a line Include /usr/local/tomcat/conf/mod_jk.conf.  The workers
file is the same thing.  You have a Uri mount instead of a JkMount
which tells tomcat what content to mount.

To mount an application you need five lines

[uri:examples]
content=/examples
[uri:examples/*.jsp]
[uri:/examples/servlet/*]
[uri:examples/*]

The first two tell Apache/Tomcat about the application and where the
file are.  The next two tell Apache/Tomcat what tomcat should be
serving. and the last one I am not sure. (I do know that if it is not
there, then it doesn't work)

I have checked the log file for both apache and tomcat and I can see
that apache serves the .html etc, which tomcat is serving the servlets
and jsp's only.

Hope this helps.




On Thu, 2002-06-20 at 07:41, Turner, John wrote:
 
 That's what the JkMount directive does, it tells apache which requests to
 send to tomcat.  Without it, AFAIK, every request is sent to tomcat.
 
 Can anyone clear up how you can use mod_jk/mod_jk2 without the JkMount
 directive?  Does mod_jk2 do away with JkMount? The goal being to use
tomcat
 only for servlet and JSP requests.
 
 John Turner
 [EMAIL PROTECTED]
 http://www.aas.com
 
 -Original Message-
 From: Mark Pelillo [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 19, 2002 6:35 PM
 To: Tomcat Users List
 Subject: RE: mod_jk and mod_jk2 HELP
 
 
 I can't answer whether mod_jk is involved in every request, because it
 really depend on the inner workings of Apache and mod_jk.  The
 httpd.conf tells apache to server .html files and the like, while the
 workers2.properties tell tomcat to server .jsp and sevlet.  Depending on
 which is processed, says who get involved.
 
 
 On Wed, 2002-06-19 at 07:51, Turner, John wrote:
  
  Thanks for the reply, but that doesn't answer my question.  Apache
doesn't
  know anything about workers.properties, only mod_jk2 does.  
  
  So, if I understand your answer, it seems that mod_jk2 has to get
involved
  in every HTTP request?  Then it filters that request through
  workers.properties?  That's not desired behavior, is it?  My point was
 that
  mod_jk2 and tomcat should only be involved in requests where they're
  required.  Requests for images, HTML pages, etc should all be handled by
  apache without any intervention from mod_jk2 or tomcat.
  
  Or are those options you listed in your httpd.conf file?
  
  John Turner
  [EMAIL PROTECTED]
  http://www.aas.com



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



RE: MOD_JK Problem ?

2002-06-21 Thread Turner, John


According to this thread, there seems to be a problem with mod_jk and the
latest apache (2.0.39):

http://mailman.real-time.com/pipermail/tomcat-users/2002-June/069534.html

John Turner
[EMAIL PROTECTED]
http://www.aas.com


-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 7:50 PM
To: '[EMAIL PROTECTED]'
Subject: MOD_JK Problem ?


All,

I've been trying to get the following configuration to work.

Windows NT
Apache 2.0.39
Tomcat 4.1.3 beta

Separately, I can see the Apache default 'Welcome' by going to
http://localhost; in a similar vein I can see Tomcat's default 'Welcome' by
going to http://localhost:8080/index.jsp.  What I can't make work is seeing
Tomcat's 'Welcome' page by going to http://localhost/index.jsp (or any other
path for that matter!).  I've rebuilt the connectors for Tomcat, download
the mod_jk.dll from www.acg-gmbh.de/mod_jk, and set up my workers.properties
and mod_jk.conf files (similar to what I used under Tomcat 3.3.1 - maybe the
problem?)  Does anyone have any ideas why I can't see my JSP pages without
needing to specify the port?

Thanks in advance!

Jerry

This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at (800)388-4675.



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



Re: path info for servlets and JSPs

2002-06-21 Thread Brendan . Richards



I don't know if you can do exactly what you want but an alternative could
be to url-encode the path in the request as a variable

for example: http://server/application/mypage.jsp?path
=%2fextra%2fpath%2finfo
(I think %2f = / but please check!)

Brendan

-


In web.xml I have added a servlet mapping so that the servlet can take
extra
path information as follows:

servlet-mapping
servlet-namemyservlet/servlet-name
url-pattern/myservlet/*/url-pattern
/servlet-mapping

Is it possible to do something similar with JSPs - and if so how and where
do I configure this?
I would like to be able to use a URL such as
http://server/application/mypage.jsp/extra/path/info

Thanks,
Catharine


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




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




RE: MOD_JK Problem ?

2002-06-21 Thread Jerry Jalenak

Sounds like I need to back off from 4.1.3beta and go back to the last 4.0.x
build.

Thanks!

Jerry Jalenak

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 7:58 AM
To: 'Tomcat Users List'
Subject: RE: MOD_JK Problem ?



According to this thread, there seems to be a problem with mod_jk and the
latest apache (2.0.39):

http://mailman.real-time.com/pipermail/tomcat-users/2002-June/069534.html

John Turner
[EMAIL PROTECTED]
http://www.aas.com


-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 7:50 PM
To: '[EMAIL PROTECTED]'
Subject: MOD_JK Problem ?


All,

I've been trying to get the following configuration to work.

Windows NT
Apache 2.0.39
Tomcat 4.1.3 beta

Separately, I can see the Apache default 'Welcome' by going to
http://localhost; in a similar vein I can see Tomcat's default 'Welcome' by
going to http://localhost:8080/index.jsp.  What I can't make work is seeing
Tomcat's 'Welcome' page by going to http://localhost/index.jsp (or any other
path for that matter!).  I've rebuilt the connectors for Tomcat, download
the mod_jk.dll from www.acg-gmbh.de/mod_jk, and set up my workers.properties
and mod_jk.conf files (similar to what I used under Tomcat 3.3.1 - maybe the
problem?)  Does anyone have any ideas why I can't see my JSP pages without
needing to specify the port?

Thanks in advance!

Jerry

This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at (800)388-4675.



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


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




RE: mod_jk for Windows

2002-06-21 Thread Charles Sanders

I have the following working together with mod_jk:

Apache 1.3.24  Tomcat 3.2.3
Apache 1.3.24  Tomcat 4.0.1
Apache 1.3.26  Tomcat 4.0.1

I also used the following setup processes:
http://www.galatea.com/flashguides/apache-tomcat-win32.xml
http://www.galatea.com/flashguides/apache-tomcat-4-win32.xml

Good Luck!

-Original Message-
From: Koes, Derrick [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 5:03 PM
To: '[EMAIL PROTECTED]'
Subject: mod_jk for Windows


I cannot seem to find a combination of apache httpd and tomcat that will
work together.

 

I've tried:

 

Apache 1.3.26 + Tomcat 3.3.1  -- Doesn't understand any of the Jk
configuration...Invalid command 'JkWorkersFile'...

Apache 1.3.26 + Tomcat 4.0.3  -- same

Apache 2.0.39 + Tomcat 4.0.3  -- Can't get to webapp's through tomcat let
alone apache (Yes, of course I can get to the examples through tomcat, but
still not through apache)

Apache 2.0.39 + Tomcat 4.0.4  -- same

 

/**

 * Contact information.

 */

public interface INFO

{

static final String NAME = Derrick Koes;

String title = Senior Software Engineer;

String company = Smith + Nephew Endoscopy;

URL companyURL = new URL(

http://www.smith-nephew.com/index-flash.html
http://www.smith-nephew.com/index-flash.html );

String aolIM = codeauthor2001;

String EMAIL = [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]@smith-nephew.com ;

String PHONE = (978) 749-1288;

String FAX = (978) 749-1487;

}

 



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




Re: AW: AW: set content type to text/pdf

2002-06-21 Thread Ben Walding

Digging back into the dark cavern that is trying to get IE to work with 
a spec complying application

(from which I have emerged and no longer care about)...


I believe you might be able to go

http://server:8080/servlet/pdfservlet?thisisnotanarg.pdf

This may confuse IE into giving you what it should have given you in the 
first place.

I also vaguely recall that IE is VERY particular about the headers that 
you send...  the following are headers that I sent out of an app I was 
using with PDF.  Worth trying, but not worth relying on!

response.addHeader(
Content-Type,
application/pdf; name= + (char) 34 + outfilename + (char) 34);
response.addHeader(
Content-Disposition,
inline; filename= + (char) 34 + outfilename + (char) 34);

Enjoy!
(Don't question the use of (char) 34, I borrowed it from elsewhere 
without thinking!)

Now when someone can explain why IE displays PNG with a different color 
than what they really are (no alpha channels or anything silly like 
that), then I'll be happy. Well... no I won't, but I might be bemused!

Constantin Wolber wrote:

Freitag, 21. Juni 2002 11:10 schrieb Alex:
  

  Tiparire.class is not part of any package.
  Tomcat starts ok, but, when i'm trying to access the location
  servlet/Tiparire.pdf, it says:



Hi,

cause your using a servlet Mapping and your servlet is in the ROOT 
Context you have to leave the servlet in servlet/Tiparire.pdf away

You should reach your servlet by connecting to this URL

http://yourserver:8080/Tiparire.pdf

Cu

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


  





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




Re: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta

2002-06-21 Thread William Au

So how is the performance of Tomcat 4.1.3 comparing to 4.0?

Bill

Shapira, Yoav wrote:

 Howdy,
 I know you already solved the problem (was userid).

 As an aside, it's a bad idea to unpack 3rd party jars.  You probably
 want to rename classes12.zip to classes12.jar so tomcat will pick it up.

 Yoav Shapira
 Millennium ChemInformatics

 -Original Message-
 From: Victor Popiol [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 20, 2002 4:24 AM
 To: Tomcat Users List
 Subject: RE: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta
 
 Hi. I installed Tomcat 4.1.3 and deployed my application. But I
 consistently get en error trying to connect to our database. This error
 only happens in Tomcat 4.1.3.
 
 The database is Oracle 8.1.7 and I expanded the classes from the
 classes12.zip JDBC distributable (as I had done on Tomcat 4.03).
 
 The error happens when trying to open the connection. To isolate the
 issue,
 I wrote a small jsp page that exercise the data source to get the
 conection. Here it is:
 
 %@ page contentType=text/html
 import=javax.naming.*,java.sql.*,javax.sql.* %
 html
 body
 %
System.out.println(StartingBR);
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env);
DataSource ds = (DataSource)
  envCtx.lookup(jdbc/duwi);
if (ds != null) {
System.out.println(Data Source is not nullBR);
Connection conn = ds.getConnection();
conn.close();
}
 %
 Ready!
 /body
 /html
 
 The execution of this jsp throwas the following exception:
 
 org.apache.jasper.JasperException
at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
 ava:
 232)
at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289
 )
at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
 atio
 nFilterChain.java:247)
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
 terC
 hain.java:193)
at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
 ve.j
 ava:260)
at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
 invo
 keNext(StandardPipeline.java:646)
at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
 483)
at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
 ve.j
 ava:191)
at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
 invo
 keNext(StandardPipeline.java:646)
at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
 483)
at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23
 49)
at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
 a:18
 0)
at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
 invo
 keNext(StandardPipeline.java:646)
at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
 alve
 .java:170)
at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
 invo
 keNext(StandardPipeline.java:644)
at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
 a:17
 1)
at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
 invo
 keNext(StandardPipeline.java:644)
at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
 483)
at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
 .jav
 a:174)
at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
 invo
 keNext(StandardPipeline.java:646)
at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
 483)
at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
 org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:4
 05)
at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
 Conn
 ection(Http11Protocol.java:376)
at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5
 08)
at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
 l.ja
 va:518)
at java.lang.Thread.run(Thread.java:479)
 
 
 root cause
 
 java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:375)
at
 

jk_nt_service error

2002-06-21 Thread Yu Ye Zhou

I'm trying to run tomcat as service
I edit the wrapper.properties files according to my
set up. When I try to run jk_nt_service -i tomcat -a
wrapper.properties, I get the following error: 
Asked (and given) winsock 1.1
OpenSCManager failed - Access is denied. 
I'm using j2sdk1.4.0 instead of jdk1.3.1_01
Thanks. 
Yu Ye Zhou

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta

2002-06-21 Thread Remy Maucherat

Victor Popiol wrote:
 I installed Tomcat 4.1.3 beta. Took a while to configure because the hidden issue 
with the user vs username parameter in the datasource definition.
 
 After it has been running for a day, it died. Looking at the logs I found the 
following:
 
 java.lang.OutOfMemoryError
   no stack trace available
 java.lang.OutOfMemoryError
   no stack trace available
 java.lang.OutOfMemoryError
   no stack trace available
 java.lang.OutOfMemoryError
   no stack trace available
 
 Any idea of components leaking memory?

Without any additional details, I can't really help.

A bug which could cause this has been fixed after 4.1.3:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9715

This bug was also present in TC 4.0.x, though.

Remy


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




Process java Size

2002-06-21 Thread Guillaume Mignot

Hello
When i launch Tomcat 3.3.1 the process size is 557M
how can i reduce that?

JDK 1.3.1
Tomcat 3.3.1 with apache


Txs



application deployment

2002-06-21 Thread Halil AKINCI

Hi,

This is mine work environment;

CPU: Intel Pentium II 400 MHz
OS: Windows 98
Container: Apache tomcat 4.0
Java environment: jdk1.3

First I created a directory (called Vt) into the tomcat's webapps directory, than 
wrote my servlet and compiled it (webappsVtweb-infclassesVTServlet.java). I 
created my web.xml file (webappsVt). Afterwards, I created ServletContext. To do this 
I added following code line into the server.xml file:

Context path=/Vt docBase=Vt debug=0 reloadable=true/

To start my application I wrote following URL  

http://localhost:8080/Vt/servlet/VTServlet but I receive an error message ( Page not 
found) each time. 

Can anyone help me? How can I run my application?



Re: Process java Size

2002-06-21 Thread chad kellerman

Edit the tomcat_home/bin/catalina.sh file.

  Put something like this in it under CATALINA_OPTS

CATALINA_OPTS=$CATALINA_OPTS $JPDA_OPTS -Xmx64m -Xms32m

This will allow the jvm to  use a maximum of 64 meg of memory. and a minimum 
of 32.

You can change this to fit your needs.

I am assuming you are talking about memory consumption.

--chad


On Fri June 21 2002 9:47 am, Guillaume Mignot wrote:
 Hello
 When i launch Tomcat 3.3.1 the process size is 557M
 how can i reduce that?

 JDK 1.3.1
 Tomcat 3.3.1 with apache


 Txs

-- 
Chad Kellerman
Alabanza Inc.
Jr. Systems Administrator
10 E. Baltimore Street
Baltimore, Md 21202

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




RE: application deployment

2002-06-21 Thread Anoop Kumar V

u said u created ur web.xml.. but u need to place it in web-inf directory
and not in th e Vt folder.
This shd work.

regds,
anoop

-Original Message-
From: Halil AKINCI [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 7:20 PM
To: Tomcat Users List; jakarta-tomcat yahoo groups
Subject: application deployment


Hi,

This is mine work environment;

CPU: Intel Pentium II 400 MHz
OS: Windows 98
Container: Apache tomcat 4.0
Java environment: jdk1.3

First I created a directory (called Vt) into the tomcat's webapps
directory, than wrote my servlet and compiled it
(webappsVtweb-infclassesVTServlet.java). I created my web.xml file
(webappsVt). Afterwards, I created ServletContext. To do this I added
following code line into the server.xml file:

Context path=/Vt docBase=Vt debug=0 reloadable=true/

To start my application I wrote following URL  

http://localhost:8080/Vt/servlet/VTServlet but I receive an error message (
Page not found) each time. 

Can anyone help me? How can I run my application?



Re: application deployment

2002-06-21 Thread Halil AKINCI

Ahh.. I wrote wrong! I created it in web-inf directory.


- Original Message -
From: Anoop Kumar V [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, June 21, 2002 5:00 PM
Subject: RE: application deployment


 u said u created ur web.xml.. but u need to place it in web-inf directory
 and not in th e Vt folder.
 This shd work.

 regds,
 anoop

 -Original Message-
 From: Halil AKINCI [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 21, 2002 7:20 PM
 To: Tomcat Users List; jakarta-tomcat yahoo groups
 Subject: application deployment


 Hi,

 This is mine work environment;

 CPU: Intel Pentium II 400 MHz
 OS: Windows 98
 Container: Apache tomcat 4.0
 Java environment: jdk1.3

 First I created a directory (called Vt) into the tomcat's webapps
 directory, than wrote my servlet and compiled it
 (webappsVtweb-infclassesVTServlet.java). I created my web.xml file
 (webappsVt). Afterwards, I created ServletContext. To do this I added
 following code line into the server.xml file:

 Context path=/Vt docBase=Vt debug=0 reloadable=true/

 To start my application I wrote following URL

 http://localhost:8080/Vt/servlet/VTServlet but I receive an error message
(
 Page not found) each time.

 Can anyone help me? How can I run my application?




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




space in tomcat_home directory

2002-06-21 Thread Yu Ye Zhou

My tomcat is install under windows directory as
follow:
   c:\Program Files\apache tomcat 4.0

I have spaces in the directory. How can the
wrappers.properties file recognizes the spaces in the
directory?
I have cygwin in my computer, when I cd to a windows
directory, I use \ to escape the spaces. How could
that be done within the wrappers file?

Thanks. 
Yu Ye Zhou 

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




RE: space in tomcat_home directory

2002-06-21 Thread Anoop Kumar V

u can use Progra~1 instead of Program Files  ( tilde and 1)
Alternatively try enclosing the whole path in quotes.. i hvnt tried this.


Anoop Kumar V.

-Original Message-
From: Yu Ye Zhou [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 7:41 PM
To: Tomcat Users List
Subject: space in tomcat_home directory


My tomcat is install under windows directory as
follow:
   c:\Program Files\apache tomcat 4.0

I have spaces in the directory. How can the
wrappers.properties file recognizes the spaces in the
directory?
I have cygwin in my computer, when I cd to a windows
directory, I use \ to escape the spaces. How could
that be done within the wrappers file?

Thanks. 
Yu Ye Zhou 

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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



mod_jk /examples/* works but /servlet/* doesn't

2002-06-21 Thread Avnish Pundir

Hi Everyone,
Recently I have connected apache with tomcat using mod_jk. In my httpd.conf
file I am giving this directive.
JkMount /examples/* ajp13

It works perfectly fine but problem is it forwards all requests to apache. I
want static requests to be handled by Apache.
As per documentation only these two directives should be sufficient
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

But with above config I am not able to get my servlets working. From mod_jk
logs (after changing log level to debug) I came to know these requests are
not being forwarded to tomcat and apache try to handle these requests itself
:(
I tried with this directive instead
JkMount /examples/servlet/* ajp13

And it's working perfectly. But with this everytime I add new context, I
have to add new directive for this context's servlet :(.  I don't want that.
Document says JkMount /servlet/* ajp13  should work but isn't working !!
Any idea why.
I have tried all combinations */servlet/*, *servlet/* but no use.
I am using apache 1.3.24, Tomcat 4.0.2, JDK 1.3, Windows 2000

Any help would be greatly appreciated.

Thanks
Avnish


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




RE: Using JkMount with mod_jk question...

2002-06-21 Thread Sean M Alderman

Thanks for the clarification John and Milt, I appreciate it.  I am kind
of curious though about the configuration of index.jsp on the apache
side of things

If I use a JkMount /*.jsp ajp13 directive will any jsp file in the
Apache DocumentRoot be handled by Tomcat?  Or does this just mean that
any jsp file in $TOMCAT_HOME/webapps will be handled by tomcat?  I'm
assuming that JkMount / ajp13 means that / is relative to
$TOMCAT_HOME/webapps, but I've found that I actually have to specify the
subdirectories under $TOMCAT_HOME/webapps in order to have access to
them.

I guess my general confusion here is that it seems like the JkMount
directive allows one to overlay parts/pieces of the
$TOMCAT_HOME/webapps directory over top of the Apache DocumentRoot. 
Kind of analogous to creating a directory structure on a filesystem
(e.g. /home) then mounting a new filesystem as /home and being able to
see files from both at the same time (of course that's not the way it
work). That's what it sounds like JkMount does.

On Fri, 2002-06-21 at 08:49, Turner, John wrote:
 
 Thanks for the reply, I think.
 
 The configurations I have have been working since tomcat 3.1.  They work on
 tomcat 4 with mod_jk.  I see no reason to change them, especially
 considering the amount of time I wasted trying to get mod_webapp to work,
 and the amount of posts to this list from people having problems when
 changing their configuration to something new.
 
 The JkMount directives may be redundant, I'm not worried about it.  They
 work.
 
 John Turner
 [EMAIL PROTECTED]
 http://www.aas.com
 
 
 -Original Message-
 From: Milt Epstein [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 20, 2002 6:56 PM
 To: Tomcat Users List
 Subject: RE: Using JkMount with mod_jk question...
 
 
 On Thu, 20 Jun 2002, Turner, John wrote:
 
  Good questions, all.  It doesn't matter to me if servlet shows up
  in the URL (it matters to some people/projects) so I haven't worried
  about it.  I think using servlet is just a convention...in my
  projects, I usually prepend the application name to it.  For
  example, if the application is XYZ, then I use XYZServlet to denote
  that application's servlet directory, not servlet.  Same goes for
  company names...if you have company ABC using a particular app, you
  might say ABCServlet.
 
 Maybe I can add a little here.  A long time ago in a galaxy far away,
 servlets used to be called with URL's like
 http://www.domain.com/servlet/ServletName;, where ServletName was the
 actual name of the servlet class.  servlet/ was a virtual directory
 that told the servlet container (servlet engine back then) to find the
 named servlet.  Of course, the web server had to be told to pass URL's
 with servlet/ in them to the servlet container.
 
 That was before they came up with the idea of defining servlets in the
 web.xml file, and specifying servlet-mapping's to allow url-pattern's
 to point to these defined servlets.  Then you could define a servlet
 dothis that was actually ServletName, and with the appropriate
 mappings, you could use a URL like http://www.domain.com/dothis;.
 
 Now, I don't recall what the spec has to say about this, that is,
 whether it requires/allows/disallows using the old style URL's with
 servlet/ and the actual servlet class name.  But some people think
 it's a good idea not to use them, in fact, even to disable it, such
 that you can only reach servlets that have been defined in web.xml.
 In some ways, it allows more control and greater security.
 
 Anyway, the
 
 JkMount /servlet ajp13
 
 in the examples is a vestige of all this.
 
 
  I think, if you tell apache that index.jsp is a valid starting
  page, you can just call /mydir instead of /mydir/ and have that
  JSP page redirect wherever you want.
 
 Wouldn't specifying index.jps as a welcome-file in web.xml be a better
 way of doing this?
 
 
  -Original Message-
  From: Sean M Alderman [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, June 20, 2002 5:00 PM
  To: Tomcat Users List
  Subject: RE: Using JkMount with mod_jk question...
 
 
  So I need to shut apache down, change the config and restart everytime I
  deploy a new webapp?
 
  OK...so I did what you said, and now I can point my browser to
  http://host/examples/ and it shows me a directory listing like
  page...which is better than I saw before.  If I do
  http://host/examples/jsp/ I get the index.html page I expect to get.
  Great!
 
  so I put a JkMount /myApp ajp13 in httpd.conf and if I have
  $TOMCAT_HOME/webapps/myApp.war the app will deploy and I should be able
  to visit http://host/myApp and run the app.
 
  One last stupid question... So what's JkMount /servlet ajp13 for in the
  examples?...I mean is /servlet specific or should there be an additional
  note for stupid guys like me who don't get that /servlet should be
  replaced with actual real servlets on your system?
 
  On Thu, 2002-06-20 at 16:44, Turner, John wrote:
  
   If you were using mod_jk, apache, and 

Re: mod_jk /examples/* works but /servlet/* doesn't

2002-06-21 Thread Brendan . Richards


I don't know if this will work or not...

but have you tried:

JkMount /servlet/** ajp13

If it works, let me know...

Brendan



Hi Everyone,
Recently I have connected apache with tomcat using mod_jk. In my httpd.conf
file I am giving this directive.
JkMount /examples/* ajp13

It works perfectly fine but problem is it forwards all requests to apache.
I
want static requests to be handled by Apache.
As per documentation only these two directives should be sufficient
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

But with above config I am not able to get my servlets working. From mod_jk
logs (after changing log level to debug) I came to know these requests are
not being forwarded to tomcat and apache try to handle these requests
itself
:(
I tried with this directive instead
JkMount /examples/servlet/* ajp13

And it's working perfectly. But with this everytime I add new context, I
have to add new directive for this context's servlet :(.  I don't want
that.
Document says JkMount /servlet/* ajp13  should work but isn't working !!
Any idea why.
I have tried all combinations */servlet/*, *servlet/* but no use.
I am using apache 1.3.24, Tomcat 4.0.2, JDK 1.3, Windows 2000

Any help would be greatly appreciated.

Thanks
Avnish


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




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




RE: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta

2002-06-21 Thread Victor Popiol

Orders of magnitude better.

-Original Message-
From: William Au [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 9:38 AM
To: Tomcat Users List
Subject: Re: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta


So how is the performance of Tomcat 4.1.3 comparing to 4.0?

Bill

Shapira, Yoav wrote:

 Howdy,
 I know you already solved the problem (was userid).

 As an aside, it's a bad idea to unpack 3rd party jars.  You probably
 want to rename classes12.zip to classes12.jar so tomcat will pick it up.

 Yoav Shapira
 Millennium ChemInformatics

 -Original Message-
 From: Victor Popiol [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 20, 2002 4:24 AM
 To: Tomcat Users List
 Subject: RE: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta
 
 Hi. I installed Tomcat 4.1.3 and deployed my application. But I
 consistently get en error trying to connect to our database. This error
 only happens in Tomcat 4.1.3.
 
 The database is Oracle 8.1.7 and I expanded the classes from the
 classes12.zip JDBC distributable (as I had done on Tomcat 4.03).
 
 The error happens when trying to open the connection. To isolate the
 issue,
 I wrote a small jsp page that exercise the data source to get the
 conection. Here it is:
 
 %@ page contentType=text/html
 import=javax.naming.*,java.sql.*,javax.sql.* %
 html
 body
 %
System.out.println(StartingBR);
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env);
DataSource ds = (DataSource)
  envCtx.lookup(jdbc/duwi);
if (ds != null) {
System.out.println(Data Source is not nullBR);
Connection conn = ds.getConnection();
conn.close();
}
 %
 Ready!
 /body
 /html
 
 The execution of this jsp throwas the following exception:
 
 org.apache.jasper.JasperException
at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
 ava:
 232)
at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289
 )
at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
 atio
 nFilterChain.java:247)
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
 terC
 hain.java:193)
at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
 ve.j
 ava:260)
at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
 invo
 keNext(StandardPipeline.java:646)
at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
 483)
at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
 ve.j
 ava:191)
at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
 invo
 keNext(StandardPipeline.java:646)
at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
 483)
at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23
 49)
at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
 a:18
 0)
at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
 invo
 keNext(StandardPipeline.java:646)
at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
 alve
 .java:170)
at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
 invo
 keNext(StandardPipeline.java:644)
at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
 a:17
 1)
at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
 invo
 keNext(StandardPipeline.java:644)
at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
 483)
at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
 .jav
 a:174)
at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
 invo
 keNext(StandardPipeline.java:646)
at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
 483)
at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
 org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:4
 05)
at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
 Conn
 ection(Http11Protocol.java:376)
at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5
 08)
at
 

Re: mod_jk /examples/* works but /servlet/* doesn't

2002-06-21 Thread Brendan . Richards



Or perhaps it would be even better to try:

JkMount /*/servlet/* ajp13

or:
JkMount **/servlet/* ajp13

Brendan



I don't know if this will work or not...

but have you tried:

JkMount /servlet/** ajp13

If it works, let me know...

Brendan



Hi Everyone,
Recently I have connected apache with tomcat using mod_jk. In my httpd.conf
file I am giving this directive.
JkMount /examples/* ajp13

It works perfectly fine but problem is it forwards all requests to apache.
I
want static requests to be handled by Apache.
As per documentation only these two directives should be sufficient
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

But with above config I am not able to get my servlets working. From mod_jk
logs (after changing log level to debug) I came to know these requests are
not being forwarded to tomcat and apache try to handle these requests
itself
:(
I tried with this directive instead
JkMount /examples/servlet/* ajp13

And it's working perfectly. But with this everytime I add new context, I
have to add new directive for this context's servlet :(.  I don't want
that.
Document says JkMount /servlet/* ajp13  should work but isn't working !!
Any idea why.
I have tried all combinations */servlet/*, *servlet/* but no use.
I am using apache 1.3.24, Tomcat 4.0.2, JDK 1.3, Windows 2000

Any help would be greatly appreciated.

Thanks
Avnish


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




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




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




RE: mod_jk /examples/* works but /servlet/* doesn't

2002-06-21 Thread Turner, John


Does your tomcat configuration (server.xml, web.xml) match your apache
configuration?  Does tomcat know about /servlet and what to do with it?
You have to configure both sides.  Tomcat has configuration entries for
/examples by default.

John Turner
[EMAIL PROTECTED]
http://www.aas.com


-Original Message-
From: Avnish Pundir [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 10:16 AM
To: Tomcat Users List
Subject: mod_jk /examples/* works but /servlet/* doesn't


Hi Everyone,
Recently I have connected apache with tomcat using mod_jk. In my httpd.conf
file I am giving this directive.
JkMount /examples/* ajp13

It works perfectly fine but problem is it forwards all requests to apache. I
want static requests to be handled by Apache.
As per documentation only these two directives should be sufficient
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

But with above config I am not able to get my servlets working. From mod_jk
logs (after changing log level to debug) I came to know these requests are
not being forwarded to tomcat and apache try to handle these requests itself
:(
I tried with this directive instead
JkMount /examples/servlet/* ajp13

And it's working perfectly. But with this everytime I add new context, I
have to add new directive for this context's servlet :(.  I don't want that.
Document says JkMount /servlet/* ajp13  should work but isn't working !!
Any idea why.
I have tried all combinations */servlet/*, *servlet/* but no use.
I am using apache 1.3.24, Tomcat 4.0.2, JDK 1.3, Windows 2000

Any help would be greatly appreciated.

Thanks
Avnish


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



RE: application deployment

2002-06-21 Thread Anoop Kumar V


hi i simualted the same in my tomcat, and it works fine. but u can try one
thing.
remove the servletcontext in ur server.xml. this shd be auto loadable... and
that works for me too.
If that doesnt work try removing the closing slash at the end of ur entry in
the file. That ends with /Context.
still doesnt work..send across the code..lets see that (although i dont know
what to look for)
regds,
anoop

-Original Message-
From: Halil AKINCI [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 7:36 PM
To: Tomcat Users List
Subject: Re: application deployment


Ahh.. I wrote wrong! I created it in web-inf directory.


- Original Message -
From: Anoop Kumar V [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, June 21, 2002 5:00 PM
Subject: RE: application deployment


 u said u created ur web.xml.. but u need to place it in web-inf directory
 and not in th e Vt folder.
 This shd work.

 regds,
 anoop

 -Original Message-
 From: Halil AKINCI [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 21, 2002 7:20 PM
 To: Tomcat Users List; jakarta-tomcat yahoo groups
 Subject: application deployment


 Hi,

 This is mine work environment;

 CPU: Intel Pentium II 400 MHz
 OS: Windows 98
 Container: Apache tomcat 4.0
 Java environment: jdk1.3

 First I created a directory (called Vt) into the tomcat's webapps
 directory, than wrote my servlet and compiled it
 (webappsVtweb-infclassesVTServlet.java). I created my web.xml file
 (webappsVt). Afterwards, I created ServletContext. To do this I added
 following code line into the server.xml file:

 Context path=/Vt docBase=Vt debug=0 reloadable=true/

 To start my application I wrote following URL

 http://localhost:8080/Vt/servlet/VTServlet but I receive an error message
(
 Page not found) each time.

 Can anyone help me? How can I run my application?




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



RE: Using JkMount with mod_jk question...

2002-06-21 Thread Turner, John


Sure, /*.jsp will send JSP files to tomcat.  But apache doesn't know that
index.jsp is a home page unless you tell it so in httpd.conf:

Directory /web/test/jsp
  Options Indexes FollowSymLinks
  DirectoryIndex index.html index.htm index.jsp
/Directory

John Turner
[EMAIL PROTECTED]
http://www.aas.com

-Original Message-
From: Sean M Alderman [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 10:17 AM
To: Tomcat Users List
Subject: RE: Using JkMount with mod_jk question...


Thanks for the clarification John and Milt, I appreciate it.  I am kind
of curious though about the configuration of index.jsp on the apache
side of things

If I use a JkMount /*.jsp ajp13 directive will any jsp file in the
Apache DocumentRoot be handled by Tomcat?  Or does this just mean that
any jsp file in $TOMCAT_HOME/webapps will be handled by tomcat?  I'm
assuming that JkMount / ajp13 means that / is relative to
$TOMCAT_HOME/webapps, but I've found that I actually have to specify the
subdirectories under $TOMCAT_HOME/webapps in order to have access to
them.

I guess my general confusion here is that it seems like the JkMount
directive allows one to overlay parts/pieces of the
$TOMCAT_HOME/webapps directory over top of the Apache DocumentRoot. 
Kind of analogous to creating a directory structure on a filesystem
(e.g. /home) then mounting a new filesystem as /home and being able to
see files from both at the same time (of course that's not the way it
work). That's what it sounds like JkMount does.




COM Possible?

2002-06-21 Thread Steven Sporen

Accessing COM object on windows.

Simple question - with Tomcat can a programmer access COM controls on a
windows platform?

Thanks

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




RE: COM Possible?

2002-06-21 Thread Anoop Kumar V

i know using java u can..guess u will hv to tweak tomcat to do such a thing.

Anoop Kumar V.


-Original Message-
From: Steven Sporen [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 8:00 PM
To: Tomcat Users List
Subject: COM Possible?


Accessing COM object on windows.

Simple question - with Tomcat can a programmer access COM controls on a
windows platform?

Thanks

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



Re: COM Possible?

2002-06-21 Thread Dennis Muhlestein

Use JNI, then from C++ you can do whatever you want.


On Fri, 2002-06-21 at 08:29, Steven Sporen wrote:
 Accessing COM object on windows.
 
 Simple question - with Tomcat can a programmer access COM controls on a
 windows platform?
 
 Thanks
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



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




RE: hi all

2002-06-21 Thread Shapira, Yoav

Howdy,
Since you're just starting it out, it may be a better idea to download
the binaries ;)  Download, explode the tar, run the examples, get
comfortable with the configuration, and then maybe start modifying
tomcat? ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 4:07 AM
To: Tomcat Users List
Subject: hi all



hi all, i'm new user to tomcat, as i'm planning to use tomcat for my
school
project, i kinda having some difficulties in runnin the tomcat 4.0
servlet/jsp container.
a warning  cannot find the file '-Djava.endorsed.dirs=' (or one of its
components). Make sure the path and filename are correct and that all
required libraries are available. exist, may somebody please assist
me?
thanks for the help

attach is my configuration of building tomcat 4.0 servlet/jsp
container,
for additional information, i fail to install jndi (ldap.jar), jsse and
tyrex data souce libraries.
(See attached file: build.properties.sample)
(See attached file: build.properties.sample)

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




Re: mod_jk /examples/* works but /servlet/* doesn't

2002-06-21 Thread Avnish Pundir

Hi Brendan,
with JkMount /*/servlet/* ajp13, debug files shows following lines. And maps
root (/) to tomcat which is not what I want :(
[jk_uri_worker_map.c (256)]: Into jk_uri_worker_map_t::uri_worker_map_open,
suffix rule /.jsp=ajp13 was added
[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /=ajp13 was added

Tried others combinations too but it seems * is totally ignored. for example
with directive JkMount /servlet/** ajp13
[jk_uri_worker_map.c (256)]: Into jk_uri_worker_map_t::uri_worker_map_open,
suffix rule /.jsp=ajp13 was added
[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /servlet/=ajp13 was added



Hi John,
I have my tomcat properly configured(Everything default config). I m able to
get all contents with localhost:8080 successfully and even with directive
/examples/servlet/*.
From log file I came to know localhost/examples/servlet/anything is not
being forwarded to tomcat at all.

I would like to know if any one has ever configured tomcat with apache using
JkMount /servlet/* ajp13 and if yes, on which platform?

Thanks
Avnish
- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, June 21, 2002 7:50 PM
Subject: Re: mod_jk /examples/* works but /servlet/* doesn't




Or perhaps it would be even better to try:

JkMount /*/servlet/* ajp13

or:
JkMount **/servlet/* ajp13

Brendan



I don't know if this will work or not...

but have you tried:

JkMount /servlet/** ajp13

If it works, let me know...

Brendan



Hi Everyone,
Recently I have connected apache with tomcat using mod_jk. In my httpd.conf
file I am giving this directive.
JkMount /examples/* ajp13

It works perfectly fine but problem is it forwards all requests to apache.
I
want static requests to be handled by Apache.
As per documentation only these two directives should be sufficient
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

But with above config I am not able to get my servlets working. From mod_jk
logs (after changing log level to debug) I came to know these requests are
not being forwarded to tomcat and apache try to handle these requests
itself
:(
I tried with this directive instead
JkMount /examples/servlet/* ajp13

And it's working perfectly. But with this everytime I add new context, I
have to add new directive for this context's servlet :(.  I don't want
that.
Document says JkMount /servlet/* ajp13  should work but isn't working !!
Any idea why.
I have tried all combinations */servlet/*, *servlet/* but no use.
I am using apache 1.3.24, Tomcat 4.0.2, JDK 1.3, Windows 2000

Any help would be greatly appreciated.

Thanks
Avnish


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




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




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




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




RE: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta

2002-06-21 Thread Shapira, Yoav

Howdy,
You're getting that because you need more memory - java by default will
run 
A good start now that you have something running (at least up to the
point it crashes with the OutOfMemory error) would be to 
1) Set -Xmx at something much higher than you should need, e.g.
-Xmx2048m
2) Run your app with a profiler.  See where memory gets allocated.  See
how much memory you really need.  Gradually trim down -Xmx until you
reach a point you have enough memory to handle your peaks, and then some
for safety.

Welcome to the fun exciting world of java heap performance tuning ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 9:46 AM
To: Tomcat Users List
Subject: Re: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta

Victor Popiol wrote:
 I installed Tomcat 4.1.3 beta. Took a while to configure because the
hidden issue with the user vs username parameter in the datasource
definition.

 After it has been running for a day, it died. Looking at the logs I
found
the following:

 java.lang.OutOfMemoryError
  no stack trace available
 java.lang.OutOfMemoryError
  no stack trace available
 java.lang.OutOfMemoryError
  no stack trace available
 java.lang.OutOfMemoryError
  no stack trace available

 Any idea of components leaking memory?

Without any additional details, I can't really help.

A bug which could cause this has been fixed after 4.1.3:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9715

This bug was also present in TC 4.0.x, though.

Remy


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


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




RE: jk_nt_service error

2002-06-21 Thread Cox, Charlie

check NT permissions on jk_nt_service.exe. Sevices run as user 'System', not
as the logged in user.

Charlie

 -Original Message-
 From: Yu Ye Zhou [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 21, 2002 9:42 AM
 To: Tomcat Users List
 Subject: jk_nt_service error
 
 
 I'm trying to run tomcat as service
 I edit the wrapper.properties files according to my
 set up. When I try to run jk_nt_service -i tomcat -a
 wrapper.properties, I get the following error: 
 Asked (and given) winsock 1.1
 OpenSCManager failed - Access is denied. 
 I'm using j2sdk1.4.0 instead of jdk1.3.1_01
 Thanks. 
 Yu Ye Zhou
 
 __
 Do You Yahoo!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.yahoo.com
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




Re: path info for servlets and JSPs

2002-06-21 Thread Milt Epstein

On Fri, 21 Jun 2002, cbarnes wrote:

 In web.xml I have added a servlet mapping so that the servlet can take extra
 path information as follows:

 servlet-mapping
 servlet-namemyservlet/servlet-name
 url-pattern/myservlet/*/url-pattern
 /servlet-mapping

 Is it possible to do something similar with JSPs - and if so how and
 where do I configure this?
 I would like to be able to use a URL such as
 http://server/application/mypage.jsp/extra/path/info

I don't think this is possible directly, with the way extensions are
handled (I think the extension has to be in the last segement of the
URL path).  You should check out the spec on this point, it's not too
hard to deciper.

As someone else suggested, you might be able to use the query string
to do this.

In addition, you might be able to use a servlet-mapping to do this.
The key point to note is that you can use a servlet-mapping to link a
url-pattern to a jsp-file instead of a servlet-name.  So if you have a
servlet-mapping like:

  servlet-mapping
jsp-filemypage.jsp/jsp-file
url-patternmypagejsp/url-pattern
  /servlet-mapping

You could use a URL like:

http://server/application/mypagejsp/extra/path/info

(Warning: The above is totally untested and will likely need to be
hashed out to get working.)

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




Re: mod_jk /examples/* works but /servlet/* doesn't

2002-06-21 Thread Brendan . Richards



Hi Avnish,

To be honest, I've always just set a line in the httpd.conf for each webapp
/ context deployed.
All the documentation/examples i've seen show a JKMount being used for each
context.

I generally don't need more than one or two webapps on each server so it's
not usually a problem for me.

Plus I only bother setting up the Apache mod_jk config when I put a web
application live - during servlet development and debugging I like to keep
the setup as simple as possible.


Good Luck

Brendan.

ps. remember to Alias your $CATALINA_HOME/webapps/appname directory in
httpd.conf to get Apache to serve the static content in your webapp



-


Hi Brendan,
with JkMount /*/servlet/* ajp13, debug files shows following lines. And
maps
root (/) to tomcat which is not what I want :(
[jk_uri_worker_map.c (256)]: Into jk_uri_worker_map_t::uri_worker_map_open,
suffix rule /.jsp=ajp13 was added
[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /=ajp13 was added

Tried others combinations too but it seems * is totally ignored. for
example
with directive JkMount /servlet/** ajp13
[jk_uri_worker_map.c (256)]: Into jk_uri_worker_map_t::uri_worker_map_open,
suffix rule /.jsp=ajp13 was added
[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /servlet/=ajp13 was added



Hi John,
I have my tomcat properly configured(Everything default config). I m able
to
get all contents with localhost:8080 successfully and even with directive
/examples/servlet/*.
From log file I came to know localhost/examples/servlet/anything is not
being forwarded to tomcat at all.

I would like to know if any one has ever configured tomcat with apache
using
JkMount /servlet/* ajp13 and if yes, on which platform?

Thanks
Avnish
- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, June 21, 2002 7:50 PM
Subject: Re: mod_jk /examples/* works but /servlet/* doesn't




Or perhaps it would be even better to try:

JkMount /*/servlet/* ajp13

or:
JkMount **/servlet/* ajp13

Brendan



I don't know if this will work or not...

but have you tried:

JkMount /servlet/** ajp13

If it works, let me know...

Brendan



Hi Everyone,
Recently I have connected apache with tomcat using mod_jk. In my httpd.conf
file I am giving this directive.
JkMount /examples/* ajp13

It works perfectly fine but problem is it forwards all requests to apache.
I
want static requests to be handled by Apache.
As per documentation only these two directives should be sufficient
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

But with above config I am not able to get my servlets working. From mod_jk
logs (after changing log level to debug) I came to know these requests are
not being forwarded to tomcat and apache try to handle these requests
itself
:(
I tried with this directive instead
JkMount /examples/servlet/* ajp13

And it's working perfectly. But with this everytime I add new context, I
have to add new directive for this context's servlet :(.  I don't want
that.
Document says JkMount /servlet/* ajp13  should work but isn't working !!
Any idea why.
I have tried all combinations */servlet/*, *servlet/* but no use.
I am using apache 1.3.24, Tomcat 4.0.2, JDK 1.3, Windows 2000

Any help would be greatly appreciated.

Thanks
Avnish


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




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




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




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




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




Session, SSL redirect , no Cookies

2002-06-21 Thread Peter Balmforth

I'm trying to use SSL for a login form and then redirect from https: to http:
once I have passed my password. The rest of the site will be less secure
but will not suffer the overhead of SSL.

Everything seems to work fine when cookies are enabled but when I rely
only on URL rewriting my jsessionid is disregarded going to AND from https.

Servlet Spec 2.3 says this can be problematic. However, I can't rely on cookies
and the environment is sufficiently secure to warrant this security level.

I'm using Tomcat 4.0.3.

Can this be configured to work?
If not is there an adequate workaround?

Thanks.







Peter Balmforth
[EMAIL PROTECTED]
Institute for Transport Studies, 
The University of Leeds, Leeds, LS2 9JT.
Room 204
Ex. 31757
Tel. (0113) 3431757




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




Re: war file deploys but can't reach any urls

2002-06-21 Thread Matt Vanderveer

On Thu, 2002-06-20 at 16:00, Koes, Derrick wrote:
  
 
  
 
 I dropped my war file in the webapps directory in a tomcat 4.0.4
 install.
 
 I started tomcat, and a directory is created with the contents of my war
 file.
 
 However, I cannot hit the expected url with any success.  I always get a
 404
 error.
 
 Can anyone help?
 
  
 
 Thanks.
 

Hi,

We have the same problem.  I have found when you deploy a new war file,
you must restart tomcat twice.  The first time it unpacks the war file
but it takes a second restart to run the webapp.  I believe this is
related to this bug:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4829

Matt
-- 
---
Matt Vanderveer [EMAIL PROTECTED]
Systems Administrator   Tel: 434.817.5900 ext. 5957
Boxer Learning, Inc.Fax: 434.817.0494
200 E. Main St. www.boxerlearning.com
Charlottesville, VA 22902   www.boxermath.com
---


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




Re: mod_jk /examples/* works but /servlet/* doesn't

2002-06-21 Thread Avnish Pundir

Brendan,
Thanks extending your help.
I can go with individual deployment, not a big problem (but still is a
problem isn't it). But just want to know when this isn't supported than why
the hell so many sites (I have seen more than 4-5 sites, one site setup J2EE
on windows and use ONLY these two directives, /*.jsp and /servlet/*)
mentions this thing? Why don't they clearly write it down it doesn't work
this way ? This question is not about you or me, it's about them who claim
this works when in fact it doesn't.
I have verified same behavior on 3 different machine with 100% individual
setups with same results.

Again I would like to ask EVERYONE, HAS ANY BODY SUCCESSFULLY TRIED
FOLLOWING DIRECTIVE ?
JkMount /servlet/* ajp13

If yes, PLEASE let me know on which platform. I have spent nearly more than
three days setting it up on three different machines. Am I missing something
?

Thanks
Avnish.
- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, June 21, 2002 8:37 PM
Subject: Re: mod_jk /examples/* works but /servlet/* doesn't




Hi Avnish,

To be honest, I've always just set a line in the httpd.conf for each webapp
/ context deployed.
All the documentation/examples i've seen show a JKMount being used for each
context.

I generally don't need more than one or two webapps on each server so it's
not usually a problem for me.

Plus I only bother setting up the Apache mod_jk config when I put a web
application live - during servlet development and debugging I like to keep
the setup as simple as possible.


Good Luck

Brendan.

ps. remember to Alias your $CATALINA_HOME/webapps/appname directory in
httpd.conf to get Apache to serve the static content in your webapp



-


Hi Brendan,
with JkMount /*/servlet/* ajp13, debug files shows following lines. And
maps
root (/) to tomcat which is not what I want :(
[jk_uri_worker_map.c (256)]: Into jk_uri_worker_map_t::uri_worker_map_open,
suffix rule /.jsp=ajp13 was added
[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /=ajp13 was added

Tried others combinations too but it seems * is totally ignored. for
example
with directive JkMount /servlet/** ajp13
[jk_uri_worker_map.c (256)]: Into jk_uri_worker_map_t::uri_worker_map_open,
suffix rule /.jsp=ajp13 was added
[jk_uri_worker_map.c (267)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /servlet/=ajp13 was added



Hi John,
I have my tomcat properly configured(Everything default config). I m able
to
get all contents with localhost:8080 successfully and even with directive
/examples/servlet/*.
From log file I came to know localhost/examples/servlet/anything is not
being forwarded to tomcat at all.

I would like to know if any one has ever configured tomcat with apache
using
JkMount /servlet/* ajp13 and if yes, on which platform?

Thanks
Avnish
- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, June 21, 2002 7:50 PM
Subject: Re: mod_jk /examples/* works but /servlet/* doesn't




Or perhaps it would be even better to try:

JkMount /*/servlet/* ajp13

or:
JkMount **/servlet/* ajp13

Brendan



I don't know if this will work or not...

but have you tried:

JkMount /servlet/** ajp13

If it works, let me know...

Brendan



Hi Everyone,
Recently I have connected apache with tomcat using mod_jk. In my httpd.conf
file I am giving this directive.
JkMount /examples/* ajp13

It works perfectly fine but problem is it forwards all requests to apache.
I
want static requests to be handled by Apache.
As per documentation only these two directives should be sufficient
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

But with above config I am not able to get my servlets working. From mod_jk
logs (after changing log level to debug) I came to know these requests are
not being forwarded to tomcat and apache try to handle these requests
itself
:(
I tried with this directive instead
JkMount /examples/servlet/* ajp13

And it's working perfectly. But with this everytime I add new context, I
have to add new directive for this context's servlet :(.  I don't want
that.
Document says JkMount /servlet/* ajp13  should work but isn't working !!
Any idea why.
I have tried all combinations */servlet/*, *servlet/* but no use.
I am using apache 1.3.24, Tomcat 4.0.2, JDK 1.3, Windows 2000

Any help would be greatly appreciated.

Thanks
Avnish


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




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




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




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

RE: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta

2002-06-21 Thread Victor Popiol

More details:

Server
Compaq Single Processor 512 MB RAM
Windows 2K

Tomcat
- Tomcat 4.1.3 Beta, binary distribution running as a service and using Tomcat 4.0's 
isapi_redirector.dll to interface with IIS
- Using Ajp3Processor with IIS
- Runs as an NT Service
- JVM parametes: -Xrs -Xincgc -Xms128m -Xmx256m


Application
- Struts
- Lots of JSP's using I18N and custom tags
- Database server is Oracle 8.1.7
- # requests/day: 7,750

Thanks
Victor


-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 9:46 AM
To: Tomcat Users List
Subject: Re: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta


Victor Popiol wrote:
 I installed Tomcat 4.1.3 beta. Took a while to configure because the hidden issue 
with the user vs username parameter in the datasource definition.
 
 After it has been running for a day, it died. Looking at the logs I found the 
following:
 
 java.lang.OutOfMemoryError
   no stack trace available
 java.lang.OutOfMemoryError
   no stack trace available
 java.lang.OutOfMemoryError
   no stack trace available
 java.lang.OutOfMemoryError
   no stack trace available
 
 Any idea of components leaking memory?

Without any additional details, I can't really help.

A bug which could cause this has been fixed after 4.1.3:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9715

This bug was also present in TC 4.0.x, though.

Remy


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


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




RE: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta

2002-06-21 Thread Shapira, Yoav

Hi,
Did you try profiling with and without the incremental garbage
collector? (-Xincgc)  I'd be very interested in the comparison.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Victor Popiol [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 11:44 AM
To: Tomcat Users List
Subject: RE: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta

More details:

Server
Compaq Single Processor 512 MB RAM
Windows 2K

Tomcat
- Tomcat 4.1.3 Beta, binary distribution running as a service and using
Tomcat 4.0's isapi_redirector.dll to interface with IIS
- Using Ajp3Processor with IIS
- Runs as an NT Service
- JVM parametes: -Xrs -Xincgc -Xms128m -Xmx256m


Application
- Struts
- Lots of JSP's using I18N and custom tags
- Database server is Oracle 8.1.7
- # requests/day: 7,750

Thanks
Victor


-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 9:46 AM
To: Tomcat Users List
Subject: Re: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta


Victor Popiol wrote:
 I installed Tomcat 4.1.3 beta. Took a while to configure because the
hidden issue with the user vs username parameter in the datasource
definition.

 After it has been running for a day, it died. Looking at the logs I
found
the following:

 java.lang.OutOfMemoryError
  no stack trace available
 java.lang.OutOfMemoryError
  no stack trace available
 java.lang.OutOfMemoryError
  no stack trace available
 java.lang.OutOfMemoryError
  no stack trace available

 Any idea of components leaking memory?

Without any additional details, I can't really help.

A bug which could cause this has been fixed after 4.1.3:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9715

This bug was also present in TC 4.0.x, though.

Remy


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


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


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




RE: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta

2002-06-21 Thread Reynir Hübner


I had the same problem, increased memory up to 512 and got rid of it.
But it seemd kind of obvious to me that tomcat 4.1.3 was taking way more memory than 
4.0.3, for example an application that normally takes 40 - 60 mb was taking 400mb of 
memory under load, and it did not seem to release the memory unless I killed the 
java.exe process. All my problems came as I was stress-testing the application. I'm 
testing version 4.1.5 right now, I'll let you know if there is any difference. 

-reynir


 

 -Original Message-
 From: Victor Popiol [mailto:[EMAIL PROTECTED]]
 Sent: 21. júní 2002 15:44
 To: Tomcat Users List
 Subject: RE: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta
 
 
 More details:
 
 Server
 Compaq Single Processor 512 MB RAM
 Windows 2K
 
 Tomcat
 - Tomcat 4.1.3 Beta, binary distribution running as a service 
 and using Tomcat 4.0's isapi_redirector.dll to interface with IIS
 - Using Ajp3Processor with IIS
 - Runs as an NT Service
 - JVM parametes: -Xrs -Xincgc -Xms128m -Xmx256m
 
 
 Application
 - Struts
 - Lots of JSP's using I18N and custom tags
 - Database server is Oracle 8.1.7
 - # requests/day: 7,750
 
 Thanks
 Victor
 
 
 -Original Message-
 From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 21, 2002 9:46 AM
 To: Tomcat Users List
 Subject: Re: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta
 
 
 Victor Popiol wrote:
  I installed Tomcat 4.1.3 beta. Took a while to configure 
 because the hidden issue with the user vs username parameter 
 in the datasource definition.
  
  After it has been running for a day, it died. Looking at 
 the logs I found the following:
  
  java.lang.OutOfMemoryError
  no stack trace available
  java.lang.OutOfMemoryError
  no stack trace available
  java.lang.OutOfMemoryError
  no stack trace available
  java.lang.OutOfMemoryError
  no stack trace available
  
  Any idea of components leaking memory?
 
 Without any additional details, I can't really help.
 
 A bug which could cause this has been fixed after 4.1.3:
 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9715
 
 This bug was also present in TC 4.0.x, though.
 
 Remy
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

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




RE: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta

2002-06-21 Thread Victor Popiol

It also helped us when we increased the memory. Right now, we have scheduled a daily 
service restart (this is in production :-( ).

I'll be looking forward to your feedback regarding 4.1.5

Regards
Victor

-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 11:43 AM
To: Tomcat Users List
Subject: RE: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta



I had the same problem, increased memory up to 512 and got rid of it.
But it seemd kind of obvious to me that tomcat 4.1.3 was taking way more memory than 
4.0.3, for example an application that normally takes 40 - 60 mb was taking 400mb of 
memory under load, and it did not seem to release the memory unless I killed the 
java.exe process. All my problems came as I was stress-testing the application. I'm 
testing version 4.1.5 right now, I'll let you know if there is any difference. 

-reynir


 

 -Original Message-
 From: Victor Popiol [mailto:[EMAIL PROTECTED]]
 Sent: 21. júní 2002 15:44
 To: Tomcat Users List
 Subject: RE: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta
 
 
 More details:
 
 Server
 Compaq Single Processor 512 MB RAM
 Windows 2K
 
 Tomcat
 - Tomcat 4.1.3 Beta, binary distribution running as a service 
 and using Tomcat 4.0's isapi_redirector.dll to interface with IIS
 - Using Ajp3Processor with IIS
 - Runs as an NT Service
 - JVM parametes: -Xrs -Xincgc -Xms128m -Xmx256m
 
 
 Application
 - Struts
 - Lots of JSP's using I18N and custom tags
 - Database server is Oracle 8.1.7
 - # requests/day: 7,750
 
 Thanks
 Victor
 
 
 -Original Message-
 From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 21, 2002 9:46 AM
 To: Tomcat Users List
 Subject: Re: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta
 
 
 Victor Popiol wrote:
  I installed Tomcat 4.1.3 beta. Took a while to configure 
 because the hidden issue with the user vs username parameter 
 in the datasource definition.
  
  After it has been running for a day, it died. Looking at 
 the logs I found the following:
  
  java.lang.OutOfMemoryError
  no stack trace available
  java.lang.OutOfMemoryError
  no stack trace available
  java.lang.OutOfMemoryError
  no stack trace available
  java.lang.OutOfMemoryError
  no stack trace available
  
  Any idea of components leaking memory?
 
 Without any additional details, I can't really help.
 
 A bug which could cause this has been fixed after 4.1.3:
 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9715
 
 This bug was also present in TC 4.0.x, though.
 
 Remy
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

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


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




Re: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta

2002-06-21 Thread Remy Maucherat

Victor Popiol wrote:
 It also helped us when we increased the memory. Right now, we have scheduled a daily 
service restart (this is in production :-( ).
 
 I'll be looking forward to your feedback regarding 4.1.5

Since apparently you are not using many static pages, this would seem to 
rule out the bug which got fixed.

Jasper 2 introduces pooling for a lot of objects which previously 
weren't pooled, so it is a possible cause. Maybe there is a problem with 
the size of those pools, although I didn't notice anything completely 
wrong in the code.

This will need to be investigated. Overall, 4.1.x should use a little 
bit more memory than 4.0.x, but there shouldn't be a huge difference.

Note: 4.1.5 introduces more pooling (rather than less), like for tag 
instances for example, but those pools have limits on their size.

Remy


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




Distribution Policy? Where did the RPMs go?

2002-06-21 Thread Eddie Bush

Note: This is a slightly reworded posting from yesterday.  I got no response, and 
really wanted one.  I'm reposting because I'm assuming nobody that knew saw it - and 
that it's so far down in the stack now they will not see it.

Hi - just curious if there would be no more RPM distributions past 4.0.3.  That's the 
last version I see one for.  I rather like the RPMs myself and would like to see them 
continue.  Did someone accidentally comment out that part of the Ant script? =)  I 
certainly hope you all haven't decided to no longer build RPM distributions =(  Anyone 
know what is up?

Thanks!

Eddie




RE: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta

2002-06-21 Thread Victor Popiol

My initial suspition was Jasper. But there have been less and less JSP compilations 
after the site was deployed.

One thing I wanted to try, to rule out Jasper, was to precompile all the JSP's. But I 
can't figure out how to do that. I guess I'll have to write an ant build file using 
the jsp compilation task.

Also, is there a way to query tomcat for resources held? I.E. JDBC connections.

Could there be something in our code causing these leaks in a way that the container 
would run out of memory? We have tried the application on JRun 4 in our test lab and 
have not been able to run out of memory yet.

Thanks
Victor

-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 12:09 PM
To: Tomcat Users List
Subject: Re: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta


Victor Popiol wrote:
 It also helped us when we increased the memory. Right now, we have scheduled a daily 
service restart (this is in production :-( ).
 
 I'll be looking forward to your feedback regarding 4.1.5

Since apparently you are not using many static pages, this would seem to 
rule out the bug which got fixed.

Jasper 2 introduces pooling for a lot of objects which previously 
weren't pooled, so it is a possible cause. Maybe there is a problem with 
the size of those pools, although I didn't notice anything completely 
wrong in the code.

This will need to be investigated. Overall, 4.1.x should use a little 
bit more memory than 4.0.x, but there shouldn't be a huge difference.

Note: 4.1.5 introduces more pooling (rather than less), like for tag 
instances for example, but those pools have limits on their size.

Remy


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


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




Socket Exception with Standard Wrapper Valve

2002-06-21 Thread Davids,Bradley

I'm hoping someone out there can give me a hand with this one as I'm new to
the Tomcat world.   I'm trying to run servlets using Tomcat 4.0.4 with IIS.
Examples all run with no trouble, but when trying to call a servlet using
the new virtual directory I've created returns the following error:

2002-06-21 12:05:26 StandardWrapperValve[default]: Servlet.service() for
servlet default threw exception
java.net.SocketException: Connection reset by peer: socket write error

I'm not sure if something is missing in my server.xml or web.xml file.  Any
thoughts? 

Much obliged,

Brad Davids

 

 




RE: Distribution Policy? Where did the RPMs go?

2002-06-21 Thread Jason Corley


Don't take me as a definitive source as I'm not a commiter (or even a developer) but I 
believe there is work to make the RPMs for tomcat4 more FHS compliant.  There is also 
some debate as to how FHS compliance should be achieved (proper directory structure, 
symlinking in post-install, etc.).  This is not a small task, so the RPMs may be a bit 
delayed as compared to how quickly they were posted in the past.  And I do not believe 
the RPMs are built via the same build tasks that produce the other platform binaries, 
although that seems like a worthwhile goal to move towards if possible.  Rest assured 
though that tomcat RPMs have not been dropped from the plans as far as I've seen, and 
if they have been I'll start building some. :-)
Jason

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 12:01 PM
To: Tomcat Users Mailing List
Subject: Distribution Policy? Where did the RPMs go?


Note: This is a slightly reworded posting from yesterday.  I got no response, and 
really wanted one.  I'm reposting because I'm assuming nobody that knew saw it - and 
that it's so far down in the stack now they will not see it.

Hi - just curious if there would be no more RPM distributions past 4.0.3.  That's the 
last version I see one for.  I rather like the RPMs myself and would like to see them 
continue.  Did someone accidentally comment out that part of the Ant script? =)  I 
certainly hope you all haven't decided to no longer build RPM distributions =(  Anyone 
know what is up?

Thanks!

Eddie


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




Re[2]: mod_jk /examples/* works but /servlet/* doesn't

2002-06-21 Thread Jacob Kjome

Hello Avnish,

here's the scoop.

For each context you want to map from Apache to Tomcat, do the
following (examples based on the Win32 platform):

First, the common stuff at the top of the mod_jk.conf file (Note that
you would put the following info in the mod_jk.conf which
would be included at the bottom of your httpd.conf):

IfModule !mod_jk.c
  LoadModule jk_module modules/mod_jk.dll
/IfModule

JkWorkersFile C:/Program Files/Apache 
Group/Jakarta/tomcat-4.1.3/conf/mod_jk/workers.properties
JkLogFile C:/Program Files/Apache Group/Jakarta/tomcat-4.1.3/logs/mod_jk.log

JkLogLevel emerg


This is for when you want Apache to direct *everything* to tomcat:

JkMount /manager ajp13
JkMount /manager/* ajp13
JkMount /examples ajp13
JkMount /examples/* ajp13
etc...
...
...

Note that you can do:

JkMount /servlet/* ajp13

However, when Tomcat gets this request, it will be serving servlets
out of the ROOT context whereas static files that come in requests
such as /index.html will be served out of Apache's web root.  If your
set up is this way, more power to you.  You can do the following,
though:

JkMount / ajp13
JkMount /* ajp13

That will make Tomcat take over Apache's web root forcing *all*
requests to Tomcat.



This is for when you want Apache to serve static content and only
direct dynamic content to Tomcat:

 localhost:/examples 

# Static files 
Alias /examples C:/Progra~1/Apache~1/Jakarta/tomcat-4.1.3/webapps/examples

Directory C:/Progra~1/Apache~1/Jakarta/tomcat-4.1.3/webapps/examples
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp 
/Directory


# Deny direct access to WEB-INF and META-INF
#
Location /examples/WEB-INF/*
AllowOverride None
deny from all
/Location

Location /examples/META-INF/*
AllowOverride None
deny from all
/Location
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
Directory C:/Progra~1/Apache~1/Jakarta/tomcat-4.1.3/webapps/examples/WEB-INF/
AllowOverride None
deny from all
/Directory

Directory C:/Progra~1/Apache~1/Jakarta/tomcat-4.1.3/webapps/examples/META-INF/
AllowOverride None
deny from all
/Directory

JkMount /examples/jsp/security/protected/j_security_check  ajp13
JkMount /examples/CompressionTest  ajp13
JkMount /examples/SendMailServlet  ajp13
JkMount /examples/servletToJsp  ajp13
JkMount /examples/snoop  ajp13
JkMount /examples/*.jsp  ajp13
JkMount /examples/servlet/*  ajp13

Notice that when you don't send everything to Tomcat, you have to be a
bit more careful about what you do.


BTW, you can autogenerate this in Tomcat 4 by putting the following
within any one of you host elements in server.xml:

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true
forwardAll=false/


That should be it other than the workers.properties file I am
attaching.

Does this help?

Jake


Friday, June 21, 2002, 10:43:32 AM, you wrote:

AP Brendan,
AP Thanks extending your help.
AP I can go with individual deployment, not a big problem (but still is a
AP problem isn't it). But just want to know when this isn't supported than why
AP the hell so many sites (I have seen more than 4-5 sites, one site setup J2EE
AP on windows and use ONLY these two directives, /*.jsp and /servlet/*)
AP mentions this thing? Why don't they clearly write it down it doesn't work
AP this way ? This question is not about you or me, it's about them who claim
AP this works when in fact it doesn't.
AP I have verified same behavior on 3 different machine with 100% individual
AP setups with same results.

AP Again I would like to ask EVERYONE, HAS ANY BODY SUCCESSFULLY TRIED
AP FOLLOWING DIRECTIVE ?
AP JkMount /servlet/* ajp13

AP If yes, PLEASE let me know on which platform. I have spent nearly more than
AP three days setting it up on three different machines. Am I missing something
AP ?

AP Thanks
AP Avnish.
AP - Original Message -
AP From: [EMAIL PROTECTED]
AP To: Tomcat Users List [EMAIL PROTECTED]
AP Sent: Friday, June 21, 2002 8:37 PM
AP Subject: Re: mod_jk /examples/* works but /servlet/* doesn't




AP Hi Avnish,

AP To be honest, I've always just set a line in the httpd.conf for each webapp
AP / context deployed.
AP All the documentation/examples i've seen show a JKMount being used for each
AP context.

AP I generally don't need more than one or two webapps on each server so it's
AP not usually a problem for me.

AP Plus I only bother setting up the Apache mod_jk config when I put a web
AP application live - during servlet development and debugging I like to keep
AP the setup as simple as possible.


AP Good Luck

AP Brendan.

AP ps. remember to Alias your $CATALINA_HOME/webapps/appname directory in
AP httpd.conf to get Apache to serve the static content in your webapp



AP 

RE: JasperException: Unable to compile class for JSP

2002-06-21 Thread Pearsall, Kyle

Thank you for your reply.

I am using Tomcat 4.0.4 with JDK 1.3.1.  They were both clean installs.  Does Tomcat 
4.0.4 have any issues with this JDK?  Should I upgrade to JDK 1.4?

I will look into this further.

Kyle

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 11:50 PM
To: Tomcat Users List
Subject: AW: JasperException: Unable to compile class for JSP



Your error message sounds as if pageContext.handlePageException() 
is is defined to accept just an Instance of Exception not Throwable.
That could be caused be a jar file that contains an older version
of the jsdk. (servlet.jar, ...) Have a look at your jar files
that are used for your tomcat. (Don't forget {JAVA_HOME}\jre\lib\ext !)

- Which Version of tomcat do you use ?  

 -Ursprüngliche Nachricht-
 Von: Pearsall, Kyle [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 20. Juni 2002 02:00
 An: Tomcat (E-mail)
 Betreff: JasperException: Unable to compile class for JSP
 
 
 Now I get a different problem.  The jsp files can't compile 
 correctly at runtime.  This code works properly on Weblogic 
 5.1.  Do I need to fix something in Tomcat?  Any suggestions?
 
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 D:\TOMCAT\work\Standalone\localhost\dhimaging\jsp\Albums$jsp.j
 ava:689: Incompatible type for method. Explicit cast needed 
 to convert java.lang.Throwable to java.lang.Exception.
   if (pageContext != null)  pageContext.handlePageException(t);
  ^

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


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




RE: Distribution Policy? Where did the RPMs go?

2002-06-21 Thread GOMEZ Henri

Don't take me as a definitive source as I'm not a commiter (or 
even a developer) but I believe there is work to make the RPMs 
for tomcat4 more FHS compliant.  There is also some debate as 
to how FHS compliance should be achieved (proper directory 
structure, symlinking in post-install, etc.).  This is not a 
small task, so the RPMs may be a bit delayed as compared to 
how quickly they were posted in the past.  And I do not 
believe the RPMs are built via the same build tasks that 
produce the other platform binaries, although that seems like 
a worthwhile goal to move towards if possible.  Rest assured 
though that tomcat RPMs have not been dropped from the plans 
as far as I've seen, and if they have been I'll start building 
some. :-)
Jason

I'm working on tomcat 4.0.4 rpms, which need much more externals
rpms (many from commons). 

That's why it take a little more times than expected

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 12:01 PM
To: Tomcat Users Mailing List
Subject: Distribution Policy? Where did the RPMs go?


Note: This is a slightly reworded posting from yesterday.  I 
got no response, and really wanted one.  I'm reposting because 
I'm assuming nobody that knew saw it - and that it's so far 
down in the stack now they will not see it.

Hi - just curious if there would be no more RPM distributions 
past 4.0.3.  That's the last version I see one for.  I rather 
like the RPMs myself and would like to see them continue.  Did 
someone accidentally comment out that part of the Ant script? 
=)  I certainly hope you all haven't decided to no longer 
build RPM distributions =(  Anyone know what is up?

Thanks!

Eddie



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




4.1.3 Beta mod_jk2 ALMOST working

2002-06-21 Thread Douglas, Rory
Title: 4.1.3 Beta  mod_jk2 ALMOST working





Hi there


I'm trying Apache 2.0.39 and Tomcat 4.1.3 Beta on a Win2K machine with mod_jk2 nightly binary.
I'm doing all my configuration through workers2.properties (copied from jtc-src in the 4.1.3 download). My Coyote JK2 connector is on the default port 8009 and Apache2 is on port 9000.

It's almost working (I think). I can start Apache with no errors. My Apache2 error log registers:
 
 [warn] workerEnv.init() ok C:/Dev/Apache2/conf/workers2.properties
 [warn] mod_jk child init 1 -1


which seems good. I can then browse localhost:9000/jkstatus and see a JK2 status page.


However, if I try to browse localhost:9000/examples (I have [uri:/examples/*] set up) then I get 500 error from Apache. The log shows:

 [warn] service.init() Can't find child in scoreboard 2208
 [error] channelSocket.connect() connect failed dlportaldevsys1:8009 61 Unknown error 
 [error] ajp13.connect() failed ajp13:dlportaldevsys1:8009
 [error] ajp13.service() failed to connect endpoint errno=61 Unknown error
 [warn] ajp13.done() close endpoint ajp13:dlportaldevsys1:8009 error_state 1
 [error] mod_jk.handler() Error connecting to tomcat 21000


The first line doesn't seem too serious, but line two's connect failed...61 Unknown error is puzzling. I definitely have a connector configured on 8009, and I believe I've set the right className and protocolHandlerClassName attributes as well (see shortened version below).

 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
 port=8009
 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
 useURIValidationHack=false
 Factory
 className=org.apache.catalina.net.DefaultServerSocketFactory/
 /Connector



Does anyone know what Error 61 is? Any help would be most appreciated. This is the closest I've come to getting Apache2/Tomcat4/mod_jk to work on Win2K. I suspect perhaps my jk2.properties file is incorrect. By default channelSocket.port=8019 is there, changing to 8009 gives me different errors, namely Bad file descriptor, BAD MESSAGE etc.

Thanks  apologies for the long, code-ridden mail


Rory Douglas
Sun Chemical Corporation
(201) 224-4600 x133
[EMAIL PROTECTED]




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


Re: Tomcat 4 performance issues - Trying Tomcat 4.1.3 Beta

2002-06-21 Thread Remy Maucherat

Victor Popiol wrote:
 My initial suspition was Jasper. But there have been less and less JSP compilations 
after the site was deployed.
 
 One thing I wanted to try, to rule out Jasper, was to precompile all the JSP's. But 
I can't figure out how to do that. I guess I'll have to write an ant build file using 
the jsp compilation task.
 
 Also, is there a way to query tomcat for resources held? I.E. JDBC connections.
 
 Could there be something in our code causing these leaks in a way that the container 
would run out of memory? We have tried the application on JRun 4 in our test lab and 
have not been able to run out of memory yet.

The problem may be the new Jasper runtime environment, so precompiling 
shouldn't help too much (although it can't hurt).

Remy


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




RE: 4.1.3 Beta mod_jk2 ALMOST working

2002-06-21 Thread Turner, John


According to this thread, there seems to be a problem with mod_jk and the
latest apache (2.0.39):

http://mailman.real-time.com/pipermail/tomcat-users/2002-June/069534.html

John Turner
[EMAIL PROTECTED]
http://www.aas.com


-Original Message-
From: Douglas, Rory [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 12:11 PM
To: Tomcat Users List (E-mail)
Subject: 4.1.3 Beta  mod_jk2 ALMOST working


Hi there 
I'm trying Apache 2.0.39 and Tomcat 4.1.3 Beta on a Win2K machine with
mod_jk2 nightly binary. 
I'm doing all my configuration through workers2.properties (copied from
jtc-src in the 4.1.3 download). My Coyote JK2 connector is on the default
port 8009 and Apache2 is on port 9000.
It's almost working (I think).  I can start Apache with no errors. My
Apache2 error log registers: 

  [warn] workerEnv.init() ok C:/Dev/Apache2/conf/workers2.properties 
  [warn] mod_jk child init 1 -1 
which seems good.  I can then browse localhost:9000/jkstatus and see a JK2
status page. 
However, if I try to browse localhost:9000/examples (I have
[uri:/examples/*] set up) then I get 500 error from Apache.  The log shows:
  [warn] service.init() Can't find child in scoreboard 2208 
  [error] channelSocket.connect() connect failed dlportaldevsys1:8009 61
Unknown error 
  [error] ajp13.connect() failed ajp13:dlportaldevsys1:8009 
  [error] ajp13.service() failed to connect endpoint errno=61 Unknown error 
  [warn] ajp13.done() close endpoint ajp13:dlportaldevsys1:8009 error_state
1 
  [error] mod_jk.handler() Error connecting to tomcat 21000 
The first line doesn't seem too serious, but line two's connect failed...61
Unknown error is puzzling. I definitely have a connector configured on
8009, and I believe I've set the right className and
protocolHandlerClassName attributes as well (see shortened version below).
  Connector className=org.apache.coyote.tomcat4.CoyoteConnector 
  port=8009 
  protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler 
  useURIValidationHack=false 
Factory 
  className=org.apache.catalina.net.DefaultServerSocketFactory/ 
  /Connector 


Does anyone know what Error 61 is? Any help would be most appreciated. This
is the closest I've come to getting Apache2/Tomcat4/mod_jk to work on Win2K.
I suspect perhaps my jk2.properties file is incorrect. By default
channelSocket.port=8019 is there, changing to 8009 gives me different
errors, namely Bad file descriptor, BAD MESSAGE etc.
Thanks  apologies for the long, code-ridden mail 
Rory Douglas 
Sun Chemical Corporation 
(201) 224-4600 x133 
[EMAIL PROTECTED] 



RE: Using JkMount with mod_jk question...

2002-06-21 Thread Milt Epstein

On Fri, 21 Jun 2002, Turner, John wrote:

 Thanks for the reply, I think.

 The configurations I have have been working since tomcat 3.1.  They
 work on tomcat 4 with mod_jk.  I see no reason to change them,
 especially considering the amount of time I wasted trying to get
 mod_webapp to work, and the amount of posts to this list from people
 having problems when changing their configuration to something new.

 The JkMount directives may be redundant, I'm not worried about it.
 They work.

OK, that all makes sense.  FWIW, I installed tomcat 4.0.3 and
mod_webapp on a Solaris machine recently, and it took me only about a
half-hour's worth of work.  It was very simple and straightforward.

So you might ask why I don't just go with mod_webapp now.  A couple of
reasons.  First, the above was for a test/development environment, so
I just wanted to get it going quickly, I didn't care so much about
which connector I used.  Now I need to install it in a production
environment, so I want to use the best connector.  Second, this is
for AIX, and the tomcat site doesn't have AIX binaries for the
connectors.  It does have binaries for Solaris (both mod_webapp and
mod_jk, IIRC).

Regarding the possibly redundant JkMount directives, it would be nice
to understand exactly what is going on with them, because there may be
performance and/or security considerations.


 -Original Message-
 From: Milt Epstein [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 20, 2002 6:56 PM
 To: Tomcat Users List
 Subject: RE: Using JkMount with mod_jk question...


 On Thu, 20 Jun 2002, Turner, John wrote:

  Good questions, all.  It doesn't matter to me if servlet shows up
  in the URL (it matters to some people/projects) so I haven't worried
  about it.  I think using servlet is just a convention...in my
  projects, I usually prepend the application name to it.  For
  example, if the application is XYZ, then I use XYZServlet to denote
  that application's servlet directory, not servlet.  Same goes for
  company names...if you have company ABC using a particular app, you
  might say ABCServlet.

 Maybe I can add a little here.  A long time ago in a galaxy far away,
 servlets used to be called with URL's like
 http://www.domain.com/servlet/ServletName;, where ServletName was the
 actual name of the servlet class.  servlet/ was a virtual directory
 that told the servlet container (servlet engine back then) to find the
 named servlet.  Of course, the web server had to be told to pass URL's
 with servlet/ in them to the servlet container.

 That was before they came up with the idea of defining servlets in the
 web.xml file, and specifying servlet-mapping's to allow url-pattern's
 to point to these defined servlets.  Then you could define a servlet
 dothis that was actually ServletName, and with the appropriate
 mappings, you could use a URL like http://www.domain.com/dothis;.

 Now, I don't recall what the spec has to say about this, that is,
 whether it requires/allows/disallows using the old style URL's with
 servlet/ and the actual servlet class name.  But some people think
 it's a good idea not to use them, in fact, even to disable it, such
 that you can only reach servlets that have been defined in web.xml.
 In some ways, it allows more control and greater security.

 Anyway, the

 JkMount /servlet ajp13

 in the examples is a vestige of all this.


  I think, if you tell apache that index.jsp is a valid starting
  page, you can just call /mydir instead of /mydir/ and have that
  JSP page redirect wherever you want.

 Wouldn't specifying index.jps as a welcome-file in web.xml be a better
 way of doing this?


  -Original Message-
  From: Sean M Alderman [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, June 20, 2002 5:00 PM
  To: Tomcat Users List
  Subject: RE: Using JkMount with mod_jk question...
 
 
  So I need to shut apache down, change the config and restart everytime I
  deploy a new webapp?
 
  OK...so I did what you said, and now I can point my browser to
  http://host/examples/ and it shows me a directory listing like
  page...which is better than I saw before.  If I do
  http://host/examples/jsp/ I get the index.html page I expect to get.
  Great!
 
  so I put a JkMount /myApp ajp13 in httpd.conf and if I have
  $TOMCAT_HOME/webapps/myApp.war the app will deploy and I should be able
  to visit http://host/myApp and run the app.
 
  One last stupid question... So what's JkMount /servlet ajp13 for in the
  examples?...I mean is /servlet specific or should there be an additional
  note for stupid guys like me who don't get that /servlet should be
  replaced with actual real servlets on your system?
 
  On Thu, 2002-06-20 at 16:44, Turner, John wrote:
  
   If you were using mod_jk, apache, and tomcat, and wanted to reach the
  tomcat
   examples (default install) on port 80 (instead of 8080 or whatever),
 this
   would work:
  
   JkMount /examples ajp13
   JkMount /examples/* ajp13
  
   Season to taste, that is, you 

Re: minimal config files for mod_jk2 request....

2002-06-21 Thread Jacob Kjome

Ok, I've seen others clamoring for this in other messages.  Surely
there is someone out there who has successfully gotten mod_jk2 to work
for them.  All I ask for is a sample configuration example with *all*
files required.  I just did this for another person on the list having
trouble with mod_jk.  How about some help with mod_jk2?

BTW, I did find the new auto-generators in the tomcat-connectors.
They are in the package org.apache.jk.config.  Here's how I ran it on
Windows:

D:\myclasses\tomcatjava -classpath .;tomcat-util.jar;commons-logging.jar org.ap
ache.jk.config.WebXml2Jk -docBase %CATALINA_HOME%\webapps\examples


It writes the files to $CATALINA_HOME/webapp/examples/WEB-INF/jk2

I'm attaching the files that it wrote out which are jk.conf,
jk2.conf, and jk2map.properties.

However, there is still the
issue with proper configuration of jk2.properties,
workers2.properties, and what are .shm files referred to by both
jk2.properties and workers2.properties?  Someone must have an example
of this working.

Jake



Thursday, June 20, 2002, 11:42:41 AM, you wrote:

JK Hi,

JK There seems to be sparse documentation on how to configure mod_jk2.
JK Does anyone have some example configuration files and instructions on
JK use?  I'll keep searching and post the example myself if I find it.

JK thanks,

JK Jake


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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


jk2_autogenerated-conf.zip
Description: Zip compressed data

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


Re[2]: 4.1.3 Beta mod_jk2 ALMOST working

2002-06-21 Thread Jacob Kjome

Hello John,

That isn't an issue anymore.  The nightly binaries were rebuilt.
However, that only includes mod_jk2, not mod_jk.  The fact that Rory
got Apache running at all means he was using a binary compatible with
Apache 2.0.39.

Now if someone can provide a configuration example for how mod_jk2
works!

Jake

Friday, June 21, 2002, 11:48:59 AM, you wrote:


TJ According to this thread, there seems to be a problem with mod_jk and the
TJ latest apache (2.0.39):

TJ http://mailman.real-time.com/pipermail/tomcat-users/2002-June/069534.html

TJ John Turner
TJ [EMAIL PROTECTED]
TJ http://www.aas.com


TJ -Original Message-
TJ From: Douglas, Rory [mailto:[EMAIL PROTECTED]]
TJ Sent: Friday, June 21, 2002 12:11 PM
TJ To: Tomcat Users List (E-mail)
TJ Subject: 4.1.3 Beta  mod_jk2 ALMOST working


TJ Hi there 
TJ I'm trying Apache 2.0.39 and Tomcat 4.1.3 Beta on a Win2K machine with
TJ mod_jk2 nightly binary. 
TJ I'm doing all my configuration through workers2.properties (copied from
TJ jtc-src in the 4.1.3 download). My Coyote JK2 connector is on the default
TJ port 8009 and Apache2 is on port 9000.
TJ It's almost working (I think).  I can start Apache with no errors. My
TJ Apache2 error log registers: 

TJ   [warn] workerEnv.init() ok C:/Dev/Apache2/conf/workers2.properties 
TJ   [warn] mod_jk child init 1 -1 
TJ which seems good.  I can then browse localhost:9000/jkstatus and see a JK2
TJ status page. 
TJ However, if I try to browse localhost:9000/examples (I have
TJ [uri:/examples/*] set up) then I get 500 error from Apache.  The log shows:
TJ   [warn] service.init() Can't find child in scoreboard 2208 
TJ   [error] channelSocket.connect() connect failed dlportaldevsys1:8009 61
TJ Unknown error 
TJ   [error] ajp13.connect() failed ajp13:dlportaldevsys1:8009 
TJ   [error] ajp13.service() failed to connect endpoint errno=61 Unknown error 
TJ   [warn] ajp13.done() close endpoint ajp13:dlportaldevsys1:8009 error_state
TJ 1 
TJ   [error] mod_jk.handler() Error connecting to tomcat 21000 
TJ The first line doesn't seem too serious, but line two's connect failed...61
TJ Unknown error is puzzling. I definitely have a connector configured on
TJ 8009, and I believe I've set the right className and
TJ protocolHandlerClassName attributes as well (see shortened version below).
TJ   Connector className=org.apache.coyote.tomcat4.CoyoteConnector 
TJ   port=8009 
TJ   protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler 
TJ   useURIValidationHack=false 
TJ Factory 
TJ   className=org.apache.catalina.net.DefaultServerSocketFactory/ 
TJ   /Connector 


TJ Does anyone know what Error 61 is? Any help would be most appreciated. This
TJ is the closest I've come to getting Apache2/Tomcat4/mod_jk to work on Win2K.
TJ I suspect perhaps my jk2.properties file is incorrect. By default
TJ channelSocket.port=8019 is there, changing to 8009 gives me different
TJ errors, namely Bad file descriptor, BAD MESSAGE etc.
TJ Thanks  apologies for the long, code-ridden mail 
TJ Rory Douglas 
TJ Sun Chemical Corporation 
TJ (201) 224-4600 x133 
TJ [EMAIL PROTECTED] 



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




RE: Using JkMount with mod_jk question...

2002-06-21 Thread Milt Epstein

On Fri, 21 Jun 2002, Turner, John wrote:

 Sure, /*.jsp will send JSP files to tomcat.  But apache doesn't know
 that index.jsp is a home page unless you tell it so in httpd.conf:

 Directory /web/test/jsp
   Options Indexes FollowSymLinks
   DirectoryIndex index.html index.htm index.jsp
 /Directory

So is this something you actually have set up and are using?  Is
/web/test/jsp known to tomcat (i.e. as part of a context/web
application)?  Or are you allowing jsp's to appear outside of tomcat
contexts/web applications?

The thing I wonder about is how this all fits with the directory/web
application structure as per the servlet/jsp spec.  Basically, I
believe the spec says that everything is set up as context/web
application (and there's also the ROOT/default context), and the
directory hierarchy has a certain structure (e.g. in terms of the
WEB-INF, classes, lib directories and the web.xml file).  Being able
to have jsp's (and/or servlets) elsewhere might seem like a nice
convenience, but is it going against the spec?  Also, it seems mod_jk
allows this, but not mod_webapp.


 -Original Message-
 From: Sean M Alderman [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 21, 2002 10:17 AM
 To: Tomcat Users List
 Subject: RE: Using JkMount with mod_jk question...


 Thanks for the clarification John and Milt, I appreciate it.  I am kind
 of curious though about the configuration of index.jsp on the apache
 side of things

 If I use a JkMount /*.jsp ajp13 directive will any jsp file in the
 Apache DocumentRoot be handled by Tomcat?  Or does this just mean that
 any jsp file in $TOMCAT_HOME/webapps will be handled by tomcat?  I'm
 assuming that JkMount / ajp13 means that / is relative to
 $TOMCAT_HOME/webapps, but I've found that I actually have to specify the
 subdirectories under $TOMCAT_HOME/webapps in order to have access to
 them.

 I guess my general confusion here is that it seems like the JkMount
 directive allows one to overlay parts/pieces of the
 $TOMCAT_HOME/webapps directory over top of the Apache DocumentRoot.
 Kind of analogous to creating a directory structure on a filesystem
 (e.g. /home) then mounting a new filesystem as /home and being able to
 see files from both at the same time (of course that's not the way it
 work). That's what it sounds like JkMount does.



Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




RE: Re[2]: 4.1.3 Beta mod_jk2 ALMOST working

2002-06-21 Thread Turner, John


Thanks...  I never saw a post on the list that specifically said the problem
was solved.  Perhaps I missed it.

John Turner
[EMAIL PROTECTED]
http://www.aas.com


-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 1:04 PM
To: Tomcat Users List
Subject: Re[2]: 4.1.3 Beta  mod_jk2 ALMOST working


Hello John,

That isn't an issue anymore.  The nightly binaries were rebuilt.
However, that only includes mod_jk2, not mod_jk.  The fact that Rory
got Apache running at all means he was using a binary compatible with
Apache 2.0.39.

Now if someone can provide a configuration example for how mod_jk2
works!

Jake

Friday, June 21, 2002, 11:48:59 AM, you wrote:


TJ According to this thread, there seems to be a problem with mod_jk and
the
TJ latest apache (2.0.39):

TJ
http://mailman.real-time.com/pipermail/tomcat-users/2002-June/069534.html

TJ John Turner
TJ [EMAIL PROTECTED]
TJ http://www.aas.com


TJ -Original Message-
TJ From: Douglas, Rory [mailto:[EMAIL PROTECTED]]
TJ Sent: Friday, June 21, 2002 12:11 PM
TJ To: Tomcat Users List (E-mail)
TJ Subject: 4.1.3 Beta  mod_jk2 ALMOST working


TJ Hi there 
TJ I'm trying Apache 2.0.39 and Tomcat 4.1.3 Beta on a Win2K machine with
TJ mod_jk2 nightly binary. 
TJ I'm doing all my configuration through workers2.properties (copied from
TJ jtc-src in the 4.1.3 download). My Coyote JK2 connector is on the
default
TJ port 8009 and Apache2 is on port 9000.
TJ It's almost working (I think).  I can start Apache with no errors. My
TJ Apache2 error log registers: 

TJ   [warn] workerEnv.init() ok C:/Dev/Apache2/conf/workers2.properties 
TJ   [warn] mod_jk child init 1 -1 
TJ which seems good.  I can then browse localhost:9000/jkstatus and see a
JK2
TJ status page. 
TJ However, if I try to browse localhost:9000/examples (I have
TJ [uri:/examples/*] set up) then I get 500 error from Apache.  The log
shows:
TJ   [warn] service.init() Can't find child in scoreboard 2208 
TJ   [error] channelSocket.connect() connect failed dlportaldevsys1:8009 61
TJ Unknown error 
TJ   [error] ajp13.connect() failed ajp13:dlportaldevsys1:8009 
TJ   [error] ajp13.service() failed to connect endpoint errno=61 Unknown
error 
TJ   [warn] ajp13.done() close endpoint ajp13:dlportaldevsys1:8009
error_state
TJ 1 
TJ   [error] mod_jk.handler() Error connecting to tomcat 21000 
TJ The first line doesn't seem too serious, but line two's connect
failed...61
TJ Unknown error is puzzling. I definitely have a connector configured on
TJ 8009, and I believe I've set the right className and
TJ protocolHandlerClassName attributes as well (see shortened version
below).
TJ   Connector className=org.apache.coyote.tomcat4.CoyoteConnector 
TJ   port=8009 
TJ   protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler 
TJ   useURIValidationHack=false 
TJ Factory 
TJ   className=org.apache.catalina.net.DefaultServerSocketFactory/ 
TJ   /Connector 


TJ Does anyone know what Error 61 is? Any help would be most appreciated.
This
TJ is the closest I've come to getting Apache2/Tomcat4/mod_jk to work on
Win2K.
TJ I suspect perhaps my jk2.properties file is incorrect. By default
TJ channelSocket.port=8019 is there, changing to 8009 gives me different
TJ errors, namely Bad file descriptor, BAD MESSAGE etc.
TJ Thanks  apologies for the long, code-ridden mail 
TJ Rory Douglas 
TJ Sun Chemical Corporation 
TJ (201) 224-4600 x133 
TJ [EMAIL PROTECTED] 



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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



RE: 4.1.3 Beta mod_jk2 ALMOST working

2002-06-21 Thread Short, Dave

I've encountered error 61 when tomcat wasn't given enough time to initialize
prior to starting Apache (Apache 2.0.36  Tomcat 4.0.3).
 
Can you please provide your mod_jk.conf, workers2.properties and any other
required mod_jk2 files?

-Original Message-
From: Douglas, Rory [mailto:[EMAIL PROTECTED]]
Sent: June 21, 2002 9:11 AM
To: Tomcat Users List (E-mail)
Subject: 4.1.3 Beta  mod_jk2 ALMOST working



Hi there 

I'm trying Apache 2.0.39 and Tomcat 4.1.3 Beta on a Win2K machine with
mod_jk2 nightly binary. 
I'm doing all my configuration through workers2.properties (copied from
jtc-src in the 4.1.3 download). My Coyote JK2 connector is on the default
port 8009 and Apache2 is on port 9000.

It's almost working (I think).  I can start Apache with no errors. My
Apache2 error log registers: 

  [warn] workerEnv.init() ok C:/Dev/Apache2/conf/workers2.properties 
  [warn] mod_jk child init 1 -1 

which seems good.  I can then browse localhost:9000/jkstatus and see a JK2
status page. 

However, if I try to browse localhost:9000/examples (I have
[uri:/examples/*] set up) then I get 500 error from Apache.  The log shows:

  [warn] service.init() Can't find child in scoreboard 2208 
  [error] channelSocket.connect() connect failed dlportaldevsys1:8009 61
Unknown error 
  [error] ajp13.connect() failed ajp13:dlportaldevsys1:8009 
  [error] ajp13.service() failed to connect endpoint errno=61 Unknown error 
  [warn] ajp13.done() close endpoint ajp13:dlportaldevsys1:8009 error_state
1 
  [error] mod_jk.handler() Error connecting to tomcat 21000 

The first line doesn't seem too serious, but line two's connect failed...61
Unknown error is puzzling. I definitely have a connector configured on
8009, and I believe I've set the right className and
protocolHandlerClassName attributes as well (see shortened version below).

  Connector className=org.apache.coyote.tomcat4.CoyoteConnector 
  port=8009 
  protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler 
  useURIValidationHack=false 
Factory 
  className=org.apache.catalina.net.DefaultServerSocketFactory/ 
  /Connector 


Does anyone know what Error 61 is? Any help would be most appreciated. This
is the closest I've come to getting Apache2/Tomcat4/mod_jk to work on Win2K.
I suspect perhaps my jk2.properties file is incorrect. By default
channelSocket.port=8019 is there, changing to 8009 gives me different
errors, namely Bad file descriptor, BAD MESSAGE etc.

Thanks  apologies for the long, code-ridden mail 

Rory Douglas 
Sun Chemical Corporation 
(201) 224-4600 x133 
[EMAIL PROTECTED] 




Book recommendation

2002-06-21 Thread mls


Any recommendation for a good book that covers Tomcat and
other related open source technologies? More from an application
developers point of view as to how various components fit
together rather than sysadmin details or exhaustive details
about any one particular thing (say JBoss, Servlet etc).

Some books that came up on Internet search were...

1) MySQL and JSP Web Applications: Data-Driven Programming
Using Tomcat and MySQL By James Turner

2) Apache Jakarta-Tomcat by James Goodwill

3) JSP, Servlets, and Mysql by Dave Harms

4) Professional Java Server Programming (many authors)

Any other ones out there and which one would you recommend?


das

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




RE: Book recommendation

2002-06-21 Thread Geoff Peters

I've got the James Goodwill book - it is good for a beginner to Tomcat and servlet / 
jsp technology, very easy to follow and well written - but not a lot of detail on 
specific tweaking / configuration issues. There is a new Tomcat book being published 
this month or next month (can't remember) - you could pre - order it on amazon.com 
last time I looked, it was to be a  thicker book (not sure if that means more useful 
info or more pictures?)

Geoff


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: June 21, 2002 2:26 PM
To: [EMAIL PROTECTED]
Subject: Book recommendation



Any recommendation for a good book that covers Tomcat and
other related open source technologies? More from an application
developers point of view as to how various components fit
together rather than sysadmin details or exhaustive details
about any one particular thing (say JBoss, Servlet etc).

Some books that came up on Internet search were...

1) MySQL and JSP Web Applications: Data-Driven Programming
Using Tomcat and MySQL By James Turner

2) Apache Jakarta-Tomcat by James Goodwill

3) JSP, Servlets, and Mysql by Dave Harms

4) Professional Java Server Programming (many authors)

Any other ones out there and which one would you recommend?


das

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


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




RE: jk_nt_service error

2002-06-21 Thread Yu Ye Zhou

Thanks. That is the problem. 

--- Cox, Charlie [EMAIL PROTECTED] wrote:
 check NT permissions on jk_nt_service.exe. Sevices
 run as user 'System', not
 as the logged in user.
 
 Charlie
 
  -Original Message-
  From: Yu Ye Zhou [mailto:[EMAIL PROTECTED]]
  Sent: Friday, June 21, 2002 9:42 AM
  To: Tomcat Users List
  Subject: jk_nt_service error
  
  
  I'm trying to run tomcat as service
  I edit the wrapper.properties files according to
 my
  set up. When I try to run jk_nt_service -i tomcat
 -a
  wrapper.properties, I get the following error: 
  Asked (and given) winsock 1.1
  OpenSCManager failed - Access is denied. 
  I'm using j2sdk1.4.0 instead of jdk1.3.1_01
  Thanks. 
  Yu Ye Zhou
  
  __
  Do You Yahoo!?
  Yahoo! - Official partner of 2002 FIFA World Cup
  http://fifaworldcup.yahoo.com
  
  --
  To unsubscribe, e-mail:   
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: Distribution Policy? Where did the RPMs go?

2002-06-21 Thread Eddie Bush

Thank you for the update =)  I'm guessing the 4.1.x series won't start
having RPM builds until they reach a full release - is that assumpiton
correct?

Thanks!

Eddie

- Original Message -
From: GOMEZ Henri [EMAIL PROTECTED]
To: Jason Corley [EMAIL PROTECTED]; Tomcat Users List
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, June 21, 2002 11:38 AM
Subject: RE: Distribution Policy? Where did the RPMs go?

I'm working on tomcat 4.0.4 rpms, which need much more externals
rpms (many from commons).

That's why it take a little more times than expected




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




manager reload command?

2002-06-21 Thread Cory Casler

Does the reload command for the tomcat 4.0.1 manager application not
work?  If I make a change to a *.war file and issue the command:
http://(server):(port)/manager/reload?path=/(context)
 I get the OK - Reloaded application at context path /ccdb
 response but it does not realy reload the app.  When I try to goto the 
app, I get an error that it cannot find the servlet.

Could someone tell me if this works or how to properly do this.

Cory Casler
IHETS WebDev


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




Re: Book recommendation

2002-06-21 Thread Cindy Ballreich

I can't speak to the others, but I really didn't like JSP, Servlets, and Mysql. It 
reads nicely, but the examples are full of really basic errors. Be sure to check out 
the reader reviews on Amazon for any book you're interested in. They can be very 
helpful.



At 10:26 AM 6/21/02 -0700, [EMAIL PROTECTED] wrote:

Any recommendation for a good book that covers Tomcat and
other related open source technologies? More from an application
developers point of view as to how various components fit
together rather than sysadmin details or exhaustive details
about any one particular thing (say JBoss, Servlet etc).

Some books that came up on Internet search were...

1) MySQL and JSP Web Applications: Data-Driven Programming
Using Tomcat and MySQL By James Turner

2) Apache Jakarta-Tomcat by James Goodwill

3) JSP, Servlets, and Mysql by Dave Harms

4) Professional Java Server Programming (many authors)

Any other ones out there and which one would you recommend?


das

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


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




(Tomcat 4.0.4) and (Forte4 with Tomcat 4.0.1) and Struts

2002-06-21 Thread Jeff_Mychasiw



Sorry for the simple questions:

Correct me if I am wrong, but I am under the impression that If  I develop a
simple web app in Forte, I  should be able to drop it into a similar version
of standalone tomcat and have it run.
In fact I would like to place my working web app directory under webapps of my
local Tomcat install and also mount this same web app with forte and use the two
servers at the same time( not to run at the same, but to be able to fire the
other one up with dragging the code around).
This seems to work fine but

The reason this post is I had to change some url's in my code to get my app from
forte(tomcat4.0.1) to work in Tomcat 4.0.4

With an Image Tag:
In Forte:   img src=/img/nlg.jpg
TC 4.0.4 : img src=../img/nlg.jpg

In my index page:
The links
Forte: - Both work
a href='login/login.jsp'Login/a
a href=/login/login.jspLogin/a

Tomcat 4.0.4 - only this works
a href='login/login.jsp'Login/a

of course my web app is:
test-ar
 /img
 /login
   /login.jsp

What am i missing?



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




Re: Book recommendation

2002-06-21 Thread Carl Bacher

There's one coming out soon - hopefully.

Developer's Guide to Tomcat 4 by Alex Garrett  Jeff Kean and published 
by Manning

It's due out in October. (It was due out in June when I ordered it about 
a month ago).



Cindy Ballreich wrote:

I can't speak to the others, but I really didn't like JSP, Servlets, and Mysql. It 
reads nicely, but the examples are full of really basic errors. Be sure to check out 
the reader reviews on Amazon for any book you're interested in. They can be very 
helpful.



At 10:26 AM 6/21/02 -0700, [EMAIL PROTECTED] wrote:

Any recommendation for a good book that covers Tomcat and
other related open source technologies? More from an application
developers point of view as to how various components fit
together rather than sysadmin details or exhaustive details
about any one particular thing (say JBoss, Servlet etc).

Some books that came up on Internet search were...

1) MySQL and JSP Web Applications: Data-Driven Programming
   Using Tomcat and MySQL By James Turner

2) Apache Jakarta-Tomcat by James Goodwill

3) JSP, Servlets, and Mysql by Dave Harms

4) Professional Java Server Programming (many authors)

Any other ones out there and which one would you recommend?


das

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


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






  1   2   >