Tomcat 5.0.14: error in opening zip file

2003-11-07 Thread Gerry Reno
Receiving error:
INFO: Installing web application at context path /jetspeed from URL
file:/usr/local/jakarta-tomcat/webapps/jetspeed
java.util.zip.ZipException: error in opening zip file

Env:
RedHat Linux 8.0
Tomcat 5.0.14




=
Gerry Reno
mailto: grenoml at@ yahoo dot. com
(if mail bounces please retry later - spam rapidly fills up mailbox)

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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



Solaris Compile issues

2003-11-07 Thread Steve Gums
Tomcat Users

This is a difficult problem to explain so please bare with me.

I have two Solaris Machines

my development machine is a Blade 150 running Solaris 5.8
other notes about this machine are...
ant 1.5.1
java 1.4.1
tomcat 4.1.12

And my production server which is a Sun Fire 280 running 5.9
with...
tomcat 4.1.29
java 1.4.2
ant 1.5.4

Now here is problem.  If I compile the webapps tree on my development
machine all is well.
If I compile it on my production machine... errors  The error indicates that
I have the wrong parameters for my class method, but this is not the case as
demonstrated by it's operational status on my other machine.  The code is
identical.

I have tried about every path issue I could and nadda.
In desperation I tried moving the /usr/local/webapps/vkey (vkey is my webapp
if that wasn't obvious) from my dev machine to production, and guess what
the errors are gone.

I can also make a WAR on my dev machine and it works fine on my production.
But again if I try to compile the source on my production machine .. no go.

The build files are identical except for system name.  I did notice that the
.class file size was different when compiled on my production machine vs. my
dev machine. Reason for this, I am not sure. I don't want to suffice with
only being able to compile on one machine.  In the case of an upgrade or
crash, I need to be aware of what is causing this issue.  Any help would be
appreciated.

I don't think anyone would want to see all my files.. please specify if you
would like to see any and I will be happy to respond with it.

Thanks ahead of time.

Steve Gums
[EMAIL PROTECTED]


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



Re: Tomcat standalone vs Tomcat with IIS

2003-11-07 Thread Bill Barker

<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi there,
>
> We have a web application(non-J2EE), which interacts with JTS layer that
in
> turn talks to the Database(SQL). Now this application was earlier hosted
in
> iPlanet which we now want to shift to Tomcat (Tomcat 4.1.27 with JDK
> 1.4.2).
>
> What i am confused about is that would it be better to have a web-server
> like IIS (as per clients req) interfacing Tomcat or can we do with a
> standalone implementation of TOMCAT?? Our userbase would be close to 1600
> with upto 300 concurrent users. The static content is not much and the web
> interface is almost entirely comprised of JSPs.
>
> I have read the archives available on the net regarding the advantages and
> disadvantages of using APACHE and TOMCAT vs TOMCAT-standalone, but still i
> wanted to get the information specific to IIS.
> Any help is highly appreciated..
>

I don't use IIS myself, but the issues are much the same as they are for
Apache.  Since you've read them, I won't re-hash them here.  The only
IIS-specific thing I could mention is that the support for
isapi_redirector.dll bugs is close to that for mod_jk.

> Thanks and regards,
> Ashish Gadre
> Polaris Software Labs
> Tel : +91-022-28290019 Extension-1188
>
>
>






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




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



Re: Problems with HTTPS in Tomcat 4.1.27, axis 1_1RC2, & JDK 1.4.1 on AIX UNIX

2003-11-07 Thread Bill Barker

"Curtis Leach" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Has anyone any experience with this?

See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22701.  The 'cc' list
for that one is so big that it is almost it's own mailing-list ;-).

>
> I have a small web service set up as a demo that works just fine under
HTTP,
> but when I attempt to connect via HTTPS, it craps out after the 3rd hit
and
> continuously returns the following exception until Tomcat is rebooted:
>java.rmi.RemoteException
> With the following message associated with it:
>(0)null
>
> (HTTP continues to work without problems.  Even after HTTPS gives up the
> ghost!)
>
> catalina.out shows the following for every HTTPS hit once the 1st error
> occurs:
>
> Nov 7, 2003 3:27:55 PM
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler
> processConnection
> SEVERE: Error reading request, ignored
> org.apache.commons.logging.LogConfigurationException:
> org.apache.commons.logging.LogConfigurationException:
> org.apache.commons.logging.LogConfigurationException: Class
> org.apache.commons.logging.impl.Jdk14Logger does not implement Log
> at
>
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
> va:532)
> at
>
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
> va:272)
> at
>
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
> va:246)
> at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
> at
> org.apache.tomcat.util.net.jsse.JSSESupport.(JSSESupport.java:87)
> at
>
org.apache.tomcat.util.net.jsse.JSSE14Support.(JSSE14Support.java:99)
> at
>
org.apache.tomcat.util.net.jsse.JSSE14Factory.getSSLSupport(JSSE14Factory.ja
> va:84)
> at
>
org.apache.tomcat.util.net.jsse.JSSEImplementation.getSSLSupport(JSSEImpleme
> ntation.java:118)
> at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
> ction(Http11Protocol.java:385)
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
> at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
> a:619)
> at java.lang.Thread.run(Thread.java:568)
> Caused by: org.apache.commons.logging.LogConfigurationException:
> org.apache.commons.logging.LogConfigurationException: Class
> org.apache.commons.logging.impl.Jdk14Logger does not implement Log
> at
>
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
> mpl.java:416)
> at
>
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
> va:525)
> ... 11 more
> Caused by: org.apache.commons.logging.LogConfigurationException: Class
> org.apache.commons.logging.impl.Jdk14Logger does not implement Log
> at
>
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
> mpl.java:412)
> ... 12 more
>
> Any suggestions?  The following is the https section from my server.xml
> file.  It took digging through the 5.0 documentation also before I could
> even get HTTPS to work for TC 4.1.27.  Seems IMB's JVM for JDK 1.4 has a
few
> twists to it that aren't documented until TC 5.0.  And I'm real leery
about
> upgrading to a beta release (TC 5.0) unless I have to.
>
> 
> port="8023" minProcessors="5" maxProcessors="75"
>enableLookups="true"
>acceptCount="100" debug="0" scheme="https" secure="true"
>useURIValidationHack="false" disableUploadTimeout="true">
>className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
>algorithm="IbmX509"
>clientAuth="false" protocol="SSL" />
> 
>
> The server code being called.  As you can see I just added outMsg & the
> return value to the PortImpl.java stub that the axis WSDL2Java generated.
>
> public java.lang.String testInterface(java.lang.String string)
> throws java.rmi.RemoteException
> {
> String outMsg = System.getProperty ("java.vm.name") + " JDK " +
> System.getProperty ("java.vm.version") +
> " - " + System.getProperty ("user.name") +
> "   (" + string + ")";
> return outMsg;
> }
>
> Curtis
>
>






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




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



Re: Error Importing Digital Certificate

2003-11-07 Thread Bill Barker

<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> I am running two web servers on the same Linux machine. 1) is running
> Apache 1.3.23 (Unix) and 2) Jakarta-Tomcat-4.1.24. I have been able to
> successfully import and configure a Digital Certificate from Verisign into
> the Apache web server. When I attempt to import the Digital Certificate
> into the keystore for Tomcat I receive the following error message:
>
> keytool error: java.lang.Exception: Public keys in reply and keystore
> don't match
>
> Here are the steps that I have been following:
>
> To generate the original csar:
>
> # openssl req -new -nodes -keyout private.key -out public.csr
> # openssl rsa -in private.key -des3 -out secureprivate.key
>
> To import the file into Tomcat I did the following:
>
> # keytool -genkey -alias tomcat -keyalg RSA
> (This created the keystore in the home directory)

The private-key in the keystore has to match the public key in the cert.
Doing this means that they won't match.  You should either generate the CSR
using keytool (it sounds like it is too late for that :), or look at the
Tomcat 5 "SSL Howto" for an example of importing an openssl cert.

>
> # keytool -import -alias root -keystore .keystore \-trustcacerts
>   -file /etc/httpd/ssl.crt/intermediate.crt
> (The chain certificate from Verisign)
>
> # keytool -import -alias tomcat -keystore .keystore -trustcacerts -file
> /etc/httpd/ssl.crt/server.crt
> Enter keystore password:  changeit
>
> keytool error: java.lang.Exception: Public keys in reply and keystore
> don't match
>
>
> What am I doing wrong? Do I need to follow a different procedure for
Tomcat?
> Any help would be appreciated.
>
> -- 
> Joseph A Rickard
> System Administrator
> Best Value Technology Inc.




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



RE: Mod JK2 - load balancing - sessions

2003-11-07 Thread inaminute
Quoting Brett Neumeier <[EMAIL PROTECTED]>:

First thanks for your extensive answer.

I was missing the server.xml setting part, that is the jvmRoute attribute, i.e.:


well reading the following comment could have help ;)



With Apache Tomcat/4.1.29 this leads to the extended jsessionid you describe:

0928DE35C1F410D99ABDD4E7A6FA65F6.192.168.1.12:8009

although it did not with one of my older Tomcat instance
jakarta-tomcat-4.1.24-LE-jdk14, which I upgraded to 4.1.29.

Now dealing with two Tomcat/4.1.29 in a group I do not loose sessions anymore
but I am always directed to the same Tomcat instance !

I could successfully force "hot" switching to the unused one by modifiying the
workers2.properties to disable the used channel, setting disabled=1, adding an
increment to attribute ver (not version !) and accessing /jkstatus

This is fine for managing web applications upgrade / maintenance without
application service disruption (I am happy with it), but does not seems to do
Round Robbin load balancing as expected.

Here is my workers2.properties for review, (I am brand new to this JK thing)

# To uncomment while in production
[logger.apache2]
level=DEBUG

[config:]
file=/usr/local/apache2/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

# Alternate file logger
#[logger.file:0]
#level=DEBUG
#file=${serverRoot}/logs/jk2.log

[shm]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=/usr/local/apache2/logs/jk2.shm
size=1048576
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0
# Default Native Logger (apache2 or win32 ) 
# can be overriden to a file logger, useful 
# when tracing win32 related issues
#logger=logger.file:0

[lb:lb]
info=Default load balancer.
debug=0

[lb:lb_1]
info=A second load balancer.
debug=0

[channel.socket:localhost:8009]
info=A first channel to tomcat instance on local host
debug=0
tomcatId=localhost:8009
lb_factor=30
group=lb
disabled=0
ver=0

[channel.socket:192.168.1.12:8009]
info=A second channel to tomcat instance on sanbox host
debug=0
tomcatId=192.168.1.12:8009
lb_factor=70
group=lb
disabled=0
ver=0

[status:]
info=Status worker, displays runtime informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

[uri:mill.789.ch/*]
info=mill virtual host
context=/adhoc-crm
group=lb
debug=0

[uri:sandbox.789.ch/*]
info=sandbox virtual host
context=/adhoc-crm
#group=lb_1
group=lb
debug=0


> > The problem is that I have the same behaviour when I simply 
> > reload my page in
> > the same Browser instance, jumping from one Tomcat instance 
> > to the other as if
> > no javax.servlet.http.HttpSession was defined (jsessionid).
> 
> I haven't used JK2, but I know how this works with JK(1) and I think it's
> more or less the same thing.  
> 
> Some configuration has to be done in JK2, and other configuration has to be
> done in the tomcat instances that are being balanced.
> 
> The way that sticky sessions work is that the JSESSIONID cookie value
> provided by Tomcat includes an indicator of which Tomcat instance set the
> cookie.  The JK (or JK2) connector looks at this indicator to decide which
> instance should handle new requests.  That's pretty simple, right?
> 
> In JK2, according to the documentation, there is a "tomcatId" attribute for
> channel.socket configuration stanzas.  This attribute is automatically set to
> the local name part of the channel.socket name.  So suppose you have a socket
> channel going to a tomcat instance on host flubber.foo.com, port 8080.  You
> name the channel:
> 
> channel.socket:flubber.foo.com:8080
> 
> And the tomcatId gets set to flubber.foo.com:8080 unless you change that
> explicitly.  This is the JK2 part of the sticky session configuration.
> 
> Now you go to the server.xml configuration file for the tomcat running on
> flubber.foo.com, port 8080.  In the Engine element, you set the attribute
> jvmRoute to "flubber.foo.com:8080".  When that Tomcat instance sets a
> JSESSIONID cookie, the value will be something like:
> 
> 0928DE35C1F410D99ABDD4E7A6FA65F6.flubber.foo.com:8080
> 
> Now when the next request comes in from that browser this JSESSIONID cookie
> value will be sent in the request.  JK2 will look at the flubber.foo.com:8080
> part of the value, realize that it needs to send the request through that
> channel, and voila, server affinity just like magic!
As a natural french speeker I was pleased to read that "voilà" =:o)

> 
> Does that make sense?
> 
> It might help other people with the same problem if you report back whether
> this works or not.  Like I said, I haven't used JK2 so I don't know for
> sure.
> 
I use: jakarta-tomcat-connectors-jk2-2.0.2-src compiled on Linux RedHat 9.0, I
will do further testing/reading next week and report anything new that might
come out.

Regards, Patrick

> 
> Cheers,
> 
> bn
> 
> --

Re: Mod JK2 - load balancing - sessions

2003-11-07 Thread inaminute
Quoting [EMAIL PROTECTED]:

> There is a configuration parameter for the load balancer called
> "stickySession", but it should be enabled by default.
Indeed it seems with respect to further testing I did without setting it.

>  You might want to
> try setting it and seeing if it makes any difference.  The configuration
> options are described at
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.html.
> 
> Are you sure the jsessionid cookie is set?
Yes

> 
> Jonathan
Thanks for the link, especially the channel.socket section stating:
"Tomcat Engine must be set with jvmRoute="HOST:PORT", to match the default
tomcatId of the channel."

Patrick





> 
> On Fri, 7 Nov 2003 [EMAIL PROTECTED] wrote:
> 
> >
> >I am testing load balancing configurations with two Tomcat instances on
> two
> >different hosts.
> >
> >The Round Robbin dance works fine: when I connect with several seperate
> Browsers
> >instances I get approximately 50% time on one Tomcat instance or the
> other.
> >
> >The problem is that I have the same behaviour when I simply reload my page
> in
> >the same Browser instance, jumping from one Tomcat instance to the other as
> if
> >no javax.servlet.http.HttpSession was defined (jsessionid).
> >
> >I suspect some configurations are required to enable jk2 to keep trace of
> >javax.servlet.http.HttpSession but I did not find out how.
> >
> >I use Apache 2.0.48 - Tomcat 4.1.29 - jk2-2.0.2 on RedHat Linx 9.0
> >
> >Any hints or pointing to doc welcome
> >
> >Patrick
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



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



RE: Exception at Tomcat startup

2003-11-07 Thread Rishikesh Tembe
Actually, I had the  entry for ControlServlet twice in web.xml,
which was the source of the exception. It works fine now.. Thanks!!

On Sat, 8 Nov 2003 03:26:02 +0200, "Schalk" <[EMAIL PROTECTED]> said:
> Het there
> 
> You may want to have a look at this line in your web.xml:
> Child name 'ControlSer vlet' is not unique
> 
> It seems that is should say ControlServlet and not ControlSer vlet
> 
> Kind Regards
> Schalk Neethling
> Web Developer.Designer.Programmer.CEO
> Volume4.Development.Multimedia.Branding
> emotionalize.conceptualize.visualize.realize
> Tel: +27125468436
> Fax: +27125468436
> email:[EMAIL PROTECTED]
> web: www.volume4.co.za
>  
> This message contains information that is considered to be sensitive or
> confidential and may not be forwarded or diclosed to any other party
> without
> the permission of the sender. If you received this message in error,
> please
> notify me immediately so that I can correct and delete the original
> email.
> Thank you. 
ciao,
Rishi
-
"Let's think the unthinkable, let's do the undoable, let's prepare to
grapple with the ineffable itself... And see if we may not eff it after
all."

-- 
http://www.fastmail.fm - Accessible with your email software
  or over the web

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



jsp compile fails due to thread creation failure

2003-11-07 Thread Giuliano Carlini
A client is having a problem. After deploying, some jsp compiles because the 
compilation thread created fails.

This on Sun's Linux, Sun JDK 1.4.01 with roughly 60-70 threads in the process, 1.5G 
java heap, lots of heap available. The same code on Solaris works fine. I'm waiting 
for a reply from my client on the version of Linux and in particular the kernel 
version. The same code also works fine on the IBM JDK on Linux.

>From what I can tell, Linux 2.2 had a 254 threads/process limit, and 2.4 4000, so we 
>shouldn't be having this problem. At least, not with 60-70 threads.

Now, we plan on precomiling JSP's, so the immediate issue isn't too big a deal. 
However, being restricted to 60-70 threads is a problem.

Anyone have any info?

Thanks,

Giuliano



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



RE: Exception at Tomcat startup

2003-11-07 Thread Schalk
Het there

You may want to have a look at this line in your web.xml:
Child name 'ControlSer vlet' is not unique

It seems that is should say ControlServlet and not ControlSer vlet

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.CEO
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or diclosed to any other party without
the permission of the sender. If you received this message in error, please
notify me immediately so that I can correct and delete the original email.
Thank you. 

:: -Original Message-
:: From: Rishikesh Tembe [mailto:[EMAIL PROTECTED]
:: Sent: Saturday, November 08, 2003 3:09 AM
:: To: [EMAIL PROTECTED]
:: Subject: Exception at Tomcat startup
:: 
:: Hi experts,
:: 
:: This is the display I get when I start up Tomcat v4.1.27. As you can see
:: an InvocationTargetException gets thrown. I did not make any changes
:: anywhere. What could be the cause?
:: Is this a known bug? I couldn't find a similar bug in BugZilla...
:: 
:: ---
:: Nov 7, 2003 4:51:28 PM org.apache.commons.modeler.Registry loadRegistry
:: INFO: Loading registry information
:: Nov 7, 2003 4:51:29 PM org.apache.commons.modeler.Registry getRegistry
:: INFO: Creating new Registry instance
:: Nov 7, 2003 4:51:30 PM org.apache.commons.modeler.Registry getServer
:: INFO: Creating MBeanServer
:: Nov 7, 2003 4:51:32 PM org.apache.coyote.http11.Http11Protocol init
:: INFO: Initializing Coyote HTTP/1.1 on port 8080
:: Starting service Tomcat-Standalone
:: Apache Tomcat/4.1.27
:: Nov 7, 2003 4:51:35 PM org.apache.commons.digester.Digester endElement
:: SEVERE: End event threw exception
:: java.lang.reflect.InvocationTargetException
:: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
:: at
::
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
:: java:39)
:: at
::
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
:: sorImpl.java:25)
:: at java.lang.reflect.Method.invoke(Method.java:324)
:: at
::
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.jav
:: a:252)
:: at
:: org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
:: at org.apache.commons.digester.Rule.end(Rule.java:276)
:: at
::
org.apache.commons.digester.Digester.endElement(Digester.java:1058)
:: at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
:: Source
:: )
:: at
::
org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown
:: Source)
:: at
::
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
:: S
:: ource)
:: at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
:: Source)
:: 
:: at
::
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
:: Unknown Source)
:: at
::
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
:: Dispatcher.dispatch(Unknown Source)
:: at
::
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
:: known Source)
:: at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
:: Source)
:: at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
:: Source)
:: at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
:: at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
:: Source)
:: at org.apache.commons.digester.Digester.parse(Digester.java:1548)
:: at
::
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
:: nfig.java:282)
:: at
::
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
:: 9)
:: at
::
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
:: g.java:243)
:: at
::
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
:: eSupport.java:166)
:: at
::
org.apache.catalina.core.StandardContext.start(StandardContext.java:3
:: 568)
:: at
::
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
:: 
:: at
::
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
:: at
::
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
:: 
:: at
::
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
:: )
:: at
::
org.apache.catalina.core.StandardService.start(StandardService.java:4
:: 97)
:: at
::
org.apache.catalina.core.StandardServer.start(StandardServer.java:219
:: 0)
:: at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
:: at
:: org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
:: at
:: org.apache.catalina.startup.Catal

Exception at Tomcat startup

2003-11-07 Thread Rishikesh Tembe
Hi experts,

This is the display I get when I start up Tomcat v4.1.27. As you can see
an InvocationTargetException gets thrown. I did not make any changes
anywhere. What could be the cause? 
Is this a known bug? I couldn't find a similar bug in BugZilla...

---
Nov 7, 2003 4:51:28 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Nov 7, 2003 4:51:29 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Nov 7, 2003 4:51:30 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Nov 7, 2003 4:51:32 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
Nov 7, 2003 4:51:35 PM org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.jav
a:252)
at
org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source
)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown
Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
S
ource)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
Source)

at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
nfig.java:282)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
9)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3
568)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
)
at
org.apache.catalina.core.StandardService.start(StandardService.java:4
97)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:219
0)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: java.lang.IllegalArgumentException: addChild:  Child name
'ControlSer
vlet' is not unique
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:815)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
7)
at
org.apache.catalina.core.StandardContext.addChild(StandardContext.jav
a:1340)
... 39 more
Nov 7, 2003 4:51:37 PM org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=tru
e
Nov 7, 2003 4:51:37 PM org.apache.struts.util.PropertyMessageResources

I

RE: Deploying a WAR file referenced by a Context configuration .XML file

2003-11-07 Thread Jacob Kjome
At 02:58 PM 11/7/2003 -0500, you wrote:
> What version of Tomcat are you using?

4.1.27
Mine behaved as you described UNTIL I explicitly referenced the .war file 
in the docbase attribute.
Do a little test.  Try doing context.getRealPath("/") and tell me if that 
returns null or not.  If it doesn't return null, then, things have either 
changed in recent 4.1.xx versions or there is different behavior when 
pointing to a .war file outside a host's appBase.  If it does return null, 
then the app is truly being served from the .war file, not from an 
"exploded" directory.

Jake 

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


Re: How to persist web-app properties across restarts ?

2003-11-07 Thread Harry Mantheakis
Hello

Here is some stuff that works for me when it comes to *loading* (reading)
properties from (usually) a servlet init method...


public void init( ServletConfig config ) throws ServletException {

super.init( config );

String dbDriver = null;
String dbURL= null;
String username = null;
String password = null;

Properties props = new Properties();
ServletContext context = config.getServletContext();
String path = "/WEB-INF/classes/props/my_props.txt";

InputStream in = context.getResourceAsStream( path );
if( in != null ) {
try {
props.load( in );
dbDriver = props.getProperty( "dbDriver", "null" );
dbURL= props.getProperty( "dbURL","null" );
username = props.getProperty( "username", "null" );
password = props.getProperty( "password", "null" );
... // Read other values.
} catch ( IOException e ) {
... // Set default values or handle exception.
} finally {
try { in.close(); } catch ( IOException ignore ) {}
}
} else { 
... // Set default values.
}

} // method


The 'my_props.txt' properties file would contain the following name-value
pairs:

dbDriver = oracle.jdbc.driver.OracleDriver
dbURL= jdbc:oracle:thin:@123.123.123.123:1521:xyz
username = myusername
password = mypassword

The API for the 'java.util.Properties.load' method has a full description
how to write a suitable property file.

It would be easy enough to write out a property file - from (say) a servlet
destroy method - which could be loaded as above.

You are probably right about using the temp directory provided by the
ServletContext: it is the only way to *write* stuff that I can think of, but
beware that the specification does not say anything about temp files being
saved between invocations!

Good luck.

Harry Mantheakis
London


> thanks, but the whole point of this is to persist a property across restarts -
> whether they be the entire VM or just the web-app.
> 
> Is there a consistent wat to persist property information for the web-app to
> the filesystem, in the same way that sessions can be
> persisted ?
> I know that the servlet spec requires the ServletContext to provide a tempdir,
> so I will probably try serializing my properties to a
> file in that dir.
> 
> 
> 
> 
>> -Original Message-
>> From: Jacob Kjome [mailto:[EMAIL PROTECTED]
>> Sent: Friday, November 07, 2003 2:17 PM
>> To: Tomcat Users List
>> Subject: Re: How to persist web-app properties across restarts ?
>> 
>> 
>> 
>> Put a singleton helper class in a parent classloader such as in shared or
>> common Tomcat classloaders and manipulate collections there.  They will
>> exist as long as the JVM (and Tomcat) is running.
>> 
>> Otherwise, you should also be able to use stuff like System.setProperty().
>> 
>> Jake
>> 
>> At 01:51 PM 11/7/2003 -0500, you wrote:
>> 
>>> I am looking for the most standard and lightweight way to persist some
>>> properties about a web application across restarts of the web
>>> application or the entire server.
>>> Something like the ServletContext.setAttribute() method, but with the
>>> persistence ability that you get from Http sessions would be
>>> perfect.
>>> I am using this for a management servlet that can indicate to load
>>> balancing software that traffic needs to be directed away from a
>>> given tomcat instance when it's in a certain state, and the management
>>> servlet needs to remember what state it was last in when it's
>>> application is restarted. Because it's used in monitoring I don't want any
>>> dependancies on external data stores other than simple
>>> file system.
>>> 
>>> Thanks
>>> 
>>> Steph


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



Re: Tomcat -- startup question

2003-11-07 Thread Jean-Francois Arcand
Avoid putting space in the installation folder or define catalina home 
using quote.

Use D:\Tomcat4.1 instead (less pain)

-- Jeanfrancois

Gopalakrishnan. Govindakrishnan wrote:

Hi:

   Anyone know why do I get this error during startup?

D:\Tomcat 4.1\bin>catalina run
Press any key to continue . . .
"... from setclasspath.bat ..."
Using CATALINA_BASE:   D:\Tomcat 4.1\
Using CATALINA_HOME:   D:\Tomcat 4.1\
Using CATALINA_TMPDIR: D:\Tomcat 4.1\\temp
Using JAVA_HOME:   d:\jdk1.4
Exception in thread "main" java.lang.NoClassDefFoundError: 4/1"
Press any key to continue . . .
"... from catalina.bat ..."


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



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


RE: Slow response times -- Fixed!!

2003-11-07 Thread Turansky, Mark
either 
enableLookups="false"
or
tcpNoDelay="true"

fixed the lag issue I was having.  My applications are fast now to internal network 
users.

-Original Message-
From: David Rees [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 3:24 PM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: Slow response times


On Wed, November 5, 2003 at 9:14 am, Turansky, Mark wrote:
> Tomcat 4.1.27 is running in my company's DMZ.
>
> Users external to my company's network see the normal, fast response times
> from Tomcat.  On my cable modem at home, it is very fast to respond.
>
> Users internal to my company's network (behind our firewall) see very slow
> response times, often several seconds.  On my desktop in the office, it is
> very slow.
>
> This happens with Tomcat running on port 8080 and port 80.
>
> This problem does *not* occur with websites on IIS in our DMZ.  It does
> not occur with Tomcat inside our firewall in a development environment.
>
> any idea why this lag would occur?  Any known issues regarding Tomcat and
> firewalls?

Try setting enableLookups to false in your connectors.  It defaults to
true in the default server.xml, but I think it should probably default to
false.

-Dave

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


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



error-page redirection

2003-11-07 Thread Raju . X . Lokhande
Hello everyone,
 I am trying to display an error page if user enters a wrong number. The
number has to be between 1 an d 10. I get following error:
type Exception report


message


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


exception
LuckyException
 at LuckyNumber1Servlet.validate_number(Unknown Source)
 at LuckyNumber1Servlet.doGet(Unknown Source)
 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

Folks, I tried various ways to fix this issue. spent many hours searching
thru books and internet, but could not find a way out.
Can someone please point out the bug here?
Thanks
Raju Lokhande
*
Here is my servlet code:
import java.io.*;
import java.util.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;

/**
 * This is a simple example of an HTTP Servlet.  It responds to the GET
 * method of the HTTP protocol.
 */
public class LuckyNumber1Servlet extends HttpServlet
  {

private int inp_int;
  public void init() throws ServletException {
  ServletContext servletContext = getServletContext();
  servletContext.setAttribute("ServletTotal", new
Integer(0));

  } // end of init


  public void validate_number(String in_str) throws LuckyException {

inp_int = Integer.parseInt( in_str );

if ( inp_int < 1 || inp_int > 10 )
throw new LuckyException();

  }
public void doGet (HttpServletRequest request,
   HttpServletResponse response)
throws ServletException, IOException {

  response.setContentType("text/html");
  response.setBufferSize(8192);
  PrintWriter out = response.getWriter();

  // then write the data of the response
  out.println("" +
  "Hello");

   // then write the data of the response
  out.println("" +
 "" +
 "My lucky number is 7. What's yours?" +
 "" +
 "" +
 "" +
 "" +
 "" +
 "");

String lnumber = request.getParameter("lnumber");

Integer SessionTotal;
int temp_int;

if ( lnumber != null && lnumber.length() > 0 ) {

  try {
   validate_number( lnumber );
  }
  catch ( LuckyException not_ignored) {
response.resetBuffer();
throw  new ServletException( not_ignored ) ;
  }

  HttpSession session = request.getSession( true );

  synchronized(session) {
SessionTotal =
(Integer) session.getAttribute
( "SessionTotal");

if ( SessionTotal == null )
  SessionTotal = new Integer(0);

temp_int =  SessionTotal.intValue() ;
int temp_count = temp_int + Integer.parseInt(
lnumber);

Integer temp_integer = new Integer( temp_count);

session.setAttribute ( "SessionTotal", temp_integer
);
}

ServletContext servletContext = getServletContext
();

Integer ServletTotal =
  (Integer) servletContext.getAttribute
("ServletTotal");

if ( ServletTotal == null )
  ServletTotal = new Integer( 0 );

int temp_int2 =  ServletTotal.intValue() ;
int temp_count2 = temp_int2 + Integer.parseInt(
lnumber);
Integer temp_integer2 = new Integer( temp_count2 );
servletContext.setAttribute("ServletTotal",
temp_integer2);

RequestDispatcher dispatcher =
   getServletContext().getRequestDispatcher
("/lucky2");

if (dispatcher != null)
  dispatcher.include(request, response);

  }
  out.println("");
  out.close();
} // end of doGet().

public String getServletInfo() {
return "The LuckyNumber1Servlet servlet types a number.";

}
 } // end of class LuckyNumber1Servlet

*LuckyException.java ***
import javax.servlet.*;
public class LuckyException extends ServletException {

public LuckyException () { }

   /*
public LuckyException (String msg) {
super(msg);
}
   */
}
*web.xml file under /appication-context/web/WEB-INF
***

http://java.sun.com/xml/ns/j2ee"; xmlns:xsi

RE: Deploying a WAR file referenced by a Context configuration .X ML file

2003-11-07 Thread Larson, Kirk
I changed the docBase from "/sharedsetup" to "/sharedsetup.war".  When
Tomcat started, I found the war file exploded in the "work" directory as you
described.  However, anytime I try to display a JSP page I receive an error.
Did you have to make any other changes (configuration,etc) when you made the
change to the Context definition to explicitly reference the .war file?



Error received 


2003-11-07 14:33:01 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
[javac] javac: invalid argument: D:\apps\Tomcat
[javac] Usage: javac  
[javac] where possible options include:
[javac]   -gGenerate all debugging info
[javac]   -g:none   Generate no debugging info
[javac]   -g:{lines,vars,source}Generate only some debugging info
[javac]   -OOptimize; may hinder debugging or
enlarge class file
[javac]   -nowarn   Generate no warnings
[javac]   -verbose  Output messages about what the
compiler is doing
[javac]   -deprecation  Output source locations where
deprecated APIs are used
[javac]   -classpath  Specify where to find user class
files
[javac]   -sourcepath Specify where to find input source
files
[javac]   -bootclasspath  Override location of bootstrap class
files
[javac]   -extdirsOverride location of installed
extensions
[javac]   -d Specify where to place generated
class files
[javac]   -encoding   Specify character encoding used by
source files
[javac]   -target  Generate class files for specific VM
version




at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:130)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
93)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
73)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
90)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java: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:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(Standar

RE: How to persist web-app properties across restarts ?

2003-11-07 Thread Steph Richardson
thanks, but the whole point of this is to persist a property across restarts - whether 
they be the entire VM or just the web-app.

Is there a consistent wat to persist property information for the web-app to the 
filesystem, in the same way that sessions can be
persisted ?
I know that the servlet spec requires the ServletContext to provide a tempdir, so I 
will probably try serializing my properties to a
file in that dir.




> -Original Message-
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 07, 2003 2:17 PM
> To: Tomcat Users List
> Subject: Re: How to persist web-app properties across restarts ?
>
>
>
> Put a singleton helper class in a parent classloader such as in shared or
> common Tomcat classloaders and manipulate collections there.  They will
> exist as long as the JVM (and Tomcat) is running.
>
> Otherwise, you should also be able to use stuff like System.setProperty().
>
> Jake
>
> At 01:51 PM 11/7/2003 -0500, you wrote:
>
> >I am looking for the most standard and lightweight way to persist some
> >properties about a web application across restarts of the web
> >application or the entire server.
> >Something like the ServletContext.setAttribute() method, but with the
> >persistence ability that you get from Http sessions would be
> >perfect.
> >I am using this for a management servlet that can indicate to load
> >balancing software that traffic needs to be directed away from a
> >given tomcat instance when it's in a certain state, and the management
> >servlet needs to remember what state it was last in when it's
> >application is restarted. Because it's used in monitoring I don't want any
> >dependancies on external data stores other than simple
> >file system.
> >
> >Thanks
> >
> >Steph
> >
> >
> >
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


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



Tomcat -- startup question

2003-11-07 Thread Gopalakrishnan. Govindakrishnan
Hi:

   Anyone know why do I get this error during startup?

D:\Tomcat 4.1\bin>catalina run
Press any key to continue . . .
"... from setclasspath.bat ..."
Using CATALINA_BASE:   D:\Tomcat 4.1\
Using CATALINA_HOME:   D:\Tomcat 4.1\
Using CATALINA_TMPDIR: D:\Tomcat 4.1\\temp
Using JAVA_HOME:   d:\jdk1.4
Exception in thread "main" java.lang.NoClassDefFoundError: 4/1"
Press any key to continue . . .
"... from catalina.bat ..."


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


Re: xhtml and Internet Explorer

2003-11-07 Thread Adam Hardy
On 11/07/2003 06:48 PM Marius Scurtescu wrote:
I opened an enhancement request for this issue at:
http://issues.apache.org/bugzilla/show_bug.cgi?id=24506
Well formulated description!

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


Newbie jakarta-tomcat-4.1.29 question

2003-11-07 Thread Paul Mitchell
Hello,
  In trying to build this on a SUN 15k domain, running solaris 9, but I'm
running into a consistant problem. During the ANT_HOME/bin/ant deploy
step, I get:

build-tomcat-webapp:

BUILD FAILED
file:/opt/tomcat/jakarta-tomcat-4.1.29-src/catalina/build.xml:902: Basedir
/usr/local/java/jakarta-tomcat-connectors/webapp does not exist

Not sure what version of tomcat-connectors we're using, though it has this
in it:

more RELEASE-NOTES.txt

 Tomcat Connectors Version @VERSION@
Release Notes

This version matches the version included with tomcat-5.0.2, and supports
tomcat 3.3, 4.0, 4.1, 5.0. Bugs and issues will be tracked with tomcat5 -
this file will list only issues related with older versions.

The problem is, no matter where I look, I find reference to webapps (note
"s") directories.  What am I missing?

The install is in service of a GeNet (Bioinformatics software) install
scheduled for monday - I've already downloaded a binary tomcat if
everything fails, but I'd like to compile the source myself if possible.

All help is appreciated.

Paul Mitchell
==
Paul Mitchell
email: [EMAIL PROTECTED]
phone: (919) 962-9778
office: I have an office, room 14, Phillips Hall
==



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



Error Importing Digital Certificate

2003-11-07 Thread jr

I am running two web servers on the same Linux machine. 1) is running
Apache 1.3.23 (Unix) and 2) Jakarta-Tomcat-4.1.24. I have been able to
successfully import and configure a Digital Certificate from Verisign into
the Apache web server. When I attempt to import the Digital Certificate
into the keystore for Tomcat I receive the following error message:

keytool error: java.lang.Exception: Public keys in reply and keystore
don't match

Here are the steps that I have been following:

To generate the original csar:

# openssl req -new -nodes -keyout private.key -out public.csr
# openssl rsa -in private.key -des3 -out secureprivate.key

To import the file into Tomcat I did the following:

# keytool -genkey -alias tomcat -keyalg RSA
(This created the keystore in the home directory)

# keytool -import -alias root -keystore .keystore \-trustcacerts
  -file /etc/httpd/ssl.crt/intermediate.crt
(The chain certificate from Verisign)

# keytool -import -alias tomcat -keystore .keystore -trustcacerts -file
/etc/httpd/ssl.crt/server.crt
Enter keystore password:  changeit

keytool error: java.lang.Exception: Public keys in reply and keystore
don't match


What am I doing wrong? Do I need to follow a different procedure for Tomcat?
Any help would be appreciated.

-- 
Joseph A Rickard
System Administrator
Best Value Technology Inc.




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



RE: Deploying a WAR file referenced by a Context configuration .XML file

2003-11-07 Thread Steph Richardson
> What version of Tomcat are you using? 

4.1.27
Mine behaved as you described UNTIL I explicitly referenced the .war file in the 
docbase attribute.

> -Original Message-
> From: Larson, Kirk [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 07, 2003 2:25 PM
> To: 'Tomcat Users List'
> Subject: RE: Deploying a WAR file referenced by a Context configuration
> .XML file
> 
> 
> What version of Tomcat are you using?  I (stupidly) forgot to mention that I
> am using Tomcat 4.1.  A previous response (by Jacob Kjome) to my question
> indicated that 4.1.xx of Tomcat behaved exactly as I described.  He also
> stated that Tomcat 5 has the behavior I desired.  If you are using Tomcat 5,
> this would confirm his explanation.
> 
> 
> -Original Message-
> From: Steph Richardson [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 07, 2003 1:15 PM
> To: Tomcat Users List
> Subject: RE: Deploying a WAR file referenced by a Context configuration
> .XML file
> 
> 
> I'm really interested because you have exactly the setup that I am using in
> production.
> Although I'm not sure why you are concerned about how/where the war file
> get's exploded.
> 
> In your lingo I use a SHAREDSETUP.xml which explicitly has a context with
> attribute docbase="/home/appbase/SHAREDSETUP.war"
> This works fine, I just deploy new versions of SHAREDSETUP.war, Tomcat
> explodes the war somewhere (
> TOMCAT_HOME/work/somethingorother ) and the war has access to my DBCP.
> 
> Another setup I toyed with was configuring the DBCP in the 
> attribute, and then any war file dropped into tomcat
> should have access to it.
> 
> 
> 
> > -Original Message-
> > From: Larson, Kirk [mailto:[EMAIL PROTECTED]
> > Sent: Friday, November 07, 2003 12:48 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: Deploying a WAR file referenced by a Context configuration .XML
> > file
> >
> >
> > I have an applicaiton which is using a connection pool provided by Tomcat.
> > In order to allow the application to reference the connection pool, I
> > created a Context configuration file for the application and placed it in
> > the "webapps" directory.  The application is called SHAREDSETUP, and I
> > placed two files in the webapps directory ... SHAREDSETUP.WAR and
> > SHAREDSETUP.XML.  When I start Tomcat, the WAR file is not automatically
> > expanded and the application is not started because the "/sharedsetup"
> > directory does not exist.
> >
> > If I delete the SHAREDSETUP.XML file, Tomcat automatically explodes the
> WAR
> > file and creates the "/sharedsetup" directory.  The application is started
> > fine, however the application is unable to reference the database
> > connection.  I need the connection pool, therefore this is not an option.
> >
> > If I manually explode the WAR file, the application is started
> successfully
> > and everything works fine.  However, I was hoping to not have to do this.
> I
> > have to provide the WAR file to an external group who will be responsible
> > for deploying the application.  I wanted to make the deployment procedure
> as
> > simple as possible.
> >
> > How do I get Tomcat to automatically explode a WAR file if I need to use a
> > Context configuratioin XML file?
> >
> > Thanks,
> > Kirk
> >
> >
> >
> >
> > contents of "sharedsetup.xml"
> > =
> >  > className="org.apache.catalina.core.StandardContext" crossContext="false"
> > reloadable="false"
> > mapperClass="org.apache.catalina.core.StandardContextMapper"
> > useNaming="true" debug="0" swallowOutput="false" privileged="false"
> > wrapperClass="org.apache.catalina.core.StandardWrapper"
> > cachingAllowed="true"
> > charsetMapperClass="org.apache.catalina.util.CharsetMapper">
> >  > verbosity="1" prefix="localhost_sharedsetup_log." directory="logs"
> > timestamp="true" suffix=".txt"/>
> >  > global="jdbc/sharedsetup/test"/>
> >  > global="jdbc/sharedsetup/dev"/>
> >  > global="jdbc/sharedsetup/test"/>
> > 
> >
> > failure logged when application attempts to start
> > =
> > 2003-11-07 11:00:46 StandardContext[/sharedsetup]: Resources start failed:
> > java.lang.IllegalArgumentException: Document base ..\webapps\sharedsetup
> > does not exist or is not a readable directory
> > at
> >
> org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:19
> > 3)
> > at
> >
> org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java
> > :3342)
> > at
> > org.apache.catalina.core.StandardContext.start(StandardContext.java:3472)
> > at
> >
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
> > 21)
> > at
> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
> > at
> > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
> > at
> >
> org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.
> > java:700)
> >  

Re: two users see the same session

2003-11-07 Thread Justin Ruthenbeck
In servlet terms, Bill is saying to check to make sure you don't have 
variables defined within the servlet class.  Avoid code such as this:

public class MyServlet extends HttpServlet
{
private String m_userName;
public void doGet(HttpServletRequest req, HttpServletResponse res)
{
...
m_userName = req.getParameter("userName");
...
}
}
This will cause problems because servlet are multi-threaded and multiple 
users will have access to the m_userName value.  You may not have code 
that does something as obvious as this, but chances are high that it's 
somehow related.  Make sure you have *no* member variables in your 
servlet -- or if you do, make sure they're used correctly.

justin

At 12:14 AM 11/7/2003, you wrote:
Sorry not to have mentioned this but the session code is all pure java 
i.e. we dont use JSP, instead we use a templating solution but there is 
no session stuff there.

In any case, can you tell me *why* it's occuring. I couldn't understand 
your example since I don't know JSP (!).

Thanks!

Bill Lunnon wrote:

Nikhil,

I have seen this problem occur when using JSP and incorrectly defining
session variables or beans in the declaration part of the script.
e.g

<%!
BeanClass bean = new BeanClass();
%>
Make sure only initialise session variables or bean classes
in the context scope
ie
<%
BeanClass bean = new BeanClass();
%>
Would suggest visual inspection of all code and JSP pages to make sure 
this
is not occuring!

Hope this helps

Bill
-Original Message-
From: Nikhil G. Daddikar [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 November 2003 4:03 PM
To: [EMAIL PROTECTED]
Subject: two users see the same session
Hello Folks,

Sometimes our users get to see information stored in the session of
another user. We've verified this because they have sent us screen 
captures.

The question is how? We have one server, one tomcat (4.1.27), and we use
the default i.e. cookie based sessions.
If anyone of you can shed some light on this or tell me how to prevent
this, that will be great.
Thanks for your time.
Nikhil
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


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



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

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


RE: ant jspc task and tomcat-4.1.24

2003-11-07 Thread Edson Alves Pereira
That´s right, but i must put those JSP files in Oracle9iAS (
production server ) and i really must compile them to bring it ready.

> --
> De:   Filip Hanik[SMTP:[EMAIL PROTECTED]
> Responder:Tomcat Users List
> Enviada:  sexta-feira, 7 de novembro de 2003 16:08
> Para: Tomcat Users List
> Assunto:  Re: ant jspc task and tomcat-4.1.24
> 
> you are way better off compiling into the work dir, that way you can still
> change JSPs on the fly
> http://cvs.apache.org/~fhanik/precompile.html and benefit from
> precompilation
> 
> Filip
> 
> - Original Message -
> From: "Steph Richardson" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, November 07, 2003 11:06 AM
> Subject: RE: ant jspc task and tomcat-4.1.24
> 
> 
> Yes it is possible. I am currently using it, there was some discussion on
> this :
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg100350.html
> 
> I think your problem may be that you haven't set the compiler="jasper41"
> attribute in the jspc element, as in :
>  srcdir="${rootdir}"
> destdir="${webapp.workdir}"
> failonerror="false"
> classpathref="jspc_parse.classpath"
> package="org.apache.jsp"
> compiler="jasper41">
> 
> 
> 
> 
> 
> 
> > -Original Message-
> > From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
> > Sent: Friday, November 07, 2003 2:53 PM
> > To: 'Tomcat-User List'
> > Subject: ant jspc task and tomcat-4.1.24
> >
> >
> > Does Tomcat-4.1.24 is compatible with Ant-1.5.4´s jspc task? I´m
> > trying to compile some JSP pages but i´m getting this error:
> >
> > D:\desenv\osctrl\build>ant
> > Buildfile: build.xml
> >
> > compilar-jsp:
> >  [jspc] Compiling 3 source
> > filesD:\tmp\classes-jsp\com\panamericano\osctrl\j
> > sp
> >   [jasperc] 2003-11-07 04:51:08 - ERROR-the file '\frmMenu_.jsp'
> generated
> > the f
> > ollowing general exception: java.lang.NullPointerException
> >   [jasperc] error:org.apache.jasper.JasperException: Error compiling
> > \frmMenu_.j
> > sp
> >   [jasperc] at org.apache.jasper.JspC.processFile(JspC.java:596)
> >   [jasperc] at org.apache.jasper.JspC.execute(JspC.java:801)
> >   [jasperc] at org.apache.jasper.JspC.main(JspC.java:823)
> >
> > BUILD FAILED
> > file:D:/desenv/osctrl/build/build.xml:50: Java returned: 9
> >
> > Total time: 5 seconds
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


RE: Deploying a WAR file referenced by a Context configuration .X ML file

2003-11-07 Thread Larson, Kirk
What version of Tomcat are you using?  I (stupidly) forgot to mention that I
am using Tomcat 4.1.  A previous response (by Jacob Kjome) to my question
indicated that 4.1.xx of Tomcat behaved exactly as I described.  He also
stated that Tomcat 5 has the behavior I desired.  If you are using Tomcat 5,
this would confirm his explanation.


-Original Message-
From: Steph Richardson [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 1:15 PM
To: Tomcat Users List
Subject: RE: Deploying a WAR file referenced by a Context configuration
.XML file


I'm really interested because you have exactly the setup that I am using in
production.
Although I'm not sure why you are concerned about how/where the war file
get's exploded.

In your lingo I use a SHAREDSETUP.xml which explicitly has a context with
attribute docbase="/home/appbase/SHAREDSETUP.war"
This works fine, I just deploy new versions of SHAREDSETUP.war, Tomcat
explodes the war somewhere (
TOMCAT_HOME/work/somethingorother ) and the war has access to my DBCP.

Another setup I toyed with was configuring the DBCP in the 
attribute, and then any war file dropped into tomcat
should have access to it.



> -Original Message-
> From: Larson, Kirk [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 07, 2003 12:48 PM
> To: '[EMAIL PROTECTED]'
> Subject: Deploying a WAR file referenced by a Context configuration .XML
> file
>
>
> I have an applicaiton which is using a connection pool provided by Tomcat.
> In order to allow the application to reference the connection pool, I
> created a Context configuration file for the application and placed it in
> the "webapps" directory.  The application is called SHAREDSETUP, and I
> placed two files in the webapps directory ... SHAREDSETUP.WAR and
> SHAREDSETUP.XML.  When I start Tomcat, the WAR file is not automatically
> expanded and the application is not started because the "/sharedsetup"
> directory does not exist.
>
> If I delete the SHAREDSETUP.XML file, Tomcat automatically explodes the
WAR
> file and creates the "/sharedsetup" directory.  The application is started
> fine, however the application is unable to reference the database
> connection.  I need the connection pool, therefore this is not an option.
>
> If I manually explode the WAR file, the application is started
successfully
> and everything works fine.  However, I was hoping to not have to do this.
I
> have to provide the WAR file to an external group who will be responsible
> for deploying the application.  I wanted to make the deployment procedure
as
> simple as possible.
>
> How do I get Tomcat to automatically explode a WAR file if I need to use a
> Context configuratioin XML file?
>
> Thanks,
> Kirk
>
>
>
>
> contents of "sharedsetup.xml"
> =
>  className="org.apache.catalina.core.StandardContext" crossContext="false"
> reloadable="false"
> mapperClass="org.apache.catalina.core.StandardContextMapper"
> useNaming="true" debug="0" swallowOutput="false" privileged="false"
> wrapperClass="org.apache.catalina.core.StandardWrapper"
> cachingAllowed="true"
> charsetMapperClass="org.apache.catalina.util.CharsetMapper">
>verbosity="1" prefix="localhost_sharedsetup_log." directory="logs"
> timestamp="true" suffix=".txt"/>
>global="jdbc/sharedsetup/test"/>
>global="jdbc/sharedsetup/dev"/>
>global="jdbc/sharedsetup/test"/>
> 
>
> failure logged when application attempts to start
> =
> 2003-11-07 11:00:46 StandardContext[/sharedsetup]: Resources start failed:
> java.lang.IllegalArgumentException: Document base ..\webapps\sharedsetup
> does not exist or is not a readable directory
>   at
>
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:19
> 3)
>   at
>
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java
> :3342)
>   at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3472)
>   at
>
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
> 21)
>   at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
>   at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
>   at
>
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.
> java:700)
>   at java.lang.reflect.Method.invoke(Native Method)
>   at
>
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
>   at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
>   at org.apache.commons.digester.Rule.end(Rule.java:276)
>   at
> org.apache.commons.digester.Digester.endElement(Digester.java:1064)
>   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> Source)
>   at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
> Source)
>   at
>
org.apache.xerces.impl.XMLDocumentFragmentScann

RE: Server Tweaking

2003-11-07 Thread Hart, Justin
Version I'm running right now is 4.1.29.  Issue first presented itself after I set up 
NT Authentication using BASIC & JDNIRealm.

Essentially, I get the popup to authenticate, then, the next page has this in its body:






If I hit refresh, the next page I get is the acutal JSP I was hoping to serve up.

Thanks BTW, I can't seem to find a solution to this anywhere!  If you've got a thread 
you can pull on this, that would really help me a lot.

Justin

-Original Message-
From: David Rees [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 2:18 PM
To: Tomcat Users List
Subject: RE: Server Tweaking


On Fri, November 7, 2003 1at 0:40 am, Hart, Justin wrote:
> K, I have this issue, and I've heard of it.  Anybody got a fix?

Well, what version(s) of Tomcat are affected and do you have any
references to the issue?  Sounds like a serious bug in Tomcat to me.

-Dave

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


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



Re: How to persist web-app properties across restarts ?

2003-11-07 Thread Jacob Kjome
Put a singleton helper class in a parent classloader such as in shared or 
common Tomcat classloaders and manipulate collections there.  They will 
exist as long as the JVM (and Tomcat) is running.

Otherwise, you should also be able to use stuff like System.setProperty().

Jake

At 01:51 PM 11/7/2003 -0500, you wrote:

I am looking for the most standard and lightweight way to persist some 
properties about a web application across restarts of the web
application or the entire server.
Something like the ServletContext.setAttribute() method, but with the 
persistence ability that you get from Http sessions would be
perfect.
I am using this for a management servlet that can indicate to load 
balancing software that traffic needs to be directed away from a
given tomcat instance when it's in a certain state, and the management 
servlet needs to remember what state it was last in when it's
application is restarted. Because it's used in monitoring I don't want any 
dependancies on external data stores other than simple
file system.

Thanks

Steph





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


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


RE: Server Tweaking

2003-11-07 Thread David Rees
On Fri, November 7, 2003 1at 0:40 am, Hart, Justin wrote:
> K, I have this issue, and I've heard of it.  Anybody got a fix?

Well, what version(s) of Tomcat are affected and do you have any
references to the issue?  Sounds like a serious bug in Tomcat to me.

-Dave

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



RE: Deploying a WAR file referenced by a Context configuration .XML file

2003-11-07 Thread Steph Richardson
I'm really interested because you have exactly the setup that I am using in production.
Although I'm not sure why you are concerned about how/where the war file get's 
exploded.

In your lingo I use a SHAREDSETUP.xml which explicitly has a context with attribute 
docbase="/home/appbase/SHAREDSETUP.war"
This works fine, I just deploy new versions of SHAREDSETUP.war, Tomcat explodes the 
war somewhere (
TOMCAT_HOME/work/somethingorother ) and the war has access to my DBCP.

Another setup I toyed with was configuring the DBCP in the  attribute, 
and then any war file dropped into tomcat
should have access to it.



> -Original Message-
> From: Larson, Kirk [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 07, 2003 12:48 PM
> To: '[EMAIL PROTECTED]'
> Subject: Deploying a WAR file referenced by a Context configuration .XML
> file
>
>
> I have an applicaiton which is using a connection pool provided by Tomcat.
> In order to allow the application to reference the connection pool, I
> created a Context configuration file for the application and placed it in
> the "webapps" directory.  The application is called SHAREDSETUP, and I
> placed two files in the webapps directory ... SHAREDSETUP.WAR and
> SHAREDSETUP.XML.  When I start Tomcat, the WAR file is not automatically
> expanded and the application is not started because the "/sharedsetup"
> directory does not exist.
>
> If I delete the SHAREDSETUP.XML file, Tomcat automatically explodes the WAR
> file and creates the "/sharedsetup" directory.  The application is started
> fine, however the application is unable to reference the database
> connection.  I need the connection pool, therefore this is not an option.
>
> If I manually explode the WAR file, the application is started successfully
> and everything works fine.  However, I was hoping to not have to do this.  I
> have to provide the WAR file to an external group who will be responsible
> for deploying the application.  I wanted to make the deployment procedure as
> simple as possible.
>
> How do I get Tomcat to automatically explode a WAR file if I need to use a
> Context configuratioin XML file?
>
> Thanks,
> Kirk
>
>
>
>
> contents of "sharedsetup.xml"
> =
>  className="org.apache.catalina.core.StandardContext" crossContext="false"
> reloadable="false"
> mapperClass="org.apache.catalina.core.StandardContextMapper"
> useNaming="true" debug="0" swallowOutput="false" privileged="false"
> wrapperClass="org.apache.catalina.core.StandardWrapper"
> cachingAllowed="true"
> charsetMapperClass="org.apache.catalina.util.CharsetMapper">
>verbosity="1" prefix="localhost_sharedsetup_log." directory="logs"
> timestamp="true" suffix=".txt"/>
>global="jdbc/sharedsetup/test"/>
>global="jdbc/sharedsetup/dev"/>
>global="jdbc/sharedsetup/test"/>
> 
>
> failure logged when application attempts to start
> =
> 2003-11-07 11:00:46 StandardContext[/sharedsetup]: Resources start failed:
> java.lang.IllegalArgumentException: Document base ..\webapps\sharedsetup
> does not exist or is not a readable directory
>   at
> org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:19
> 3)
>   at
> org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java
> :3342)
>   at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3472)
>   at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
> 21)
>   at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
>   at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
>   at
> org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.
> java:700)
>   at java.lang.reflect.Method.invoke(Native Method)
>   at
> org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
>   at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
>   at org.apache.commons.digester.Rule.end(Rule.java:276)
>   at
> org.apache.commons.digester.Digester.endElement(Digester.java:1064)
>   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> Source)
>   at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
> Source)
>   at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
> her.dispatch(Unknown Source)
>   at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>   at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
>   at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
>   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>   at org.apache.commons.digester.Digester.parse(Digester.java:1562)
>   at
> org.apache.c

Re: ant jspc task and tomcat-4.1.24

2003-11-07 Thread Filip Hanik
you are way better off compiling into the work dir, that way you can still
change JSPs on the fly
http://cvs.apache.org/~fhanik/precompile.html and benefit from
precompilation

Filip

- Original Message -
From: "Steph Richardson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, November 07, 2003 11:06 AM
Subject: RE: ant jspc task and tomcat-4.1.24


Yes it is possible. I am currently using it, there was some discussion on
this :
http://www.mail-archive.com/[EMAIL PROTECTED]/msg100350.html

I think your problem may be that you haven't set the compiler="jasper41"
attribute in the jspc element, as in :







> -Original Message-
> From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 07, 2003 2:53 PM
> To: 'Tomcat-User List'
> Subject: ant jspc task and tomcat-4.1.24
>
>
> Does Tomcat-4.1.24 is compatible with Ant-1.5.4´s jspc task? I´m
> trying to compile some JSP pages but i´m getting this error:
>
> D:\desenv\osctrl\build>ant
> Buildfile: build.xml
>
> compilar-jsp:
>  [jspc] Compiling 3 source
> filesD:\tmp\classes-jsp\com\panamericano\osctrl\j
> sp
>   [jasperc] 2003-11-07 04:51:08 - ERROR-the file '\frmMenu_.jsp' generated
> the f
> ollowing general exception: java.lang.NullPointerException
>   [jasperc] error:org.apache.jasper.JasperException: Error compiling
> \frmMenu_.j
> sp
>   [jasperc] at org.apache.jasper.JspC.processFile(JspC.java:596)
>   [jasperc] at org.apache.jasper.JspC.execute(JspC.java:801)
>   [jasperc] at org.apache.jasper.JspC.main(JspC.java:823)
>
> BUILD FAILED
> file:D:/desenv/osctrl/build/build.xml:50: Java returned: 9
>
> Total time: 5 seconds
>


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


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



RE: ant jspc task and tomcat-4.1.24

2003-11-07 Thread Steph Richardson
Yes it is possible. I am currently using it, there was some discussion on this :
http://www.mail-archive.com/[EMAIL PROTECTED]/msg100350.html

I think your problem may be that you haven't set the compiler="jasper41" attribute in 
the jspc element, as in :







> -Original Message-
> From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 07, 2003 2:53 PM
> To: 'Tomcat-User List'
> Subject: ant jspc task and tomcat-4.1.24
>
>
>   Does Tomcat-4.1.24 is compatible with Ant-1.5.4´s jspc task? I´m
> trying to compile some JSP pages but i´m getting this error:
>
> D:\desenv\osctrl\build>ant
> Buildfile: build.xml
>
> compilar-jsp:
>  [jspc] Compiling 3 source
> filesD:\tmp\classes-jsp\com\panamericano\osctrl\j
> sp
>   [jasperc] 2003-11-07 04:51:08 - ERROR-the file '\frmMenu_.jsp' generated
> the f
> ollowing general exception: java.lang.NullPointerException
>   [jasperc] error:org.apache.jasper.JasperException: Error compiling
> \frmMenu_.j
> sp
>   [jasperc] at org.apache.jasper.JspC.processFile(JspC.java:596)
>   [jasperc] at org.apache.jasper.JspC.execute(JspC.java:801)
>   [jasperc] at org.apache.jasper.JspC.main(JspC.java:823)
>
> BUILD FAILED
> file:D:/desenv/osctrl/build/build.xml:50: Java returned: 9
>
> Total time: 5 seconds
>


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



Re: can tomcat 4 be clustered

2003-11-07 Thread Filip Hanik
load balancer at http://balance.sourceforge.net

Filip

- Original Message - 
From: "computer pulsar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 06, 2003 10:44 PM
Subject: can tomcat 4 be clustered


hi,
can the tomcat 4.x be configured as a cluster? in
other words can tomcat 4.x be configured to load
balance? if so, please mention how or give the info
source.

thanks in advance,
computer pulsar :)


Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk

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

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



ant jspc task and tomcat-4.1.24

2003-11-07 Thread Edson Alves Pereira
Does Tomcat-4.1.24 is compatible with Ant-1.5.4´s jspc task? I´m
trying to compile some JSP pages but i´m getting this error:

D:\desenv\osctrl\build>ant
Buildfile: build.xml

compilar-jsp:
 [jspc] Compiling 3 source
filesD:\tmp\classes-jsp\com\panamericano\osctrl\j
sp
  [jasperc] 2003-11-07 04:51:08 - ERROR-the file '\frmMenu_.jsp' generated
the f
ollowing general exception: java.lang.NullPointerException
  [jasperc] error:org.apache.jasper.JasperException: Error compiling
\frmMenu_.j
sp
  [jasperc] at org.apache.jasper.JspC.processFile(JspC.java:596)
  [jasperc] at org.apache.jasper.JspC.execute(JspC.java:801)
  [jasperc] at org.apache.jasper.JspC.main(JspC.java:823)

BUILD FAILED
file:D:/desenv/osctrl/build/build.xml:50: Java returned: 9

Total time: 5 seconds


How to persist web-app properties across restarts ?

2003-11-07 Thread Steph Richardson

I am looking for the most standard and lightweight way to persist some properties 
about a web application across restarts of the web
application or the entire server.
Something like the ServletContext.setAttribute() method, but with the persistence 
ability that you get from Http sessions would be
perfect.
I am using this for a management servlet that can indicate to load balancing software 
that traffic needs to be directed away from a
given tomcat instance when it's in a certain state, and the management servlet needs 
to remember what state it was last in when it's
application is restarted. Because it's used in monitoring I don't want any 
dependancies on external data stores other than simple
file system.

Thanks

Steph






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



Re: Deploying a WAR file referenced by a Context configuration .XML f ile

2003-11-07 Thread Jacob Kjome
You've just described, perfectly, the behavior of Tomcat-4.1.xx.  If you 
want different behavior, use Tomcat-5.x.xx.  The only difference being that 
you wouldn't put the context configuration file in the webapps directory, 
you put it in conf/Catalina/[...host...] and refer to SHAREDSETUP.war 
instead of SHAREDSETUP.  The app will be "exploded" to SHAREDSETUP anyway 
and deployed from there, even though you point at the .war file in the 
docBase attribute.

Jake

At 11:47 AM 11/7/2003 -0600, you wrote:
I have an applicaiton which is using a connection pool provided by Tomcat.
In order to allow the application to reference the connection pool, I
created a Context configuration file for the application and placed it in
the "webapps" directory.  The application is called SHAREDSETUP, and I
placed two files in the webapps directory ... SHAREDSETUP.WAR and
SHAREDSETUP.XML.  When I start Tomcat, the WAR file is not automatically
expanded and the application is not started because the "/sharedsetup"
directory does not exist.
If I delete the SHAREDSETUP.XML file, Tomcat automatically explodes the WAR
file and creates the "/sharedsetup" directory.  The application is started
fine, however the application is unable to reference the database
connection.  I need the connection pool, therefore this is not an option.
If I manually explode the WAR file, the application is started successfully
and everything works fine.  However, I was hoping to not have to do this.  I
have to provide the WAR file to an external group who will be responsible
for deploying the application.  I wanted to make the deployment procedure as
simple as possible.
How do I get Tomcat to automatically explode a WAR file if I need to use a
Context configuratioin XML file?
Thanks,
Kirk


contents of "sharedsetup.xml"
=






failure logged when application attempts to start
=
2003-11-07 11:00:46 StandardContext[/sharedsetup]: Resources start failed:
java.lang.IllegalArgumentException: Document base ..\webapps\sharedsetup
does not exist or is not a readable directory
at
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:19
3)
at
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java
:3342)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3472)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.
java:700)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1064)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1562)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:385)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:803)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:442
)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:399)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.S

RE: Server Tweaking

2003-11-07 Thread Hart, Justin
K, I have this issue, and I've heard of it.  Anybody got a fix?

Justin

-Original Message-
From: David Rees [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 1:40 PM
To: Tomcat Users List
Subject: Re: Server Tweaking


On Fri, November 7, 2003 at 6:36 am, Hart, Justin wrote:
> Hi, I've read of people having difficulties with their tomcat servers,
> where no page shows up the first time they try to load a page, and then
> when they hit refresh, it loads fine.  I understand that this is just a
> tweaking issue with the config files, and have heard that there are a few
> standard steps that people can take to get around this.  Anybody care to
> share?

I for one have never heard of this issue and have been using Tomcat since
3.2 was first released.

-Dave

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


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



Re: Server Tweaking

2003-11-07 Thread David Rees
On Fri, November 7, 2003 at 6:36 am, Hart, Justin wrote:
> Hi, I've read of people having difficulties with their tomcat servers,
> where no page shows up the first time they try to load a page, and then
> when they hit refresh, it loads fine.  I understand that this is just a
> tweaking issue with the config files, and have heard that there are a few
> standard steps that people can take to get around this.  Anybody care to
> share?

I for one have never heard of this issue and have been using Tomcat since
3.2 was first released.

-Dave

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



RE: Tomcat + jk2 connector configuration

2003-11-07 Thread Dean Searle
workers2.properties

# only at beginning. In production uncomment it out
[logger.apache2]
level=DEBUG

[shm]
file=z:/tomcat/logs/jk2.shm
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8109]
port=8109
host=127.0.0.1

[channel.socket:localhost:8110]
port=8110
host=127.0.0.1

[channel.socket:localhost:8111]
port=8111
host=127.0.0.1

#[channel.jni:jni]
#info=The jni channel, used if tomcat is started inprocess

[status:]
info=Status worker, displays runtime informations

# Define the worker
# First Web Application Worker
[ajp13:localhost:8109]
channel=channel.socket:localhost:8109

# Second Web Application Worker
[ajp13:localhost:8110]
channel=channel.socket:localhost:8110

# Third Web Application Worker
[ajp13:localhost:8111]
channel=channel.socket:localhost:8111

Uri mapping
[uri:127.0.0.1/*.jsp]
worker=ajp13:localhost:8109

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
worker=status:status

[uri:www.session1.com/*.jsp]
worker=ajp13:localhost:8109

[uri:www.session2.com/*.jsp]
worker=ajp13:localhost:8110

[uri:www.session3.com/*.jsp]
worker=ajp13:localhost:8111

Here is my properties file. I hope that this helps you out. I am currently running 
with three seperate instances from one binary install of tomcat. This allows me the 
flexibility to start and stop each instance without afecting the the other two.

Dean


-Original Message-
From:   Tatu Vanhanen [mailto:[EMAIL PROTECTED]
Sent:   Fri 11/7/2003 02:17
To: User Tomcat
Cc: 
Subject:Tomcat + jk2 connector configuration
Hello,
We have a development environment where each developer has a separate Tomcat
instance to play with. Each Tomcat should listen in it's port for requests
coming from the Apache front-end. The mappings for each user's Tomcat should
be based on the request uri, i.e. http://www.somehost.com/user1/ means
that Apache should forward the requests having 'user1' to user1's running
Tomcat instance.

We have this working with the "ancient" Warp- connector but we should move
to jk2 because of some issues with warp.

Could someone please include some example of
workers2.properties/jk2.properties that would give us some hint of how to
make things work. Yes, we have tried to configure things but apparently
something has been missing and we are still stuck with warp :(

Below is our workers2.properties (with user names replaced with more
"publishable" names). Is there something missing there?

Thanks a lot!

workers2.properties:


[logger.apache2]
level=DEBUG

[shm]
file=/www/logs/shm.file
size=1048576

# First Tomcat serving a product under tests

[channel.socket:localhost:9025]
port=9025
maxPort=9025
host=127.0.0.1

[ajp13:localhost:9025]
channel=channel.socket:localhost:9025

[uri:/product1/*]
worker1=ajp13:localhost:9025


# user1

[channel.socket:localhost:9031]
port=9031
maxPort=9031
host=127.0.0.1

[ajp13:localhost:9031]
channel=channel.socket:localhost:9031

[uri:/user1/*]
worker1=ajp13:localhost:9031


# user2

[channel.socket:localhost:9029]
port=9029
maxPort=9029
host=127.0.0.1

[ajp13:localhost:9029]
channel=channel.socket:localhost:9029

[uri:/user2/*]
worker1=ajp13:localhost:9029

# user3

[channel.socket:localhost:9027]
port=9027
maxPort=9027
host=127.0.0.1

[ajp13:localhost:9027]
channel=channel.socket:localhost:9027

[uri:/user3/*]
worker1=ajp13:localhost:9027

# user4

[channel.socket:localhost:9021]
port=9021
maxPort=9021
host=127.0.0.1

[ajp13:localhost:9021]
channel=channel.socket:localhost:9021

[uri:/user4/*]
worker1=ajp13:localhost:9021


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





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

RE: Mod JK2 - load balancing - sessions

2003-11-07 Thread Brett Neumeier
> The problem is that I have the same behaviour when I simply 
> reload my page in
> the same Browser instance, jumping from one Tomcat instance 
> to the other as if
> no javax.servlet.http.HttpSession was defined (jsessionid).

I haven't used JK2, but I know how this works with JK(1) and I think it's more or less 
the same thing.  

Some configuration has to be done in JK2, and other configuration has to be done in 
the tomcat instances that are being balanced.

The way that sticky sessions work is that the JSESSIONID cookie value provided by 
Tomcat includes an indicator of which Tomcat instance set the cookie.  The JK (or JK2) 
connector looks at this indicator to decide which instance should handle new requests. 
 That's pretty simple, right?

In JK2, according to the documentation, there is a "tomcatId" attribute for 
channel.socket configuration stanzas.  This attribute is automatically set to the 
local name part of the channel.socket name.  So suppose you have a socket channel 
going to a tomcat instance on host flubber.foo.com, port 8080.  You name the channel:

channel.socket:flubber.foo.com:8080

And the tomcatId gets set to flubber.foo.com:8080 unless you change that explicitly.  
This is the JK2 part of the sticky session configuration.

Now you go to the server.xml configuration file for the tomcat running on 
flubber.foo.com, port 8080.  In the Engine element, you set the attribute jvmRoute to 
"flubber.foo.com:8080".  When that Tomcat instance sets a JSESSIONID cookie, the value 
will be something like:

0928DE35C1F410D99ABDD4E7A6FA65F6.flubber.foo.com:8080

Now when the next request comes in from that browser this JSESSIONID cookie value will 
be sent in the request.  JK2 will look at the flubber.foo.com:8080 part of the value, 
realize that it needs to send the request through that channel, and voila, server 
affinity just like magic!

Does that make sense?

It might help other people with the same problem if you report back whether this works 
or not.  Like I said, I haven't used JK2 so I don't know for sure.


Cheers,

bn

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



Re: xhtml and Internet Explorer

2003-11-07 Thread Marius Scurtescu
I opened an enhancement request for this issue at:
http://issues.apache.org/bugzilla/show_bug.cgi?id=24506
Cheers,
Marius
Marius Scurtescu wrote:
Hi,

Yes, I totally agree that this issue should be brought
up with the JSP specification. I will look into that.
Even if the suggestion is accepted it will be quite
a while until a specification will deal with this
issue and then even longer until there is going to
be a Tomcat implementation supporting it. We are
talking years I guess :-(
For what I know the specification is not saying
anything about this issue and if Tomcat is implementing
it right now it will not go against the spec.
Keeping strictly with the JSP directives (the issue
can be extended to the JSP tags as well, but it
gets more complicated) common sense is enough, I
hope, to realize that whenever you add a directive
you really don't want an empty line in your output.
These empty lines are annoying at best (every time
you check the source of a page generated by JSP you
first see an empty page - quite stupid), and breaking
your app at worst (like in the case of IE).
The absolute best proof that there is a problem
here that needs fixing is the fact that developers
make their code unreadable just as a work around.
Cheers,
Marius
Rodrigo Ruiz wrote:

Marius, I think such a feature request should not be addressed to 
Tomcat, but to the JSP specification itself. Remember that Tomcat is 
being used as the reference implementation of servlet/JSP 
technologies, and so it should stick to the specification.

Basically, as I see it, your request means a special treatment for a 
subset of directives in a few specific cases. I think it would imply 
that tags could be marked as not generating any output, so when in a 
single JSP line there were only such marked tags and leading / 
trailing spaces among them, the line itself could be omited from the 
output. Such a change should be made from the specification.

Regards,
Rodrigo
Marius Scurtescu wrote:

JSP is a templating language which is using a meta
language: the JSP constructs.
The new line is in the JSP indeed, but is it part
of the meta language or part of the literal output?
I would argue that these new lines are part of the
meta language and that they should not be output.
You put them there so the meta language you use is
readable.
See how FreeMarker, another templating language,
is dealing with this issue:
http://freemarker.sourceforge.net/docs/dgui_misc_whitespace.html#dgui_misc_whitespace_stripping 

You are not asking the directive to scan anything,
the page compiler could consider white space and newlines
after a directive as part of that directive.
Marius

Adam Hardy wrote:

On 10/30/2003 10:08 PM Marius Scurtescu wrote:

I will consider implementing a filter to remove
the empty lines before the  tag.





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


mod_webapp.so -> undefined symbol: wa_pool

2003-11-07 Thread Gustavo Gomes
I get the error "undefined symbol: wa_pool" trying to start the httpd service loading 
the mod_webapp.so to link apache to jboss.

Can anyone help-me please?

RE: Tomcat crash

2003-11-07 Thread adriacom6340
fabulous!!!


Thanks
Scrive Patrick Willart <[EMAIL PROTECTED]>:

> Add pause as last command in you catalina.bat file. This will keep the
> console open so that you can read the error message.
> 
> Patrick
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 07, 2003 9:33 AM
> To: Tomcat Users List
> Subject: Re: Tomcat crash
> 
> 
> That's a good Idea but the console window close when tomcat crash so nothing
> can be read.
> Can I redirect the console output to a file ?
> 
> Scrive Ben Souther <[EMAIL PROTECTED]>:
> 
> > There is no stack trace in the console window when the server crashes?
> >
> > Try putting a 'System.out.println("");' at the top of
> all
> >
> > of your pages. Then you can see which page was the last one hit before the
> > server crashed.
> >
> >
> >
> > On Friday 07 November 2003 11:06 am, [EMAIL PROTECTED] wrote:
> > > Thanks for your ideas.
> > >
> > > I can see the console window but because the crash happens casually I
> > can't
> > > see everytime the server screen and also reproduce the circumstances
> > > because I can't understand which are.
> > >
> > > The server crash only with my own app. and I don't have System.exit
> > >
> > > For the same reason I can't understand which code create the problem.
> > >
> > > Thanks again
> > >
> > > Scrive Ben Souther <[EMAIL PROTECTED]>:
> > > > There is no console window, even when you start Tomcat with the
> > > > catalina.bat
> > > >
> > > > file?
> > > >
> > > > Can you reproduce the circumstances that caused it to crash?  Does it
> > > > crash when you are hitting the exaple apps or only when you are
> hitting
> > > > your own app?  If it's your own app, or a third party app, can you
> post
> > > > the code to the JSP/Servlet that was being hit when the server
> crashes?
> > > > Do you have any
> > > >
> > > > calls to System.exit(0) in your code?
> > > >
> > > > On Friday 07 November 2003 10:48 am, [EMAIL PROTECTED] wrote:
> > > > > Unfortunately when tomcat crash I can't see the console window
> so
> > I
> > > > > don't have any message useful to start the debugging...
> > > > >
> > > > > Scrive Anton Modaresi <[EMAIL PROTECTED]>:
> > > > > > do you get an exception in the console window? If the tomcat
> window
> > > > > > vanishes, you can try starting with the catalina batch file
> instead
> > > > > > of the startup batch file.
> > > > > >
> > > > > > regards, anton
> > > > > >
> > > > > > -Original Message-
> > > > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > > > > Sent: den 7 november 2003 16:34
> > > > > > To: [EMAIL PROTECTED]
> > > > > > Subject: Tomcat crash
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > Hello, I'm new to Tomcat and Apache so I'm wasting a lot of time
> > > > > > trying to understand why Tomcat sometimes shutdown by itself or
> > > > > > better it crash This
> > > > > > happen without messages in the log file .
> > > > > >
> > > > > > can someone have some experience in that solved the problem ?
> > > > > >
> > > > > >
> > > > > > Thanks to all.
> > > > > >
> > > > > >
> > -
> > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > > > >
> > > >
> > -
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > > --
> > > > Ben Souther
> > > > F.W. Davison & Company, Inc.
> > > >
> > > >
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > --
> > Ben Souther
> > F.W. Davison & Company, Inc.
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 




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



Deploying a WAR file referenced by a Context configuration .XML f ile

2003-11-07 Thread Larson, Kirk
I have an applicaiton which is using a connection pool provided by Tomcat.
In order to allow the application to reference the connection pool, I
created a Context configuration file for the application and placed it in
the "webapps" directory.  The application is called SHAREDSETUP, and I
placed two files in the webapps directory ... SHAREDSETUP.WAR and
SHAREDSETUP.XML.  When I start Tomcat, the WAR file is not automatically
expanded and the application is not started because the "/sharedsetup"
directory does not exist.

If I delete the SHAREDSETUP.XML file, Tomcat automatically explodes the WAR
file and creates the "/sharedsetup" directory.  The application is started
fine, however the application is unable to reference the database
connection.  I need the connection pool, therefore this is not an option. 

If I manually explode the WAR file, the application is started successfully
and everything works fine.  However, I was hoping to not have to do this.  I
have to provide the WAR file to an external group who will be responsible
for deploying the application.  I wanted to make the deployment procedure as
simple as possible.

How do I get Tomcat to automatically explode a WAR file if I need to use a
Context configuratioin XML file?

Thanks,
Kirk




contents of "sharedsetup.xml"
=







failure logged when application attempts to start
=
2003-11-07 11:00:46 StandardContext[/sharedsetup]: Resources start failed:
java.lang.IllegalArgumentException: Document base ..\webapps\sharedsetup
does not exist or is not a readable directory
at
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:19
3)
at
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java
:3342)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3472)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.
java:700)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1064)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1562)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:385)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:803)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:442
)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:399)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
2003-11-07 11:00:46 StandardContext[/sharedsetup]: Context startup failed
due to previous errors



*

RE: Tomcat crash

2003-11-07 Thread Patrick Willart
Add pause as last command in you catalina.bat file. This will keep the
console open so that you can read the error message.

Patrick

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 9:33 AM
To: Tomcat Users List
Subject: Re: Tomcat crash


That's a good Idea but the console window close when tomcat crash so nothing
can be read.
Can I redirect the console output to a file ?

Scrive Ben Souther <[EMAIL PROTECTED]>:

> There is no stack trace in the console window when the server crashes?
>
> Try putting a 'System.out.println("");' at the top of
all
>
> of your pages. Then you can see which page was the last one hit before the
> server crashed.
>
>
>
> On Friday 07 November 2003 11:06 am, [EMAIL PROTECTED] wrote:
> > Thanks for your ideas.
> >
> > I can see the console window but because the crash happens casually I
> can't
> > see everytime the server screen and also reproduce the circumstances
> > because I can't understand which are.
> >
> > The server crash only with my own app. and I don't have System.exit
> >
> > For the same reason I can't understand which code create the problem.
> >
> > Thanks again
> >
> > Scrive Ben Souther <[EMAIL PROTECTED]>:
> > > There is no console window, even when you start Tomcat with the
> > > catalina.bat
> > >
> > > file?
> > >
> > > Can you reproduce the circumstances that caused it to crash?  Does it
> > > crash when you are hitting the exaple apps or only when you are
hitting
> > > your own app?  If it's your own app, or a third party app, can you
post
> > > the code to the JSP/Servlet that was being hit when the server
crashes?
> > > Do you have any
> > >
> > > calls to System.exit(0) in your code?
> > >
> > > On Friday 07 November 2003 10:48 am, [EMAIL PROTECTED] wrote:
> > > > Unfortunately when tomcat crash I can't see the console window
so
> I
> > > > don't have any message useful to start the debugging...
> > > >
> > > > Scrive Anton Modaresi <[EMAIL PROTECTED]>:
> > > > > do you get an exception in the console window? If the tomcat
window
> > > > > vanishes, you can try starting with the catalina batch file
instead
> > > > > of the startup batch file.
> > > > >
> > > > > regards, anton
> > > > >
> > > > > -Original Message-
> > > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > > > Sent: den 7 november 2003 16:34
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: Tomcat crash
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Hello, I'm new to Tomcat and Apache so I'm wasting a lot of time
> > > > > trying to understand why Tomcat sometimes shutdown by itself or
> > > > > better it crash This
> > > > > happen without messages in the log file .
> > > > >
> > > > > can someone have some experience in that solved the problem ?
> > > > >
> > > > >
> > > > > Thanks to all.
> > > > >
> > > > >
> -
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail:
[EMAIL PROTECTED]
> > > >
> > >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > > --
> > > Ben Souther
> > > F.W. Davison & Company, Inc.
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> --
> Ben Souther
> F.W. Davison & Company, Inc.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




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


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



Re: Tomcat crash

2003-11-07 Thread Rodrigo Ruiz
Start your tomcat instance with "catalina run" instead of "startup". 
This will make your tomcat run in the same console you invoke it from, 
and will let you its output when it stops :-)

[EMAIL PROTECTED] wrote:

That's a good Idea but the console window close when tomcat crash so nothing 
can be read. 
Can I redirect the console output to a file ?

Scrive Ben Souther <[EMAIL PROTECTED]>:

 

There is no stack trace in the console window when the server crashes?

Try putting a 'System.out.println("");' at the top of all

of your pages. Then you can see which page was the last one hit before the 
server crashed. 



On Friday 07 November 2003 11:06 am, [EMAIL PROTECTED] wrote:
   

Thanks for your ideas.

I can see the console window but because the crash happens casually I
 

can't
   

see everytime the server screen and also reproduce the circumstances
because I can't understand which are.
The server crash only with my own app. and I don't have System.exit

For the same reason I can't understand which code create the problem.

Thanks again

Scrive Ben Souther <[EMAIL PROTECTED]>:
 

There is no console window, even when you start Tomcat with the
catalina.bat
file?

Can you reproduce the circumstances that caused it to crash?  Does it
crash when you are hitting the exaple apps or only when you are hitting
your own app?  If it's your own app, or a third party app, can you post
the code to the JSP/Servlet that was being hit when the server crashes? 
Do you have any

calls to System.exit(0) in your code?

On Friday 07 November 2003 10:48 am, [EMAIL PROTECTED] wrote:
   

Unfortunately when tomcat crash I can't see the console window so
 

I
   

don't have any message useful to start the debugging...

Scrive Anton Modaresi <[EMAIL PROTECTED]>:
 

do you get an exception in the console window? If the tomcat window
vanishes, you can try starting with the catalina batch file instead
of the startup batch file.
regards, anton

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: den 7 november 2003 16:34
To: [EMAIL PROTECTED]
Subject: Tomcat crash


Hello, I'm new to Tomcat and Apache so I'm wasting a lot of time
trying to understand why Tomcat sometimes shutdown by itself or
better it crash This
happen without messages in the log file .
can someone have some experience in that solved the problem ?

Thanks to all.

   

-
   

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

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

--
Ben Souther
F.W. Davison & Company, Inc.


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

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

--
Ben Souther
F.W. Davison & Company, Inc.


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





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



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


Re: Tomcat crash

2003-11-07 Thread adriacom6340
That's a good Idea but the console window close when tomcat crash so nothing 
can be read. 
Can I redirect the console output to a file ?

Scrive Ben Souther <[EMAIL PROTECTED]>:

> There is no stack trace in the console window when the server crashes?
> 
> Try putting a 'System.out.println("");' at the top of all
> 
> of your pages. Then you can see which page was the last one hit before the 
> server crashed. 
> 
> 
> 
> On Friday 07 November 2003 11:06 am, [EMAIL PROTECTED] wrote:
> > Thanks for your ideas.
> >
> > I can see the console window but because the crash happens casually I
> can't
> > see everytime the server screen and also reproduce the circumstances
> > because I can't understand which are.
> >
> > The server crash only with my own app. and I don't have System.exit
> >
> > For the same reason I can't understand which code create the problem.
> >
> > Thanks again
> >
> > Scrive Ben Souther <[EMAIL PROTECTED]>:
> > > There is no console window, even when you start Tomcat with the
> > > catalina.bat
> > >
> > > file?
> > >
> > > Can you reproduce the circumstances that caused it to crash?  Does it
> > > crash when you are hitting the exaple apps or only when you are hitting
> > > your own app?  If it's your own app, or a third party app, can you post
> > > the code to the JSP/Servlet that was being hit when the server crashes? 
> > > Do you have any
> > >
> > > calls to System.exit(0) in your code?
> > >
> > > On Friday 07 November 2003 10:48 am, [EMAIL PROTECTED] wrote:
> > > > Unfortunately when tomcat crash I can't see the console window so
> I
> > > > don't have any message useful to start the debugging...
> > > >
> > > > Scrive Anton Modaresi <[EMAIL PROTECTED]>:
> > > > > do you get an exception in the console window? If the tomcat window
> > > > > vanishes, you can try starting with the catalina batch file instead
> > > > > of the startup batch file.
> > > > >
> > > > > regards, anton
> > > > >
> > > > > -Original Message-
> > > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > > > Sent: den 7 november 2003 16:34
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: Tomcat crash
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Hello, I'm new to Tomcat and Apache so I'm wasting a lot of time
> > > > > trying to understand why Tomcat sometimes shutdown by itself or
> > > > > better it crash This
> > > > > happen without messages in the log file .
> > > > >
> > > > > can someone have some experience in that solved the problem ?
> > > > >
> > > > >
> > > > > Thanks to all.
> > > > >
> > > > >
> -
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > > --
> > > Ben Souther
> > > F.W. Davison & Company, Inc.
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -- 
> Ben Souther
> F.W. Davison & Company, Inc.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 




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



Re: response.sendRedirect()

2003-11-07 Thread Ben Souther
Are you redirecting from an "http" to an "https" url or vice versa?
Are you redirecting to a different domain?


On Friday 07 November 2003 11:35 am, Duncan wrote:
> Is it normal to loose your session when using the
> response.sendRedirect() command?
>
> If so is there a way to redirect without loosing the session?
>
> Cheers, Duncan.
> Decker Telecom Ltd
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Ben Souther
F.W. Davison & Company, Inc.



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



Re: Access static content ...

2003-11-07 Thread Jack Lauman
I'm using JBoss with Tomcat 4.1.27.  I manipulate the URL by adding
param-values that are parts of the actual URL to the web.xml file
I think this will work with a stand alone Tomcat.  It looks like
'commons-sandbox' project 'chains' is similar.

i.e.


  
baseURL
www.nwcascades.com
  
...

We include keywords, dropdown selects (as CDATA), almost anything
that is static from one page to the next.  Make maintenance a great
deal easier.

In the JSP pages we use things similar to the following to separate
the static content on apache and the dynamic content generated by
JBoss/Tomcat.

/">
<%=application.getInitParameter("titleText")%>
...

We found that the time it takes to do this is well worth it if you
have a global change that affects a large number of pages.

Hope it helps,

Jack
Rodrigo Ruiz wrote:
> 
> The problem is the "/resources" entry. If you map it to the default
> servlet, the directory name itself will not be part of the path, but a
> "root" for the actual one, so the default servlet will understand you
> want to get the path following "resources", and it is "". I guess the
> same will happen with the contents of the directory.
> 
> It seems that the default servlet cannot be configured to serve files
> from an alternative directory.
> 
> You could try one of the following:
>   - Create your own servlet for "resources" requests. Perhaps you could
> subclass DefaultServlet, or use it in any other way.
>   - Implement a Filter that redirects any request not to "resources" to
> your own servlet, and let the default configuration to work for the
> resources directory.
> 
> Samuel Le Berrigaud wrote:
> 
> > Thanks for your help,
> >
> > I'll do it another way I think and I'll probably come back on that
> > problem later on.
> >
> > SaM
> >
> > Tim Funk wrote:
> >
> >> Then there is either
> >> - a bug in tomcat
> >> - a config error (most likely) but don't know what could be the culprit
> >>
> >> I never heard of this before. Seems quite odd.
> >>
> >> -Tim
> >>
> >> Samuel Le Berrigaud wrote:
> >>
> >>> Yes
> >>>
> >>> Tim Funk wrote:
> >>>
>  [Need more coffee]
> 
>  Does that mean that http://myserver/context/resources is serving a
>  dir listing of the contents from http://myserver/context ?
>  (instead of /context/resources)
> 
>  -Tim
> >>>
> >>>
> >>
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



jsp compiling and deploy

2003-11-07 Thread Edson Alves Pereira
Hello folks, i´m trying to deploy my web-application from my
developer environment ( Tomcat-4.1.24 ) to a Oracle9iAS ( Production ),
could anyone point me how i can compile my JSP pages and deploy in other
servlet-engine?

Regards,
Edson


Re: Mod JK2 - load balancing - sessions

2003-11-07 Thread jmorace
There is a configuration parameter for the load balancer called
"stickySession", but it should be enabled by default.  You might want to
try setting it and seeing if it makes any difference.  The configuration
options are described at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.html.

Are you sure the jsessionid cookie is set?

Jonathan

On Fri, 7 Nov 2003 [EMAIL PROTECTED] wrote:

>
>I am testing load balancing configurations with two Tomcat instances on two
>different hosts.
>
>The Round Robbin dance works fine: when I connect with several seperate Browsers
>instances I get approximately 50% time on one Tomcat instance or the other.
>
>The problem is that I have the same behaviour when I simply reload my page in
>the same Browser instance, jumping from one Tomcat instance to the other as if
>no javax.servlet.http.HttpSession was defined (jsessionid).
>
>I suspect some configurations are required to enable jk2 to keep trace of
>javax.servlet.http.HttpSession but I did not find out how.
>
>I use Apache 2.0.48 - Tomcat 4.1.29 - jk2-2.0.2 on RedHat Linx 9.0
>
>Any hints or pointing to doc welcome
>
>Patrick
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: [OT] Upload 2 images with one jdbc INSERT?

2003-11-07 Thread john-paul delaney
Thanks for the advice(s) Chris... 

I ignorantly hadn't realized I could open more than one stream, using only one stream 
returned a negativearray exception (?), while the second stream appears to have worked 
nicely.  

And yes, as you guessed - I hadn't closed the streams and URLConnections.  I'll 
remember in future.


regards
/j-p.



On Fri, 7 Nov 2003, Christopher Schultz wrote:

> I always try www.jguru.com -- I used to answer a lot of questions there. 
> I should go back...
> 
> Actually, I'm not entirely clear on when the stream is read. Either the 
> PreparedStatement reads the stream immediately, or it reads the stream 
> when you perform the execute(). I read the 1.4 JavaDoc and I'm still not 
> convinced either way.
> 
> Just in case it doesn't read the stream until later, simply use another 
> stream:
> 
>   URL urlImage2 = getServletContext().getResource("second image");
>   URLConnection urlImageConn2 = urlImage2.openConnection();
>   int urlImageLength2 = urlImageConn.getContentLength();
>   InputStream is2 = urlImage2.openStream();
> 
>   pStmt.setBinaryStream(x, is2, urlImageLength2);
> 
> Don't forget to close your streams and URLConnections when you're done 
> (i.e. in a finally block)!
> 



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



Re: Tomcat crash

2003-11-07 Thread Ben Souther
There is no stack trace in the console window when the server crashes?

Try putting a 'System.out.println("");' at the top of all 
of your pages. Then you can see which page was the last one hit before the 
server crashed. 



On Friday 07 November 2003 11:06 am, [EMAIL PROTECTED] wrote:
> Thanks for your ideas.
>
> I can see the console window but because the crash happens casually I can't
> see everytime the server screen and also reproduce the circumstances
> because I can't understand which are.
>
> The server crash only with my own app. and I don't have System.exit
>
> For the same reason I can't understand which code create the problem.
>
> Thanks again
>
> Scrive Ben Souther <[EMAIL PROTECTED]>:
> > There is no console window, even when you start Tomcat with the
> > catalina.bat
> >
> > file?
> >
> > Can you reproduce the circumstances that caused it to crash?  Does it
> > crash when you are hitting the exaple apps or only when you are hitting
> > your own app?  If it's your own app, or a third party app, can you post
> > the code to the JSP/Servlet that was being hit when the server crashes? 
> > Do you have any
> >
> > calls to System.exit(0) in your code?
> >
> > On Friday 07 November 2003 10:48 am, [EMAIL PROTECTED] wrote:
> > > Unfortunately when tomcat crash I can't see the console window so I
> > > don't have any message useful to start the debugging...
> > >
> > > Scrive Anton Modaresi <[EMAIL PROTECTED]>:
> > > > do you get an exception in the console window? If the tomcat window
> > > > vanishes, you can try starting with the catalina batch file instead
> > > > of the startup batch file.
> > > >
> > > > regards, anton
> > > >
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > > Sent: den 7 november 2003 16:34
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Tomcat crash
> > > >
> > > >
> > > >
> > > >
> > > > Hello, I'm new to Tomcat and Apache so I'm wasting a lot of time
> > > > trying to understand why Tomcat sometimes shutdown by itself or
> > > > better it crash This
> > > > happen without messages in the log file .
> > > >
> > > > can someone have some experience in that solved the problem ?
> > > >
> > > >
> > > > Thanks to all.
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > --
> > Ben Souther
> > F.W. Davison & Company, Inc.
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Ben Souther
F.W. Davison & Company, Inc.



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



Re: JNDI Resource: Cannot create JDBC driver of class '' for connect URL 'null'

2003-11-07 Thread Bruno Costacurta
It's working.
Sorry. It was simply a typing error.

On Thursday 06 November 2003 18:52, Bruno Costacurta wrote:
> Hi All,
> 
> I simply followed the sample provided by Tomcat documentation (4.1.29) about 
> JNDI Resource (DBCP) and MySQL but received the following error:
> 
> Cannot create JDBC driver of class '' for connect URL 'null', cause: 
> No suitable driver
> 
> However MySQL and JDBC driver settings seems correct as a connection  like:
> (...) 
>var="conn"
>   
dataSource="jdbc:mysql://localhost/test,com.mysql.jdbc.Driver,bruno,password" 
> />
> (...)  works very fine.
> 
> Thanks for any clue, explanation or working configuration files.
> 
> My config is:
> 
> Tomcat 4.1.29
> MySQL v4.0.14
> JDBC driver: mysql-connector-java-3.0.9-stable:
> 
> 
> Thanks.
> Bruno
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


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



Re: response.sendRedirect()

2003-11-07 Thread Rodrigo Ruiz
You should only loose your session if session cookies support is 
disabled, and
 - the redirected URL has not been rewritten to add the session id, or
 - you redirect to another context / server

in the second case the passed session id will be invalid, or ignored, 
depending on the case.

Sometimes I have lost my session because I was not calling the 
getSession() in my servlet. This led my servlet engine to not properly 
set the response cookies.

Hope it helps you,
Rodrigo Ruiz
Duncan wrote:

Is it normal to loose your session when using the
response.sendRedirect() command?
If so is there a way to redirect without loosing the session?

Cheers, Duncan.
Decker Telecom Ltd
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



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


Re: response.sendRedirect()

2003-11-07 Thread Duncan
Oops. Just realised that my app was switching between contexts on my
server, which is why I was loosing session info. Thanks for the replies
thought.

 - Duncan.

Jean-Francois Arcand wrote:

> Duncan wrote:
>
> >Is it normal to loose your session when using the
> >response.sendRedirect() command?
> >
> >If so is there a way to redirect without loosing the session?
> >
> Yes, do a RequestDispatcher.forward(...) instead.
>
> -- Jeanfrancois
>
> >
> >Cheers, Duncan.
> >Decker Telecom Ltd
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Problems with HTTPS in Tomcat 4.1.27, axis 1_1RC2, & JDK 1.4.1 on AIX UNIX

2003-11-07 Thread Curtis Leach
Has anyone any experience with this?

I have a small web service set up as a demo that works just fine under HTTP,
but when I attempt to connect via HTTPS, it craps out after the 3rd hit and
continuously returns the following exception until Tomcat is rebooted:
   java.rmi.RemoteException
With the following message associated with it:
   (0)null

(HTTP continues to work without problems.  Even after HTTPS gives up the
ghost!)

catalina.out shows the following for every HTTPS hit once the 1st error
occurs:

Nov 7, 2003 3:27:55 PM
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler
processConnection
SEVERE: Error reading request, ignored
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Jdk14Logger does not implement Log
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
va:532)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
va:272)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
va:246)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
at
org.apache.tomcat.util.net.jsse.JSSESupport.(JSSESupport.java:87)
at
org.apache.tomcat.util.net.jsse.JSSE14Support.(JSSE14Support.java:99)
at
org.apache.tomcat.util.net.jsse.JSSE14Factory.getSSLSupport(JSSE14Factory.ja
va:84)
at
org.apache.tomcat.util.net.jsse.JSSEImplementation.getSSLSupport(JSSEImpleme
ntation.java:118)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:385)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
at java.lang.Thread.run(Thread.java:568)
Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Jdk14Logger does not implement Log
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
mpl.java:416)
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
va:525)
... 11 more
Caused by: org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Jdk14Logger does not implement Log
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
mpl.java:412)
... 12 more

Any suggestions?  The following is the https section from my server.xml
file.  It took digging through the 5.0 documentation also before I could
even get HTTPS to work for TC 4.1.27.  Seems IMB's JVM for JDK 1.4 has a few
twists to it that aren't documented until TC 5.0.  And I'm real leery about
upgrading to a beta release (TC 5.0) unless I have to.



  


The server code being called.  As you can see I just added outMsg & the
return value to the PortImpl.java stub that the axis WSDL2Java generated.

public java.lang.String testInterface(java.lang.String string)
throws java.rmi.RemoteException
{
String outMsg = System.getProperty ("java.vm.name") + " JDK " +
System.getProperty ("java.vm.version") +
" - " + System.getProperty ("user.name") +
"   (" + string + ")";
return outMsg;
}

Curtis

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

Re: specifying web app classpath in server xml?

2003-11-07 Thread Rodrigo Ruiz
In server.xml you can specify an alternative class loader for your 
context webapp (see configuration reference on the tomcat docs). You 
will have to dig into the Tomcat code, but you may create a subclass of 
the default class (or use it as a template), and add some mechanisms to 
include extra directories at the same level as WEB-INF/lib. You could, 
for example, make it use a system property, or  add xml properties for 
configuring it from server.xml

A bit advanced, and very non-standard, but it may work for your 
development environment :-)

Curtis Leach wrote:

I haven't tried this to see if it works, but you can always edit the
catalina.sh or setclasspath.sh files.  It's where CLASSPATH is reset during
the Tomcat startup.  (Or .bat for windows)
Curtis

-Original Message-
From: Anton Modaresi [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 9:31 AM
To: 'Tomcat Users List'
Subject: RE: specifying web app classpath in server xml?
My point was exactly I would rather like an extra classspath in the webapp
context declaration so I could skip the work of building a jar for one
project and copy it (or somehow link it) to the other project's web-inf/lib.
When I change in both projects I'd rather tell tomcat to just look a little
extra. So you say the classpath fixed? Am I the only one who want to use
tomcat in this way? how do I suggest this to developers, write to the other
mailing list?
regards, artin

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: den 6 november 2003 15:11
To: Tomcat Users List
Subject: RE: specifying web app classpath in server xml?


Howdy,
Can you symlink your WEB-INF/lib/otherProject.jar to the other's
project's build directory?
You can't declare classpaths in server.xml.  The classpath hierarchy is
fixed.
Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: Anton Modaresi [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 5:29 AM
To: [EMAIL PROTECTED]
Subject: specifying web app classpath in server xml?
Hi,
I would like to specify additional classpaths for a web app
beside the WEB-INF/lib WEB-INF/classes and common/lib directories.
My reason is I have a project using code from another project.
In a production environment you would jar the classes from the
used project and put it in the WEb-INF/lib of the other
but in development, where both projects may be updated all the time,
I'd prefer to skip the extra overhead of either jaring all files,
or recompile the classes a second time to the WEB-INF/classes of
the taget project..
So I am wondering, is there a way, I can say in my server.xml,
hey please go and check in this additional classpath too for this
particular web app. is this possible?
(Im using tomcat 5.0.7)
   



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



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


Re: Tomcat 4.1.24 - HTTP Status Message..

2003-11-07 Thread Jon Wingfield
FYI: http://issues.apache.org/bugzilla/show_bug.cgi?id=19480

However, contrary to that bug report the Reason Phrase is not mandatory 
according to the spec (well, to be picky, it is mandatory but the phrase 
can be zero bytes long):

HTTP1.1 spec:
http://www.w3.org/Protocols/rfc2616/rfc2616.txt

Status-Line = HTTP-Version SP Status-Code SP Reason-Phrase CRLF
...
Reason-Phrase  = *

The * in the BNF grammar used means any positive number (and including 
zero).

Additionally, the reason 'OK' for code 200 should not be assumed as the 
server can choose to change this phrase to the local language.

Another upgrade beckons...

HTH,

Jon

David Allison wrote:
Hi All,

Recently we upgraded our Tomcat to version 4.1.24..  
We have Apache sitting in front of it providing SSL etc etc..

Since upgrading we've noticed that the status line in HTTP responses has
changed from
HTTP/1.0 200 OK 

to 

HTTP/1.0 200 

I'm not sure that whether the text message on the status line is compulsory
or not but one of our clients systems has been failing since as it calls
HttpURLConnection.getResponseCode() which throws an exception (seemingly
because of the missing text)...
Does anyone know if this text is compulsory in the HTTP response (I haven't
found anything that says clearly either way) and also why Tomcat was changed
this way.. Was there a particular reason, is there any fix to this problem
or is Tomcat still acting correctly (I suspect it is)..
Thanks for your help

Dave





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


Re: response.sendRedirect()

2003-11-07 Thread Jean-Francois Arcand


Duncan wrote:

Is it normal to loose your session when using the
response.sendRedirect() command?
If so is there a way to redirect without loosing the session?

Yes, do a RequestDispatcher.forward(...) instead.

-- Jeanfrancois

Cheers, Duncan.
Decker Telecom Ltd
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



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


RE: response.sendRedirect()

2003-11-07 Thread Anton Modaresi
you do not lose your session, but you create a new request.

/anton

-Original Message-
From: Duncan [mailto:[EMAIL PROTECTED]
Sent: den 7 november 2003 17:36
To: Tomcat User List
Subject: response.sendRedirect()


Is it normal to loose your session when using the
response.sendRedirect() command?

If so is there a way to redirect without loosing the session?

Cheers, Duncan.
Decker Telecom Ltd


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


Re: JSessionID problem

2003-11-07 Thread Thyago Lisboa Mota

- Original Message -
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Thyago Lisboa
Mota" <[EMAIL PROTECTED]>
Sent: Friday, November 07, 2003 6:35 AM
Subject: Re: JSessionID problem


> Quoting Thyago Lisboa Mota <[EMAIL PROTECTED]>:
>
> > Hi,
> >
> > I am facing a problem with jsessionid and I hope u guys can help me.
I
> > have 2 tomcat (4.1.29 version) configurations, one at W2K (for develop)
and
> > another at Linux Red Hat (for production).  The W2K one is working just
fine.
> >  But with the Linux one I always receive the same ID for the jsessionid,
no
> > matter how many times I refresh the page.  Bellow is the JSP scriptlet I
am
> > using for test purpose (file "Session.jsp" saved at webapps\ROOT ):
> >
> > <%
> >  out.println("Session ID: " + session);
> >  out.println("Date: " + session.getAttribute("date"));
> >  session.setAttribute("date", new java.util.Date());
> >  out.println("Click
> > here");
> > %>
>
> Provided you have this declared in your JSP:
>
> <%@ page language="java" import="java.util.Date, java.util.Enumeration" %>
>
> You might try to get session info with the following scriptlet:
>
> <%
>
> // print session info
>
> Date created = new Date(session.getCreationTime());
> Date accessed = new Date(session.getLastAccessedTime());
> out.print("ID: " + session.getId() + "");
> out.print("Created: " + created + "");
> out.print("Last Accessed: " + accessed + "");
> out.print("Attribute names : ");
>
> Enumeration e = session.getAttributeNames();
> while (e.hasMoreElements()) {
> out.print(e.nextElement() + "");
> }
> %>
>
> >
> >   If I test this code from the Linux Tomcat Server (just typing
> > http://myserver/session.jsp ) jsessionid doesn´t change each time a
refresh
> > the page...
> Isn't it the way it should work ? Keeping a single session between
requests ?
> But I only have RedHat Linux, for dev. and prod. ;)

I thought the jsessionid had to be encoded in the URL (using
response.encodeURL(...)) to work like you say... If I just type
http://myserver/session.jsp I thought a new session would be created each
time.  So, the server controls the session using information from the client
browser ?

So, if the Linux server is working just fine, the problem is with the W2K
one, that is creating a new jsession each time I refresh the page... How can
I fix this ?

Thanks for your help

Thyago

>
> >And the link doesnt show jsessionid either, as should (notice the
> > "encodeURL")
> >
> >   The configuration files (server.xml) of Tomcats are the same in both
> > plattaforms. The only difference is the attribute appbase of the host
element
> > ("/var/www/webapps" at Linux).
> >
> >   Any clues ?
> >
> > Thyago
> >
> > My server.xml:
> >
> >  >  port="8005"
> >  shutdown="SHUTDOWN"
> >debug="0">
> >
> >  
> >
> >   >   className="org.apache.coyote.tomcat4.CoyoteConnector"
> >port="8080"
> >minProcessors="5"
> >maxProcessors="75"
> >enableLookups="true"
> >redirectPort="8443"
> >acceptCount="100"
> >debug="0"
> >connectionTimeout="2"
> >useURIValidationHack="false"
> >disableUploadTimeout="true" />
> >
> >   >name="Standalone"
> >  defaultHost="localhost"
> >  debug="0">
> >
> > > name="localhost"
> > debug="0"
> > appBase="d:\webapps"
> >  unpackWARs="false"
> > autoDeploy="true">
> >
> >  >path=""
> >docBase="raiz"
> >debug="0"
> >reloadable="true"
> >crossContext="true" />
> >
> >
> > 
> >  
> > 
> >
> >
> >
>
>
>


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



Re: [OT] Upload 2 images with one jdbc INSERT?

2003-11-07 Thread Christopher Schultz
j-p,
Apologies if this is off-topic, I posted to the jdbc forum on sun with little response.
I always try www.jguru.com -- I used to answer a lot of questions there. 
I should go back...

I insert an image into a postgres db using the following code:

URL urlImage = getServletContext().getResource(
   "/images/" + imageFilename);
URLConnection urlImageConn = urlImage.openConnection();
int urlImageLength = urlImageConn.getContentLength();
InputStream is = urlImage.openStream();
   ... and using a preparedStatement,
pStmt.setBinaryStream(1, is, urlImageLength);
However I'd like to insert a second image into the same db record
> but don't know if it's possible to use the same inputstream.

Actually, I'm not entirely clear on when the stream is read. Either the 
PreparedStatement reads the stream immediately, or it reads the stream 
when you perform the execute(). I read the 1.4 JavaDoc and I'm still not 
convinced either way.

Just in case it doesn't read the stream until later, simply use another 
stream:

URL urlImage2 = getServletContext().getResource("second image");
URLConnection urlImageConn2 = urlImage2.openConnection();
int urlImageLength2 = urlImageConn.getContentLength();
InputStream is2 = urlImage2.openStream();
	pStmt.setBinaryStream(x, is2, urlImageLength2);

Don't forget to close your streams and URLConnections when you're done 
(i.e. in a finally block)!

-chris

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


response.sendRedirect()

2003-11-07 Thread Duncan
Is it normal to loose your session when using the
response.sendRedirect() command?

If so is there a way to redirect without loosing the session?

Cheers, Duncan.
Decker Telecom Ltd


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



JBOSS + APACHE

2003-11-07 Thread Gustavo Gomes
Hello people!
I need help! I build and compile the mod_webapp.so and I did all steps of this 
instructions (http://www.pubbitch.org/jboss.html) and all work successfull !!!

But, when I inserted the line on httpd.conf to Load the module, and tried to restart 
the httpd, I had this message:

Syntax error on line 233 of /etc/apache/conf/httpd.conf:
Cannot load /usr/lib/apache/modules/mod_webapp.so into server: 
/usr/lib/apache/modules/mod_webapp.so: undefined symbol: wa_pool

Please, help!!!
Thanks!!!

Re: JSessionID problem

2003-11-07 Thread Thyago Lisboa Mota
I thought the jsessionid had to be encoded in the URL (using
response.encodeURL(...)) to work like you say... If I just type
http://myserver/session.jsp I thought a new session would be created each
time.  So, the server controls the session using information from the client
browser ?

So, if the Linux server is working just fine, the problem is with the W2K
one, that is creating a new jsession each time I refresh the page... How can
I fix this ?

Thanks for your help

Thyago

- Original Message -
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Thyago Lisboa
Mota" <[EMAIL PROTECTED]>
Sent: Friday, November 07, 2003 6:35 AM
Subject: Re: JSessionID problem


> Quoting Thyago Lisboa Mota <[EMAIL PROTECTED]>:
>
> > Hi,
> >
> > I am facing a problem with jsessionid and I hope u guys can help me.
I
> > have 2 tomcat (4.1.29 version) configurations, one at W2K (for develop)
and
> > another at Linux Red Hat (for production).  The W2K one is working just
fine.
> >  But with the Linux one I always receive the same ID for the jsessionid,
no
> > matter how many times I refresh the page.  Bellow is the JSP scriptlet I
am
> > using for test purpose (file "Session.jsp" saved at webapps\ROOT ):
> >
> > <%
> >  out.println("Session ID: " + session);
> >  out.println("Date: " + session.getAttribute("date"));
> >  session.setAttribute("date", new java.util.Date());
> >  out.println("Click
> > here");
> > %>
>
> Provided you have this declared in your JSP:
>
> <%@ page language="java" import="java.util.Date, java.util.Enumeration" %>
>
> You might try to get session info with the following scriptlet:
>
> <%
>
> // print session info
>
> Date created = new Date(session.getCreationTime());
> Date accessed = new Date(session.getLastAccessedTime());
> out.print("ID: " + session.getId() + "");
> out.print("Created: " + created + "");
> out.print("Last Accessed: " + accessed + "");
> out.print("Attribute names : ");
>
> Enumeration e = session.getAttributeNames();
> while (e.hasMoreElements()) {
> out.print(e.nextElement() + "");
> }
> %>
>
> >
> >   If I test this code from the Linux Tomcat Server (just typing
> > http://myserver/session.jsp ) jsessionid doesn´t change each time a
refresh
> > the page...
> Isn't it the way it should work ? Keeping a single session between
requests ?
> But I only have RedHat Linux, for dev. and prod. ;)
>
> >And the link doesnt show jsessionid either, as should (notice the
> > "encodeURL")
> >
> >   The configuration files (server.xml) of Tomcats are the same in both
> > plattaforms. The only difference is the attribute appbase of the host
element
> > ("/var/www/webapps" at Linux).
> >
> >   Any clues ?
> >
> > Thyago
> >
> > My server.xml:
> >
> >  >  port="8005"
> >  shutdown="SHUTDOWN"
> >debug="0">
> >
> >  
> >
> >   >   className="org.apache.coyote.tomcat4.CoyoteConnector"
> >port="8080"
> >minProcessors="5"
> >maxProcessors="75"
> >enableLookups="true"
> >redirectPort="8443"
> >acceptCount="100"
> >debug="0"
> >connectionTimeout="2"
> >useURIValidationHack="false"
> >disableUploadTimeout="true" />
> >
> >   >name="Standalone"
> >  defaultHost="localhost"
> >  debug="0">
> >
> > > name="localhost"
> > debug="0"
> > appBase="d:\webapps"
> >  unpackWARs="false"
> > autoDeploy="true">
> >
> >  >path=""
> >docBase="raiz"
> >debug="0"
> >reloadable="true"
> >crossContext="true" />
> >
> >
> > 
> >  
> > 
> >
> >
> >
>
>
>



Re: Access static content ...

2003-11-07 Thread Rodrigo Ruiz
The problem is the "/resources" entry. If you map it to the default 
servlet, the directory name itself will not be part of the path, but a 
"root" for the actual one, so the default servlet will understand you 
want to get the path following "resources", and it is "". I guess the 
same will happen with the contents of the directory.

It seems that the default servlet cannot be configured to serve files 
from an alternative directory.

You could try one of the following:
 - Create your own servlet for "resources" requests. Perhaps you could 
subclass DefaultServlet, or use it in any other way.
 - Implement a Filter that redirects any request not to "resources" to 
your own servlet, and let the default configuration to work for the 
resources directory.



Samuel Le Berrigaud wrote:

Thanks for your help,

I'll do it another way I think and I'll probably come back on that 
problem later on.

SaM

Tim Funk wrote:

Then there is either
- a bug in tomcat
- a config error (most likely) but don't know what could be the culprit
I never heard of this before. Seems quite odd.

-Tim

Samuel Le Berrigaud wrote:

Yes

Tim Funk wrote:

[Need more coffee]

Does that mean that http://myserver/context/resources is serving a 
dir listing of the contents from http://myserver/context ?
(instead of /context/resources)

-Tim




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


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



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


Re: Tomcat crash

2003-11-07 Thread adriacom6340
Thanks for your ideas.

I can see the console window but because the crash happens casually I can't 
see everytime the server screen and also reproduce the circumstances because I 
can't understand which are.

The server crash only with my own app. and I don't have System.exit 

For the same reason I can't understand which code create the problem.

Thanks again

Scrive Ben Souther <[EMAIL PROTECTED]>:

> There is no console window, even when you start Tomcat with the catalina.bat
> 
> file?
> 
> Can you reproduce the circumstances that caused it to crash?  Does it crash 
> when you are hitting the exaple apps or only when you are hitting your own 
> app?  If it's your own app, or a third party app, can you post the code to 
> the JSP/Servlet that was being hit when the server crashes?  Do you have any
> 
> calls to System.exit(0) in your code?
> 
> 
> 
> On Friday 07 November 2003 10:48 am, [EMAIL PROTECTED] wrote:
> > Unfortunately when tomcat crash I can't see the console window so I
> > don't have any message useful to start the debugging...
> >
> > Scrive Anton Modaresi <[EMAIL PROTECTED]>:
> > > do you get an exception in the console window? If the tomcat window
> > > vanishes, you can try starting with the catalina batch file instead of
> > > the startup batch file.
> > >
> > > regards, anton
> > >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > Sent: den 7 november 2003 16:34
> > > To: [EMAIL PROTECTED]
> > > Subject: Tomcat crash
> > >
> > >
> > >
> > >
> > > Hello, I'm new to Tomcat and Apache so I'm wasting a lot of time trying
> > > to understand why Tomcat sometimes shutdown by itself or better it
> > > crash This
> > > happen without messages in the log file .
> > >
> > > can someone have some experience in that solved the problem ?
> > >
> > >
> > > Thanks to all.
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -- 
> Ben Souther
> F.W. Davison & Company, Inc.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 




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



RE: ant deploy

2003-11-07 Thread Phillip Qin
Win32 requires an extra /, so your war should be
file:///${dist.home}/${app.name}-${app.version}.war or
file:/${dist.home}/${app.name}-${app.version}.war

-Original Message-
From: Steven Woody [mailto:[EMAIL PROTECTED] 
Sent: November 7, 2003 10:51 AM
To: Tomcat Users List
Subject: Re: ant deploy



When the configuration run on a Linux host, it can deploy onto the local
Linux server and remove W2K server.

When the same configuration run on a W2K host, it can *NOT* deploy onto
either local Tomcat server nor the remove Linux server!

What's the problem?

- Original Message - 
From: "Phillip Qin" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, November 07, 2003 10:36 PM
Subject: RE: ant deploy


> Can you show us your build.xml? Mine is
> 
> http://remotehost/manager"; username="${username}"
> password="${password}" path="/${your.app.name}" war="${war.url}"/>
> 
> username: manager
> your.app.name: context name
> linux host: file:${war.dir}/${war.file}
> win32 host: file:/${war.dir}/${war.file}
> 
> -Original Message-
> From: Steven Woody [mailto:[EMAIL PROTECTED] 
> Sent: November 6, 2003 8:39 PM
> To: Tomcat Users List
> Subject: Re: ant deploy
> 
> I heard the 'install' task can only communicate  to local server :-(  but
I
> want to deploy to a remove tomcat.
> 
> 
> - Original Message - 
> From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, November 06, 2003 9:52 PM
> Subject: RE: ant deploy
> 
> 
> 
> Howdy,
> You want to use the install task instead of deploy most likely.
> Needless to say, the host name should be a valid one that you can
> ping/lookup ;)
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: Steven Woody [mailto:[EMAIL PROTECTED]
> >Sent: Thursday, November 06, 2003 12:47 AM
> >To: [EMAIL PROTECTED]
> >Subject: ant deploy
> >
> >Hi,
> >
> >I wanna use ant deploy task to deploy a war onto Tomcat, but always got
> a
> >UnknownHostName exception.  What's wrong here?  Did anyone used the
> > task with sucessful?
> >
> >
> >Regards.
> >
> >--
> >Steven Woody
> 
> 
> 
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential,
proprietary
> and/or privileged.  This e-mail is intended only for the individual(s) to
> whom it is addressed, and may not be saved, copied, printed, disclosed or
> used by anyone else.  If you are not the(an) intended recipient, please
> immediately delete this e-mail from your computer system and notify the
> sender.  Thank you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


Re: ant deploy

2003-11-07 Thread Steven Woody


When the configuration run on a Linux host, it can deploy onto the local Linux server 
and remove W2K server.

When the same configuration run on a W2K host, it can *NOT* deploy onto either local 
Tomcat server nor the remove Linux server!

What's the problem?

- Original Message - 
From: "Phillip Qin" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, November 07, 2003 10:36 PM
Subject: RE: ant deploy


> Can you show us your build.xml? Mine is
> 
> http://remotehost/manager"; username="${username}"
> password="${password}" path="/${your.app.name}" war="${war.url}"/>
> 
> username: manager
> your.app.name: context name
> linux host: file:${war.dir}/${war.file}
> win32 host: file:/${war.dir}/${war.file}
> 
> -Original Message-
> From: Steven Woody [mailto:[EMAIL PROTECTED] 
> Sent: November 6, 2003 8:39 PM
> To: Tomcat Users List
> Subject: Re: ant deploy
> 
> I heard the 'install' task can only communicate  to local server :-(  but I
> want to deploy to a remove tomcat.
> 
> 
> - Original Message - 
> From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, November 06, 2003 9:52 PM
> Subject: RE: ant deploy
> 
> 
> 
> Howdy,
> You want to use the install task instead of deploy most likely.
> Needless to say, the host name should be a valid one that you can
> ping/lookup ;)
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: Steven Woody [mailto:[EMAIL PROTECTED]
> >Sent: Thursday, November 06, 2003 12:47 AM
> >To: [EMAIL PROTECTED]
> >Subject: ant deploy
> >
> >Hi,
> >
> >I wanna use ant deploy task to deploy a war onto Tomcat, but always got
> a
> >UnknownHostName exception.  What's wrong here?  Did anyone used the
> > task with sucessful?
> >
> >
> >Regards.
> >
> >--
> >Steven Woody
> 
> 
> 
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential, proprietary
> and/or privileged.  This e-mail is intended only for the individual(s) to
> whom it is addressed, and may not be saved, copied, printed, disclosed or
> used by anyone else.  If you are not the(an) intended recipient, please
> immediately delete this e-mail from your computer system and notify the
> sender.  Thank you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

RE: specifying web app classpath in server xml?

2003-11-07 Thread Curtis Leach
I haven't tried this to see if it works, but you can always edit the
catalina.sh or setclasspath.sh files.  It's where CLASSPATH is reset during
the Tomcat startup.  (Or .bat for windows)

Curtis

-Original Message-
From: Anton Modaresi [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 9:31 AM
To: 'Tomcat Users List'
Subject: RE: specifying web app classpath in server xml?


My point was exactly I would rather like an extra classspath in the webapp
context declaration so I could skip the work of building a jar for one
project and copy it (or somehow link it) to the other project's web-inf/lib.

When I change in both projects I'd rather tell tomcat to just look a little
extra. So you say the classpath fixed? Am I the only one who want to use
tomcat in this way? how do I suggest this to developers, write to the other
mailing list?

regards, artin

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: den 6 november 2003 15:11
To: Tomcat Users List
Subject: RE: specifying web app classpath in server xml?



Howdy,
Can you symlink your WEB-INF/lib/otherProject.jar to the other's
project's build directory?

You can't declare classpaths in server.xml.  The classpath hierarchy is
fixed.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Anton Modaresi [mailto:[EMAIL PROTECTED]
>Sent: Thursday, November 06, 2003 5:29 AM
>To: [EMAIL PROTECTED]
>Subject: specifying web app classpath in server xml?
>
>Hi,
>I would like to specify additional classpaths for a web app
>beside the WEB-INF/lib WEB-INF/classes and common/lib directories.
>
>My reason is I have a project using code from another project.
>In a production environment you would jar the classes from the
>used project and put it in the WEb-INF/lib of the other
>
>but in development, where both projects may be updated all the time,
>I'd prefer to skip the extra overhead of either jaring all files,
>or recompile the classes a second time to the WEB-INF/classes of
>the taget project..
>
>So I am wondering, is there a way, I can say in my server.xml,
>hey please go and check in this additional classpath too for this
>particular web app. is this possible?
>
>(Im using tomcat 5.0.7)



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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


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



Re: Tomcat crash

2003-11-07 Thread Ben Souther
There is no console window, even when you start Tomcat with the catalina.bat 
file?

Can you reproduce the circumstances that caused it to crash?  Does it crash 
when you are hitting the exaple apps or only when you are hitting your own 
app?  If it's your own app, or a third party app, can you post the code to 
the JSP/Servlet that was being hit when the server crashes?  Do you have any 
calls to System.exit(0) in your code?



On Friday 07 November 2003 10:48 am, [EMAIL PROTECTED] wrote:
> Unfortunately when tomcat crash I can't see the console window so I
> don't have any message useful to start the debugging...
>
> Scrive Anton Modaresi <[EMAIL PROTECTED]>:
> > do you get an exception in the console window? If the tomcat window
> > vanishes, you can try starting with the catalina batch file instead of
> > the startup batch file.
> >
> > regards, anton
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: den 7 november 2003 16:34
> > To: [EMAIL PROTECTED]
> > Subject: Tomcat crash
> >
> >
> >
> >
> > Hello, I'm new to Tomcat and Apache so I'm wasting a lot of time trying
> > to understand why Tomcat sometimes shutdown by itself or better it
> > crash This
> > happen without messages in the log file .
> >
> > can someone have some experience in that solved the problem ?
> >
> >
> > Thanks to all.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Ben Souther
F.W. Davison & Company, Inc.



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



RE: Tomcat crash

2003-11-07 Thread adriacom6340
Unfortunately when tomcat crash I can't see the console window so I don't 
have any message useful to start the debugging...


Scrive Anton Modaresi <[EMAIL PROTECTED]>:

> do you get an exception in the console window? If the tomcat window
> vanishes, you can try starting with the catalina batch file instead of the
> startup batch file.
> 
> regards, anton
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: den 7 november 2003 16:34
> To: [EMAIL PROTECTED]
> Subject: Tomcat crash
> 
> 
> 
> 
> Hello, I'm new to Tomcat and Apache so I'm wasting a lot of time trying to 
> understand why Tomcat sometimes shutdown by itself or better it crash
> This 
> happen without messages in the log file .
> 
> can someone have some experience in that solved the problem ?
> 
> 
> Thanks to all.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 




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



RE: Tomcat crash

2003-11-07 Thread Anton Modaresi
do you get an exception in the console window? If the tomcat window
vanishes, you can try starting with the catalina batch file instead of the
startup batch file.

regards, anton

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: den 7 november 2003 16:34
To: [EMAIL PROTECTED]
Subject: Tomcat crash




Hello, I'm new to Tomcat and Apache so I'm wasting a lot of time trying to 
understand why Tomcat sometimes shutdown by itself or better it crash
This 
happen without messages in the log file .

can someone have some experience in that solved the problem ?


Thanks to all.

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


[OT] Upload 2 images with one jdbc INSERT?

2003-11-07 Thread john-paul delaney
Hello List... 

Apologies if this is off-topic, I posted to the jdbc forum on sun with little response.

I insert an image into a postgres db using the following code:

URL urlImage = getServletContext().getResource(
   "/images/" + imageFilename);

URLConnection urlImageConn = urlImage.openConnection();
int urlImageLength = urlImageConn.getContentLength();
InputStream is = urlImage.openStream();

   ... and using a preparedStatement,
pStmt.setBinaryStream(1, is, urlImageLength);

However I'd like to insert a second image into the same db record but don't know if 
it's possible to use the same inputstream.

Thanks for any suggestions,
/j-p.


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



Tomcat crash

2003-11-07 Thread adriacom6340


Hello, I'm new to Tomcat and Apache so I'm wasting a lot of time trying to 
understand why Tomcat sometimes shutdown by itself or better it crash This 
happen without messages in the log file .

can someone have some experience in that solved the problem ?


Thanks to all.

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



RE: specifying web app classpath in server xml?

2003-11-07 Thread Anton Modaresi
My point was exactly I would rather like an extra classspath in the webapp
context declaration so I could skip the work of building a jar for one
project and copy it (or somehow link it) to the other project's web-inf/lib.

When I change in both projects I'd rather tell tomcat to just look a little
extra. So you say the classpath fixed? Am I the only one who want to use
tomcat in this way? how do I suggest this to developers, write to the other
mailing list?

regards, artin

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: den 6 november 2003 15:11
To: Tomcat Users List
Subject: RE: specifying web app classpath in server xml?



Howdy,
Can you symlink your WEB-INF/lib/otherProject.jar to the other's
project's build directory?

You can't declare classpaths in server.xml.  The classpath hierarchy is
fixed.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Anton Modaresi [mailto:[EMAIL PROTECTED]
>Sent: Thursday, November 06, 2003 5:29 AM
>To: [EMAIL PROTECTED]
>Subject: specifying web app classpath in server xml?
>
>Hi,
>I would like to specify additional classpaths for a web app
>beside the WEB-INF/lib WEB-INF/classes and common/lib directories.
>
>My reason is I have a project using code from another project.
>In a production environment you would jar the classes from the
>used project and put it in the WEb-INF/lib of the other
>
>but in development, where both projects may be updated all the time,
>I'd prefer to skip the extra overhead of either jaring all files,
>or recompile the classes a second time to the WEB-INF/classes of
>the taget project..
>
>So I am wondering, is there a way, I can say in my server.xml,
>hey please go and check in this additional classpath too for this
>particular web app. is this possible?
>
>(Im using tomcat 5.0.7)



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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


RE: Réf. : RE: Réf. : RE: dbcp pool size

2003-11-07 Thread Phillip Qin
I highly recommend you drop off dbcp and pool version 1.1 to
${catalina.home}/common/lib and remove old version from that directory
before we go any further into the pool discussion.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: November 7, 2003 2:42 AM
To: Tomcat Users List
Subject: Réf. : RE: Réf. : RE: dbcp pool size


I'm currently using the version which is shipped with
tomcat 4.18 distrib

I'm correctly closing all of my ressouces(connection,resulsets and

statement)

I'm still having the problem.

Meissa Sakho
NATEXIS ASSET MANAGEMENT
Direction de l'organisation
Tel. : 01 58 19 45 71
http://www.assetmanagement.natexis.fr





Phillip Qin <[EMAIL PROTECTED]>
06/11/2003 16:51
Veuillez répondre à "Tomcat Users List"



Pour :  "'Tomcat Users List'" <[EMAIL PROTECTED]>
cc :

Objet : RE: Réf. : RE: dbcp pool size


Noop. Below is my config in context.xml. Try to use dbcp and pool version
1.1

 

 
 
 driverClassName
 oracle.jdbc.driver.OracleDriver
 
 
 url
 jdbc:oracle:thin:@your.com:1521:SID
 
 
 username
 username
 
 
 password
 password
 
 
 maxActive
 20
 
 
 maxIdle
 10
 
 
 minIdle
 10
 
 
 maxWait
 15000
 
 
 removeAbandoned
 true
 
 
 logAbandoned
 true
 

 
 validationQuery
 SELECT SYSDATE FROM DUAL
 
 
 testOnBorrow
 true
 
 
 minEvictableIdleTimeMillis
 -1
 
 
 
 timeBetweenEvictionRunsMillis
 30
 
 
 numTestsPerEvictionRun
 1
 
 
 testWhileIdle
 true
 

 

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]

Sent: November 6, 2003 10:21 AM
To: Tomcat Users List
Subject: RE: Réf. : RE: dbcp pool size


Howdy,
Yup.


Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]
>Sent: Thursday, November 06, 2003 10:20 AM
>To: Tomcat Users List
>Subject: Réf. : RE: dbcp pool size
>
>
>Do you think a factory name is mandatory?
>
>Meissa Sakho
>NATEXIS ASSET MANAGEMENT
>Direction de l'organisation
>Tel. : 01 58 19 45 71
>http://www.assetmanagement.natexis.fr
>
>
>
>
>
>"Shapira, Yoav" <[EMAIL PROTECTED]>
>06/11/2003 14:56
>Veuillez répondre à "Tomcat Users List"
>
>
>
>Pour :  "Tomcat Users List" <[EMAIL PROTECTED]>
>cc :
>
>Objet : RE: dbcp pool size
>
>
>
>Howdy,
>Perhaps a factory class name in your resource params? ;)
>
>Yoav Shapira
>Millennium ChemInformatics
>
>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED]
>>Sent: Thursday, November 06, 2003 8:12 AM
>>To: [EMAIL PROTECTED]
>>Subject: dbcp pool size
>>
>>
>>hi all,
>>
>>I have configured my dbcp connection pool like the fragment
>>below.
>>
>>>type="javax.sql.DataSource"/>
>>
>>
>> usernamemailer
>> passwordmail2002
>>
>maxActive3
>>driverClassName
>>
>com.sybase.jdbc2.jdbc.SybDriver
>>url
>>
>>jdbc:sybase:Tds:s198000BLAHBLAH:5000/intranet_mailmete
>>r>
>>
>>  
>>
>>
>>I don't know why, but the pool size is always increasing.
>>
>>I've tried the maxActive parameter unsucessfully.
>>
>>I've search the list before posting this question.
>>But I've found no cure to my problem.
>>
>>Any help to detect what's missing in my config would
>>be greetly appreciated.
>>
>>Meissa
>>
>>Meissa Sakho
>>NATEXIS ASSET MANAGEMENT
>>Direction de l'organisation
>>Tel. : 01 58 19 45 71
>>http://www.assetmanagement.natexis.fr
>>
>>
>>L'integrite de ce message n'etant pas assuree sur internet, Natexi

RE: ant deploy

2003-11-07 Thread Phillip Qin
Can you show us your build.xml? Mine is

http://remotehost/manager"; username="${username}"
password="${password}" path="/${your.app.name}" war="${war.url}"/>

username: manager
your.app.name: context name
linux host: file:${war.dir}/${war.file}
win32 host: file:/${war.dir}/${war.file}

-Original Message-
From: Steven Woody [mailto:[EMAIL PROTECTED] 
Sent: November 6, 2003 8:39 PM
To: Tomcat Users List
Subject: Re: ant deploy

I heard the 'install' task can only communicate  to local server :-(  but I
want to deploy to a remove tomcat.


- Original Message - 
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, November 06, 2003 9:52 PM
Subject: RE: ant deploy



Howdy,
You want to use the install task instead of deploy most likely.
Needless to say, the host name should be a valid one that you can
ping/lookup ;)

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Steven Woody [mailto:[EMAIL PROTECTED]
>Sent: Thursday, November 06, 2003 12:47 AM
>To: [EMAIL PROTECTED]
>Subject: ant deploy
>
>Hi,
>
>I wanna use ant deploy task to deploy a war onto Tomcat, but always got
a
>UnknownHostName exception.  What's wrong here?  Did anyone used the
> task with sucessful?
>
>
>Regards.
>
>--
>Steven Woody



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



Server Tweaking

2003-11-07 Thread Hart, Justin
Hi, I've read of people having difficulties with their tomcat servers, where no page 
shows up the first time they try to load a page, and then when they hit refresh, it 
loads fine.  I understand that this is just a tweaking issue with the config files, 
and have heard that there are a few standard steps that people can take to get around 
this.  Anybody care to share?

Justin

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



Re: Connector Problem

2003-11-07 Thread Chong Yu Meng
You could try to locate automake 1.6 and install it instead of automake 
1.7, or you could regenerate aclocal.m4 (I don't know how to do that).

Regards,
pascal chong


[EMAIL PROTECTED] wrote:

Hi,
I have downloaded the automake, autoconf, libtool from GNU and installed,
and try to execute the following command to build the connector, however,
following error occur. cannot proceed further ... anyone can help ? I did
not seems to get libtoolize installed when installing the libtool.
$PWD> ./buildconf.sh
libtoolize --force --automake --copy
aclocal
aclocal: configure.in: 22: macro `AM_PROG_LIBTOOL' not found in library
automake -a --foreign -i --copy
configure.in:14: version mismatch.  This is Automake 1.7.8,
configure.in:14: but the definition used by this AM_INIT_AUTOMAKE
configure.in:14: comes from Automake 1.6.  You should recreate
configure.in:14: aclocal.m4 with aclocal and run automake again.
autoconf
Best Regards,
Loh Choon Leng

Chartered Semiconductor Manufacturing Ltd.
60 Woodlands Ind. Park-D St-2 Singapore 738406
Off : +65-63603684   HP :  +65-98463801
Email : [EMAIL PROTECTED], Fax : +65-63603816

[EMAIL PROTECTED] 08/11/2003 03:49 AM
Please respond to "Tomcat Users List"
  
 To:  Tomcat Users List <[EMAIL PROTECTED]>  
 cc:  (bcc: LOH Choon Leng/Mfg & Plan Sys/CHRT/ST Group)  
 Subject: Re: Connector Problem   
  
  
  





Hi,

Down load automake, autocon etc from sunfreeware.com and
install it with pkgadd -d command.(download .local.gz files).
Regds

Geetha Thanu
Bioinformatics
CDFD,Hyderabad.








-REPLY TO-
Date:Fri Nov 07 09:53:17 CST 2003
FROM: [EMAIL PROTECTED]
To: Tomcat Users List  <[EMAIL PROTECTED]>
Subject: Re: Connector Problem
Hi !
I am using solaris 2.8, will this set of instruction works fine as well
?
where do I get rpm : autmake, autoconfig, m4 libtool from ?

Best Regards,
Loh Choon Leng

Chartered Semiconductor Manufacturing Ltd.
60 Woodlands Ind. Park-D St-2 Singapore 738406
Off : +65-63603684   HP :  +65-98463801
Email : [EMAIL PROTECTED], Fax : +65-63603816

Chong Yu Meng <[EMAIL PROTECTED]>07/11/2003 09:28 AM
Please respond to "Tomcat Users List"
To: Tomcat Users List <[EMAIL PROTECTED]>
cc: (bcc: LOH Choon Leng/Mfg & Plan Sys/CHRT/ST Group)
Subject: Re: Connector Problem






Hello!

I have a set of instructions that may help you (see
http://www.cymulacrum.net/tomcat/jk2_compile.html). Just updated it
yesterday.
Are you using Linux or Solaris. If Linux, my instructions cover the
following configuration : Apache 2.0.47 (rpm) + Tomcat 4.1.29 + mod_jk2.
I used to work for your competitor across the street in Woodlands (TECH
Semiconductor) several years ago.
Regards,
pascal chong


[EMAIL PROTECTED] wrote:

 

When following the following procedure to build the connector,

Building

* Install tomcat(3.3, 4.0, 4.1). Install Apache(1.3, 2.0). Any
combination is fine, but j-t-c developers should have them all.
* Copy build.properties.sample to build.properties

* Edit build.properties to taste. In particular it's important to set
the paths to tomcat and apache.
* Run "ant". It'll build modules for all the detected containers.

* If your system have a current working version of libtool, run "ant
native".
This will build the native connectors for the detected servers ( both
   

jk
 

and jk2).

Alternatively, you can build using configure/make/dsp/apxs.

* Run "ant install". This will copy the files in the right location
in your server/container. Optional: on unix systems you can create
symlinks ( XXX script will be provided ) and avoid copying.
Following error occur, pls help ...



$PWD> $ANT_HOME/bin/ant
Buildfile: build.xml
init:
   [echo] /
apache20:

apache13:
 [so] Compiling 18 out of 18
Compiling
/PTSDEV/jakarta-tomcat-connectors-4.1.27-src/jk/native/common/jk_msg_buff.c
   



 

BUILD FAILED
file:/PTSDEV/jakarta-tomcat-connectors-4.1.27-src/jk/native/build.xml:222:
   

 

java.io.IOException: libtool: not found

Total time: 2 seconds

Best Regards,
Loh Choon Leng

Re: Connector Problem

2003-11-07 Thread Chong Yu Meng
I think Tomcat can't find your mod_jk.so file. What does line 4 of 
mod_jk.conf say ? Probably  the location there is wrong?

Regards,
pascal chong
[EMAIL PROTECTED] wrote:

Hi,
When starting apache, following error occurs, any idea why ?
Syntax error on line 4 of
/PTSDEV/jakarta-tomcat-4.1.29/conf/auto/mod_jk.conf:
Cannot load /PTSDEV/httpd-2.0.47/modules/mod_jk.so into server: ld.so.1:
/PTSDEV/httpd-2.0.47/bin/httpd: fatal: relocation error: file
/PTSDEV/httpd-2.0.47/modules/mod_jk.so: symbol ap_psprintf: referenced
symbol not found
Best Regards,
Loh Choon Leng

Chartered Semiconductor Manufacturing Ltd.
60 Woodlands Ind. Park-D St-2 Singapore 738406
Off : +65-63603684   HP :  +65-98463801
Email : [EMAIL PROTECTED], Fax : +65-63603816

LOH Choon Leng/Mfg & Plan Sys/CHRT/ST [EMAIL PROTECTED] Domain 07/11/2003 05:18 PM
Please respond to "Tomcat Users List"
  
 To:  "Tomcat Users List" <[EMAIL PROTECTED]>
 cc:  (bcc: LOH Choon Leng/Mfg & Plan Sys/CHRT/ST Group)  
 Subject: Re: Connector Problem   
  
  
  





Hi,
I have downloaded the automake, autoconf, libtool from GNU and installed,
and try to execute the following command to build the connector, however,
following error occur. cannot proceed further ... anyone can help ? I did
not seems to get libtoolize installed when installing the libtool.
$PWD> ./buildconf.sh
libtoolize --force --automake --copy
aclocal
aclocal: configure.in: 22: macro `AM_PROG_LIBTOOL' not found in library
automake -a --foreign -i --copy
configure.in:14: version mismatch.  This is Automake 1.7.8,
configure.in:14: but the definition used by this AM_INIT_AUTOMAKE
configure.in:14: comes from Automake 1.6.  You should recreate
configure.in:14: aclocal.m4 with aclocal and run automake again.
autoconf
Best Regards,
Loh Choon Leng

Chartered Semiconductor Manufacturing Ltd.
60 Woodlands Ind. Park-D St-2 Singapore 738406
Off : +65-63603684   HP :  +65-98463801
Email : [EMAIL PROTECTED], Fax : +65-63603816

[EMAIL PROTECTED] 08/11/2003 03:49 AM
Please respond to "Tomcat Users List"
 To:  Tomcat Users List <[EMAIL PROTECTED]>

 cc:  (bcc: LOH Choon Leng/Mfg & Plan Sys/CHRT/ST Group)

 Subject: Re: Connector Problem









Hi,

Down load automake, autocon etc from sunfreeware.com and
install it with pkgadd -d command.(download .local.gz files).
Regds

Geetha Thanu
Bioinformatics
CDFD,Hyderabad.








-REPLY TO-
Date:Fri Nov 07 09:53:17 CST 2003
FROM: [EMAIL PROTECTED]
To: Tomcat Users List  <[EMAIL PROTECTED]>
Subject: Re: Connector Problem
Hi !
I am using solaris 2.8, will this set of instruction works fine as well
?
where do I get rpm : autmake, autoconfig, m4 libtool from ?

Best Regards,
Loh Choon Leng

Chartered Semiconductor Manufacturing Ltd.
60 Woodlands Ind. Park-D St-2 Singapore 738406
Off : +65-63603684   HP :  +65-98463801
Email : [EMAIL PROTECTED], Fax : +65-63603816

Chong Yu Meng <[EMAIL PROTECTED]>07/11/2003 09:28 AM
Please respond to "Tomcat Users List"
To: Tomcat Users List <[EMAIL PROTECTED]>
cc: (bcc: LOH Choon Leng/Mfg & Plan Sys/CHRT/ST Group)
Subject: Re: Connector Problem






Hello!

I have a set of instructions that may help you (see
http://www.cymulacrum.net/tomcat/jk2_compile.html). Just updated it
yesterday.
Are you using Linux or Solaris. If Linux, my instructions cover the
following configuration : Apache 2.0.47 (rpm) + Tomcat 4.1.29 + mod_jk2.
I used to work for your competitor across the street in Woodlands (TECH
Semiconductor) several years ago.
Regards,
pascal chong


[EMAIL PROTECTED] wrote:

 

When following the following procedure to build the connector,

Building

* Install tomcat(3.3, 4.0, 4.1). Install Apache(1.3, 2.0). Any
combination is fine, but j-t-c developers should have them all.
* Copy build.properties.sample to build.properties

* Edit build.properties to taste. In particular it's important to set
the paths to tomcat and apache.
* Run "ant". It'll build modules for all

Re: Missing DataSourceRealm MBean definition

2003-11-07 Thread Jacob Kjome
At 07:22 AM 11/7/2003 +0100, you wrote:
Christopher Schultz wrote:
Jacob,

Tomcat5 no longer provides a separate "LE" version.  You can take that 
as a hint not to use the "LE" version in Tomcat4.1.x.  It causes nothing 
but confusion.
I disagree. The 'LE' version actually has less confusion because there 
aren't fighting XML parsers involved.
I don't know why Tomcat 5.x doesn't have an 'LE' version. I couldn't find 
any official word that LE versions "caused confusion and have been 
elimintated" :)
I would second your point of view IF guys who make LE version gave us 
pointers to ALL missing components, like JavaMail, etc.
Yep, and my argument is based on what *is*, not what should be.  There *is* 
confusion, I wish there weren't.

On the other hand, using system-wide XML parsers, and only those, has a 
drawback. Suppose one of your applications needs a particular version, 
while it doesn't sit well with Tomcat. What confusion will ensue then?
Well, what is your alternative?  It violates the sun classloading and 
servlet specs to load an XML parser from the WebappClassLoader and Tomcat 
enforces this.  The same applies to any packages that already exist in the 
JDK.  Furthermore, he "LE" version is meant to be used with j2sdk1.4+ which 
will force its own XML parsers (Crimson, Xalan, and the non-standard - at 
least w3c dom - XML parser API's that they include with it) on you unless 
you override it using the endorsed standards override mechanism.  This is 
where Tomcat's common/endorsed directory comes into play.

Given that info, what are you trying to say?  The fact is, you can't 
include your own XML parser per webapp in the same running container.  This 
may very well cause confusion, but you'll have to talk to Sun about its 
classloading rules, not the developers of Tomcat.

I believe that Craig commented something like that on the notion of having 
"global" Struts installation in Tomcat. OK, granted, it makes more sense, 
since you can build your WebApp for a particular version of Struts, while 
XML API should stay the same. But still, if you have a combo that is 
working - Tomcat X.Y.Z and Xerces A.B.C - then it is reasonable to ship it 
together.
I disagree with using a global version of Struts and I'm surprised Craig 
even said that since he has, as far as I am aware, always been a proponent 
of *avoiding* using libraries in a global classloader.  This is not only 
problematic for the reasons you state, but what do you do about static 
variables?  If they are set for one app, they are set for all.  Not 
good.  And, as I said before, you can't include your own XML parser in 
WEB-INF/lib.

Your alternative to all this is to have separate Tomcat containers running 
apps that require different XML parsers with your preferred XML parser APIs 
in each respective Tomcat's common/endorsed directory.

Jake

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


RE: Tomcat 4.1.24 - HTTP Status Message..

2003-11-07 Thread Shapira, Yoav

Howdy,
Hmm... I'm pretty sure only the protocol and code are required for most
messages, including 200, so HTTP/1.0 200 is legal (for both HTTP 1.0 and
1.1).  Some codes require additional information, e.g. forwarding URL,
but not this one.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: David Allison [mailto:[EMAIL PROTECTED]
>Sent: Friday, November 07, 2003 8:28 AM
>To: '[EMAIL PROTECTED]'
>Subject: Tomcat 4.1.24 - HTTP Status Message..
>
>Hi All,
>
>Recently we upgraded our Tomcat to version 4.1.24..
>We have Apache sitting in front of it providing SSL etc etc..
>
>Since upgrading we've noticed that the status line in HTTP responses
has
>changed from
>
>HTTP/1.0 200 OK
>
>to
>
>HTTP/1.0 200
>
>I'm not sure that whether the text message on the status line is
compulsory
>or not but one of our clients systems has been failing since as it
calls
>HttpURLConnection.getResponseCode() which throws an exception
(seemingly
>because of the missing text)...
>
>Does anyone know if this text is compulsory in the HTTP response (I
haven't
>found anything that says clearly either way) and also why Tomcat was
>changed
>this way.. Was there a particular reason, is there any fix to this
problem
>or is Tomcat still acting correctly (I suspect it is)..
>
>Thanks for your help
>
>Dave
>
>
>***

>
>This message contains information that may be privileged or
confidential
>and is the property of Orbian Management Limited. It is intended solely
for
>the named addressee(s) and may not be used or disclosed except for the
>purpose for which it has been sent.
>
>Access to this e-mail by anyone else is unauthorised. If you are not
the
>intended recipient, you are not authorized to read, print, retain,
copy,
>disseminate, distribute, or use this message or any part thereof.
>If you have received this message in error, please notify the sender
>immediately and delete the message and any attached documents.
>Any opinions, conclusions and other information expressed in this
message
>are those of the individual sender and are not given or endorsed by
Orbian
>unless otherwise clearly indicated.
>Orbian has scanned this e-mail for viruses but accepts no liability or
>responsibility for any onward transmission or use of emails and
attachments
>having left the Orbian domain.
>***

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Access static content ...

2003-11-07 Thread Samuel Le Berrigaud
Thanks for your help,

I'll do it another way I think and I'll probably come back on that 
problem later on.

SaM

Tim Funk wrote:

Then there is either
- a bug in tomcat
- a config error (most likely) but don't know what could be the culprit
I never heard of this before. Seems quite odd.

-Tim

Samuel Le Berrigaud wrote:

Yes

Tim Funk wrote:

[Need more coffee]

Does that mean that http://myserver/context/resources is serving a 
dir listing of the contents from http://myserver/context ?
(instead of /context/resources)

-Tim



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


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


RE: Tomcat Worker

2003-11-07 Thread Shapira, Yoav

Howdy,
You can see what it's doing by getting a thread dump (kill -s QUIT
).  Or programmatically, you can go through various
threads in the JVM and check isAlive().  Or with a profiler/thread
debugger, you can see the status of every thread in the JVM.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Arnab Chakravarty [mailto:[EMAIL PROTECTED]
>Sent: Friday, November 07, 2003 2:28 AM
>To: [EMAIL PROTECTED]
>Subject: Tomcat Worker
>
>Hi all,
>
>How can one ensure if the Tomcat worker thread is working or not? (If
this
>runs as a thread)
>
>How do we determine if this is dead?
>
>Thanks,
>~Arnab



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Access static content ...

2003-11-07 Thread Tim Funk
Then there is either
- a bug in tomcat
- a config error (most likely) but don't know what could be the culprit
I never heard of this before. Seems quite odd.

-Tim

Samuel Le Berrigaud wrote:

Yes

Tim Funk wrote:

[Need more coffee]

Does that mean that http://myserver/context/resources is serving a dir 
listing of the contents from http://myserver/context ?
(instead of /context/resources)

-Tim


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


RE: Please increase maxThreads !!!

2003-11-07 Thread Shapira, Yoav

Howdy,
It's the maxProcessors attribute of the Connector element
in server.xml.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: AMELIN Franck [mailto:[EMAIL PROTECTED]
>Sent: Friday, November 07, 2003 6:43 AM
>To: 'Tomcat Users List'
>Subject: Please increase maxThreads !!!
>
>Hi all ,
>
>I'm using tomcat 4.1.17 / apache 1.3.26 / mod_jk 1.2.2.
>
>Sometimes, I found this message in my catalina.out file :
>
>7 nov. 2003 09:12:35 org.apache.tomcat.util.log.CommonLogHandler log
>INFO: All threads are busy, waiting. Please increase maxThreads or
check
>the
>servlet status10 10
>
>
>The message is clear.
>But, I don't find where I can increase this maxThreads
>
>parameter.
>
>Thanks,
>
>Franck
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Access static content ...

2003-11-07 Thread Samuel Le Berrigaud
Yes

Tim Funk wrote:

[Need more coffee]

Does that mean that http://myserver/context/resources is serving a dir 
listing of the contents from http://myserver/context ?
(instead of /context/resources)

-Tim

Samuel Le Berrigaud wrote:

Of course it is a directory but tomcat lists / which contains the 
resources directory (in fact to list / I would only check 
http://myserver/context)

SaM

Tim Funk wrote:

If http://myserver/context/resources is a directory, then that is 
the correct behavior on how things work.

-Tim

Samuel Le Berrigaud wrote:

Hi,

I cannot change the code of my servlet since I use the Turbine 
framework. So I tried your second solution which doesn't work 
anymore. When I now want to access 
http://myserver/context/resources, I have the "directory listing 
for /" page ...

Maybe anyone have an idea of what's hapening, or maybe should I 
give up my idea ?!

Thanks,

SaM

Tim Funk wrote:

Or you might be able to get away with this to in web.xml ...

  /resources
  default


  /resources/*
  default

-Tim

Tim Funk wrote:

No, but this *might* work. Place it in your servlet which maps to 
/* ...
(assuming your extending javax.servlet.http.HttpServlet)

doGet(HttpServletRequest req, HttpServletResponse resp) {
  if (req.getRequestURI().indexOf("/resources")>-1) {
//Use the default servlet to serve the static content

getServletContext().getNamedDispatcher("default").forward(req, 
resp);
return;
  }

  //Normal logic
}
-Tim

Samuel Le Berrigaud wrote:

Hi all,

I want to map my servlet with /* url pattern except the 
/resources directory which contains static content that I want 
to acces directly. Is there any particular configuration that 
could allow me to do so, in my web.xml file or in the server.xml 
config file ?

I want to do that on a Tomcat 4.1



- 

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



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


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



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


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



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


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


Tomcat 4.1.24 - HTTP Status Message..

2003-11-07 Thread David Allison
Hi All,

Recently we upgraded our Tomcat to version 4.1.24..  
We have Apache sitting in front of it providing SSL etc etc..

Since upgrading we've noticed that the status line in HTTP responses has
changed from

HTTP/1.0 200 OK 

to 

HTTP/1.0 200 

I'm not sure that whether the text message on the status line is compulsory
or not but one of our clients systems has been failing since as it calls
HttpURLConnection.getResponseCode() which throws an exception (seemingly
because of the missing text)...

Does anyone know if this text is compulsory in the HTTP response (I haven't
found anything that says clearly either way) and also why Tomcat was changed
this way.. Was there a particular reason, is there any fix to this problem
or is Tomcat still acting correctly (I suspect it is)..

Thanks for your help

Dave


***
This message contains information that may be privileged or confidential and is the 
property of Orbian Management Limited. It is intended solely for the named 
addressee(s) and may not be used or disclosed except for the purpose for which it has 
been sent.
Access to this e-mail by anyone else is unauthorised. If you are not the intended 
recipient, you are not authorized to read, print, retain, copy, disseminate, 
distribute, or use this message or any part thereof.
If you have received this message in error, please notify the sender immediately and 
delete the message and any attached documents.
Any opinions, conclusions and other information expressed in this message are those of 
the individual sender and are not given or endorsed by Orbian unless otherwise clearly 
indicated.
Orbian has scanned this e-mail for viruses but accepts no liability or responsibility 
for any onward transmission or use of emails and attachments having left the Orbian 
domain.
***


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



RE: Tomcat 4.1 -- Newbie Question

2003-11-07 Thread Lee, Paul NYC
Yep, check out the "logs" directory.  There will be a catalina.out file that
captures all stdout and stderr.  

-Original Message-
From: Gopalakrishnan Govindakrishnan [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 07, 2003 8:23 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1 -- Newbie Question


Hi:

I am new to Tomcat and would like some help ...

1) Does Tomcat write out a log file when I initially start it? I 
have installed Tomcat 4.1 under windows 2000 and when I use the start 
programs --> Apache Tomcat 4.1 --> Start Tomcat, it opens a command 
window, but, it disappears quickly and I am not able to see if there any 
errors to resolve it.

Thanks
-- Gopal

-- 
---
G. Gopalakrishnan | Life is not measured by the
Ext - 76967   | number of breaths we take,
Phone: (303) - 272 - 6967 | but by the moments that
[EMAIL PROTECTED] | take our breath away.



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

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



Tomcat 4.1 -- Newbie Question

2003-11-07 Thread Gopalakrishnan Govindakrishnan
Hi:

   I am new to Tomcat and would like some help ...

   1) Does Tomcat write out a log file when I initially start it? I 
have installed Tomcat 4.1 under windows 2000 and when I use the start 
programs --> Apache Tomcat 4.1 --> Start Tomcat, it opens a command 
window, but, it disappears quickly and I am not able to see if there any 
errors to resolve it.

Thanks
-- Gopal
--
---
G. Gopalakrishnan | Life is not measured by the
Ext - 76967   | number of breaths we take,
Phone: (303) - 272 - 6967 | but by the moments that
[EMAIL PROTECTED] | take our breath away.


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


Re: Access static content ...

2003-11-07 Thread Tim Funk
[Need more coffee]

Does that mean that http://myserver/context/resources is serving a dir 
listing of the contents from http://myserver/context ?
(instead of /context/resources)

-Tim

Samuel Le Berrigaud wrote:

Of course it is a directory but tomcat lists / which contains the 
resources directory (in fact to list / I would only check 
http://myserver/context)

SaM

Tim Funk wrote:

If http://myserver/context/resources is a directory, then that is the 
correct behavior on how things work.

-Tim

Samuel Le Berrigaud wrote:

Hi,

I cannot change the code of my servlet since I use the Turbine 
framework. So I tried your second solution which doesn't work 
anymore. When I now want to access http://myserver/context/resources, 
I have the "directory listing for /" page ...

Maybe anyone have an idea of what's hapening, or maybe should I give 
up my idea ?!

Thanks,

SaM

Tim Funk wrote:

Or you might be able to get away with this to in web.xml ...

  /resources
  default


  /resources/*
  default

-Tim

Tim Funk wrote:

No, but this *might* work. Place it in your servlet which maps to 
/* ...
(assuming your extending javax.servlet.http.HttpServlet)

doGet(HttpServletRequest req, HttpServletResponse resp) {
  if (req.getRequestURI().indexOf("/resources")>-1) {
//Use the default servlet to serve the static content
getServletContext().getNamedDispatcher("default").forward(req, 
resp);
return;
  }

  //Normal logic
}
-Tim

Samuel Le Berrigaud wrote:

Hi all,

I want to map my servlet with /* url pattern except the /resources 
directory which contains static content that I want to acces 
directly. Is there any particular configuration that could allow 
me to do so, in my web.xml file or in the server.xml config file ?

I want to do that on a Tomcat 4.1



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



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


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



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


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



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


Re: Access static content ...

2003-11-07 Thread Samuel Le Berrigaud
Of course it is a directory but tomcat lists / which contains the 
resources directory (in fact to list / I would only check 
http://myserver/context)

SaM

Tim Funk wrote:

If http://myserver/context/resources is a directory, then that is the 
correct behavior on how things work.

-Tim

Samuel Le Berrigaud wrote:

Hi,

I cannot change the code of my servlet since I use the Turbine 
framework. So I tried your second solution which doesn't work 
anymore. When I now want to access http://myserver/context/resources, 
I have the "directory listing for /" page ...

Maybe anyone have an idea of what's hapening, or maybe should I give 
up my idea ?!

Thanks,

SaM

Tim Funk wrote:

Or you might be able to get away with this to in web.xml ...

  /resources
  default


  /resources/*
  default

-Tim

Tim Funk wrote:

No, but this *might* work. Place it in your servlet which maps to 
/* ...
(assuming your extending javax.servlet.http.HttpServlet)

doGet(HttpServletRequest req, HttpServletResponse resp) {
  if (req.getRequestURI().indexOf("/resources")>-1) {
//Use the default servlet to serve the static content
getServletContext().getNamedDispatcher("default").forward(req, 
resp);
return;
  }

  //Normal logic
}
-Tim

Samuel Le Berrigaud wrote:

Hi all,

I want to map my servlet with /* url pattern except the /resources 
directory which contains static content that I want to acces 
directly. Is there any particular configuration that could allow 
me to do so, in my web.xml file or in the server.xml config file ?

I want to do that on a Tomcat 4.1



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



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


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



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


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


Re: Access static content ...

2003-11-07 Thread Tim Funk
If http://myserver/context/resources is a directory, then that is the correct 
behavior on how things work.

-Tim

Samuel Le Berrigaud wrote:

Hi,

I cannot change the code of my servlet since I use the Turbine 
framework. So I tried your second solution which doesn't work anymore. 
When I now want to access http://myserver/context/resources, I have the 
"directory listing for /" page ...

Maybe anyone have an idea of what's hapening, or maybe should I give up 
my idea ?!

Thanks,

SaM

Tim Funk wrote:

Or you might be able to get away with this to in web.xml ...

  /resources
  default


  /resources/*
  default

-Tim

Tim Funk wrote:

No, but this *might* work. Place it in your servlet which maps to /* ...
(assuming your extending javax.servlet.http.HttpServlet)
doGet(HttpServletRequest req, HttpServletResponse resp) {
  if (req.getRequestURI().indexOf("/resources")>-1) {
//Use the default servlet to serve the static content
getServletContext().getNamedDispatcher("default").forward(req, 
resp);
return;
  }

  //Normal logic
}
-Tim

Samuel Le Berrigaud wrote:

Hi all,

I want to map my servlet with /* url pattern except the /resources 
directory which contains static content that I want to acces 
directly. Is there any particular configuration that could allow me 
to do so, in my web.xml file or in the server.xml config file ?

I want to do that on a Tomcat 4.1



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



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


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



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


Re: Access static content ...

2003-11-07 Thread Samuel Le Berrigaud
Hi,

I cannot change the code of my servlet since I use the Turbine 
framework. So I tried your second solution which doesn't work anymore. 
When I now want to access http://myserver/context/resources, I have the 
"directory listing for /" page ...

Maybe anyone have an idea of what's hapening, or maybe should I give up 
my idea ?!

Thanks,

SaM

Tim Funk wrote:

Or you might be able to get away with this to in web.xml ...

  /resources
  default


  /resources/*
  default

-Tim

Tim Funk wrote:

No, but this *might* work. Place it in your servlet which maps to /* ...
(assuming your extending javax.servlet.http.HttpServlet)
doGet(HttpServletRequest req, HttpServletResponse resp) {
  if (req.getRequestURI().indexOf("/resources")>-1) {
//Use the default servlet to serve the static content
getServletContext().getNamedDispatcher("default").forward(req, 
resp);
return;
  }

  //Normal logic
}
-Tim

Samuel Le Berrigaud wrote:

Hi all,

I want to map my servlet with /* url pattern except the /resources 
directory which contains static content that I want to acces 
directly. Is there any particular configuration that could allow me 
to do so, in my web.xml file or in the server.xml config file ?

I want to do that on a Tomcat 4.1



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



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


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


multiple web applications on tomcat

2003-11-07 Thread vim m
Hi: I have a web application deployed on tomcat/apache
which is working well. I have been working on another
application using 'ant install' and 'ant
reload/remove' for testing purposes. Now I want to
deploy the second application on tomcat using 'ant
all' and 'ant dist'. When I put the war file of the
second application under the webapps directory and
restart tomcat, tomcat does not open the archive and
create the folder for the second application. 
I have removed app2 using 'ant remove'. But everytime
i shutdown and start tomcat, app2 seems to exist since
if i execute 'ant remove' again, it displays the
message that the application is removed. 
Any help is appreciated. I am running apache2.0.44 and
tomcat 4.1.18 on RH7.2

Thanks so much.
vim

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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



Re: Access static content ...

2003-11-07 Thread Tim Funk
Or you might be able to get away with this to in web.xml ...

  /resources
  default


  /resources/*
  default

-Tim

Tim Funk wrote:

No, but this *might* work. Place it in your servlet which maps to /* ...
(assuming your extending javax.servlet.http.HttpServlet)
doGet(HttpServletRequest req, HttpServletResponse resp) {
  if (req.getRequestURI().indexOf("/resources")>-1) {
//Use the default servlet to serve the static content
getServletContext().getNamedDispatcher("default").forward(req, resp);
return;
  }
  //Normal logic
}
-Tim

Samuel Le Berrigaud wrote:

Hi all,

I want to map my servlet with /* url pattern except the /resources 
directory which contains static content that I want to acces directly. 
Is there any particular configuration that could allow me to do so, in 
my web.xml file or in the server.xml config file ?

I want to do that on a Tomcat 4.1



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



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


Re: Access static content ...

2003-11-07 Thread Tim Funk
No, but this *might* work. Place it in your servlet which maps to /* ...
(assuming your extending javax.servlet.http.HttpServlet)
doGet(HttpServletRequest req, HttpServletResponse resp) {
  if (req.getRequestURI().indexOf("/resources")>-1) {
//Use the default servlet to serve the static content
getServletContext().getNamedDispatcher("default").forward(req, resp);
return;
  }
  //Normal logic
}
-Tim

Samuel Le Berrigaud wrote:
Hi all,

I want to map my servlet with /* url pattern except the /resources 
directory which contains static content that I want to acces directly. 
Is there any particular configuration that could allow me to do so, in 
my web.xml file or in the server.xml config file ?

I want to do that on a Tomcat 4.1



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


Please increase maxThreads !!!

2003-11-07 Thread AMELIN Franck
Hi all ,

I'm using tomcat 4.1.17 / apache 1.3.26 / mod_jk 1.2.2.

Sometimes, I found this message in my catalina.out file :

7 nov. 2003 09:12:35 org.apache.tomcat.util.log.CommonLogHandler log
INFO: All threads are busy, waiting. Please increase maxThreads or check the
servlet status10 10


The message is clear.
But, I don't find where I can increase this maxThreads

parameter.

Thanks,

Franck



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



  1   2   >