Informix connection pooling via JNDI resource

2002-03-20 Thread revin

Hi,

Does anybody have experience with jakarta-tomcat-4.0.2 and connection pooling 
setup as a jndi resource (server.xml) for Informix DB (vIDS2000)

I use the informix jdbc driver (ifxjdbc.jar).

In fact everything works, I get no errors, except that the application keeps 
opening and closing the database connectinos which is not the meaning of 
connection pooling.

I didn't experience this behaviour with the same config and application for eg 
Oracle, My Sql ... so I think it isn't the configuration.

did anyone manage to setup a working connection pooling for informix via jndi 
resource, or experienced the same problems?

greetings,

Erwin Ravau

-
This mail sent through Tiscali Webmail (http://webmail.tiscali.be)

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




URGENT!! SOAP OVER SSL USING TOMCAT

2002-03-20 Thread Manu Kumar

Hello All,

I have a servlet running in tomcat which dispatches a SOAP message over HTTP
to another server and shows the response.
The servlet takes some parameters from a html page and then dispatches SOAP
message. On reciept of the message the servlet shows the response in a
web-page.

Now , i need to do the same using https.

Please help..


regards,

Manu

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: ssl and windows 2000

2002-03-20 Thread elmo


Hi Mehmet,

Please find attached a document which I compiled from various sources for setting up 
SSL under Tomcat. I hope it
helps...

(See attached file: SSL.doc)

Elias S. Mouchantaf
Corniche El-Nahr,
Beirut - Lebanon.
Tel. +961-1-613958/9
[EMAIL PROTECTED]
www.triloggroup.com



   
  
"Mehmet Ugur   
  
Kuzu   To: 'Tomcat Users List' 
<[EMAIL PROTECTED]>  
(LinkPlus)"cc: 
  
 
  
   
  
03/20/2002 
  
07:40 PM   
  
Please respond 
  
to "Tomcat 
  
Users List"
  
   
  
   
  



Hi,
Do you know a detailed description of how can i generate my ssl keys and
setup Tomcat under windows 2000,
sincerely Ugur





SSL.doc
Description: Microsoft Word 4

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


RE: mod_jk problems

2002-03-20 Thread Robert Abbate

Anyone seen anything like this before?

[Thu Mar 21 01:54:22 2002]  [jk_ajp13_worker.c (228)]:
connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Thu Mar 21 01:54:22 2002]  [jk_ajp13_worker.c (712)]: Error reading
reply
[Thu Mar 21 01:54:22 2002]  [jk_ajp13_worker.c (845)]: In
jk_endpoint_t::service, get_reply failed in send loop 0
[Thu Mar 21 01:55:18 2002]  [jk_connect.c (143)]: jk_open_socket,
connect() failed errno = 111
[Thu Mar 21 01:55:18 2002]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[Thu Mar 21 01:55:18 2002]  [jk_ajp13_worker.c (635)]: Error connecting
to the Tomcat process.
[Thu Mar 21 01:55:18 2002]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 0
[Thu Mar 21 01:55:18 2002]  [jk_connect.c (143)]: jk_open_socket,
connect() failed errno = 111
[Thu Mar 21 01:55:18 2002]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[Thu Mar 21 01:55:18 2002]  [jk_ajp13_worker.c (635)]: Error connecting
to the Tomcat process.
[Thu Mar 21 01:55:18 2002]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 1
[Thu Mar 21 01:55:18 2002]  [jk_connect.c (143)]: jk_open_socket,
connect() failed errno = 111
[Thu Mar 21 01:55:18 2002]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[Thu Mar 21 01:55:18 2002]  [jk_ajp13_worker.c (635)]: Error connecting
to the Tomcat process.
[Thu Mar 21 01:55:18 2002]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 2


Tomcat and Apache are up and running fine.



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: j2sdk1.4 compilation errors, any good online source for info?

2002-03-20 Thread Micael Padraig Og mac Grene

All the standard classes are in rt.jar, Leil.  The "rt" is for "runtime".

At 09:25 PM 3/20/02 -0800, you wrote:
>Hi Michael,
>
>Thanks for the answer, I'm trying to setup my CLASSPATH to find the jar file
>that contains the definition for String.  My problem is that I can't find
>it!!
>
>It used to be in j2ee.jar in j2skee-1_3_01.
>
>My name is Leila and it's Persian.
>
>- Original Message -
>From: "Micael Padraig Og mac Grene" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Wednesday, March 20, 2002 6:05 PM
>Subject: Re: j2sdk1.4 compilation errors, any good online source for info?
>
>
> > Leil,
> >
> > If you just want to compile, you can set the command line at the
> > jdk1.4/bin/ (where javac is)and then enter "javac
> > /usr/local/myapp/MyClass.java" or wherever the class is.  But, what you
> > really need to do is to set up your CLASSPATH environmental variables in
> > /etc/profile to the appropriate locations to find javac, java, your
> > classes, etc.  There is no problem with RH 7.2 and j2k1.4.  I use that.
> >
> > Hope this is helpful.
> >
> > Micael
> >
> > What sort of name is "Leil"?  Never seen that before.  Looks cool!
> >
> >
> >
> > At 08:52 PM 3/20/02 -0800, you wrote:
> > >Could someone please suggest a good online source for getting some detail
> > >information on compilation errors with J2sdk1.4.  I am trying to port an
> > >application that has been compiled and tested on NT with j2sdkee-1_3_01
> > >libraries.  The new system RH7.2 using the new j2sk1.4 whines about not
> > >finding "String" class definition with a [JLS 8] stuck to the end of the
> > >message.
> > >
> > >I'm using javac (haven't the time to learn forte) from command line and
> > >have set my classpath to
> > >see  j2sk1.4/lib/tools.jar  and  j2sdk1.4/jre/lib/jsse.jar
> > >
> > >thanks in advance for any help and suggestions
> > >
> > >Leil
> >
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




ClassCastException on javax.crypto.Cipher and Tomcat4.0.3

2002-03-20 Thread Ver Allan Sumabat


Hi,

I have coded my security module using bouncycastle
provider and clean-room jce implementation
(jce-jdk13-111.jar). On standalone, the decrypt module
seems to be working. When the code is integrated in
the servlet and deployed on Tomcat-4.0.3, a
ClassCastException is thrown:

java.lang.ClassCastException:
org.bouncycastle.jce.provider.JCERSACipher$NoPadding
at javax.crypto.Cipher.getInstance(Cipher.java:121)
...

I placed jce-jdk13-111.jar in /WEB-INF/lib
and tested, no luck. Tried in /common/lib
and tested, same problem. also tried in
/lib, /server/lib.

It seems that this is more of a tomcat problem than a
bouncycastle problem because it worked in stand alone
when i placed jce-jdk13-111.jar in
/jre/lib/ext.

Hope someone can help. Thanks.

Regards,

Allan

__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




petstore 1.3 on Tomcat 4 as J2EE server

2002-03-20 Thread robert rowntree

without running the J2EE server that comes with the "J2SDKEE1.3" download, I tried 
deploying the Petstore app. directly to a running instance of Tomcat 4.04. and got ANT 
1.4.1 deployment errors like:
   
 [java] Error: Could not connect to localhost - 
javax.naming.ConfigurationException: Invalid object reference: 
corbaloc:iiop:localhost:1050/NameService [Root exception is org.omg.CORBA.INV_OBJREF:  
 vmcid: SUN  minor code: 201  complete
*** end error ***

Isn't enough of the J2EE stuff  built in Tomcat4 so that I could just use the 
"localhost" instance of tomcat in place of the J2EE server that is bundled with the 
Petstore. I checked docs. for Tomcat and for config attrs. like "useNaming" that 
allude to built in J2EE stuff in the InitialContexts from the container. 

My question is what options do i have to run J2EE sample apps. directly on Tomcat4.0.4 
as a J2EE implementation?

Full Error from Attempted Ant deploy of the Petstore's "setup.xml" deploy target:

Could not connect to localhost
javax.naming.ConfigurationException: Invalid object reference: 
corbaloc:iiop:localhost:1050/NameService [Root exception is org.omg.CORBA.INV_OBJREF:  
 vmcid: SUN  minor code: 201  completed: No]

javax.naming.ConfigurationException: Invalid object reference: 
corbaloc:iiop:localhost:1050/NameService.  Root exception is org.omg.CORBA.INV_OBJREF: 
  vmcid: SUN  minor code: 201  completed: No
 at com.sun.corba.ee.internal.corba.ORB.string_to_object(ORB.java:1952)
 at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:338)
 at com.sun.jndi.cosnaming.CNCtx.initUsingCorbanameUrl(CNCtx.java:321)
 at com.sun.jndi.cosnaming.CNCtx.initUsingUrl(CNCtx.java:247)
 at com.sun.jndi.cosnaming.CNCtx.createUsingURL(CNCtx.java:85)
 at 
com.sun.jndi.url.iiop.iiopURLContextFactory.getUsingURLIgnoreRest(iiopURLContextFactory.java:56)
 at com.sun.jndi.url.iiop.iiopURLContext.getRootURLContext(iiopURLContext.java:44)
 at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:182)
 at javax.naming.InitialContext.lookup(InitialContext.java:347)
 at 
com.sun.enterprise.tools.deployment.main.ServerManager.getJarInstaller(ServerManager.java:573)
 at 
com.sun.enterprise.tools.deployment.main.ServerManager.isInstalled(ServerManager.java:380)
 at com.sun.enterprise.tools.deployment.main.Main.main(Main.java:134)




Apache/Tomcat security issue -- URGENT

2002-03-20 Thread Surya Suravarapu

I'm using Apache 1.3.22 and Tomcat 4.0.2 on Windows NT/2000.

I've a context called WebApp whose docBase="E:\WebApp". So, when I 
point my browser to http://localhost/WebApp/main it will take me to the 
login screen of the application.

There is a folder called "Reports" in my E:\WebApp. Some part of my 
application is using Response.sendRedirect() and displaying the 
requested file (from the Reports folder) to the browser. That's fine. I 
want to show the files from that folder only through the application 
and I have to configure my web server in such a way that it denies 
requests if a User enters the file name manually like 
http://localhost/WebApp/Reports/some-file.xls. Please help me if you 
have a solution for this.

Thanks.
-Surya


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




How to obtain original request url?

2002-03-20 Thread Kwan, Kenneth Y
Title: How to obtain original request url?





I have configured my webapp with customized error page for 404 error. Does anyone know how can I obtain the original requested URL?

Thanks


Kenneth Kwan




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


RE: Where's my fish? How do I go fishing? (Tomcat 4.0)

2002-03-20 Thread JavaJosh

Actually Craig, the first thing I did when I downloaded Tomcat was read
the entire documentation tree, taking notes along the way.

Thanks for the link.

> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 20, 2002 6:34 PM
> To: Tomcat Users List
> Subject: RE: Where's my fish? How do I go fishing? (Tomcat 4.0)
> 
> 
> 
> On Wed, 20 Mar 2002, JavaJosh wrote:
> 
> > Date: Wed, 20 Mar 2002 18:27:41 -0800
> > From: JavaJosh <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: 'Tomcat Users List' <[EMAIL PROTECTED]>,
> >  [EMAIL PROTECTED]
> > Subject: RE: Where's my fish? How do I go fishing? (Tomcat 4.0)
> >
> > Thanks. Where is this attribute documented?
> >
> 
> Start up Tomcat, and go to:
> 
>   http://localhost:8080/tomcat-docs/config/context.html
> 
> or look it up online at:
> 
>   http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/context.html
> 
> Since you're fishing, you might want to peruse the rest of the Tomcat
> documentation that is included as well :-).
> 
> Craig
> 
> 
> > > -Original Message-
> > > From: John Roth [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, March 20, 2002 2:59 PM
> > > To: 'Tomcat Users List'
> > > Subject: RE: Where's my fish? How do I go fishing? (Tomcat 4.0)
> > >
> > > In esrver.xml:
> > >
> > >  > > reloadable="true">
> > >
> > >
> > > -Original Message-
> > > From: Ilya Khandamirov [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, March 20, 2002 5:53 PM
> > > To: 'Tomcat Users List'
> > > Subject: RE: Where's my fish? How do I go fishing? (Tomcat 4.0)
> > >
> > >
> > > >Forgive me, but I am not sure what tag to use to set "reloadable"
> > >
> > > file: %CATALINA_HOME%\conf\server.xml (or
> > > $CATALINA_HOME/conf/server.xml)
> > > tag: 
> > >
> > > Regards,
> > > Ilya
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe:    [EMAIL PROTECTED]>
> > > For additional commands:  [EMAIL PROTECTED]>
> > > Troubles with the list:  [EMAIL PROTECTED]>
> > >
> > >
> > > --
> > > To unsubscribe:    [EMAIL PROTECTED]>
> > > For additional commands:  [EMAIL PROTECTED]>
> > > Troubles with the list:  [EMAIL PROTECTED]>
> >
> >
> > _
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > --
> > To unsubscribe:    [EMAIL PROTECTED]>
> > For additional commands:  [EMAIL PROTECTED]>
> > Troubles with the list:  [EMAIL PROTECTED]>
> >
> >
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat and Unicode parameters in URLs ???

2002-03-20 Thread Soefara Redzuan

Thanks for pointing this out Larry. Unfortunately we use Tomcat 4 only 
because it seems quite a bit faster than the Tomcat 3 series. Thank you 
though. It looks like I'm going to have to learn how to "guess" the 
character set and language.

Thank you, Soefara.

>From: Larry Isaacs <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: 'Tomcat Users List' <[EMAIL PROTECTED]>
>Subject: RE: Tomcat and Unicode parameters in URLs ???
>Date: Tue, 19 Mar 2002 07:51:46 -0500
>
>If you can live with the Servlet 2.2 spec, Tomcat 3.3
>has a work around for this.  The DecodeInterceptor can
>accept a URL like the following to specify the encoding
>as part of the URI:
>
>http://localhost:8080/myapp/index.jsp;charset=UTF-8?param=value
>
>For details, see the charsetAttribute attribute of the
>DecodeInterceptor:
>
>
>
>You are welcome to give it a try.
>
>Cheers,
>Larry
>
> > -Original Message-
> > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, March 18, 2002 8:50 PM
> > To: Tomcat Users List
> > Subject: Re: Tomcat and Unicode parameters in URLs ???
> >
> >
> >
> >
> > On Tue, 19 Mar 2002, Soefara Redzuan wrote:
> >
> > > Date: Tue, 19 Mar 2002 09:20:47 +0800
> > > From: Soefara Redzuan <[EMAIL PROTECTED]>
> > > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Tomcat and Unicode parameters in URLs ???
> > >
> > >
> > > >Setting the content type, as you did above, only affects
> > the *output*
> > > >of that particular response -- it has nothing to do with
> > how the next
> > > >*input* request from that browser will be handled.
> > > >
> > > >In order to deal with request parameters in an incoming
> > request, you
> > > >must tell Tomcat what encoding to use, *before* processing the
> > > >parameters. This is done by calling the
> > > >request.setCharacterEncoding() method that was added in
> > Servlet 2.3.
> > > >As long as you call this before calling methods like
> > > >request.getParameter(), the proper encoding will be applied.
> > > >
> > > >One way to do this without modifying your application itself is to
> > > >use a Filter that looks at incoming requests and decides what
> > > >encoding should be used -- perhaps by looking at the
> > > >Accept-Language header, or based on
> > attributes you have
> > > >stored in the current session that indicate what the user will be
> > > >supplying.
> > >
> > > But what happens if you really do not know what character set to
> > > expect ? In our company, the webserver is used for B2B
> > messaging with
> > > customers and not purely serving web pages.  For example, we can
> > > accept a message with a query string like this
> > >
> > http://vpn.ourcompany.com/servlet/incoming?> company=CustomerName&refere
> > > nceId=1234¬eText=
> > >
> > > The noteText could be in one of several languages since we do
> > > international business. We're currently considering adding
> > a language
> > > parameter such as &Language=English but it would be nicer to
> > > autodetect the language. Is this possible ?
> > >
> >
> > It would be possible if the HTTP specs defined a way to tell
> > the server what language the HTTP URL is encoded in, and if
> > browsers actually sent along that indication.  Neither seems
> > to be the case in general -- even on a POST transaction
> > (where the browsers really have no excuse for not including
> > the character encoding in the Content-Type header), many
> > don't. Thus, you're stuck haveing to figure it out for yourself.
> >
> > Note that adding a language parameter to the query string
> > isn't going to do you much good -- you have to call
> > setCharacterEncoding() *before* you call
> > request.getParameter(), so you won't have been able to read
> > the language field first.
> >
> > > Thank you, Soefara
> > >
> > > _
> >
> > Craig
> >
> > > Join the world's largest e-mail service with MSN Hotmail.
> > > http://www.hotmail.com
> > >
> > >
> > > --
> > > To unsubscribe:
> >  [EMAIL PROTECTED]>
> > > For
> > additional commands:
> > 
> > > Troubles with the list:
> > 
> > >
> > >
> >
> >
> > --
> > To
> > unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: multiple WEB-INF?

2002-03-20 Thread Grandy Fu

Acutally what I am going to do is set a context for user home directory so 
each user in that home directory can write their own servlet program.

I know I can setup a listen in tomcat for user servlet like following:
 

But I have 2 reason to do what I do.
1. My old server using Jserv set up this way.
2. I want to use apache to process static page and disable tomcant's 8080 
port. However, mod_jk can't neigther handle  "JkMount /~user/servlet ajp" 
nor "JkMount /*/servlet ajp"

Even I have problem in setup http://tomcat:8080/~user/servlet/ which I will 
address in another topic.

Grandy


Quoting Joel Rees <[EMAIL PROTECTED]>:

> Grandy Fu asked:
> 
> > Can I tomcat4 search multiple WEB-INF in one webapp like:
> >
> > /dira/WEB-INF
> >  /dirb/dirb1/WEB-INF
> >  /dirc/WEB-INF
> 
> I think not.
> 
> Is creating multiple contexts in your server.xml what you would rather do?
> 
>  docBase="g:/somedir/dira" >
>
> 
>  docBase="g:/anydir/dirb/dirb1" >
>
>  docBase="g:/whatdir/dirc" >
>
> 
> That way, you can keep your paths straight and avoid confusion. (Does that
> sound a little transcendental, or am I just short on sleep?)
> 
> Joel Rees
> Alps Giken Kansai Systems Develoment
> Suita, Osaka
> 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


--
This mail sent through http://webmail.comp.polyu.edu.hk

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Where's my fish? How do I go fishing? (Tomcat 4.0)

2002-03-20 Thread Craig R. McClanahan



On Wed, 20 Mar 2002, JavaJosh wrote:

> Date: Wed, 20 Mar 2002 18:27:41 -0800
> From: JavaJosh <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> Subject: RE: Where's my fish? How do I go fishing? (Tomcat 4.0)
>
> Thanks. Where is this attribute documented?
>

Start up Tomcat, and go to:

  http://localhost:8080/tomcat-docs/config/context.html

or look it up online at:

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

Since you're fishing, you might want to peruse the rest of the Tomcat
documentation that is included as well :-).

Craig


> > -Original Message-
> > From: John Roth [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, March 20, 2002 2:59 PM
> > To: 'Tomcat Users List'
> > Subject: RE: Where's my fish? How do I go fishing? (Tomcat 4.0)
> >
> > In esrver.xml:
> >
> >  > reloadable="true">
> >
> >
> > -Original Message-
> > From: Ilya Khandamirov [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, March 20, 2002 5:53 PM
> > To: 'Tomcat Users List'
> > Subject: RE: Where's my fish? How do I go fishing? (Tomcat 4.0)
> >
> >
> > >Forgive me, but I am not sure what tag to use to set "reloadable"
> >
> > file: %CATALINA_HOME%\conf\server.xml (or
> > $CATALINA_HOME/conf/server.xml)
> > tag: 
> >
> > Regards,
> > Ilya
> >
> >
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: j2sdk1.4 compilation errors, any good online source for info?

2002-03-20 Thread Tom Parker

> Thanks for the answer, I'm trying to setup my CLASSPATH to find
> the jar file
> that contains the definition for String.  My problem is that I can't find
> it!!
>
> It used to be in j2ee.jar in j2skee-1_3_01.

You probably shouldn't be using any other definition of java.lang.String
than the one in $JAVA_HOME/jre/lib/rt.jar


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Where's my fish? How do I go fishing? (Tomcat 4.0)

2002-03-20 Thread JavaJosh

Thanks. Where is this attribute documented? 

> -Original Message-
> From: John Roth [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 20, 2002 2:59 PM
> To: 'Tomcat Users List'
> Subject: RE: Where's my fish? How do I go fishing? (Tomcat 4.0)
> 
> In esrver.xml:
> 
>  reloadable="true">
> 
> 
> -Original Message-
> From: Ilya Khandamirov [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 20, 2002 5:53 PM
> To: 'Tomcat Users List'
> Subject: RE: Where's my fish? How do I go fishing? (Tomcat 4.0)
> 
> 
> >Forgive me, but I am not sure what tag to use to set "reloadable"
> 
> file: %CATALINA_HOME%\conf\server.xml (or
> $CATALINA_HOME/conf/server.xml)
> tag: 
> 
> Regards,
> Ilya
> 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Servlet destroy ordering

2002-03-20 Thread Mario Felarca

Hello,

I had a quick question about Tomcat 3.3a. In what order will it unload 
servlets? For my load-on-startup servlets, in the log, I see the init calls 
get executed in the order that I specify based off the value I give to 
load-on-startup.

Are they unloaded in the same order? The reverse order? Any order?

Also, is there a way to obtain the value of Tomcat's current working 
directory from within a servlet?

Thanks in advance,

Mario-


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: j2sdk1.4 compilation errors, any good online source for info?

2002-03-20 Thread Leila Lappin

Hi Michael,

Thanks for the answer, I'm trying to setup my CLASSPATH to find the jar file
that contains the definition for String.  My problem is that I can't find
it!!

It used to be in j2ee.jar in j2skee-1_3_01.

My name is Leila and it's Persian.

- Original Message -
From: "Micael Padraig Og mac Grene" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 20, 2002 6:05 PM
Subject: Re: j2sdk1.4 compilation errors, any good online source for info?


> Leil,
>
> If you just want to compile, you can set the command line at the
> jdk1.4/bin/ (where javac is)and then enter "javac
> /usr/local/myapp/MyClass.java" or wherever the class is.  But, what you
> really need to do is to set up your CLASSPATH environmental variables in
> /etc/profile to the appropriate locations to find javac, java, your
> classes, etc.  There is no problem with RH 7.2 and j2k1.4.  I use that.
>
> Hope this is helpful.
>
> Micael
>
> What sort of name is "Leil"?  Never seen that before.  Looks cool!
>
>
>
> At 08:52 PM 3/20/02 -0800, you wrote:
> >Could someone please suggest a good online source for getting some detail
> >information on compilation errors with J2sdk1.4.  I am trying to port an
> >application that has been compiled and tested on NT with j2sdkee-1_3_01
> >libraries.  The new system RH7.2 using the new j2sk1.4 whines about not
> >finding "String" class definition with a [JLS 8] stuck to the end of the
> >message.
> >
> >I'm using javac (haven't the time to learn forte) from command line and
> >have set my classpath to
> >see  j2sk1.4/lib/tools.jar  and  j2sdk1.4/jre/lib/jsse.jar
> >
> >thanks in advance for any help and suggestions
> >
> >Leil
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: j2sdk1.4 compilation errors, any good online source for info?

2002-03-20 Thread Micael Padraig Og mac Grene

You need to also set it for

YOUR_HOME=/usr/whatever/.../your_root_directory
JAVA_HOME=/usr/whatever/.../j2sdk1.4
CLASSPATH=$CLASSPATH:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/htmlconverter.jar:4JAVA_HOME/lib/servlet.jar:$YOUR_HOME
PATH=$PATH:$JAVA_HOME/bin

Okay dokay?

Micael





At 08:52 PM 3/20/02 -0800, you wrote:
>Could someone please suggest a good online source for getting some detail 
>information on compilation errors with J2sdk1.4.  I am trying to port an 
>application that has been compiled and tested on NT with j2sdkee-1_3_01 
>libraries.  The new system RH7.2 using the new j2sk1.4 whines about not 
>finding "String" class definition with a [JLS 8] stuck to the end of the 
>message.
>
>I'm using javac (haven't the time to learn forte) from command line and 
>have set my classpath to 
>see  j2sk1.4/lib/tools.jar  and  j2sdk1.4/jre/lib/jsse.jar
>
>thanks in advance for any help and suggestions
>
>Leila



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




BufferedReader oject between servlet and jsp

2002-03-20 Thread Dahnke, Eric

wondering if someone might help me out. I'm trying to pass a BufferedReader
object between a servlet and jsp page using the session. on the jsp page I
want to read out line by line the BufferedReader object. The idea works
within the servlet code as shown, but within the jsp page no matter what I
do

out.println(br);

shows something like this:

java.io.BufferedReader@3c550f 

and the while loop (in the jsp) never executes. Any ideas? (how can i
troubleshoot?)



I have a servlet with the following code:
===
BufferedReader br = new BufferedReader( new
InputStreamReader(proc.getInputStream()));

HttpSession session = request.getSession(true);
session.setAttribute("BufferedReader", br); 

String str;
while ((str = br.readLine()) != null) {
System.out.println(str);
} //works

and a jsp page which is called from the servlet like this

RequestDispatcher rd = request.getRequestDispatcher("en/bdy.jsp");
rd.include(request, response);

bdy.jsp
=
<%@ page import="java.io.*" %>

<%
BufferedReader br = (BufferedReader) session.getAttribute("BufferedReader");
String str;
out.println(br);
while ((str = br.readLine()) != null) {
out.println(str);
out.println("HI");
} //doesn't work
%>

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: j2sdk1.4 compilation errors, any good online source for info?

2002-03-20 Thread Micael Padraig Og mac Grene

Leil,

If you just want to compile, you can set the command line at the 
jdk1.4/bin/ (where javac is)and then enter "javac 
/usr/local/myapp/MyClass.java" or wherever the class is.  But, what you 
really need to do is to set up your CLASSPATH environmental variables in 
/etc/profile to the appropriate locations to find javac, java, your 
classes, etc.  There is no problem with RH 7.2 and j2k1.4.  I use that.

Hope this is helpful.

Micael

What sort of name is "Leil"?  Never seen that before.  Looks cool!



At 08:52 PM 3/20/02 -0800, you wrote:
>Could someone please suggest a good online source for getting some detail 
>information on compilation errors with J2sdk1.4.  I am trying to port an 
>application that has been compiled and tested on NT with j2sdkee-1_3_01 
>libraries.  The new system RH7.2 using the new j2sk1.4 whines about not 
>finding "String" class definition with a [JLS 8] stuck to the end of the 
>message.
>
>I'm using javac (haven't the time to learn forte) from command line and 
>have set my classpath to 
>see  j2sk1.4/lib/tools.jar  and  j2sdk1.4/jre/lib/jsse.jar
>
>thanks in advance for any help and suggestions
>
>Leil



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




j2sdk1.4 compilation errors, any good online source for info?

2002-03-20 Thread Leila Lappin

Could someone please suggest a good online source for getting some detail information 
on compilation errors with J2sdk1.4.  I am trying to port an application that has been 
compiled and tested on NT with j2sdkee-1_3_01 libraries.  The new system RH7.2 using 
the new j2sk1.4 whines about not finding "String" class definition with a [JLS 8] 
stuck to the end of the message.

I'm using javac (haven't the time to learn forte) from command line and have set my 
classpath to see  j2sk1.4/lib/tools.jar  and  j2sdk1.4/jre/lib/jsse.jar  

thanks in advance for any help and suggestions

Leila



RE: Log4j initialization problem

2002-03-20 Thread Kwan, Kenneth Y
Title: RE: Log4j initialization problem





I found the same problem as well. It seems that for the same JVM (even with different webapps) all use the same(i.e. the last initialized) config file.

Kenneth


-Original Message-
From:   James Adams [mailto:[EMAIL PROTECTED]]
Sent:   Thursday, March 21, 2002 4:25 AM
To: [EMAIL PROTECTED]
Subject:    Re: Log4j initialization problem


Hello,


I have tried the ServletContextListener approach suggested below by
Sriram (thanks !) and I am still having the same problem, i.e. I get the
log file (specified in my log4j.properties file) created under whatever
directory I am at when I issue the tomcat start command.  It appears
that the log file is being created and placed in the current working
directory if I specify only the file name in the log4j.properties
"File" entry.  If I specify the full path, such as


log4j.appender.A1.File=/var/tomcat/webapps/myapp/LogMessages.txt


then it creates and places the file exactly where it the entry
specifies.  But I want to just specify the filename and have it created
under the webapp's context directory, that way I won't have to remember
to change the log4j.properties entry whenever the webapp is moved to
another context directory or installed on another machine which might
have a different webapps directory path.


So is there a way to get the log file to be created and placed under its
webapp's context directory ?


Also would it be more appropriate to post this topic/thread to the log4j
user group ([EMAIL PROTECTED]) ?


Thanks in advance for any suggestions or clues.



-James




> Hello,


> I don't have access to my computer right now, but here's roughly what
I
> do to use log4J within my Servlet 2.3 API compliant webapps.


> 1. Create a properties file called log4j.properties
> 2. Place this in WEB-INF folder.
> 3. Write a ContextListener and in the contectInitialized method,
access the
> servlet context. Make sure you place this Listener implementation
along
> with your other classes and that you add an entry for it in web.xml
> 4. Ask the servlet context to get the following resource as a stream
> e.g. InputStream is =
> servletContext.getResourceAsStream("/WEB-INF/log4j.properties");
> 5. Create a properties file that'll initialize with this property
file.
> Properties properties = new Properties();
> properites.load(is);
> is.close();
> 6. Now pass this newly initialized properties object to the
> PropertyConfigurator...
>
> That's it.
>
> Sriram
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


mod_jk issues

2002-03-20 Thread Robert Abbate

Greetings to all. I’ve been working on trying to get Tomcat4 working on
my Mandrake Linux 8.1 box.
I’ve come to the following road block:

First, I’ve installed mod_jk.so and mod_webapp.so and they seem to work
fine. My httpd.conf config looks like this:

[…]
LoadModule jk_module modules/mod_jk.so
LoadModule webapp_module modules/mod_webapp.so

[…]
AddModule mod_jk.c
AddModule mod_webapp.c

[..]
Include conf/mod_jk.conf
[...]


DocumentRoot /home/ellenwhite/html
ServerName ellenwhite.cc
ServerAlias www.ellenwhite.cc
[…]
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
[…]


It seems that the webapp module doesn’t allow for Virtual Hosts (running
a webserver for multiple accounts). Is this correct? If it can, please
forward me some examples please!!! I have been searching for days!

This is what I concluded, so I am trying to use mod_jk (as shown above).
I copied the entire example "webapps" directory from "/var/tomcat4" to
do some testing, but when I try to access a jsp file with that
virtualhost, 
I get the following response from Apache:

Apache Tomcat/4.0.1 - HTTP Status 404 -
/webapps/examples/jsp/dates/date.jsp

type Status report
message /webapps/examples/jsp/dates/date.jsp
description The requested resource
(/webapps/examples/jsp/dates/date.jsp) is not available.

You can see for yourself: http://www.ellenwhite.cc/webapps/examples

With webapp module, it works fine, BUT seems to make their root as
/var/tomcat/webapp" when used like the examples I've seen:

WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples/

Does anyone have any suggestions?
Thanks
Robert



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




apache to tomcat connector

2002-03-20 Thread Joe Hanish

Hi, I'm fairly new with all this technology, but I've managed to get tomcat
(latest) and an application running...  I was wondering if anyone had some
quick pointers on what to read to get it rigged up with apache...  I've read
a few things, but the info seems scattered, and I'm not sure what I need.
Can anyone just point me to something to look at to help with this?  Thanks
a bunch.

Joe


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 4.0.4-b1 does not work Help Help..................

2002-03-20 Thread Uma Munugala


> Hi
>
>
> I have written a servlet which implements SingleThreadModel
> and used already existing public static syncronized classes to access
> database.
> these classes were used for standalone application.
> does static synchronized has any problem with servlets
>
> when I deployment my servlet and try to  run it gives me error, its stack
> trace is below.
>
> when login reaches to access static synchronized class member or static
> synchronized class method Iam getting
> problem.
>
> Funny thing is sames servlet and same code works in java web server. Do I
> need to do some thing else in
> tomcat 4.0.4-b1 to make it work. I tried with tomcat 4.0.3 also.
> I have seen similar problem in archives but that work around does not work
> for me.
>
> __  Error _
>
> javax.servlet.ServletException: Invoker service() exception
> at
>
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
> :508)
> at
> org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:213)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:213)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:243)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> 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.ja
> va:190)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
> .java:475)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
>
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
> 46)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
> at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> )
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:170)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
> )
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :174)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> 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:
> 1017)
> at
>
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1115
> )
> at java.lang.Thread.run(Thread.java:484)
>
>
> root cause
>
> java.lang.ClassFormatError: com/CellFusion/Relational/RelConnection
(Illegal
> Variable name "")
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
> at
>
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
> ader.java:1643)
> at
>
org.apache.catalina.loader.WebappClassLoader.findClass(We

RE: Where's my fish? How do I go fishing? (Tomcat 4.0)

2002-03-20 Thread John Roth

In esrver.xml:




-Original Message-
From: Ilya Khandamirov [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 5:53 PM
To: 'Tomcat Users List'
Subject: RE: Where's my fish? How do I go fishing? (Tomcat 4.0)


>Forgive me, but I am not sure what tag to use to set "reloadable"

file: %CATALINA_HOME%\conf\server.xml (or
$CATALINA_HOME/conf/server.xml)
tag: 

Regards,
Ilya




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Where's my fish? How do I go fishing? (Tomcat 4.0)

2002-03-20 Thread Ilya Khandamirov

>Forgive me, but I am not sure what tag to use to set "reloadable"

file: %CATALINA_HOME%\conf\server.xml (or
$CATALINA_HOME/conf/server.xml)
tag: 

Regards,
Ilya




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Figuring out which Unix process is which

2002-03-20 Thread Tomasz . Ciolek

Other way is to use netstat -anp (the p poption tells you whaich PID has the
port)

--
Tomasz M. Ciolek
Systems Administrator - CSIRO Entomology
Phone: 02-62464391 * Fax: 02-62464000
 

> -Original Message-
> From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, 20 March 2002 19:36 
> To: Tomcat Users List
> Subject: AW: Figuring out which Unix process is which
> 
> 
> What we do, is to define a command line option that shows 
> up at the beginning of the command string that identifies
> the site for which this vm is running.
> 
> As we don't use tomcat, I can't tell you how to achieve 
> this with tomcat.
> 
> 
> jserv.properties:
>   wrapper.bin.parameters=-DName=
> 
> 
> Another way to identify: 
>   look for a VM that connects to a given port.
> 
> Under linux it lsof -i :.
> Don't know how if lsof is part of the standard 
> distribution for solaris. (Last time I've worked 
> with that is over 3 years ago)
> 
> > -Ursprüngliche Nachricht-
> > Von: Yoav Shapira [mailto:[EMAIL PROTECTED]]
> > Gesendet: Dienstag, 19. März 2002 21:52
> > An: [EMAIL PROTECTED]
> > Betreff: Figuring out which Unix process is which
> 
> > We run multiple instance of tomcat using the same JAVA_HOME,
> > so when we run a ps command (Solaris 2.8) we see a bunch
> > of java processes, but can't tell which one is which instance
> > of tomcat.  Does anyone have any ideas to help this problem?
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Using Apache SSL to send requests to tomcat 3.2.4

2002-03-20 Thread Brandon Cruz

I have SSL set up in apache so that all documents that are to be secured are
placed inside the .../httpsdocs directory for each virtual host.  Inside
server.xml, I have a Host set up as follows...



crossContext="false"
debug="0"
reloadable="true"


I need to specify a docbase somehow that points to
/usr/local/apache/vhosts/webgreen.com/httpsdocs.  Do I need to set up an
entirely new context and call it secure or something?  Is there a way that I
can specify that all https:// requests go to httpsdocs in the apache or
mod_jk config?

Thanks in advance!

Brandon


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomact + apache + warp (mod_webapp) + SSL

2002-03-20 Thread Tomasz . Ciolek

Hi All
> UPS¡¡. I have spoken with Pier Fumagalli 
> (http://nagoya.apache.org/~pier/): Apache2.0/Tomcat4.0  with 
> mod_webapp and SSL are not fully implemented. SSL attributes can't be
retrieval 
> from servlet :-(

To clarify:

I am using Tomcat 4.0.2, apache 1.3.22, mod_warp, mod_ssl. What I want to do
is to run an ssl session to the apache server on a particular IP/port,
submit my servelt data and have the tomcat do the magic on it and spew data
back out to the client. I am using apache because I know how to make it bind
to a host:port and only accept some connections on that port.

Error that I get when running apache with the SSL _on_ is:


WebApp: Error 500
(File: pr_warp.c Line: 438) Invalid packet 68 


It works fine when SSL is turned off. Running another instace of apache is
not an option. I am not splitting my apache configs on a production machine.
This should work out of the virtual server anyhow...


Question is: Am I better off to run tomcat 4.0.2 natively with SSL on that
host:port and 

a) How do I bind it to a specific host:port ONLY (I cannot afford to have it
listening on all host for connections, I am running a multihomed (many ip's
reside on this box) machine) 

b) How do I set up the SSL stuff? What format are the certs/keys in? Where
do they live? Do all of them live is the same file? Will en existing PEM
formated cert work? Can I adjust the Cipher lists? etc etc etc. Information
is quite scarce.

I have answers to the above for apache, apache + JServ also works.

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Where's my fish? How do I go fishing? (Tomcat 4.0)

2002-03-20 Thread JavaJosh



> -Original Message-
> From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 20, 2002 5:09 AM
> To: 'Tomcat Users List'
> Subject: RE: Where's my fish? How do I go fishing? (Tomcat 4.0)
> 
...
> your context needs to be set to reloadable="true".
> I have noticed that it takes one request for Tomcat to realize the
> servlet
> has changed, then the next request picks up the change. Sometimes I
> have to
> wait 30 seconds or so for it to pick up the change(don't know why).
...

Forgive me, but I am not sure what tag to use to set "reloadable". I
searched spec and deployment descriptor DTD and came up only with
SRV.3.7 (p.30). Is this a tomcat specific thing?

Thanks,
Josh Rehman


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat Security Exposure

2002-03-20 Thread Lawlor, Frank

During development and deployment I discovered
that many types of errors while reading the web.xml
file would result in the app coming up (at least
partly), but with no security.

This seems like a serious security exposure in
a production environment.

I believe this is potentially a serious security
exposure and suggest that tomcat should never
allow access to the app if it has any problems
reading the web.xml file or establishing any of
the security environment.

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




XXX Assert failed, buff too small

2002-03-20 Thread John Roth

We are having a problem with Tomcat using an upload servlet to upload
potentially large files (up to 100MB).  The servlet works fine for all file
sizes in the following instances:
http://servername/app/UploadFiles.jsp
http://servername:8080/app/UploadFiles.jsp
but when using https (ie: https://servername/app/UploadFiles.jsp, we get
'Page Cannot Be Displayed'.  A summary of the error logs is below:

IIS_Redirect.Log

 [Wed Mar 20 15:49:20 2002]  [jk_ajp13_worker.c (206)]: sending to ajp13
#8192
 [Wed Mar 20 15:49:20 2002]  [jk_ajp13_worker.c (258)]: received from ajp13
#3
 [Wed Mar 20 15:49:20 2002]  [jk_isapi_plugin.c (426)]: Into
jk_ws_service_t::read
 [Wed Mar 20 15:49:20 2002]  [jk_isapi_plugin.c (426)]: Into
jk_ws_service_t::read

 ... this repeats 1364 times, everytime, before the following: ...

 [Wed Mar 20 15:49:20 2002]  [jk_ajp13_worker.c (206)]: sending to ajp13
#8192
 [Wed Mar 20 15:49:20 2002]  [jk_ajp13_worker.c (258)]: received from ajp13
#3
 [Wed Mar 20 15:49:20 2002]  [jk_isapi_plugin.c (426)]: Into
jk_ws_service_t::read
 [Wed Mar 20 15:49:20 2002]  [jk_isapi_plugin.c (426)]: Into
jk_ws_service_t::read
 [Wed Mar 20 15:49:20 2002]  [jk_isapi_plugin.c (460)]:
jk_ws_service_t::read, ReadClient failed

stdout.log
--
 Starting service Tomcat-Standalone-(Staging)
 Apache Tomcat/4.0.1
 [Ajp13] bad read: -103
 XXX Assert failed, buff too small

Note: Yes, I have been following the list, and I don't know what causes -103
either, but with the exception of this servlet, our app has been running
great for months, with several dozen -103's a day.  The XXX Assert Failed is
new.

tomcat_log.log
--
2002-03-20 15:34:02 UploadFiles: init
2002-03-20 15:34:15 jsp: init
2002-03-20 15:34:15 Ajp13Processor[8009][6] process: invoke
java.net.SocketException: Connection aborted by peer: socket write error
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
at org.apache.ajp.Ajp13.send(Ajp13.java:959)
at org.apache.ajp.Ajp13.finish(Ajp13.java:808)
at
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:192)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:373)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424)
at java.lang.Thread.run(Thread.java:484)

Application Log
---
2002-03-20 15:34:03,253 [Ajp13Processor[8009][6]] DEBUG
com.psc.ams.servlets.PSCUploadFilesByExtension - clearing dir
e://staging\jroth
2002-03-20 15:34:03,253 [Ajp13Processor[8009][6]] DEBUG
com.psc.ams.servlets.PSCUploadFilesByExtension - attempting to delete file
e:\\staging\jroth\11MB.txt
2002-03-20 15:34:15,190 [Ajp13Processor[8009][6]] ERROR
com.psc.ams.servlets.PSCUploadFilesByExtension - Unexpected Exception
occured in PSCUploadFiles.doPost().
java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at org.apache.ajp.Ajp13Packet.getBytes(Ajp13Packet.java:459)
at org.apache.ajp.Ajp13.refillReadBuffer(Ajp13.java:641)
at org.apache.ajp.Ajp13.doRead(Ajp13.java:540)
at org.apache.ajp.tomcat4.Ajp13InputStream.read(Ajp13InputStream.java:95)
at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138)
at
com.oreilly.servlet.MultipartInputStreamHandler.readLine(MultipartInputStrea
mHandler.java:63)
at
com.oreilly.servlet.MultipartRequest.readAndSaveFile(MultipartRequest.java:4
21)
at
com.oreilly.servlet.MultipartRequest.readNextPart(MultipartRequest.java:522)
at
com.oreilly.servlet.MultipartRequest.readRequest(MultipartRequest.java:610)
at com.oreilly.servlet.MultipartRequest.(MultipartRequest.java:146)
at
com.psc.ams.servlets.PSCUploadFilesByExtension.doPost(PSCUploadFilesByExtens
ion.java:480)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
:446)
at
org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:216)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
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.in

Re: Off Topic: Free J2EE IDE: Which one?

2002-03-20 Thread Dom

Hi

You can try Eclipse at http://www.eclipse.org + the Tomcat plugin at :
http://www.sysdeo.com/eclipse/tomcatPlugin.html + the JBoss plugin from
Genuitec at http://www.genuitec.com (they also offer Weblogic and Websphere
eclipse plugins)

or eclipse IBM evolution WSAD,  beta for free

Dom

- Original Message -
From: "hanasaki" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 20, 2002 3:27 PM
Subject: Re: Off Topic: Free J2EE IDE: Which one?


> Let's start with; "have you done the research on the web?"
> - jpda - "www.javasoft.com"
> - reading the Tomcat Startup scripts
> - jpda attaching in netbeans - The docs and dubug menus
>
> Chris Pheby wrote:
> > Can you give any more explicit instructions for how to do this?? It
would be
> > extremely useful!
> >
> > Thanks in advance.
> >
> >
> >
> > Chris
> >
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]
> > On Behalf Of hanasaki
> > Sent: 19 March 2002 17:33
> > To: Tomcat Users List
> > Subject: Re: Off Topic: Free J2EE IDE: Which one?
> >
> >
> > You can integrate Tomcat 4 yourself ;)
> >
> > Change the startup scripts to support JPDA
> > Attach with Netbeans
> > For soruce debugging you will need to mount the Tomcat directories in
> > your netbeans project
> >
> > Chris Pheby wrote:
> >
> >>I am using netbeans right now (for Servlets not J2EE). Tomcat 4
> >
> > integration
> >
> >>is not here yet, but in practice this has yet to prove a problem.
> >>
> >>The draft versions of the forthcoming "Using Netbeans" oreilly book are
on
> >>the netbeans site and really speeded learning the editor for me.
> >>
> >>
> >>Chris.
> >>
> >>-Original Message-
> >>From: [EMAIL PROTECTED]
> >>[mailto:[EMAIL PROTECTED]]
> >>On Behalf Of Bing Zhang
> >>Sent: 19 March 2002 16:35
> >>To: '[EMAIL PROTECTED]'
> >>Subject: Off Topic: Free J2EE IDE: Which one?
> >>
> >>
> >>I am trying to use a free IDE to do J2EE development, mainly servlet and
> >>EJB. The development will be on Windows NT/2000. Deployment is on linux.
> >>Three tools come to my mind: Forte Java Community Edition (I am
supprised
> >>that almost nobody mention this tool), Eclipse from IBM and NetBean.
> >>
> >>I feel short time evaluation does not give me enough insight, though I
> >
> > have
> >
> >>downloaded both Forte and Eclopse. Hope anyone ever used the above tools
> >
> > in
> >
> >>real life give me some guidance. Any of the above tools let me debug
> >
> > servlet
> >
> >>or even EJB locally? How about remotely? Any other server I need to set
up
> >>beside the IDE to effectively do J2EE?
> >>
> >>
> >>
> >>Thanks,
> >>
> >>Bing Zhang
> >>
> >>
> >>--
> >>To unsubscribe:   
> >>For additional commands: 
> >>Troubles with the list: 
> >>
> >>
> >>
> >>
> >>--
> >>To unsubscribe:   
> >>For additional commands: 
> >>Troubles with the list: 
> >>
> >>
> >
> >
> > --
> > =
> > = [EMAIL PROTECTED]  =
> > = Spam : Unhealthy and High in Sodium and Cholesterol   =
> > =
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
>
>
> --
> =
> = [EMAIL PROTECTED]  =
> = Spam : Unhealthy and High in Sodium and Cholesterol   =
> =
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: reloadable doesn't work with warpconnector

2002-03-20 Thread James Williamson

Hi Mike,

I posted a bug about this, warp connector shows all sorts of odd behaviour
with the manager app. because the way applications are indexed internally to
tomcat. Example: you stop on application, then re-install it. When you
reinstall it,
tomcat gives it a incremented id, yet webapp is still looking for the
previous id.
The solution to this is to restart apache, the point where mod_webapp
indexes the applications.

Regards,

James Williamson
www.nameonthe.net
- Original Message -
From: Mike Johnson <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Sent: Wednesday, March 20, 2002 9:02 PM
Subject: reloadable doesn't work with warpconnector


>
> Hi everyone,
>
> I'm new to Tomcat, so this could be something that I've done
> wrong... I've noticed some strange behavior with the warpconnector.
>
> For example, if I use the manager application to shutdown the root
> path (manager/stop?path=/) then the pages are no longer served by the
> *standalone* server, but using the warpconnector, they are still
> served.
>
> Also, I have a servlet that is under a path I've set to use
> reloadable="true". Accessing that applet through Apache never reflects
> a change unless Tomcat is restarted. However the servlet is reloaded
> it accessed through the standalone connector.
>
> Can anybody help me with this? It's been driving me nuts all morning
>
> ---
> Tomcat: 4.0.3
> Warpconnector binary from apache.org
> jdk 1.3.1
> ---
>
> Thanks!
>
> Mike Johnson
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: [Tomact Servlet Deploy Problem Help]

2002-03-20 Thread Sanjay Bahal

I further tried using the tag-
http://localhost:8080/search/servlet/HelloWorldExample
This also errors out:
java.util.MissingResourceException: Can't find bundle
for base name LocalStrings, locale en_US
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:707)
at
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
at
java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
at HelloWorldExample.doGet(Unknown Source)
Thanks,
Sanjay
--- Sanjay Bahal <[EMAIL PROTECTED]> wrote:
> Thanks Charlie I tried both it did not work. My
> web.xml looks like this:
> 
>   HelloWorld
> 
> HelloWorldExample
>  
> 
>   HelloWorld
>   /hello
> 
> 
> So I have mapped by class to a servlet and then
> mapped
> 
> to urlpattern /hello. My understanding is (correct
> me)
> if I have html in the webapp/myapp/ directory I
> should
> be able to call with /hello or HelloWorld with a tag
> like- /hello or /HelloWorld. On the other hand if I
> try- http://localhost:8080/search/hello I get this
> error( search is myapp dir under webapps):
> java.util.MissingResourceException: Can't find
> bundle
> for base name LocalStrings, locale en_US
>   at
>
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:707)
>   at
>
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
>   at
>
java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
>   at HelloWorldExample.doGet(Unknown Source)
> 
> 
> If I try http://localhost:8080/search/HelloWorld I
> get
> Resource not found error.
> Thanks a lot.
> Sanjay
> 
> 
> --- "Cox, Charlie" <[EMAIL PROTECTED]> wrote:
> > 
> > 
> > > -Original Message-
> > > From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, March 20, 2002 1:28 PM
> > > To: Tomcat Users List
> > > Subject: RE: [Tomact Servlet Deploy Problem
> Help]
> > > 
> > > 
> > > I took care of this last error- some malform in
> > the
> > > web.xml. 
> > > Now I am back to square 1- my server starts but
> > when I
> > > execute it gives error:
> > > 1. http://localhost:8080/servlet/HelloWorld
> > > The requested resource (/servlet/HelloWorld) is
> > not
> > > available.
> > 
> > try:
> > http://localhost:8080/servlet/HelloWorldClass
> > 
> > you need the actual class name here
> > 
> > > 2. /hello 
> > > The requested resource (/hello) is not
> available.
> > try:
> > http://localhost:8080/hello/world
> > 
> > This mapping means that anything in the 'hello'
> > directory should go to the
> > servlet.
> > 
> > > Thanks a lot,
> > > Sanjay
> > > --- Sanjay Bahal <[EMAIL PROTECTED]> wrote:
> > > > Thanks Lance.
> > > > I made it all caps- That took me a step
> further.
> > 
> > > > 
> > > > Note to Windows(NT) users- windows shows the
> > name in
> > > > mixed case in explorer- even though you may
> type
> > it
> > > > in
> > > > caps if you look at properties and DOS-NAME it
> > will
> > > > show the actual name- uppercase in this case. 
> > > > ---
> > > > I got an error. This error was a
> > 
> > > > tag
> > > > was not closed. I had used the sample web.xml
> > for my
> > > > web.xml and it had a comment with a
> > > > 
> > > > tag. I got rid of that. 
> > > > That brought me to my next error. The part of
> > error
> > > > that I could garb on the DOS screen is as
> below.
> > How
> > > > do I log the errors in a log file?
> > > > at
> > > >
> > >
> >
>
org.apache.catalina.startup.ContextConfig.applicationConfig(Unknown
> > > > S
> > > > ource)
> > > > at
> > > >
> > >
> >
>
org.apache.catalina.startup.ContextConfig.start(Unknown
> > > > Source)
> > > > at
> > > >
> > >
> >
>
org.apache.catalina.startup.ContextConfig.lifecycleEvent(Unknown
> > > > Sour
> > > > ce)
> > > > at
> > > >
> > >
> >
>
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown
> > > > Source)
> > > > at
> > > >
> > >
> >
>
org.apache.catalina.core.StandardContext.start(Unknown
> > > > Source)
> > > > at
> > > >
> > >
> >
>
org.apache.catalina.core.ContainerBase.addChildInternal(Unknown
> > > > Sourc
> > > > e)
> > > > at
> > > >
> > >
> >
>
org.apache.catalina.core.ContainerBase.addChild(Unknown
> > > > Source)
> > > > at
> > > >
> > >
> >
>
org.apache.catalina.core.StandardHost.addChild(Unknown
> > > > Source)
> > > > at
> > > >
> > >
> >
>
org.apache.catalina.core.StandardHostDeployer.install(Unknown
> > > > Source)
> > > > 
> > > > at
> > > >
> > >
> >
>
org.apache.catalina.core.StandardHost.install(Unknown
> > > > Source)
> > > > at
> > > >
> > >
> >
>
org.apache.catalina.startup.HostConfig.deployDirectories(Unknown
> > > > Sour
> > > > ce)
> > > > at
> > > >
> > >
> >
>
org.apache.catalina.startup.HostConfig.deployApps(Unknown
> > > > Source)
> > > > at
> > > >
> > org.apache.catalina.startup.HostConfig.run(Unknown
> > > > Source)
> > > > at
> java.lang.Thread.run(Thread.java:484)
>

Post from Newsgroup?

2002-03-20 Thread @Basebeans.com

Subject: Post from Newsgroup?
From: "Dave Butler" <[EMAIL PROTECTED]>
 ===
Do postings to this newsgroup get forwarded to the Tomcat mailing list?

Dave



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Web-application not yet deployed

2002-03-20 Thread rsequeira


did you check the logs to see if the web application was deployed or not? I
would suggest adding a Http connector element right after the warpConnector
connector element. And then try accessing the web app with the URL.
http://localhost:/examples. This way you can narrow down the problem
to either mod_webapp or Tomcat.

RS





William Crook <[EMAIL PROTECTED]> on 03/20/2002 03:07:05 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   Tomcat Users List <[EMAIL PROTECTED]>
cc:

Subject:  RE: Web-application not yet deployed

I tried waiting a LONG time before starting apache and that didn't work.
Any
other ideas anyone ?


:bill crook

-Original Message-
From: John Wadkin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 3:28 PM
To: 'Tomcat Users List'
Subject: RE: Web-application not yet deployed


I've only seen this error when:

I've tried starting Apache before TomCat
TomCat hasn't started - Apache can't communicate with it
I've tried starting Apache too soon after starting TomCat

Hope it helps!

John

-Original Message-
From: William Crook [mailto:[EMAIL PROTECTED]]
Sent: 20 March 2002 20:22
To: Tomcat Users List
Subject: Web-application not yet deployed


I'm trying to configure tomcat 4.0.3 / apache 1.3 / red hat 7.1 and I'm
getting this error when trying to hit "/examples/"

Here is a snip from my config file:

HTTPD.CONF >>>

LoadModule webapp_module modules/mod_webapp-1.0-eapi.so
AddModule mod_webapp.c


ServerName localhost
ErrorLog logs/error_log
CustomLog logs/access_log common
   WebAppConnection conn warp localhost:8180
   WebAppDeploy examples conn /examples/
   WebAppInfo /web-inf


The error i keep receiving is>>>

WebApp: Error 404
(File: wa_request.c Line: 197)




Web-application not yet deployed


Please HELP!!!

Thanks in advance!

:bill crook

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 









--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat with JPDA WAS: Off Topic: Free J2EE IDE: Which one?

2002-03-20 Thread Brett Porter

Or, you could just run 

catalina.sh jpda start

?


-Original Message-
From: Gregor Kovaè [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 20 March 2002 11:15 PM
To: Tomcat Users List
Subject: RE: Off Topic: Free J2EE IDE: Which one?


Hi!

Here:

put parameters to java:
-Xint -Xdebug -Xnoagent 
-Xrunjdwp:transport=dt_socket,server=y,address=12999,suspend=n
in your tomcat startup script.
Start tomcat first.
Start NetBeans, go to Debug Attach menu. Select JDPA debugging, your 
hostname and 12999 for port. Click OK. :)
You should be able to debug things running in tomcat now.

Best regards,
 Kovi



At 09:07 20.3.2002 +, you wrote:
>Can you give any more explicit instructions for how to do this?? It would
be
>extremely useful!
>
>Thanks in advance.
>
>
>
>Chris
>
>
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]
>On Behalf Of hanasaki
>Sent: 19 March 2002 17:33
>To: Tomcat Users List
>Subject: Re: Off Topic: Free J2EE IDE: Which one?
>
>
>You can integrate Tomcat 4 yourself ;)
>
>Change the startup scripts to support JPDA
>Attach with Netbeans
>For soruce debugging you will need to mount the Tomcat directories in
>your netbeans project
>
>Chris Pheby wrote:
> > I am using netbeans right now (for Servlets not J2EE). Tomcat 4
>integration
> > is not here yet, but in practice this has yet to prove a problem.
> >
> > The draft versions of the forthcoming "Using Netbeans" oreilly book are
on
> > the netbeans site and really speeded learning the editor for me.
> >
> >
> > Chris.
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]
> > On Behalf Of Bing Zhang
> > Sent: 19 March 2002 16:35
> > To: '[EMAIL PROTECTED]'
> > Subject: Off Topic: Free J2EE IDE: Which one?
> >
> >
> > I am trying to use a free IDE to do J2EE development, mainly servlet and
> > EJB. The development will be on Windows NT/2000. Deployment is on linux.
> > Three tools come to my mind: Forte Java Community Edition (I am
supprised
> > that almost nobody mention this tool), Eclipse from IBM and NetBean.
> >
> > I feel short time evaluation does not give me enough insight, though I
>have
> > downloaded both Forte and Eclopse. Hope anyone ever used the above tools
>in
> > real life give me some guidance. Any of the above tools let me debug
>servlet
> > or even EJB locally? How about remotely? Any other server I need to set
up
> > beside the IDE to effectively do J2EE?
> >
> >
> >
> > Thanks,
> >
> > Bing Zhang
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
>
>
>--
>=
>= [EMAIL PROTECTED]  =
>= Spam : Unhealthy and High in Sodium and Cholesterol   =
>=
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



RE: Web-application not yet deployed

2002-03-20 Thread William Crook

I tried waiting a LONG time before starting apache and that didn't work. Any
other ideas anyone ?


:bill crook

-Original Message-
From: John Wadkin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 3:28 PM
To: 'Tomcat Users List'
Subject: RE: Web-application not yet deployed


I've only seen this error when:

I've tried starting Apache before TomCat
TomCat hasn't started - Apache can't communicate with it
I've tried starting Apache too soon after starting TomCat

Hope it helps!

John

-Original Message-
From: William Crook [mailto:[EMAIL PROTECTED]]
Sent: 20 March 2002 20:22
To: Tomcat Users List
Subject: Web-application not yet deployed


I'm trying to configure tomcat 4.0.3 / apache 1.3 / red hat 7.1 and I'm
getting this error when trying to hit "/examples/"

Here is a snip from my config file:

HTTPD.CONF >>>

LoadModule webapp_module modules/mod_webapp-1.0-eapi.so
AddModule mod_webapp.c


ServerName localhost
ErrorLog logs/error_log
CustomLog logs/access_log common
   WebAppConnection conn warp localhost:8180
   WebAppDeploy examples conn /examples/
   WebAppInfo /web-inf


The error i keep receiving is>>>

WebApp: Error 404
(File: wa_request.c Line: 197) 



Web-application not yet deployed 


Please HELP!!!

Thanks in advance!

:bill crook

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Garbage showing up when trying to download a word doc in TC 4 .0.1

2002-03-20 Thread Kapasi, Mehjabin

Thank you David for your prompt response.
Here is what i got after trying your option. I am working on windows

When i do HTTP 1.0 
HEAD / HTTP/1.0


I get :

HTTP/1.1 200 OK
Content-Length: 41984
Date: Wed, 20 Mar 2002 20:56:38 GMT
Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector)
Last-Modified: Wed, 20 Mar 2002 20:54:14 GMT
ETag: "41984-1016657654000"

When i do HTTP 1.1 here is what i get: 
HTTP/1.1 400 HTTP/1.1 request with no Host: header
Content-Type: text/html
Date: Wed, 20 Mar 2002 20:55:46 GMT
Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector)
Connection: close
 
So one gave me the content-type and the other gave me the content length.
Which one should i use? I am sorry if this sounds silly but I still don't
understand how I am supposed to use the headers. 
Thank you.
Any help will be appreciated and thank you for your patience.
-Mehjabin




Kapasi, Mehjabin wrote:

>Thanks Joel,
>I have been trying what you said. I did not understand what you meant by 
>"Check the http headers you are sending for the download. There's a tool
>forthis floating around somewhere I think. Compare the headers 3.2.1 sends
>with the headers 4.0.1 sends."
>How do I check that?
>
>Here is the garbage that I get when i try to download the word
documen.Sorry
>for the long email but can you help me out here? I am not understanding
>where to start looking for the problem.
>Thanks,
>Mehjabin
>
>ÐÏࡱá>þÿ
>‹þÿÿÿ‰Šÿÿÿ
>
ÿ
>ÿÿÿ
>
ÿ
>ÿÿÿ
>
ÿ
>ÿÿÿ
>
ÿ
>ÿÿÿ
>
ÿ
>ì¥ÁW
>
>ø¿Â"bjbjªyªy ŠdÈÈõÌÿÿÿÿÿÿl       4Ž 
>®!®!®!h"DZ"´Ž
>1v(#Æà$¦†%†%†%†%¢ (0,T3˜°u²u²u²u²u²u²u$Yx yzŒÖu 
>ì4†%†%ì4ì4Öun:Â Â
>†%†%ëun:n:n:ì4 †% †%°un:ì4°un:2n: A^¨jà  |q†%# 
>€¿mÚBÁŽ
>®!7&ˆph|q4v01vðpŒ{,9B{|qn:ö XN @    Ù  SUBJECT \* MERGEFORMAT
>ClassicsCD Web Shop title \* Mergeformat Vision Version 2.1 Revision
>History DateRevisionDescriptionAuthor20/Oct/20011.0Initial VersionP
>Murphy10/Nov/20012.0Updated based on Requirements WorkshopP
>Murphy15/Nov/20012.1Editorial RevisionsS. Chandler
>[contractor]

> Table of Contents TOC \o "1-3" 1. Introduction  PAGEREF
>_Toc523131581 \h 1 1.1 Purpose of the Vision Requirements Document (VRD)
> PAGEREF _Toc523131582 \h 1 1.2 Product Overview  PAGEREF
_Toc523131583
>\h 1 2. User Description  PAGEREF _Toc523131584 \h 1 2.1 User/Market
>Demographics  PAGEREF _Toc523131585 \h 1 2.2 User Profiles  PAGEREF
>_Toc523131586 \h 1 2.3 User Environment  PAGEREF _Toc523131587 \h 1
>2.4 Key User Needs  PAGEREF _Toc523131588 \h 2 2.5 Alternatives and
>Competition  ...
>
>
>
>
>-Original Message-
>From: Joel Rees [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, March 07, 2002 9:51 PM
>To: Kapasi, Mehjabin
>Subject: Re: Garbage showing up when trying to download a word doc in TC
>4.0.1
>
>
>Kapasi, Mehjabin wrote (off list):
>
>>Subject: RE: Garbage showing up when trying to download a word doc in TC
>>
>4.0.1
>
>Woops. I didn't read the title line well enough. I was thinking of text
>files, which are a real pain to force downloads with.
>
>
>(I haven't seen any follow-up on the list, and I have a moment to try to
>respond again.)
>
>>The problem is i want it to show me the browser dialog instead of the
>>showing garbage on the page. I have tried it on different browsers on
>>different machines and it still gives me the same result. If I try
>>
>accessing
>
>>the webapp using Tomcat 3.2.1 using the same browser, the dialog shows up
>>but as soon as I use Tomcat 4.0.1 I get the problem.
>>What else can i do?
>>
>
>Check the http headers you are sending for the download. There's a tool for
>this floating around somewhere I think. Compare the headers 3.2.1 sends
with
>the headers 4.0.1 sends.
>
>But we would like more information, like a snippet of the code you are
using
>to send the .doc files, and a sample of the garbage that gets sent with TC
>4.0.1, and also relevant server settings. Otherwise, we can only jump to
>conclusions (like I did the first time).
>
>You might also want to check whether you have something set to drop the
high
>bit and send only seven bits per octet, but I don't think so.
>
>I apologize for the slow response. Had some work to do, you know. Anyway,
>give us more information, and _post_ _to_ _the_ _list_. That way, other
>people more qualified than I will be able respond.
>
>Joel Ree

reloadable doesn't work with warpconnector

2002-03-20 Thread Mike Johnson


Hi everyone,

I'm new to Tomcat, so this could be something that I've done
wrong... I've noticed some strange behavior with the warpconnector.

For example, if I use the manager application to shutdown the root
path (manager/stop?path=/) then the pages are no longer served by the
*standalone* server, but using the warpconnector, they are still
served.

Also, I have a servlet that is under a path I've set to use
reloadable="true". Accessing that applet through Apache never reflects
a change unless Tomcat is restarted. However the servlet is reloaded
it accessed through the standalone connector.

Can anybody help me with this? It's been driving me nuts all morning

---
Tomcat: 4.0.3
Warpconnector binary from apache.org
jdk 1.3.1
---

Thanks!

Mike Johnson

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: TC 4 - URLRewrite :: repost

2002-03-20 Thread James Williamson

Hi Reynir,

I looked into this quite deeply, it seems like you can't get a handle on the
url requested (to change) unless
you go very deep into Tomcat's internals. As it happens I'm testing a
modified mod_webapp which
appears to work quite nicely letting you use Apache's rewrite mechanism
(which mod_webapp normally ignores completely).
I should have finished my tests by this evening is you want to give it a
try.

Regards,

James Williamson
www.nameonthe.net

- Original Message -
From: Reynir Hübner <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Sent: Wednesday, March 20, 2002 7:35 PM
Subject: RE: TC 4 - URLRewrite :: repost


> thanx james...
>
> Client side redirect is not good enough... for what I was thinking.
>
> I am not really understanding your comment on how to do it internally.
> If I understand it correctly I might want to write a Connector that does
> the URLrewriting for me, (something like mod_webapp or
> coyote+urlrewrite).
>
> or is it easyer (and more portable onto other servers) to write a filter
> that uses requestDispatcher.redirect("new/path")? (sorry I don't know
> the filters api very well)
>
> hmm I also noticed a function within Defaultservlet ds.rewrite(path)...
> is it possible somehow to work with this ?
>
>
> thanx again..
> -r
>
>
>
> > -Original Message-
> > From: James Williamson [mailto:[EMAIL PROTECTED]]
> > Sent: 20. mars 2002 19:08
> > To: Tomcat Users List
> > Subject: Re: TC 4 - URLRewrite :: repost
> >
> >
> > Hi Reynir,
> >
> > I had a look at doing this, from having a look at the code,
> > the only thing
> > you can do
> > is a client side redirect (i.e. sending back a HTTP 302 to
> > the redirected
> > page). From what
> > I gathered you've got to start going right up the food chain
> > within Tomcat
> > to do it internally,
> > i.e. Filter->Value->Container->Connector
> >
> > Regards,
> >
> > James Williamson
> > www.nameonthe.net
> > - Original Message -
> > From: Reynir Hubner <[EMAIL PROTECTED]>
> > To: Tomcat Users List <[EMAIL PROTECTED]>
> > Sent: Wednesday, March 20, 2002 6:18 PM
> > Subject: RE: TC 4 - URLRewrite :: repost
> >
> >
> > > hey guys, I got no replies.. so this is a repost of the same message
> > > from early this morning.. (hope someone will notice it this
> > time.. ).
> > >
> > >
> > > > Hi,
> > > >
> > > > I'm looking for the best way of writing a URLRewrite for
> > tomcat that
> > > > works similar to mod_rewrite in apache.
> > > > Does anyone have an opinion on this matter, should I
> > write a filter or
> > > > extend some of the Tomcat base servlets such as DefaultServlet or
> > > > InvokerServlet, or even write some kind of an addition
> > onto coyote.
> > > >
> > > > I think filter is the correct way to do it.. what's your opinion ?
> > > >
> > > > thanx...
> > > > [EMAIL PROTECTED]
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > To unsubscribe:
> > 
> > > > For additional commands:
> > 
> > > > Troubles with the list:
> > 
> > > >
> > > >
> > >
> > > --
> > > To unsubscribe:
> > 
> > > For additional commands:
> > 
> > > Troubles with the list:
> > 
> > >
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: [Tomact Servlet Deploy Problem Help]

2002-03-20 Thread Sanjay Bahal

Thanks Charlie I tried both it did not work. My
web.xml looks like this:

  HelloWorld
 HelloWorldExample
 

  HelloWorld
  /hello


So I have mapped by class to a servlet and then mapped

to urlpattern /hello. My understanding is (correct me)
if I have html in the webapp/myapp/ directory I should
be able to call with /hello or HelloWorld with a tag
like- /hello or /HelloWorld. On the other hand if I
try- http://localhost:8080/search/hello I get this
error( search is myapp dir under webapps):
java.util.MissingResourceException: Can't find bundle
for base name LocalStrings, locale en_US
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:707)
at
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
at
java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
at HelloWorldExample.doGet(Unknown Source)


If I try http://localhost:8080/search/HelloWorld I get
Resource not found error.
Thanks a lot.
Sanjay


--- "Cox, Charlie" <[EMAIL PROTECTED]> wrote:
> 
> 
> > -Original Message-
> > From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, March 20, 2002 1:28 PM
> > To: Tomcat Users List
> > Subject: RE: [Tomact Servlet Deploy Problem Help]
> > 
> > 
> > I took care of this last error- some malform in
> the
> > web.xml. 
> > Now I am back to square 1- my server starts but
> when I
> > execute it gives error:
> > 1. http://localhost:8080/servlet/HelloWorld
> > The requested resource (/servlet/HelloWorld) is
> not
> > available.
> 
> try:
> http://localhost:8080/servlet/HelloWorldClass
> 
> you need the actual class name here
> 
> > 2. /hello 
> > The requested resource (/hello) is not available.
> try:
> http://localhost:8080/hello/world
> 
> This mapping means that anything in the 'hello'
> directory should go to the
> servlet.
> 
> > Thanks a lot,
> > Sanjay
> > --- Sanjay Bahal <[EMAIL PROTECTED]> wrote:
> > > Thanks Lance.
> > > I made it all caps- That took me a step further.
> 
> > > 
> > > Note to Windows(NT) users- windows shows the
> name in
> > > mixed case in explorer- even though you may type
> it
> > > in
> > > caps if you look at properties and DOS-NAME it
> will
> > > show the actual name- uppercase in this case. 
> > > ---
> > > I got an error. This error was a
> 
> > > tag
> > > was not closed. I had used the sample web.xml
> for my
> > > web.xml and it had a comment with a
> > > 
> > > tag. I got rid of that. 
> > > That brought me to my next error. The part of
> error
> > > that I could garb on the DOS screen is as below.
> How
> > > do I log the errors in a log file?
> > > at
> > >
> >
>
org.apache.catalina.startup.ContextConfig.applicationConfig(Unknown
> > > S
> > > ource)
> > > at
> > >
> >
>
org.apache.catalina.startup.ContextConfig.start(Unknown
> > > Source)
> > > at
> > >
> >
>
org.apache.catalina.startup.ContextConfig.lifecycleEvent(Unknown
> > > Sour
> > > ce)
> > > at
> > >
> >
>
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown
> > > Source)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardContext.start(Unknown
> > > Source)
> > > at
> > >
> >
>
org.apache.catalina.core.ContainerBase.addChildInternal(Unknown
> > > Sourc
> > > e)
> > > at
> > >
> >
>
org.apache.catalina.core.ContainerBase.addChild(Unknown
> > > Source)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardHost.addChild(Unknown
> > > Source)
> > > at
> > >
> >
>
org.apache.catalina.core.StandardHostDeployer.install(Unknown
> > > Source)
> > > 
> > > at
> > >
> >
>
org.apache.catalina.core.StandardHost.install(Unknown
> > > Source)
> > > at
> > >
> >
>
org.apache.catalina.startup.HostConfig.deployDirectories(Unknown
> > > Sour
> > > ce)
> > > at
> > >
> >
>
org.apache.catalina.startup.HostConfig.deployApps(Unknown
> > > Source)
> > > at
> > >
> org.apache.catalina.startup.HostConfig.run(Unknown
> > > Source)
> > > at java.lang.Thread.run(Thread.java:484)
> > > [ERROR] Digester - -Parse Fatal Error at line
> 145
> > > column 3: The content of eleme
> > > nts must consist of well-formed character data
> or
> > > markup.  > > xception: The content of elements must consist
> of
> > > well-formed character data or
> > > markup.>
> > > 
> > > Thanks a lot,
> > > Sanjay
> > > 
> > > --- Lance Smith
> <[EMAIL PROTECTED]>
> > > wrote:
> > > > Yes it must be ALL capital letters.
> > > > 
> > > > 
> > > > -Original Message-
> > > > From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, March 20, 2002 11:14 AM
> > > > To: Tomcat Users List
> > > > Subject: Re: [Tomact Servlet Deploy Problem
> Help]
> > > > 
> > > > 
> > > > Kaikuo Luo,
> > > > Thanks. Check my mail- I am doing all that. Is
> the
> > > > name WEN-INF case sensitive?
> > > > Sanjay
> > > > --- Law Kaikuo <[EMAIL PROTECTED]> wrote:
> > > > > Hi Sanjay Bahal,
> > > > > 
> > > > >   Maybe you s

RE: JSP cookie + page reloading

2002-03-20 Thread Robert Nocera


If you redirect to the page instead of forward, your problem would be
solved.  

I think putting the code to set the cookie in the main JSP page would
work also.

Robert Nocera
New England Open Solutions
www.neosllc.com
"You supply the Vision.  We will do the rest."
  


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Ming
Sent: Wednesday, March 20, 2002 2:28 PM
To: Tomcat Users List
Subject: JSP cookie + page reloading

Hi,

In one of my JSP program, I'm using response to set cookie and forward
to
another page. But the new cookie cannot be recognized immediately until
I refresh the page.

Here is the senario:

a logout.jsp which set cookie status=logout using response And then
forward
this page to a page called main.jsp. In main.jsp, there is a button
called
"login" or "logout" depending on the cookie's value.  But the problem
is,
after I set the cookie to logout and forward to main.jsp, the cookie
value
cannot be recognized immediately and I have to do a "refresh the page"
in
order to make the cookie effective.

Do you know if there is some way to force the page reloading to make
this
work?

Thanks.

Ming


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Web-application not yet deployed

2002-03-20 Thread John Wadkin

I've only seen this error when:

I've tried starting Apache before TomCat
TomCat hasn't started - Apache can't communicate with it
I've tried starting Apache too soon after starting TomCat

Hope it helps!

John

-Original Message-
From: William Crook [mailto:[EMAIL PROTECTED]]
Sent: 20 March 2002 20:22
To: Tomcat Users List
Subject: Web-application not yet deployed


I'm trying to configure tomcat 4.0.3 / apache 1.3 / red hat 7.1 and I'm
getting this error when trying to hit "/examples/"

Here is a snip from my config file:

HTTPD.CONF >>>

LoadModule webapp_module modules/mod_webapp-1.0-eapi.so
AddModule mod_webapp.c


ServerName localhost
ErrorLog logs/error_log
CustomLog logs/access_log common
   WebAppConnection conn warp localhost:8180
   WebAppDeploy examples conn /examples/
   WebAppInfo /web-inf


The error i keep receiving is>>>

WebApp: Error 404
(File: wa_request.c Line: 197) 



Web-application not yet deployed 


Please HELP!!!

Thanks in advance!

:bill crook

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Log4j initialization problem

2002-03-20 Thread James Adams

Hello,

I have tried the ServletContextListener approach suggested below by
Sriram (thanks !) and I am still having the same problem, i.e. I get the
log file (specified in my log4j.properties file) created under whatever
directory I am at when I issue the tomcat start command.  It appears
that the log file is being created and placed in the current working
directory if I specify only the file name in the log4j.properties
"File" entry.  If I specify the full path, such as

log4j.appender.A1.File=/var/tomcat/webapps/myapp/LogMessages.txt

then it creates and places the file exactly where it the entry
specifies.  But I want to just specify the filename and have it created
under the webapp's context directory, that way I won't have to remember
to change the log4j.properties entry whenever the webapp is moved to
another context directory or installed on another machine which might
have a different webapps directory path.

So is there a way to get the log file to be created and placed under its
webapp's context directory ?

Also would it be more appropriate to post this topic/thread to the log4j
user group ([EMAIL PROTECTED]) ?

Thanks in advance for any suggestions or clues.


-James



> Hello,

> I don't have access to my computer right now, but here's roughly what
I
> do to use log4J within my Servlet 2.3 API compliant webapps.

> 1. Create a properties file called log4j.properties
> 2. Place this in WEB-INF folder.
> 3. Write a ContextListener and in the contectInitialized method,
access the
> servlet context. Make sure you place this Listener implementation
along
> with your other classes and that you add an entry for it in web.xml
> 4. Ask the servlet context to get the following resource as a stream
> e.g. InputStream is =
> servletContext.getResourceAsStream("/WEB-INF/log4j.properties");
> 5. Create a properties file that'll initialize with this property
file.
> Properties properties = new Properties();
> properites.load(is);
> is.close();
> 6. Now pass this newly initialized properties object to the
> PropertyConfigurator...
>
> That's it.
>
> Sriram
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: [Tomact Servlet Deploy Problem Help]

2002-03-20 Thread Cox, Charlie



> -Original Message-
> From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 20, 2002 1:28 PM
> To: Tomcat Users List
> Subject: RE: [Tomact Servlet Deploy Problem Help]
> 
> 
> I took care of this last error- some malform in the
> web.xml. 
> Now I am back to square 1- my server starts but when I
> execute it gives error:
> 1. http://localhost:8080/servlet/HelloWorld
> The requested resource (/servlet/HelloWorld) is not
> available.

try:
http://localhost:8080/servlet/HelloWorldClass

you need the actual class name here

> 2. /hello 
> The requested resource (/hello) is not available.
try:
http://localhost:8080/hello/world

This mapping means that anything in the 'hello' directory should go to the
servlet.

> Thanks a lot,
> Sanjay
> --- Sanjay Bahal <[EMAIL PROTECTED]> wrote:
> > Thanks Lance.
> > I made it all caps- That took me a step further. 
> > 
> > Note to Windows(NT) users- windows shows the name in
> > mixed case in explorer- even though you may type it
> > in
> > caps if you look at properties and DOS-NAME it will
> > show the actual name- uppercase in this case. 
> > ---
> > I got an error. This error was a 
> > tag
> > was not closed. I had used the sample web.xml for my
> > web.xml and it had a comment with a
> > 
> > tag. I got rid of that. 
> > That brought me to my next error. The part of error
> > that I could garb on the DOS screen is as below. How
> > do I log the errors in a log file?
> > at
> >
> org.apache.catalina.startup.ContextConfig.applicationConfig(Unknown
> > S
> > ource)
> > at
> >
> org.apache.catalina.startup.ContextConfig.start(Unknown
> > Source)
> > at
> >
> org.apache.catalina.startup.ContextConfig.lifecycleEvent(Unknown
> > Sour
> > ce)
> > at
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown
> > Source)
> > at
> >
> org.apache.catalina.core.StandardContext.start(Unknown
> > Source)
> > at
> >
> org.apache.catalina.core.ContainerBase.addChildInternal(Unknown
> > Sourc
> > e)
> > at
> >
> org.apache.catalina.core.ContainerBase.addChild(Unknown
> > Source)
> > at
> >
> org.apache.catalina.core.StandardHost.addChild(Unknown
> > Source)
> > at
> >
> org.apache.catalina.core.StandardHostDeployer.install(Unknown
> > Source)
> > 
> > at
> >
> org.apache.catalina.core.StandardHost.install(Unknown
> > Source)
> > at
> >
> org.apache.catalina.startup.HostConfig.deployDirectories(Unknown
> > Sour
> > ce)
> > at
> >
> org.apache.catalina.startup.HostConfig.deployApps(Unknown
> > Source)
> > at
> > org.apache.catalina.startup.HostConfig.run(Unknown
> > Source)
> > at java.lang.Thread.run(Thread.java:484)
> > [ERROR] Digester - -Parse Fatal Error at line 145
> > column 3: The content of eleme
> > nts must consist of well-formed character data or
> > markup.  > xception: The content of elements must consist of
> > well-formed character data or
> > markup.>
> > 
> > Thanks a lot,
> > Sanjay
> > 
> > --- Lance Smith <[EMAIL PROTECTED]>
> > wrote:
> > > Yes it must be ALL capital letters.
> > > 
> > > 
> > > -Original Message-
> > > From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, March 20, 2002 11:14 AM
> > > To: Tomcat Users List
> > > Subject: Re: [Tomact Servlet Deploy Problem Help]
> > > 
> > > 
> > > Kaikuo Luo,
> > > Thanks. Check my mail- I am doing all that. Is the
> > > name WEN-INF case sensitive?
> > > Sanjay
> > > --- Law Kaikuo <[EMAIL PROTECTED]> wrote:
> > > > Hi Sanjay Bahal,
> > > > 
> > > >   Maybe you should create a subdirectory under
> > > > WEN-INF called classes and put
> > > > you java class there. You need to specify the
> > > fully
> > > > qualified pathe for your
> > > > servlet class in the web.xml file and set the
> > > > mapping. Use the map name in any
> > > > request.
> > > > 
> > > >   Kaikuo Luo
> > > > 
> > > > Sanjay Bahal <[EMAIL PROTECTED]> wrote:
> > > > I installed Tomcat4.01/NT the examples run-
> > > > webapps/servlets.
> > > > I am trying to deploy my example it does not
> > run.
> > > > I have directory structure
> > > > /webapps/search/Web-inf/classes.
> > > > Under /search I have my html file hello.htm-
> > > >  > > > SRC="/images/execute.gif" HSPACE=4 BORDER=0 
> > > > align=TOP> > > >
> > href="/servlet/HelloWorldExample">Execute
> > > > 
> > > > I have my class in /classes. Under Web-inf I
> > have
> > > my
> > > > web.xml-
> > > > 
> > > >   HelloWorld
> > > >   
> > > > HelloWorld
> > > >   
> > > >  
> > > > HelloWorldExample
> > > > 
> > > > 
> > > >   HelloWorld
> > > >   /hello
> > > > 
> > > > 
> > > > When I run I get the error- The requested
> > resource
> > > > (/hello) is not available. The othet tag also
> > > fails.
> > > > I
> > > > have restarted etc Tomcat.
> > > > 
> > > > Am I not doing something right?
> > > > 
> > > > How do I turn on debugging/logging etc on the
>

Web-application not yet deployed

2002-03-20 Thread William Crook

I'm trying to configure tomcat 4.0.3 / apache 1.3 / red hat 7.1 and I'm
getting this error when trying to hit "/examples/"

Here is a snip from my config file:

HTTPD.CONF >>>

LoadModule webapp_module modules/mod_webapp-1.0-eapi.so
AddModule mod_webapp.c


ServerName localhost
ErrorLog logs/error_log
CustomLog logs/access_log common
   WebAppConnection conn warp localhost:8180
   WebAppDeploy examples conn /examples/
   WebAppInfo /web-inf


The error i keep receiving is>>>

WebApp: Error 404
(File: wa_request.c Line: 197) 



Web-application not yet deployed 


Please HELP!!!

Thanks in advance!

:bill crook

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: ISAPI Filter not working with Webfolders win2k and Webdrive 5.1

2002-03-20 Thread Robert Priest

BTW - even the bundled webdav servlet does not work with the isapi filter.
it works fine if you go against the port 8080 http://localhost:8080/webdav,
but not against
port 80 http://localhost/webdav.

-Original Message-
From: Robert Priest [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 10:42 AM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: ISAPI Filter not working with Webfolders win2k and Webdrive 5.1


Can anyone help here:

I am using Tomcat 4.0.3. and the filter from  Tomcat version 3.3. (as is
specified in the AJP instruction page).
I am also running slide 1.0.16

The isapi filter (isapi_redirect.dll) works fine when accessing my
Tomcat/slide server through a browser.

But I am having the following problems when I Try to access Slide with the
following clients:

using WebFolders:

I get "The folder you entered does not appear to be valid" in a popup.

In  "iis_redirect.log", it appears that the url I request to map to  is
disappearing.
For example, If I try to map to "http://localhost/slide/test";, the url that
HttpFilterProc sees is:
"http://localhost/_vti_inf.html";. Everything goes down hill from there.


using WebDrive:

If i use the same url: "http://localhost/slide/test";, the isapi filter
interprets the url just fine.
However, it appears as though IIS never calls  "GetExtensionVersion" or
"HttpExtensionProc". Processing just
stops after HttpFilterProc does its job. The last few lines I see are:

[Fri Mar 15 11:46:48 2002]  [jk_uri_worker_map.c (391)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 ->
/slide/
[Fri Mar 15 11:46:54 2002]  [jk_isapi_plugin.c (695)]: HttpFilterProc
[/slide/test] is a servlet url - should redirect to ajp13
[Fri Mar 15 11:46:56 2002]  [jk_isapi_plugin.c (706)]: HttpFilterProc
fowarding original URI [/slide/test]
[Fri Mar 15 11:47:10 2002]  [jk_isapi_plugin.c (744)]: HttpFilterProc check
if [/slide/test] is points to the web-inf directory

I believe the next line shoule be "HttpExtensionProc started".

Can anyone offer any help here? It would be greatly appreciated.

Robert Priest.



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: DataSources in Tomcat 4 / Windows XP

2002-03-20 Thread Lev Assinovsky

Is Oracle driver (classes111.zip) visible to Tomcat.
I had to modify (in Linux) catalina.sh script to add driver's path to
the internal
CLASSPATH used by catalina. 

Martin Miranda wrote:
> 
> Hello
> 
> Im having problems creating a DataSource in a StandAlone Tomcat 4.0.1
> with Windows XP. The InitialContext find the DataSource but it cames
> null
> 
> This is the Code:
> 
> <%
> InitialContext ctxinit = new InitialContext();
> %>
> <%= ctxinit.lookup("java:/comp/env/jdbc/testDB") %> << NULL
> 

You get EnabledDataSource instance above so you have to cast.
May it's be better like this:
<% DataSource ds = (DataSource)
ctxinit.lookup("java:/comp/env/jdbc/testDB") %>
<%= ds %>

Also all examples doing this way:
Context ctx  = new InitialContext();
Context envCtx = (Context)ctx.lookup("java:comp/env");
ds = (DataSource)envCtx.lookup("jdbc/testDB");

Try that just in case.

So your case must work!!
Though I don't advise you to use EnabledDataSource (Tyrex stuff) for
production - it doesn't provide
connection pool.
Use commons/dbcp.
I tested it - it works fine (besides Tomcat 4.0.4-b1 - nothing work
there).

> In the web application deployment descriptor (web.xml) i have this code:
> 
>   
> Resource reference to a factory for java.sql.Connection
> instances that may be used for talking to a particular database that is
> configured in the server.xml file.
> jdbc/testDB
> javax.sql.DataSource
> Container
>   
> 
> In the server.xml file:
> 
>  reloadable="true" useNaming="true">
> 
>  type="javax.sql.DataSource" description="Default Database for
> Applications" />
> 
> 
> 
> driverClassName
> oracle.jdbc.driver.OracleDriver
> 
> 
> driverName
> jdbc:oracle:thin:@dir
> 
> 
> user
> usuario1
> 
> 
> password
> password1
> 
> 
> 
> 
> When i use debug level 1 in the context the logs seems normal:
> 
> XmlMapper: org.apache.catalina.core.StandardContext.setSessionTimeout(
> 30)
> XmlMapper: org.apache.catalina.core.StandardContext.addMimeMapping(
> html, text/html)
> XmlMapper: org.apache.catalina.core.StandardContext.addMimeMapping( txt,
> text/plain)
> XmlMapper: org.apache.catalina.core.StandardContext.addWelcomeFile(
> index.jsp)
> XmlMapper: org.apache.catalina.core.StandardContext.addWelcomeFile(
> index.html)
> XmlMapper: new null org.apache.catalina.deploy.ContextResource
> resource-ref ContextResource[name=null, scope=Shareable]
> XmlMapper: org.apache.catalina.deploy.ContextResource.setDescription(
> Resource reference to a factory for java.sql.Connection instances that
> may be used for talking to a particular database that is configured in
> the server.xml file.)
> XmlMapper: org.apache.catalina.deploy.ContextResource.setName(
> jdbc/testDB)
> XmlMapper: org.apache.catalina.deploy.ContextResource.setType(
> javax.sql.DataSource)
> XmlMapper: org.apache.catalina.deploy.ContextResource.setAuth(
> Container)
> XmlMapper: Calling org.apache.catalina.core.StandardContext.addResource
> ContextResource[name=jdbc/testDB, description=Resource reference to a
> factory for java.sql.Connection instances that may be used for talking
> to a particular database that is configured in the server.xml file.,
> type=javax.sql.DataSource, auth=Container, scope=Shareable]
> XmlMapper: pop resource-ref org.apache.catalina.deploy.ContextResource:
> ContextResource[name=jdbc/testDB, description=Resource reference to a
> factory for java.sql.Connection instances that may be used for talking
> to a particular database that is configured in the server.xml file.,
> type=javax.sql.DataSource, auth=Container, scope=Shareable]
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

-- 
Lev AssinovskyPeterlink Web
ProgrammerSt. Petersburg, Russia
Tel/Fax: +7 812 3275343   197022 ul.Chapigina 7Á
E-mail: [EMAIL PROTECTED]

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: TC 4 - URLRewrite :: repost

2002-03-20 Thread Reynir Hübner

thanx james...

Client side redirect is not good enough... for what I was thinking.

I am not really understanding your comment on how to do it internally.
If I understand it correctly I might want to write a Connector that does
the URLrewriting for me, (something like mod_webapp or
coyote+urlrewrite).

or is it easyer (and more portable onto other servers) to write a filter
that uses requestDispatcher.redirect("new/path")? (sorry I don't know
the filters api very well) 
 
hmm I also noticed a function within Defaultservlet ds.rewrite(path)...
is it possible somehow to work with this ? 


thanx again..
-r



> -Original Message-
> From: James Williamson [mailto:[EMAIL PROTECTED]]
> Sent: 20. mars 2002 19:08
> To: Tomcat Users List
> Subject: Re: TC 4 - URLRewrite :: repost
> 
> 
> Hi Reynir,
> 
> I had a look at doing this, from having a look at the code, 
> the only thing
> you can do
> is a client side redirect (i.e. sending back a HTTP 302 to 
> the redirected
> page). From what
> I gathered you've got to start going right up the food chain 
> within Tomcat
> to do it internally,
> i.e. Filter->Value->Container->Connector
> 
> Regards,
> 
> James Williamson
> www.nameonthe.net
> - Original Message -
> From: Reynir Hubner <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Sent: Wednesday, March 20, 2002 6:18 PM
> Subject: RE: TC 4 - URLRewrite :: repost
> 
> 
> > hey guys, I got no replies.. so this is a repost of the same message
> > from early this morning.. (hope someone will notice it this 
> time.. ).
> >
> >
> > > Hi,
> > >
> > > I'm looking for the best way of writing a URLRewrite for 
> tomcat that
> > > works similar to mod_rewrite in apache.
> > > Does anyone have an opinion on this matter, should I 
> write a filter or
> > > extend some of the Tomcat base servlets such as DefaultServlet or
> > > InvokerServlet, or even write some kind of an addition 
> onto coyote.
> > >
> > > I think filter is the correct way to do it.. what's your opinion ?
> > >
> > > thanx...
> > > [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe:   
> 
> > > For additional commands: 
> 
> > > Troubles with the list: 
> 
> > >
> > >
> >
> > --
> > To unsubscribe:   
> 
> > For additional commands: 
> 
> > Troubles with the list: 
> 
> >
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




tomcat3-3.3a-2 HELP

2002-03-20 Thread Huy K Dung

2002-03-20 14:19:40 - Http10Interceptor: SocketException reading request,
ignored

I saw that error in tomcar.log. Does anyone know what it is.

My app doesn't run because tomcat doesn't load turbine library (jar) in
WEB-INF/lib. I have tried to move all libraries (jars) into tomcat/lib/apps
but it doesn't work either. PLEASE HELP!!!



Re: 403 errors for webdav PUT on TC 4.0.3

2002-03-20 Thread Marcia Perry

Hi Remy,

Well, I wiped the egg off my face and saw the comment in $TOMCAT/
webapps/webdav/WEF-INF/web.xml to uncomment the entries that set
readonly to false.  That did the trick.  Thx :)

-- marcia

Remy Maucherat wrote:
> 
> > Hi,
> >
> > I tried using the DAVExplorer webdav client app w/ Tomcat v4.0.3
> > (on Solaris).
> > I connected with URL "http://myhost:8080/webdav/"; and was able to GET
> > files from the $TOMCAT_HOME/webapps/webdav/ directory w/ no problem.
> > But when I tried to 'make collection' or 'PUT', I get 403 errors. So
> > I did the obvious--since in these cases I'm trying to write to a
> > directory in the tomcat tree, I checked ownership, group, and permissions.
> > I'm running TC as user 'mperry', group 'xyz' and I ran the client
> > as 'mperry', group 'xyz' and I did a 'chmod -R 777' on the whole
> > Tomcat doc tree, just TEMPORARILY to rule out UNIX file permission
> > restrictions.  I checked in the Tomcat logs for any security or
> > restraints and see nothing.  I do see in localhost_log***.txt
> > that the /webdav webapp was loaded, w/ no errors.
> >
> > And I know that w/ Apache (using mod_dav), you need to put a
> > "DAVOn" entry in httpd.conf, but this isn't Apache.
> >
> > Any suggestions on how I can get the Tomcat webdav web app
> > to do writes (PUT, MKCOL, ...)?
> 
> You have to enable read/write for the WebDAV servlet, which is commented out
> in /WEB-INF/web.xml (for obvious security reasons).
> 
> Remy
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

-- 

Marcia Perry[EMAIL PROTECTED]
Lawrence Berkeley National Laboratory   WORK#  (510) 486-6786
1 Cyclotron RoadFAX#   (510) 486-6363
Berkeley, CA 94720  MS: 50A-3111

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tomcat 4.0.1 to 4.0.3 upgrade problem

2002-03-20 Thread Joel Sather


This is some more info about this problem.  The error I get from the
servlet is this:

java.lang.NullPointerException
at mnvu.MnvuPage.(Unknown Source)
at mnvu.MnvuServlet.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
...

Since it does work when I call it directly via Tomcat, is there some
sort of a context problem?  I believe the problem stems from a servlet
initialization failure when called via Apache, but I'm having some
problems finding exactly where to look.  Note that this does work fine
under Tomcat 4.0.1, but not 4.0.2 or 4.0.3.  I'm almost tempted to
believe that the servlet isn't getting the request/response values in
the doGet() method--any idea what causes Unknown Source at that level?

Thanks,
Joel


Joel Sather
email: [EMAIL PROTECTED]
phone: 651-917-4719

>>> [EMAIL PROTECTED] 03/19/02 05:29PM >>>

Hi, I'm having a problem getting one webapp to work when I upgrade to
4.0.3.  Although the webapp responds normally under the Tomcat port,
when I try to access it via Apache (AJP1.3 connector), it somehow gets
a
null pointer error.  The strange thing is that there are two other
apps
that have identical frameworks that work just fine via Apache.  The
problem app also has some JSP files and they work just fine--it is
just
the servlets that fail.  Does Apache somehow trash the request header
in
4.0.3 or something?  Any help would be great, I've been messing with
this all day.  Also, it failed in the same way under 4.0.2.

Working system: Apache 1.3.20 w/ AJP1.3 and Tomcat 4.0.1 (self built)
Failing systems: Apache 1.3.20 w/ AJP1.3 and Tomcat 4.0.2 or 3 binary
builds
Configurations: Same WAR deployments and server.xml, web.xml configs
all around.  Apache is tweaked to point to the modified
workers.properties file.
System: Sun Solaris (SunOS 5.7--forget what that is in Solaris
numbers).

Let me know what other info I can provide about the system.  The
reason
I need to upgrade is due to some problems with Tomcat 4.0.1 hanging
under heavy load.

Thanks,
Joel


Joel Sather
email: [EMAIL PROTECTED] 
phone: 651-917-4719

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




JSP cookie + page reloading

2002-03-20 Thread Ming

Hi,

In one of my JSP program, I'm using response to set cookie and forward to
another page. But the new cookie cannot be recognized immediately until
I refresh the page.

Here is the senario:

a logout.jsp which set cookie status=logout using response And then forward
this page to a page called main.jsp. In main.jsp, there is a button called
"login" or "logout" depending on the cookie's value.  But the problem is,
after I set the cookie to logout and forward to main.jsp, the cookie value
cannot be recognized immediately and I have to do a "refresh the page" in
order to make the cookie effective.

Do you know if there is some way to force the page reloading to make this
work?

Thanks.

Ming


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: problems connecting to MS Access when Tomca3.2 runs as service

2002-03-20 Thread Reto Badertscher

Is there a native JDBC driver available for accessing an Access Database.
Need to create and fill a Access Database on behalf of a user request?

Reto

-Ursprüngliche Nachricht-
Von: Randy Layman [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 20. März 2002 12:36
An: 'Tomcat Users List'
Betreff: RE: problems connecting to MS Access when Tomca3.2 runs as
service



The cause of your error message is that you have the file open
(probably in Access) and the System Account is trying to read the file.  The
JET engine doesn't allow this.

Your more significant and potentially more dangerous problem is that
you are using the JDBC-ODBC bridge.  This component is not thread safe and
can't/shouldn't be used in a concurrent threads.  Sun also considers this
component "experimental" and not for production usage.  You can see Java's
BugParade for more information on this.

Randy


> -Original Message-
> From: Sampige, Srinivas [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 19, 2002 8:08 PM
> To: TomcatUser (E-mail)
> Subject: problems connecting to MS Access when Tomca3.2 runs
> as service
>
>
> Hi
>
> I am running  Tomcat3.2 on Windows2000. I am facing a
> problem when I try
> to connect (from a Servlet) to an MS Access database when
> Tomcat is running
> as an NT service. When I manually run Tomcat from the console the same
> servlet works perfectly. The link
> http://www.apachelabs.org/tomcat-user/200101.mbox/%3COFB012A4B
8.0583C846-ONC
[EMAIL PROTECTED]%3E discusses the problem where the
driver is not getting loaded. But, the error I get is different -

--
SQL EXCEPTION OCCURRED CONNECTING TO DB -[Microsoft][ODBC Microsoft Access
Driver] The Microsoft Jet database engine cannot open the file '(unknown)'.
It is already opened exclusively by another user, or you need permission to
view its data.
--
 so it seems like the drivers are getting loaded. I am unable to figure out
the problem. Any help would be greately appreciated. I looked at the ODBC
data source that I have created but found nothing that is out of place.

thanks
Srinivas


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: TC 4 - URLRewrite :: repost

2002-03-20 Thread James Williamson

Hi Reynir,

I had a look at doing this, from having a look at the code, the only thing
you can do
is a client side redirect (i.e. sending back a HTTP 302 to the redirected
page). From what
I gathered you've got to start going right up the food chain within Tomcat
to do it internally,
i.e. Filter->Value->Container->Connector

Regards,

James Williamson
www.nameonthe.net
- Original Message -
From: Reynir Hubner <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Sent: Wednesday, March 20, 2002 6:18 PM
Subject: RE: TC 4 - URLRewrite :: repost


> hey guys, I got no replies.. so this is a repost of the same message
> from early this morning.. (hope someone will notice it this time.. ).
>
>
> > Hi,
> >
> > I'm looking for the best way of writing a URLRewrite for tomcat that
> > works similar to mod_rewrite in apache.
> > Does anyone have an opinion on this matter, should I write a filter or
> > extend some of the Tomcat base servlets such as DefaultServlet or
> > InvokerServlet, or even write some kind of an addition onto coyote.
> >
> > I think filter is the correct way to do it.. what's your opinion ?
> >
> > thanx...
> > [EMAIL PROTECTED]
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




mod_webapp.so functionality with apache ACLs (.htaccess)

2002-03-20 Thread Griffith, Patrick, CTR, AFPCA/OAA

I'm new to Tomcat (and most Java for that matter).  I have Solaris 8 with
Apache 1.3.22 and Tomcat 4.0.3. I've created the mod_webapp.so module and it
appears to work for me - in the sense that I can get the example jsp code to
run through my apache.  However, I need to also use the exhisting ACLs we
have in place (.htaccess files) and assumed that apache would handle these
but it doesn't.

Is this a glitch in my configuration or is it true that the webapp connector
will not allow the .htaccess file to be read by apache?  I started to
explore ajp13 connector to see if it could offer me something that webapp
connector didn't, but haven't been able to get ajp13 to work. 

Does anyone know how I can get webapp connector to use apache's basic
authentication?  I'd really like to do the authentication on the webserver
and leave tomcat to do the applications.  

Is there some syntax that I could place in the server.xml file to tell
tomcat to use apache's basic auth?  If webapp connector won't allow this, is
there another connector/method out there that can allow this?

thanks!

(P.S. sorry if this was sent out twice - not sure if my registration entry
was sent out)


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomact + apache + warp (mod_webapp) + SSL

2002-03-20 Thread Anthony Eden

Ah...Apache 2.0...that is different.  My setup is with Apache 1.3.9.

Sincerely,
Anthony Eden

> -Original Message-
> From: Gabriel López Millán [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, March 20, 2002 1:21 PM
> To: Tomcat Users List
> Subject: Re: Tomact + apache + warp (mod_webapp) + SSL
> 
> 
> 
> UPS¡¡. I have spoken with Pier Fumagalli 
> (http://nagoya.apache.org/~pier/): Apache2.0/Tomcat4.0  with 
> mod_webapp 
> and SSL are not fully implemented. SSL attributes can't be retrieval 
> from servlet :-(
> 
> 
> Anthony Eden wrote:
> 
> >I can say that it works for the default client (i.e. not 
> using virtual
> >servers) as I have it running this way right now with Tomcat 
> 4.0.1 on 
> >Linux RedHat 6.1.  I followed the instructions for building 
> mod_webapp 
> >on RedHat (which was slightly complicated because I was missing a 
> >couple required libraries).  Once I got past the build it 
> worked fine.
> >
> >I would've preferred not having Apache in the loop, but I 
> was unable to 
> >get Tomcat to work with my Thawte certificate and thus had to use 
> >Apache.
> >
> >Sincerely,
> >Anthony Eden
> >
> >>-Original Message-
> >>From: Ernst Bekker [mailto:[EMAIL PROTECTED]]
> >>Sent: Wednesday, March 20, 2002 6:43 AM
> >>To: 'Tomcat Users List'
> >>Subject: RE: Tomact + apache + warp (mod_webapp) + SSL
> >>
> >>
> >>Similar problem here, if all the content comes from Tomcat it
> >>works fine. Servlet html that referenced image urls on apache 
> >>caused apache to die. 
> >>--
> >>
> >>
> >>Hi.
> >>I have the same problem as you.
> >>Tomcat4.0 and mod_webapp with SSL it seems to be a taboo
> >>topic. There isn't any information.
> >>
> >>  
> >>
> >>[EMAIL PROTECTED] wrote:
> >>
> >>>Hi all
> >>>
> >>>Does any one have an idea how to make mod_webapp work 
> properly with a
> >>>
> >>apache
> >>
> >>>mod_ssl vitual server?
> >>>
> >>>Here is the scenario:
> >>>
> >>>I have a web application that can run in either native 
> tomcat or with
> >>>
> >>apache
> >>
> >>>as a fron end. I use mod webapp to provide a mapping of the
> >>>
> >>application
> >>
> >>>to the apache server (ala old style JServ) and then it talks
> >>>
> >>to tomcat
> >>
> >>>on port 8008. I was under the impression that this is how it works:
> >>>
> >>>apache gets a request for a "mapped" web application so that
> >>>
> >>it looks
> >>
> >>>like
> >>>this: https://somehost/app? on the client end, 
> picks up the 
> >>>app-data and then shoves it down port 8008 on localhost
> >>>
> >>(thats where the
> >>
> >>>warp connector is told to go) and then returns the data to
> >>>
> >>the client via
> >>
> >>>SSL. SO it would look like this:
> >>>
> >>>client <--- HTTPS  ---> Apache <-- warp connection to
> >>>
> >>locahost:8008 -->
> >>
> >>>tomcat
> >>>
> >>>Is this possible or am I better of running native tomcat 
> on port 443
> >>>and
> >>>
> >>not
> >>
> >>>bother with apache at all?
> >>>
> >>>regards
> >>>Tomasz Ciolek
> >>>
> >>>--
> >>>Tomasz M. Ciolek
> >>>Systems Administrator - CSIRO Entomology
> >>>Phone: 02-62464391 * Fax: 02-62464000
> >>>
> >>>
> >>>--
> >>>To unsubscribe:   
> 
> >>>For additional commands: 
> 
> >>>Troubles with the list: 
> 
> >>>
> >>>
> >>>
> >>--
> >>-
> >>Gabriel Lopez Millan - Grupo ANTS-CIRCuS
> >>Facultad de Informática
> >>Universidad de Murcia (España) Tfo: +34 968367645
> >>
> >>
> >>
> >>
> >>--
> >>To unsubscribe:   
> 
> >>For additional commands: 
> 
> >>Troubles with the list: 
> 
> >>Confidentiality Caution and Disclaimer
> >>
> >>This message and/or any attachment thereto ("the message")
> >>contains privileged and confidential information intended 
> >>only for the recipient named above.  
> >>If you are not the intended recipient of this message, 
> >>please erase it permanently once you have notified the 
> >>sender, per return e-mail, that you have received the 
> >>message in error.
> >>Unless the sender is duly authorised by either the Telesure 
> >>Group, or any of its subsidiary companies or I.S Services 
> >>("the Group") to send this message and unless the content 
> >>of this message is also duly authorised by the Group, any 
> >>views expressed in this message are those of the individual 
> >>sender and the Group will not accept liability therefore, 
> >>nor for any consequential damage arising therefrom.
> >>Any recipient of an unacceptable communication, a chain 
> >>letter or offensive material of any nature is requested 
> >>to report it to [EMAIL PROTECTED]
> >>
> >>--
> >>To unsubscribe:   
>  [EMAIL PROTECTED]>
> >>For 
> additional commands: 
> 
> >>Troubles with the list: 
> 
> >>
> >
> >
> >--
> >To 
> unsubscribe:   
> >For addition

DataSources in Tomcat 4 / Windows XP

2002-03-20 Thread Martin Miranda

Hello

Im having problems creating a DataSource in a StandAlone Tomcat 4.0.1
with Windows XP. The InitialContext find the DataSource but it cames
null

This is the Code:

<%
InitialContext ctxinit = new InitialContext();  
%>
<%= ctxinit.lookup("java:/comp/env/jdbc/testDB") %> << NULL

In the web application deployment descriptor (web.xml) i have this code:

  
Resource reference to a factory for java.sql.Connection
instances that may be used for talking to a particular database that is
configured in the server.xml file.
jdbc/testDB
javax.sql.DataSource
Container
  

In the server.xml file:







driverClassName
oracle.jdbc.driver.OracleDriver


driverName
jdbc:oracle:thin:@dir


user
usuario1


password
password1

  


When i use debug level 1 in the context the logs seems normal:

XmlMapper: org.apache.catalina.core.StandardContext.setSessionTimeout(
30)
XmlMapper: org.apache.catalina.core.StandardContext.addMimeMapping(
html, text/html)
XmlMapper: org.apache.catalina.core.StandardContext.addMimeMapping( txt,
text/plain)
XmlMapper: org.apache.catalina.core.StandardContext.addWelcomeFile(
index.jsp)
XmlMapper: org.apache.catalina.core.StandardContext.addWelcomeFile(
index.html)
XmlMapper: new null org.apache.catalina.deploy.ContextResource
resource-ref ContextResource[name=null, scope=Shareable]
XmlMapper: org.apache.catalina.deploy.ContextResource.setDescription(
Resource reference to a factory for java.sql.Connection instances that
may be used for talking to a particular database that is configured in
the server.xml file.)
XmlMapper: org.apache.catalina.deploy.ContextResource.setName(
jdbc/testDB)
XmlMapper: org.apache.catalina.deploy.ContextResource.setType(
javax.sql.DataSource)
XmlMapper: org.apache.catalina.deploy.ContextResource.setAuth(
Container)
XmlMapper: Calling org.apache.catalina.core.StandardContext.addResource
ContextResource[name=jdbc/testDB, description=Resource reference to a
factory for java.sql.Connection instances that may be used for talking
to a particular database that is configured in the server.xml file.,
type=javax.sql.DataSource, auth=Container, scope=Shareable]
XmlMapper: pop resource-ref org.apache.catalina.deploy.ContextResource:
ContextResource[name=jdbc/testDB, description=Resource reference to a
factory for java.sql.Connection instances that may be used for talking
to a particular database that is configured in the server.xml file.,
type=javax.sql.DataSource, auth=Container, scope=Shareable]

 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Load Balacing Apache->Tomcat

2002-03-20 Thread Chris Ruegger

We are using Apache as a front-end proxy to multiple tomcat instances
running on
back-end machines. We would like to get Apache to do simple round-robin
load balancing to the Tomcat instances. Is there a module out there for
Apache
that would let us do this?
Thanks




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Fwd: Host.java an unconnected gear?

2002-03-20 Thread Micael Padraig Og mac Grene

Never mind, figured out the Standard stuff.  Thanks if you helped.

Micael

>Date: Tue, 19 Mar 2002 15:13:55 -0800
>To: [EMAIL PROTECTED]
>From: Micael Padraig Og mac Grene <[EMAIL PROTECTED]>
>Subject: Host.java an unconnected gear?
>
>How is the Host.java class used in Tomcat?  It is never implemented by 
>some class.  Is it a gear connected to nothing?  What is up?  I don't know 
>the dynamics of how this class works.  Obviously, it is important, but a 
>mystery to me.
>
>Micael



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: [Tomact Servlet Deploy Problem Help]

2002-03-20 Thread Sanjay Bahal

I took care of this last error- some malform in the
web.xml. 
Now I am back to square 1- my server starts but when I
execute it gives error:
1. http://localhost:8080/servlet/HelloWorld
The requested resource (/servlet/HelloWorld) is not
available.
2. /hello 
The requested resource (/hello) is not available.
Thanks a lot,
Sanjay
--- Sanjay Bahal <[EMAIL PROTECTED]> wrote:
> Thanks Lance.
> I made it all caps- That took me a step further. 
> 
> Note to Windows(NT) users- windows shows the name in
> mixed case in explorer- even though you may type it
> in
> caps if you look at properties and DOS-NAME it will
> show the actual name- uppercase in this case. 
> ---
> I got an error. This error was a 
> tag
> was not closed. I had used the sample web.xml for my
> web.xml and it had a comment with a
> 
> tag. I got rid of that. 
> That brought me to my next error. The part of error
> that I could garb on the DOS screen is as below. How
> do I log the errors in a log file?
> at
>
org.apache.catalina.startup.ContextConfig.applicationConfig(Unknown
> S
> ource)
> at
>
org.apache.catalina.startup.ContextConfig.start(Unknown
> Source)
> at
>
org.apache.catalina.startup.ContextConfig.lifecycleEvent(Unknown
> Sour
> ce)
> at
>
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown
> Source)
> at
>
org.apache.catalina.core.StandardContext.start(Unknown
> Source)
> at
>
org.apache.catalina.core.ContainerBase.addChildInternal(Unknown
> Sourc
> e)
> at
>
org.apache.catalina.core.ContainerBase.addChild(Unknown
> Source)
> at
>
org.apache.catalina.core.StandardHost.addChild(Unknown
> Source)
> at
>
org.apache.catalina.core.StandardHostDeployer.install(Unknown
> Source)
> 
> at
>
org.apache.catalina.core.StandardHost.install(Unknown
> Source)
> at
>
org.apache.catalina.startup.HostConfig.deployDirectories(Unknown
> Sour
> ce)
> at
>
org.apache.catalina.startup.HostConfig.deployApps(Unknown
> Source)
> at
> org.apache.catalina.startup.HostConfig.run(Unknown
> Source)
> at java.lang.Thread.run(Thread.java:484)
> [ERROR] Digester - -Parse Fatal Error at line 145
> column 3: The content of eleme
> nts must consist of well-formed character data or
> markup.  xception: The content of elements must consist of
> well-formed character data or
> markup.>
> 
> Thanks a lot,
> Sanjay
> 
> --- Lance Smith <[EMAIL PROTECTED]>
> wrote:
> > Yes it must be ALL capital letters.
> > 
> > 
> > -Original Message-
> > From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, March 20, 2002 11:14 AM
> > To: Tomcat Users List
> > Subject: Re: [Tomact Servlet Deploy Problem Help]
> > 
> > 
> > Kaikuo Luo,
> > Thanks. Check my mail- I am doing all that. Is the
> > name WEN-INF case sensitive?
> > Sanjay
> > --- Law Kaikuo <[EMAIL PROTECTED]> wrote:
> > > Hi Sanjay Bahal,
> > > 
> > >   Maybe you should create a subdirectory under
> > > WEN-INF called classes and put
> > > you java class there. You need to specify the
> > fully
> > > qualified pathe for your
> > > servlet class in the web.xml file and set the
> > > mapping. Use the map name in any
> > > request.
> > > 
> > >   Kaikuo Luo
> > > 
> > > Sanjay Bahal <[EMAIL PROTECTED]> wrote:
> > > I installed Tomcat4.01/NT the examples run-
> > > webapps/servlets.
> > > I am trying to deploy my example it does not
> run.
> > > I have directory structure
> > > /webapps/search/Web-inf/classes.
> > > Under /search I have my html file hello.htm-
> > >  > > SRC="/images/execute.gif" HSPACE=4 BORDER=0 
> > > align=TOP> > >
> href="/servlet/HelloWorldExample">Execute
> > > 
> > > I have my class in /classes. Under Web-inf I
> have
> > my
> > > web.xml-
> > > 
> > >   HelloWorld
> > > 
> > >   HelloWorld
> > > 
> > >  
> > > HelloWorldExample
> > > 
> > > 
> > >   HelloWorld
> > >   /hello
> > > 
> > > 
> > > When I run I get the error- The requested
> resource
> > > (/hello) is not available. The othet tag also
> > fails.
> > > I
> > > have restarted etc Tomcat.
> > > 
> > > Am I not doing something right?
> > > 
> > > How do I turn on debugging/logging etc on the
> > > server.
> > > Thanks
> > > Sanjay
> > > 
> > > 
> > > 
> > > 
> > >
> __
> > > Do You Yahoo!?
> > > Yahoo! Sports - live college hoops coverage
> > > http://sports.yahoo.com/
> > > 
> > > --
> > > To unsubscribe:  
> > >
> >
> 
> > > For additional commands:
> > > 
> > > Troubles with the list:
> > > 
> > > 
> > > 
> > > 
> > > 
> > > --
> > > To unsubscribe:  
> > >
> >
> 
> > > For additional commands:
> > > 
> > > Troubles with the list:
> > > 
> > > 
> > 
> > 
> > __
> > Do You Yahoo!?
> > Yahoo! Sports - li

Re: Tomact + apache + warp (mod_webapp) + SSL

2002-03-20 Thread Gabriel López Millán


UPS¡¡. I have spoken with Pier Fumagalli 
(http://nagoya.apache.org/~pier/): Apache2.0/Tomcat4.0  with mod_webapp 
and SSL are not fully implemented. SSL attributes can't be retrieval 
from servlet :-(


Anthony Eden wrote:

>I can say that it works for the default client (i.e. not using virtual
>servers) as I have it running this way right now with Tomcat 4.0.1 on
>Linux RedHat 6.1.  I followed the instructions for building mod_webapp
>on RedHat (which was slightly complicated because I was missing a couple
>required libraries).  Once I got past the build it worked fine.
>
>I would've preferred not having Apache in the loop, but I was unable to
>get Tomcat to work with my Thawte certificate and thus had to use
>Apache.
>
>Sincerely,
>Anthony Eden
>
>>-Original Message-
>>From: Ernst Bekker [mailto:[EMAIL PROTECTED]] 
>>Sent: Wednesday, March 20, 2002 6:43 AM
>>To: 'Tomcat Users List'
>>Subject: RE: Tomact + apache + warp (mod_webapp) + SSL
>>
>>
>>Similar problem here, if all the content comes from Tomcat it 
>>works fine. Servlet html that referenced image urls on apache 
>>caused apache to die. 
>>--
>>
>>
>>Hi.
>>I have the same problem as you.
>>Tomcat4.0 and mod_webapp with SSL it seems to be a taboo 
>>topic. There isn't any information.
>>
>>  
>>
>>[EMAIL PROTECTED] wrote:
>>
>>>Hi all
>>>
>>>Does any one have an idea how to make mod_webapp work properly with a
>>>
>>apache
>>
>>>mod_ssl vitual server?
>>>
>>>Here is the scenario:
>>>
>>>I have a web application that can run in either native tomcat or with
>>>
>>apache
>>
>>>as a fron end. I use mod webapp to provide a mapping of the 
>>>
>>application 
>>
>>>to the apache server (ala old style JServ) and then it talks 
>>>
>>to tomcat 
>>
>>>on port 8008. I was under the impression that this is how it works:
>>>
>>>apache gets a request for a "mapped" web application so that 
>>>
>>it looks 
>>
>>>like
>>>this: https://somehost/app? on the client end, picks up the
>>>app-data and then shoves it down port 8008 on localhost 
>>>
>>(thats where the
>>
>>>warp connector is told to go) and then returns the data to 
>>>
>>the client via
>>
>>>SSL. SO it would look like this:
>>>
>>>client <--- HTTPS  ---> Apache <-- warp connection to 
>>>
>>locahost:8008 --> 
>>
>>>tomcat
>>>
>>>Is this possible or am I better of running native tomcat on port 443 
>>>and
>>>
>>not
>>
>>>bother with apache at all?
>>>
>>>regards
>>>Tomasz Ciolek
>>>
>>>--
>>>Tomasz M. Ciolek
>>>Systems Administrator - CSIRO Entomology
>>>Phone: 02-62464391 * Fax: 02-62464000
>>>
>>>
>>>--
>>>To unsubscribe:   
>>>For additional commands: 
>>>Troubles with the list: 
>>>
>>>
>>>
>>--
>>-
>>Gabriel Lopez Millan - Grupo ANTS-CIRCuS
>>Facultad de Informática
>>Universidad de Murcia (España) Tfo: +34 968367645
>>
>>
>>
>>
>>--
>>To unsubscribe:   
>>For additional commands: 
>>Troubles with the list: 
>>Confidentiality Caution and Disclaimer
>>
>>This message and/or any attachment thereto ("the message") 
>>contains privileged and confidential information intended 
>>only for the recipient named above.  
>>If you are not the intended recipient of this message, 
>>please erase it permanently once you have notified the 
>>sender, per return e-mail, that you have received the 
>>message in error.
>>Unless the sender is duly authorised by either the Telesure 
>>Group, or any of its subsidiary companies or I.S Services 
>>("the Group") to send this message and unless the content 
>>of this message is also duly authorised by the Group, any 
>>views expressed in this message are those of the individual 
>>sender and the Group will not accept liability therefore, 
>>nor for any consequential damage arising therefrom.
>>Any recipient of an unacceptable communication, a chain 
>>letter or offensive material of any nature is requested 
>>to report it to [EMAIL PROTECTED]
>>
>>--
>>To unsubscribe:   
>>For additional commands: 
>>Troubles with the list: 
>>
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
>

-- 
-
Gabriel Lopez Millan - Grupo ANTS-CIRCuS
Facultad de Informática
Universidad de Murcia (España) Tfo: +34 968367645





RE: TC 4 - URLRewrite :: repost

2002-03-20 Thread Reynir Hubner

hey guys, I got no replies.. so this is a repost of the same message
from early this morning.. (hope someone will notice it this time.. ).


> Hi, 
> 
> I'm looking for the best way of writing a URLRewrite for tomcat that
> works similar to mod_rewrite in apache. 
> Does anyone have an opinion on this matter, should I write a filter or
> extend some of the Tomcat base servlets such as DefaultServlet or
> InvokerServlet, or even write some kind of an addition onto coyote.
> 
> I think filter is the correct way to do it.. what's your opinion ?
> 
> thanx... 
> [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




mod_jk.log question

2002-03-20 Thread Cindy Ballreich

I'm using mod_jk with Tomcat 4.0.1 and Apache 1.3.19 on a Redhat 7.0 system.

Looking at my mod_jk.log file, it appears that mod_jk is trying to map every request 
that comes to my server, regardless of whether it should be handled by Tomcat or 
Apache. This seems very inefficient to me and I'm wondering if I have a configuration 
problem somewhere. Otherwise everything seems to be working correctly and all pages 
(jsp and otherwise) are being served correctly. Perhaps this is normal and I just need 
to change my log level and ignore it. (log level is currently "warn".) I'd appreciate 
some input.

mod_jk.log entry of a request that should be (and is) handled by Apache...
[Wed Mar 20 10:07:35 2002]  [jk_uri_worker_map.c (351)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Wed Mar 20 10:07:35 2002]  [jk_uri_worker_map.c (368)]: Attempting to map URI 
'/images/logo_level2.gif'
[Wed Mar 20 10:07:35 2002]  [jk_uri_worker_map.c (456)]: 
jk_uri_worker_map_t::map_uri_to_worker, done without a match

Thanks!

Cindy



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: [Tomact Servlet Deploy Problem Help]

2002-03-20 Thread Sanjay Bahal

Thanks Lance.
I made it all caps- That took me a step further. 

Note to Windows(NT) users- windows shows the name in
mixed case in explorer- even though you may type it in
caps if you look at properties and DOS-NAME it will
show the actual name- uppercase in this case. 
---
I got an error. This error was a  tag
was not closed. I had used the sample web.xml for my
web.xml and it had a comment with a 
tag. I got rid of that. 
That brought me to my next error. The part of error
that I could garb on the DOS screen is as below. How
do I log the errors in a log file?
at
org.apache.catalina.startup.ContextConfig.applicationConfig(Unknown
S
ource)
at
org.apache.catalina.startup.ContextConfig.start(Unknown
Source)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(Unknown
Sour
ce)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown
Source)
at
org.apache.catalina.core.StandardContext.start(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.addChildInternal(Unknown
Sourc
e)
at
org.apache.catalina.core.ContainerBase.addChild(Unknown
Source)
at
org.apache.catalina.core.StandardHost.addChild(Unknown
Source)
at
org.apache.catalina.core.StandardHostDeployer.install(Unknown
Source)

at
org.apache.catalina.core.StandardHost.install(Unknown
Source)
at
org.apache.catalina.startup.HostConfig.deployDirectories(Unknown
Sour
ce)
at
org.apache.catalina.startup.HostConfig.deployApps(Unknown
Source)
at
org.apache.catalina.startup.HostConfig.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:484)
[ERROR] Digester - -Parse Fatal Error at line 145
column 3: The content of eleme
nts must consist of well-formed character data or
markup. 

Thanks a lot,
Sanjay

--- Lance Smith <[EMAIL PROTECTED]>
wrote:
> Yes it must be ALL capital letters.
> 
> 
> -Original Message-
> From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 20, 2002 11:14 AM
> To: Tomcat Users List
> Subject: Re: [Tomact Servlet Deploy Problem Help]
> 
> 
> Kaikuo Luo,
> Thanks. Check my mail- I am doing all that. Is the
> name WEN-INF case sensitive?
> Sanjay
> --- Law Kaikuo <[EMAIL PROTECTED]> wrote:
> > Hi Sanjay Bahal,
> > 
> >   Maybe you should create a subdirectory under
> > WEN-INF called classes and put
> > you java class there. You need to specify the
> fully
> > qualified pathe for your
> > servlet class in the web.xml file and set the
> > mapping. Use the map name in any
> > request.
> > 
> >   Kaikuo Luo
> > 
> > Sanjay Bahal <[EMAIL PROTECTED]> wrote:
> > I installed Tomcat4.01/NT the examples run-
> > webapps/servlets.
> > I am trying to deploy my example it does not run.
> > I have directory structure
> > /webapps/search/Web-inf/classes.
> > Under /search I have my html file hello.htm-
> >  > SRC="/images/execute.gif" HSPACE=4 BORDER=0 
> > align=TOP> > href="/servlet/HelloWorldExample">Execute
> > 
> > I have my class in /classes. Under Web-inf I have
> my
> > web.xml-
> > 
> >   HelloWorld
> >   
> > HelloWorld
> >   
> >  
> > HelloWorldExample
> > 
> > 
> >   HelloWorld
> >   /hello
> > 
> > 
> > When I run I get the error- The requested resource
> > (/hello) is not available. The othet tag also
> fails.
> > I
> > have restarted etc Tomcat.
> > 
> > Am I not doing something right?
> > 
> > How do I turn on debugging/logging etc on the
> > server.
> > Thanks
> > Sanjay
> > 
> > 
> > 
> > 
> > __
> > Do You Yahoo!?
> > Yahoo! Sports - live college hoops coverage
> > http://sports.yahoo.com/
> > 
> > --
> > To unsubscribe:  
> >
> 
> > For additional commands:
> > 
> > Troubles with the list:
> > 
> > 
> > 
> > 
> > 
> > --
> > To unsubscribe:  
> >
> 
> > For additional commands:
> > 
> > Troubles with the list:
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Sports - live college hoops coverage
> http://sports.yahoo.com/
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tab Characters in web.xml (Tomcat 4.0.3)

2002-03-20 Thread Emir Alikadic

On 3/20/2002 12:01 PM, Jeff Larsen wrote:
> I've been developing a web application in JBuilder using Tomcat 3.2
> with great success. Now it's time for the real world. I'm deploying
> my app on Tomcat 4.0.3 on Solaris and I'm having problems with my
> web.xml. When Tomcat starts, it gives me the following error:
> 
> 2002-03-20 10:47:48 ContextConfig[/online] Parse error in application web.xml
> org.xml.sax.SAXParseException: The content of element type "web-app" must match
> 
>"(icon?,display-name?,description?,distributable?,context-param*,servlet*,servlet-mapping*
> 
>,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-ref*,securi
> ty-constraint*,login-config?,security-role*,env-entry*,ejb-ref*)".
> 
> OK, so it's just validating my web.xml against the DTD. BUT... my web.xml
> is correct. If I remove the leading tab characters from the lines of
> web.xml and replace them with plain spaces, it parses just fine.
> 
> What gives?!?!?  Since when are tabs not legal whitespace?!?!?!
> 
> Jeff

Not sure if tabs are the culprit, but I'd suspect element order problem.  Just 
rearrange the elements according to the list provided and you should be good to go.

Tabs should be avoided for indentation, especially in XML files, with all the 
nesting.  Open up an XML file with 4 or 5 *tabbed* level nesting in an 80x25 
UNIX console if you don't believe me.  Set your editor to replace tab character 
with spaces and don't forget the soft/hard right margin at 80.


Emir.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




ssl and windows 2000

2002-03-20 Thread Mehmet Ugur Kuzu (LinkPlus)

Hi,
Do you know a detailed description of how can i generate my ssl keys and
setup Tomcat under windows 2000,
sincerely Ugur



Re: Multiple Tomcat 4.0.2 instances

2002-03-20 Thread Jean-Luc BEAUDET

Chris Ruegger a Ýcrit :

> I should have been more specific earlier. I'm running Tomcat 4.0.2 and
> interested in setting
> up multiple instances on one machine. Any references greatly appreciated!
> -Chris
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

Well, Chris.

I'm using TC 4.0.2/Warp 1.0.2 associated. I compiled both of them with
2.95.3 gcc on SOLARIS 8.

I send yu the explanations i gave other guy who asked for the same stuff.

Well yu can do some instances of Tomcat.
It works well.

All yu have to do it's to define different CATALINA_BASE directories and to
build them
as the master.

i.e:

assume the first one by /web/Tomcat1
copy $CATALINA_HOME/conf in /web/Tomcat1/conf
create /web/Tomcat1
./logs
./work
./webapps

configure the /web/Tomcat1/Conf/server.xml

# yu set a port <>
than other
../..



  
  

 than other
   enableLookups="true" appBase="webapps"
   acceptCount="10" debug="0"/>


mailto:[EMAIL PROTECTED]>
For additional commands: 
Troubles with the list: 




RE: Multiple Tomcat 4.0.2 instances

2002-03-20 Thread John Niven

> -Original Message-
> From: Chris Ruegger [mailto:[EMAIL PROTECTED]] 
> Sent: 20 March 2002 17:11
> To: [EMAIL PROTECTED]
> Subject: Multiple Tomcat 4.0.2 instances
> 
> 
> I should have been more specific earlier. I'm running Tomcat 
> 4.0.2 and interested in setting up multiple instances on one 
> machine. Any references greatly appreciated! -Chris
> 
Chris

I've been skim-reading this thread so far, only just now read it properly.

I contributed to a recent thread on this topic:
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg46851.html

We were talking, I think, about Tomcat 4 in general, but my specific
experience was (then) with Tomcat 4.0.2.  (Since then I've repeated the
process on 4.0.3).

Sorry to be basic, but have you located/read CATALINA_HOME/running.txt?  I
used that as the basis for my experiments with multiple instances.

Best of luck
John

> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

 --
John Niven
Please reply through mailing list

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Upload file to email as attachment

2002-03-20 Thread Jason Webber

jspSmartUpload can be found at http://www.jspsmart.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: [Tomact Servlet Deploy Problem Help]

2002-03-20 Thread Lance Smith

Yes it must be ALL capital letters.


-Original Message-
From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 11:14 AM
To: Tomcat Users List
Subject: Re: [Tomact Servlet Deploy Problem Help]


Kaikuo Luo,
Thanks. Check my mail- I am doing all that. Is the
name WEN-INF case sensitive?
Sanjay
--- Law Kaikuo <[EMAIL PROTECTED]> wrote:
> Hi Sanjay Bahal,
> 
>   Maybe you should create a subdirectory under
> WEN-INF called classes and put
> you java class there. You need to specify the fully
> qualified pathe for your
> servlet class in the web.xml file and set the
> mapping. Use the map name in any
> request.
> 
>   Kaikuo Luo
> 
> Sanjay Bahal <[EMAIL PROTECTED]> wrote:
> I installed Tomcat4.01/NT the examples run-
> webapps/servlets.
> I am trying to deploy my example it does not run.
> I have directory structure
> /webapps/search/Web-inf/classes.
> Under /search I have my html file hello.htm-
>  SRC="/images/execute.gif" HSPACE=4 BORDER=0 
> align=TOP> href="/servlet/HelloWorldExample">Execute
> 
> I have my class in /classes. Under Web-inf I have my
> web.xml-
> 
>   HelloWorld
> 
>   HelloWorld
> 
>  
> HelloWorldExample
> 
> 
>   HelloWorld
>   /hello
> 
> 
> When I run I get the error- The requested resource
> (/hello) is not available. The othet tag also fails.
> I
> have restarted etc Tomcat.
> 
> Am I not doing something right?
> 
> How do I turn on debugging/logging etc on the
> server.
> Thanks
> Sanjay
> 
> 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Sports - live college hoops coverage
> http://sports.yahoo.com/
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 
> 
> 
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: [Tomact Servlet Deploy Problem Help]

2002-03-20 Thread Sanjay Bahal

Kaikuo Luo,
Thanks. Check my mail- I am doing all that. Is the
name WEN-INF case sensitive?
Sanjay
--- Law Kaikuo <[EMAIL PROTECTED]> wrote:
> Hi Sanjay Bahal,
> 
>   Maybe you should create a subdirectory under
> WEN-INF called classes and put
> you java class there. You need to specify the fully
> qualified pathe for your
> servlet class in the web.xml file and set the
> mapping. Use the map name in any
> request.
> 
>   Kaikuo Luo
> 
> Sanjay Bahal <[EMAIL PROTECTED]> wrote:
> I installed Tomcat4.01/NT the examples run-
> webapps/servlets.
> I am trying to deploy my example it does not run.
> I have directory structure
> /webapps/search/Web-inf/classes.
> Under /search I have my html file hello.htm-
>  SRC="/images/execute.gif" HSPACE=4 BORDER=0 
> align=TOP> href="/servlet/HelloWorldExample">Execute
> 
> I have my class in /classes. Under Web-inf I have my
> web.xml-
> 
>   HelloWorld
> 
>   HelloWorld
> 
>  
> HelloWorldExample
> 
> 
>   HelloWorld
>   /hello
> 
> 
> When I run I get the error- The requested resource
> (/hello) is not available. The othet tag also fails.
> I
> have restarted etc Tomcat.
> 
> Am I not doing something right?
> 
> How do I turn on debugging/logging etc on the
> server.
> Thanks
> Sanjay
> 
> 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Sports - live college hoops coverage
> http://sports.yahoo.com/
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 
> 
> 
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: [Tomact Servlet Deploy Problem Help]

2002-03-20 Thread Law Kaikuo

Hi Sanjay Bahal,

  Maybe you should create a subdirectory under WEN-INF called classes and put
you java class there. You need to specify the fully qualified pathe for your
servlet class in the web.xml file and set the mapping. Use the map name in any
request.

  Kaikuo Luo

Sanjay Bahal <[EMAIL PROTECTED]> wrote:
I installed Tomcat4.01/NT the examples run-
webapps/servlets.
I am trying to deploy my example it does not run.
I have directory structure
/webapps/search/Web-inf/classes.
Under /search I have my html file hello.htm-
Execute

I have my class in /classes. Under Web-inf I have my
web.xml-

  HelloWorld
  
HelloWorld
  
  HelloWorldExample


  HelloWorld
  /hello


When I run I get the error- The requested resource
(/hello) is not available. The othet tag also fails. I
have restarted etc Tomcat.

Am I not doing something right?

How do I turn on debugging/logging etc on the server.
Thanks
Sanjay




__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Multiple Tomcat 4.0.2 instances

2002-03-20 Thread Chris Ruegger

I should have been more specific earlier. I'm running Tomcat 4.0.2 and
interested in setting
up multiple instances on one machine. Any references greatly appreciated!
-Chris




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomact Servlet Deploy Problem Help

2002-03-20 Thread Sanjay Bahal

I installed Tomcat4.01/NT the examples run-
webapps/servlets.
I am trying to deploy my example it does not run.
I have directory structure
/webapps/search/Web-inf/classes.
Under /search I have my html file hello.htm-
Execute

I have my class in /classes. Under Web-inf I have my
web.xml-

  HelloWorld
  
HelloWorld
  
  HelloWorldExample


  HelloWorld
  /hello


When I run I get the error- The requested resource
(/hello) is not available. The othet tag also fails. I
have restarted etc Tomcat.

Am I not doing something right?

How do I turn on debugging/logging etc on the server.
Thanks
Sanjay




__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tab Characters in web.xml (Tomcat 4.0.3)

2002-03-20 Thread Jeff Larsen

I've been developing a web application in JBuilder using Tomcat 3.2
with great success. Now it's time for the real world. I'm deploying
my app on Tomcat 4.0.3 on Solaris and I'm having problems with my
web.xml. When Tomcat starts, it gives me the following error:

2002-03-20 10:47:48 ContextConfig[/online] Parse error in application web.xml
org.xml.sax.SAXParseException: The content of element type "web-app" must match
"(icon?,display-name?,description?,distributable?,context-param*,servlet*,servlet-mapping*
,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-ref*,securi
ty-constraint*,login-config?,security-role*,env-entry*,ejb-ref*)".

OK, so it's just validating my web.xml against the DTD. BUT... my web.xml
is correct. If I remove the leading tab characters from the lines of
web.xml and replace them with plain spaces, it parses just fine.

What gives?!?!?  Since when are tabs not legal whitespace?!?!?!

Jeff


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: extends JDBCRealm

2002-03-20 Thread Craig R. McClanahan



On Wed, 20 Mar 2002, Günter Kukies wrote:

> Date: Wed, 20 Mar 2002 14:06:00 +0100
> From: Günter Kukies <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: extends JDBCRealm
>
> Hello,
>
> I want to write a new MyRealm class that extend from JDBCRealm. The new
> class should do a BASE64 password protection.
> The compilation of the class was sucessfull.
>

Of course, you can do this with the standard version, by using the
"digest" property on the  element ...

> Where should I place that class and what entries do I need in the
> server.xml.
>

To be visible to the Tomcat internals, your class needs to be in one of
two places:

* In an unpacked directory $CATALINA_HOME/server/classes (create it if
  you need), with subdirectories to mirror the package structure in the
  usual way

* In a JAR file in $CATALINA_HOME/server/lib (which is how all the
  standard Tomcat server classes are shipped)

To tell Tomcat to use your realm implementation, simply change the
"className" attribute of the  element to the fully qualified class
name of your own implementation, instead of
"org.apache.catalina.realm.JDBCRealm".

> Günter

Craig


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: mod_webapp not loading servlets or jsp

2002-03-20 Thread Rio Ronan

Hello Matt,

I have the same problem with Apache 1.3.23 and Tomcat4.0.1 on NT4.
But I had a result with a jsp, I follow the "JSP Quick-Start Guide - Page 5 
- A Simple JSP",
from http://www.webmasterbase.com/article/305
This small example should give you an idea.
Good Luck.

Ron.



>I'm running Apache 1.3.23 and Tomcat 4.0.3. I (apparently) set up 
>mod_webapp successfully, but jsps and servlet still don't seem to work 
>correctly over it. For example,
>
>http://localhost:8080/examples/jsp/numguess.jsp works fine.
>http://localhost:8080/examples/servlet/HelloWorldServlet works fine.
>http://localhost/examples correctly goes to Tomcat for the page.
>
>but,
>
>http://localhost/examples/jsp/numguess.jsp gives me an internal server 
>error from Apache. Can't find anything relevant in the logs. Anyone else 
>have this problem? Anyone know how to go about debugging a situation like this?
>
>Thanks,
>Matt Belcher
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Multiple Tomcat 3.2.4 Instances

2002-03-20 Thread Robert Walther

Thank you to those who have commented on the attached document.  Before I
revise it fully, I have two questions to pose to the group.

First, there was real distaste for my use of mod_rewrite in Apache to
redirect base URLs to their appropriate VirtualHosts ajp worker.

My goal was to redirect a client who simply put in 

http://www.site1.com/
to
http://www.site1.com/site1contextname/index.jsp

In Apache I used

DocumentRoot “/contexts/site1/webapps/site1contextname
ServerName site1.yourdomain.com
ServerAdmin email of server admin
JkMount /* ajp13_site1
JkMount /servlet/* ajp13_site1
JkMount /site1contextname/*.jsp ajp13_site1
RewriteEngine On
RewriteRule ^/$ /site1contextname/index.jsp [NC,R]
 

some people recommended I use mod_webapp while other recommended that I
use DirctoryIndex, but I am still unclear what is the best and fastest
method to do the redirect with mod_jk/Tomcat 3.2.4.  (ONE interesting note
was that Rewrite would only work if I put it after the JkMount Directives.
 When i put it before the JkMount's the incoming URL would be sent to the
index.html file in /$TOMCAT_HOME/webapps/ROOT. I belive this may have
something to do with web.xml but am not sure.)

My second question pertains to setting up a separate directory for each
Tomcat instance.  I copied the entire contents of $TOMCAT_HOME into a
separate directory that I set-up for each new site.

ex.
mkdir /context
mkdir /contexts/site1
mkdir /contexts/site2
cp -R /$TOMCAT_HOME /contexts/site1
cp -R /$TOMCAT_HOME /contexts/site2

I am aware that i can put all my site's contexts into the webapps
directory of /$TOMCAT_HOME, but I do have the space on my server to keep
the sites in their own directories and was worried that a single directory
structure would cause problems when I add lots of sites to this server. 
Any thoughts?

As i get more information I hope to modify the attached document and
resubmit it.  Thanks again for your time and comments.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: multilple tomcat instances

2002-03-20 Thread Ralphn

Hi Chris

Try this:
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg43912.html

and see the running.txt under /webapps/tomcat-doc

HTH
Greetinx
Ralph


> -Ursprüngliche Nachricht-
> Von: Chris Ruegger [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 20. März 2002 14:31
> An: Tomcat Users List
> Betreff: multilple tomcat instances
> 
> 
> I need to run multiple tomcat instances on a single machine 
> each on a different port.
> Is there some documentation out there that explains how to 
> configure this?
> Thanks!
> 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




compile.classpath value?

2002-03-20 Thread Leila Lappin

In build.xml what should I set this value to be?

thanks



Re: Log4j initialization problem

2002-03-20 Thread Sriram N

Hello,

I don't have access to my computer right now, but here's roughly what I do to
use log4J within my Servlet 2.3 API compliant webapps.

1. Create a properties file called log4j.properties
2. Place this in WEB-INF folder.
3. Write a ContextListener and in the contectInitialized method, access the
servlet context. Make sure you place this Listener implementation along with
your other classes and that you add an entry for it in web.xml
4. Ask the servlet context to get the following resource as a stream
e.g. InputStream is =
servletContext.getResourceAsStream("/WEB-INF/log4j.properties");
5. Create a properties file that'll initialize with this property file.
Properties properties = new Properties();
properites.load(is);
is.close();
6. Now pass this newly initialized properties object to the
PropertyConfigurator...

That's it.



Sriram
--- James Adams <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I am having the problem of Tomcat initializing/creating my Log4j log
> files in whatever directory that Tomcat is started from.  In other words
> if I am currently at directory /kung/foo when I issue the command
> /etc/init.d/tomcat start, then my log files will be created under
> /kung/foo instead of under the /path/to/webapp directory, which is where
> I thought that they should be created.
> 
> I have the following WEB-INF/classes/log4j.properties file:
> 
> 
> # Set root category priority to DEBUG and its only appender to A1.
> log4j.rootCategory=DEBUG, A1
> 
> # A1 is set to be a RollingFileAppender.
> log4j.appender.A1=org.apache.log4j.RollingFileAppender
> 
> log4j.appender.A1.File=LogMessages-trajview.txt
> log4j.appender.A1.MaxFileSize=500KB
> 
> # Keep one backup file
> log4j.appender.A1.MaxBackupIndex=2
> 
> # A1 uses PatternLayout.
> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
> log4j.appender.A1.layout.ConversionPattern=%5p %d (%F:%L) - %m%n
> -
> 
> 
> The log4j stuff is being initialized/configured by a servlet which has
> the following init() method:
> 
> ---
> public void init()
> {
> // gets the base directory to use, from the web application's
> "context"
> String prefix = getServletContext().getRealPath("/");
> 
> // this looks in the web.xml for the initialization file
> parameter
> // which points to log4j.properties
> String file = getInitParameter("log4j-init-file");
> 
> // if the log4j-init-file is not set, then no point in trying
> if (file != null)
> {
> // apply the configuration specified in the initialization
> file
> PropertyConfigurator.configure(prefix + file);
> }
> }
> --
> 
> 
> The above mentioned Log4j initialization servlet is being called at
> loadup time by virtue of the following entry in my web.xml:
> 
> -
> 
> log4j-init
> myapp.servlet.Log4jInit
> 
> log4j-init-file
> WEB-INF/classes/log4j.properties
> 
> 1
> 
> -
> 
> 
> Because I have three separate webapps which should all have their own
> log files I would like to have the log files created in the separate
> webapp directories, or perhaps better yet in a logs subdirectory under
> each webapp directory.  For example if a webapp is under
> /var/tomcat/webappps/myapp then I would like for the log file to be
> created as /var/tomcat/webapps/myapp/LogMessages.txt or as
> /var/tomcat/webapps/myapp/logs/LogMessages.txt.  How can I get this to
> happen ?  Should I make a change to a log4j.properties entry, or perhaps
> I'm making an error in my log4j initialization servlet's init() method
> by referencing the wrong path in the getRealPath() call ?
> 
> Any suggestions will be appreciated.  Thanks in advance.
> 
> 
> -James
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: J2EE and Tomcat

2002-03-20 Thread Ralph Einfeldt

As I see it, the spec is quit clear about that:

2.5.1 Generating Comments in Output to Client
In order to generate comments that appear in the response output stream
to the
requesting client, the HTML and XML comment syntax is used, as follows:

These comments are treated as uninterpreted template text by the JSP
container. If the generated comment is to have dynamic data, this can be
obtained
through an expression syntax, as in:


So any container that doesn't render the tags inside  violates
the spec.


> -Ursprüngliche Nachricht-
> Von: Reynir Hübner [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 14. Februar 2002 18:28
> An: Tomcat Users List
> Betreff: J2EE and Tomcat

> On that matter (J2EE & Tomcat), I've noticed one "small" difference
> between Tomcat and the jsp spec. 
> Tomcat renders jsp-code that's between , the HTML 
> comment tag. 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: Figuring out which Unix process is which

2002-03-20 Thread Ralph Einfeldt

With lsof you can find out which processes listens on a given port.

As each tomcat has a unique ip/port combination you can find 
the pid of the vm for a given tomcat with that.

BTW: the way to use wget is better, as this catches all errors
where there might be a process that simply doesn't react to
requests (dead locks etc.)

The first way we just use to stop all processes for a given site
if the standard shutdown of the webserver fails.

> -Ursprüngliche Nachricht-
> Von: camccuk [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 20. März 2002 15:46
> An: Tomcat Users List
> Betreff: Re: Figuring out which Unix process is which

> As I was saying: this is fine until the process gets swapped 
> out at which point
> ps reports the process as [java], no matter how many 'w's you 
> specify - no one
> has been able to tell me a workaround for this. Thus, options 
> seems to be:
> 
> - killall 0  although I'm not sure (yet) how to capture TC's pid
> - use wget to check the server from a client perspective...


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Struggling for one week please Help Help..................

2002-03-20 Thread Uma Munugala

Hi Daniel
   I double checked that compiler, 
iam using jdk1.3 for compiling my source codee and tomcat uses jdk1.3.
classes are located in /WEB-INF/classes.

Thanks
Uma

  

-Original Message-
From: Daniel Hinojosa [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 4:14 PM
To: Tomcat Users List
Subject: Re: Struggling for one week please Help Help..




Uma Munugala wrote:

>Hi
>
>
>I have written a servlet which implements SingleThreadModel
>and used already existing public static syncronized classes to access
>database.
>these classes were used for standalone application.
>does static synchronized has any problem with servlets
>
>when I deployment my servlet and try to  run it gives me error, its stack
>trace is below.
>
>when login reaches to access static synchronized class member or static
>synchronized class method Iam getting
>problem.
>
Quick simple checks

 Is your compiler the same version as Tomcat?  Another check is your 
editor putting characters that you cannot see?  Open it with another 
editor and recompile.  I fell victim to that sometime ago, and it is 
frustrating.

where are these classes located in the /WEB-INF/classes or the /WEB-INF/lib
directory?

-- 
Daniel Hinojosa
Java & XML: Consultant | Developer | Instructor
P.O. Box 4675
Albuquerque, NM 87196-4675
(505) 363-5832






--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Figuring out which Unix process is which

2002-03-20 Thread camccuk


--- NIVET Rémi <[EMAIL PROTECTED]> wrote:
> Try /usr/ucb/ps auxww
> 
> Rémi.

As I was saying: this is fine until the process gets swapped out at which point
ps reports the process as [java], no matter how many 'w's you specify - no one
has been able to tell me a workaround for this. Thus, options seems to be:

- killall 0  although I'm not sure (yet) how to capture TC's pid
- use wget to check the server from a client perspective...

cam

__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




IllegalAccessException when using Java in XSLT

2002-03-20 Thread Wout Neirynck

Hi all,

I've written a servlet that generates HTML using XML/XSLT.  The XSL pages 
are using extra parameters that are passed on by the servlet (the http 
request, the http response and the session).  But when I want to access 
these objects from within the XSL file using the Java extension stuff 
provided by Xalan, Tomcat always gives me an "IllegalAccessException".

The whole web-app works perfecly fine using the commercial web-container 
JRun, so I don't think the problem lies with the Java code.  It can't be a 
problem of the classes or their members not being public, since they're 
standard servlet classes, and they're perfectly accessible from within the 
servlet itself.

Some version numbers:
- Java JDK 1.3.1
- Tomcat 3.3a
- Xalan 2.1.0
- Windows NT 4.0

Here's a sample of the XSLT I'm using to access the session:



http://www.w3.org/1999/XSL/Transform";
xmlns:xalan="http://xml.apache.org/xslt";
xmlns:java="http://xml.apache.org/xslt/java";
exclude-result-prefixes="java">













And a piece of the stack trace:
java.lang.IllegalAccessException
at java.lang.reflect.Method.invoke(Native Method)
at 
org.apache.xalan.extensions.ExtensionHandlerJavaPackage.callFunction(ExtensionHandlerJavaPackage.java:375)
at 
org.apache.xalan.extensions.ExtensionsTable.extFunction(ExtensionsTable.java:253)
at 
org.apache.xpath.functions.FuncExtFunction.execute(FuncExtFunction.java:141)
at org.apache.xpath.XPath.execute(XPath.java:260)
at org.apache.xalan.templates.ElemValueOf.execute(ElemValueOf.java:251)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2251)
at 
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2134)
at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1246)
at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:504)
at 
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1174)


Once again, the whole app works perfectly using JRun (same Java, same 
Xalan, etc...), so I don't think it's got to do with the XSLT or my 
servlet.  If anyone knows how to solve this problem, I'd appreciate it if 
they'd help me out!

Thanks in advance,
Wout Neirynck


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Struggling for one week please Help Help..................

2002-03-20 Thread Uma Munugala

Hi Jeff
   Actually in code I am returning boolean variable which either has true or
false, Iam not literally saying 
return boolean.


Thanks
Uma


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 6:27 AM
To: Tomcat Users List
Subject: RE: Struggling for one week please Help Help..



I would suspect that your "return boolean" line in your defineCFDatabase
method would be causing problems.



 

Uma Munugala


usion.com>   cc:

 Subject: RE: Struggling for
one week please Help  
03/19/02 05:45 PMHelp..

Please respond to

"Tomcat Users

List"

 

 





Hi Jim
   Thanks for replying
I tried the way you suggested but it does not work, it gives me same
problem.


Thanks
Uma

-Original Message-
From: James Williamson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 3:11 PM
To: Tomcat Users List
Subject: Re: Struggling for one week please Help Help..


Uma,

You've defined it the wrong way round, it should be:

public static boolean gDefaultConnectionIsOracle = false;

Regards,

James Williamson
www.nameonthe.net

- Original Message -
From: Uma Munugala <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 19, 2002 10:27 PM
Subject: Struggling for one week please Help Help..


> Hi
>
>
> I have written a servlet which implements SingleThreadModel
> and used already existing public static syncronized classes to access
> database.
> these classes were used for standalone application.
> does static synchronized has any problem with servlets
>
> when I deployment my servlet and try to  run it gives me error, its stack
> trace is below.
>
> when login reaches to access static synchronized class member or static
> synchronized class method Iam getting
> problem.
>
> Funny thing is sames servlet and same code works in java web server. Do I
> need to do some thing else in
> tomcat 4.0.4-b1 to make it work. I tried with tomcat 4.0.3 also.
> I have seen similar problem in archives but that work around does not work
> for me.
>
> __  Error _
>
> javax.servlet.ServletException: Invoker service() exception
> at
>
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
> :508)
> at
> org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:213)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:213)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:243)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> 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.ja
> va:190)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
> .java:475)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
>
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
> 46)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
> at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> )
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:170)
> at
>
org.apache.catalina.core.StandardPipeline.in

RE: Struggling for one week please Help Help..................

2002-03-20 Thread jeff . guttadauro


I would suspect that your "return boolean" line in your defineCFDatabase
method would be causing problems.



   

Uma Munugala   


usion.com>   cc:   

 Subject: RE: Struggling for one week 
please Help  
03/19/02 05:45 PMHelp..

Please respond to  

"Tomcat Users  

List"  

   

   





Hi Jim
   Thanks for replying
I tried the way you suggested but it does not work, it gives me same
problem.


Thanks
Uma

-Original Message-
From: James Williamson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 3:11 PM
To: Tomcat Users List
Subject: Re: Struggling for one week please Help Help..


Uma,

You've defined it the wrong way round, it should be:

public static boolean gDefaultConnectionIsOracle = false;

Regards,

James Williamson
www.nameonthe.net

- Original Message -
From: Uma Munugala <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 19, 2002 10:27 PM
Subject: Struggling for one week please Help Help..


> Hi
>
>
> I have written a servlet which implements SingleThreadModel
> and used already existing public static syncronized classes to access
> database.
> these classes were used for standalone application.
> does static synchronized has any problem with servlets
>
> when I deployment my servlet and try to  run it gives me error, its stack
> trace is below.
>
> when login reaches to access static synchronized class member or static
> synchronized class method Iam getting
> problem.
>
> Funny thing is sames servlet and same code works in java web server. Do I
> need to do some thing else in
> tomcat 4.0.4-b1 to make it work. I tried with tomcat 4.0.3 also.
> I have seen similar problem in archives but that work around does not work
> for me.
>
> __  Error _
>
> javax.servlet.ServletException: Invoker service() exception
> at
>
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
> :508)
> at
> org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:213)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:213)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:243)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> 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.ja
> va:190)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> at
>
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
> .java:475)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
>
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
> 46)
> at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at
> org.apache.ca

Re: Off Topic: Free J2EE IDE: Which one?

2002-03-20 Thread hanasaki

Let's start with; "have you done the research on the web?"
- jpda - "www.javasoft.com"
- reading the Tomcat Startup scripts
- jpda attaching in netbeans - The docs and dubug menus

Chris Pheby wrote:
> Can you give any more explicit instructions for how to do this?? It would be
> extremely useful!
> 
> Thanks in advance.
> 
> 
> 
> Chris
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> On Behalf Of hanasaki
> Sent: 19 March 2002 17:33
> To: Tomcat Users List
> Subject: Re: Off Topic: Free J2EE IDE: Which one?
> 
> 
> You can integrate Tomcat 4 yourself ;)
> 
> Change the startup scripts to support JPDA
> Attach with Netbeans
> For soruce debugging you will need to mount the Tomcat directories in
> your netbeans project
> 
> Chris Pheby wrote:
> 
>>I am using netbeans right now (for Servlets not J2EE). Tomcat 4
> 
> integration
> 
>>is not here yet, but in practice this has yet to prove a problem.
>>
>>The draft versions of the forthcoming "Using Netbeans" oreilly book are on
>>the netbeans site and really speeded learning the editor for me.
>>
>>
>>Chris.
>>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED]]
>>On Behalf Of Bing Zhang
>>Sent: 19 March 2002 16:35
>>To: '[EMAIL PROTECTED]'
>>Subject: Off Topic: Free J2EE IDE: Which one?
>>
>>
>>I am trying to use a free IDE to do J2EE development, mainly servlet and
>>EJB. The development will be on Windows NT/2000. Deployment is on linux.
>>Three tools come to my mind: Forte Java Community Edition (I am supprised
>>that almost nobody mention this tool), Eclipse from IBM and NetBean.
>>
>>I feel short time evaluation does not give me enough insight, though I
> 
> have
> 
>>downloaded both Forte and Eclopse. Hope anyone ever used the above tools
> 
> in
> 
>>real life give me some guidance. Any of the above tools let me debug
> 
> servlet
> 
>>or even EJB locally? How about remotely? Any other server I need to set up
>>beside the IDE to effectively do J2EE?
>>
>>
>>
>>Thanks,
>>
>>Bing Zhang
>>
>>
>>--
>>To unsubscribe:   
>>For additional commands: 
>>Troubles with the list: 
>>
>>
>>
>>
>>--
>>To unsubscribe:   
>>For additional commands: 
>>Troubles with the list: 
>>
>>
> 
> 
> --
> =
> = [EMAIL PROTECTED]  =
> = Spam : Unhealthy and High in Sodium and Cholesterol   =
> =
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 


-- 
=
= [EMAIL PROTECTED]  =
= Spam : Unhealthy and High in Sodium and Cholesterol   =
=


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Figuring out which Unix process is which

2002-03-20 Thread NIVET Rémi

Try /usr/ucb/ps auxww

Rémi.

le mar 19-03-2002 à 21:52, Yoav Shapira a écrit :
> Hi,
> We run multiple instance of tomcat using the same JAVA_HOME,
> so when we run a ps command (Solaris 2.8) we see a bunch
> of java processes, but can't tell which one is which instance
> of tomcat.  Does anyone have any ideas to help this problem?
> 
> It's not possible for us to run the processes as different 
> users, and the path is too long for the different CATALINA_OPTS
> to show through.  
> 
> I realize this may be more of a Unix question, but if anyone
> has suggestions, I'll be glad to hear them.  Thanks in advance,
> 
> Yoav Shapira
> Millennium Pharmaceuticals
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Upload file to email as attachment

2002-03-20 Thread Al Tingley

I haven't used jspSmartUpload, but you can certainly avoid writing then
reading a file by using a ByteArrayOutputStream; write the uploaded file
(that's already in an in-memory buffer) to a ByteArrayOutputStream, then use
that stream's "toByteArray()" method in the constructor of a
ByteArrayInputStream (this is what we had to do using O'Reilly's upload
tools, anyway).

Where do I find more about jspSmartUpload?
Regards,
Al Tingley


-Original Message-
From: Jason Webber [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 5:05 PM
To: [EMAIL PROTECTED]
Subject: Upload file to email as attachment


Right now I finally got the file uploading to work properly using
jspSmartUpload.  Now I need to have my servlet send an email with the file
as an attachment.  I believe I wont have a problem saving the file to disk
and then attaching it to an email.  However saving it to disk just to reread
from the disk to send as an attachment seems wasteful.  The files are only
about 30-50kb.  Has anyone done this or is there even a better way to do
this using somethign other than jspSmartUpload?

TIA


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




mod_webapp not loading servlets or jsp

2002-03-20 Thread matt


I'm running Apache 1.3.23 and Tomcat 4.0.3. I (apparently) set up mod_webapp 
successfully, but jsps and servlet still don't seem to work correctly over it. For 
example,

http://localhost:8080/examples/jsp/numguess.jsp works fine.
http://localhost:8080/examples/servlet/HelloWorldServlet works fine.
http://localhost/examples correctly goes to Tomcat for the page.

but,

http://localhost/examples/jsp/numguess.jsp gives me an internal server error from 
Apache. Can't find anything relevant in the logs. Anyone else have this problem? 
Anyone know how to go about debugging a situation like this?

Thanks,
Matt Belcher


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: multilple tomcat instances

2002-03-20 Thread Jean-Luc BEAUDET

Chris Ruegger a Ýcrit :

> I need to run multiple tomcat instances on a single machine each on a different port.
> Is there some documentation out there that explains how to configure this?
> Thanks!

Well.

The basic document give some interresting clues for it.

But i give yu some informations i sent to someone else.




Well yu can do some instances of Tomcat.
It works well.

All yu have to do it's to define different CATALINA_BASE directories and to build them
as the master.

i.e:

assume the first one by /web/Tomcat1
copy $CATALINA_HOME/conf in /web/Tomcat1/conf
create /web/Tomcat1
./logs
./work
./webapps

configure the /web/Tomcat1/Conf/server.xml

# yu set a port <> than other
../..



  
  

 than other
   enableLookups="true" appBase="webapps"
   acceptCount="10" debug="0"/>


mailto:[EMAIL PROTECTED]>
For additional commands: 
Troubles with the list: 




RE: Tomact + apache + warp (mod_webapp) + SSL

2002-03-20 Thread Anthony Eden

I can say that it works for the default client (i.e. not using virtual
servers) as I have it running this way right now with Tomcat 4.0.1 on
Linux RedHat 6.1.  I followed the instructions for building mod_webapp
on RedHat (which was slightly complicated because I was missing a couple
required libraries).  Once I got past the build it worked fine.

I would've preferred not having Apache in the loop, but I was unable to
get Tomcat to work with my Thawte certificate and thus had to use
Apache.

Sincerely,
Anthony Eden

> -Original Message-
> From: Ernst Bekker [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, March 20, 2002 6:43 AM
> To: 'Tomcat Users List'
> Subject: RE: Tomact + apache + warp (mod_webapp) + SSL
> 
> 
> Similar problem here, if all the content comes from Tomcat it 
> works fine. Servlet html that referenced image urls on apache 
> caused apache to die. 
> --
> 
> 
> Hi.
> I have the same problem as you.
> Tomcat4.0 and mod_webapp with SSL it seems to be a taboo 
> topic. There isn't any information.
> 
>   
> 
> [EMAIL PROTECTED] wrote:
> 
> >Hi all
> >
> >Does any one have an idea how to make mod_webapp work properly with a
> apache
> >mod_ssl vitual server?
> >
> >Here is the scenario:
> >
> >I have a web application that can run in either native tomcat or with
> apache
> >as a fron end. I use mod webapp to provide a mapping of the 
> application 
> >to the apache server (ala old style JServ) and then it talks 
> to tomcat 
> >on port 8008. I was under the impression that this is how it works:
> >
> >apache gets a request for a "mapped" web application so that 
> it looks 
> >like
> >this: https://somehost/app? on the client end, picks up the
> >app-data and then shoves it down port 8008 on localhost 
> (thats where the
> >warp connector is told to go) and then returns the data to 
> the client via
> >SSL. SO it would look like this:
> >
> >client <--- HTTPS  ---> Apache <-- warp connection to 
> locahost:8008 --> 
> >tomcat
> >
> >Is this possible or am I better of running native tomcat on port 443 
> >and
> not
> >bother with apache at all?
> >
> >regards
> >Tomasz Ciolek
> >
> >--
> >Tomasz M. Ciolek
> >Systems Administrator - CSIRO Entomology
> >Phone: 02-62464391 * Fax: 02-62464000
> >
> >
> >--
> >To unsubscribe:   
> >For additional commands: 
> >Troubles with the list: 
> >
> >
> >
> 
> --
> -
> Gabriel Lopez Millan - Grupo ANTS-CIRCuS
> Facultad de Informática
> Universidad de Murcia (España) Tfo: +34 968367645
> 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> Confidentiality Caution and Disclaimer
> 
> This message and/or any attachment thereto ("the message") 
> contains privileged and confidential information intended 
> only for the recipient named above.  
> If you are not the intended recipient of this message, 
> please erase it permanently once you have notified the 
> sender, per return e-mail, that you have received the 
> message in error.
> Unless the sender is duly authorised by either the Telesure 
> Group, or any of its subsidiary companies or I.S Services 
> ("the Group") to send this message and unless the content 
> of this message is also duly authorised by the Group, any 
> views expressed in this message are those of the individual 
> sender and the Group will not accept liability therefore, 
> nor for any consequential damage arising therefrom.
> Any recipient of an unacceptable communication, a chain 
> letter or offensive material of any nature is requested 
> to report it to [EMAIL PROTECTED]
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: multilple tomcat instances

2002-03-20 Thread Ralph Einfeldt


The attached document was provided by
Robert Walther [[EMAIL PROTECTED]]
some day ago. (March 15th)

> -Ursprüngliche Nachricht-
> Von: Chris Ruegger [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 20. März 2002 14:31
> An: Tomcat Users List
> Betreff: multilple tomcat instances
> 
> 
> I need to run multiple tomcat instances on a single machine 
> each on a different port.
> Is there some documentation out there that explains how to 
> configure this?
> Thanks!
> 
> 



MULTIP~1.DOC
Description: MULTIP~1.DOC

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


Re: automatic loading..

2002-03-20 Thread James Williamson


> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
>
> Well the best way for yu is just to install the manager features.
>
> That's exactly what for it was made.
>
> Hope this help.
>
> Jean-Luc B :O)

Although the manager 'install webapp feature' doesn't work with mod_webapp
unless you
restart Apache.

Regards,

James Williamson
www.nameonthe.net


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




  1   2   >