configure tomcat

2005-08-27 Thread Joshua Pereira
hello 
im a beginer  .
im using windows XP,
tomcat 5.0.28,
MySql 4.1
Can anyone tell me what version of JDK should i use and how do i
configure my tomcat.
can anyone show me an example configuration for windows XP .
Thanks in advance..

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



cluster problems: memberDisappeared errors

2005-07-18 Thread Joshua Szmajda
I'm using the cluster fix patch on 5.5.9 (from 
http://issues.apache.org/bugzilla/show_bug.cgi?id=34389) with 8 hosts 
clustered together. I was seeing alot
of memberDisappeared errors before I applied this patch, now I'm still 
seeing them, but with more detail.

Here's an example error from catalina.out:

Jul 18, 2005 5:40:51 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster 
memberDisappeared
INFO: Received member 
disappeared:org.apache.catalina.cluster.mcast.McastMember[tcp://10.0.0.15:4002,10.0.0.15,4002, 
alive=1018550]
Jul 18, 2005 5:40:51 PM org.apache.catalina.cluster.tcp.DataSender 
pushMessage
INFO: resending 782 bytes to 10.0.0.15:4002 from 55784 
java.net.SocketException: Socket closed

   at java.net.SocketInputStream.read(SocketInputStream.java:162)
   at java.net.SocketInputStream.read(SocketInputStream.java:182)
   at 
org.apache.catalina.cluster.tcp.DataSender.waitForAck(DataSender.java:542)
   at 
org.apache.catalina.cluster.tcp.DataSender.pushMessage(DataSender.java:504)
   at 
org.apache.catalina.cluster.tcp.FastAsyncSocketSender$FastQueueThread.run(FastAsyncSocketSender.java:401)


A typical cluster config is:
   className="org.apache.catalina.cluster.tcp.SimpleTcpCluster" 
name="hydraNation"

managerClassName="org.apache.catalina.cluster.session.DeltaManager"

expireSessionsOnShutdown="false"
useDirtyFlag="true"
notifyListenersOnReplication="true">

   

  
className="org.apache.catalina.cluster.tcp.Jdk13ReplicationListener"

   tcpListenAddress="10.0.0.12"
   compress="false"
   tcpListenPort="4002"
   />


className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"

 replicationMode="fastasyncqueue"
 compress="false"
 doProcessingStats="true"
 queueTimeWait="true"
 maxQueueLength="1000"
 queueDoStats="true"
 queueCheckLock="true"
 ackTimeout="15000"
 waitForAck="true"
 autoConnect="false"
 keepAliveTimeout="@node.ackTimeout@"
 keepAliveMaxRequestCount="-1"/>

   className="org.apache.catalina.cluster.tcp.ReplicationValve"
 
filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;"/>


   className="org.apache.catalina.cluster.deploy.FarmWarDeployer"

 tempDir="/tmp/war-temp/"
 deployDir="/tmp/war-deploy/"
 watchDir="/tmp/war-listen/"
 watchEnabled="false"/>
   


any ideas? I'm thinking there's something wrong with my multicast setup, 
but everything was working fine this morning... The servers are running 
RHEL3, all 2 way AMD64 machines with 4Gb ram each. They each have two 
network interfaces, each eth0 is connected to one gigabit switch, each 
eth1 to another (internal) gigabit switch. I don't think I should be 
hitting any network bottlenecks.. ? There is alot of load on the site 
being served in general, but no big jump in hits today.


Should I be using a fastasyncqueue? What are the tradeoffs in Sender modes?

Thanks in advance!

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



Re: tomcat clustering

2005-04-25 Thread Joshua Szmajda
Awesome!
I think though since I need this functionality now, I might go with
JGroups' DistributedHashtable system. It's basically what I need right
out of the box.

Thanks, and good luck! I'll be looking forward to that functionality.

-Josh

Peter Rossbach wrote:

> With the next release I hope we support those handlings context
> attribute replication handling.
> We start a discussion at this list ( last three days).
>
> Topic:
> http://marc.theaimsgroup.com/?t=111417455100003&r=1&w=2
>
> Peter
>
>
>
>
> Joshua Szmajda schrieb:
>
>> Hey all,
>>
>> Is there a way to get the cluster system to replicate ServletContext
>> scope variables between cluster members? If not, is there a good guide
>> to writing Multicast sockets somewhere?
>>
>> Thanks alot!
>> -Josh
>>
>> -
>> 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 clustering

2005-04-25 Thread Joshua Szmajda
Hey all,

Is there a way to get the cluster system to replicate ServletContext
scope variables between cluster members? If not, is there a good guide
to writing Multicast sockets somewhere?

Thanks alot!
-Josh

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



JBoss (Tomcat?) problems with mod_jk2, httpd, and UTF8 form submissions?

2005-01-28 Thread Joshua McCulloch
I posted this on the JBoss forums and had no
responses. 
Although our environment is JBoss, I believe it would
also occur in Tomcat, although maybe not in latest
build?

---

We're using JBoss fronted by Apache HTTPD 2.0.52 with
mod_jk2. Found a strange bug. When a HTTP parameter
(in this case, it is a submit button) is being posted
with a UTF-8 character (0xc3b3, Latin1 0xF3, lowercase
o with acute). This is actually being posted as UTF8
(0xc3b3), and either JBoss or more likely Tomcat is
not converting these two bytes to a single character
(\u00f3). I want the value to be sent in UTF8, so this
is correct. The problem is that somewhere along the
line the data is not being interpreted as UTF8 and
being read as two characters.

If I use a GET, it will still fail. However, if I
remove Apache from the picture, and use the
URIEncoding attribute as follows:

Code:

   



It will work with a GET. Still will not work with
POST. I switched back to using Apache, and changed the
AJP connector to also use the URIEncoding attribute.
This fixed the GET, but POST is still not working
properly.

Other than changing our forms to use a GET, does
anyone know of a solution?

We're using JBoss 4.0.0, Httpd 2.0.52, and mod_jk2
(not sure of exact version).

Please let me know if I need to describe anything
further.

Any suggestions?

Thanks,
Josh



__ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 

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



Re: Tomcat, Apache connected in interesting way

2004-11-23 Thread Joshua Szmajda
Both are on the same server, yes. They are however listening on 
different IP addresses. If needed, you could set the tomcat http 
connector to listen on a different port and adjust the rewrite rule 
accordingly.

As far as SSL goes, the SSL encryption will be in place from the client 
to apache, but not from apache to tomcat. This is ok because apache and 
tomcat are both in the same trusted subnet (in fact, on the same 
machine). If that weren't the case, you could alter the rewrite rule on 
the SSL vhost to send requests to tomcat's ssl connector, thereby 
encrypting all connections.

-Josh
Joshua -
Are tomcat and apache running on the same server? If so, it appears 
from what you have here that they are on the same port...so...what am 
I missing?

Also, how do you handle .jsps and .dos that need to be handled by 
Tomcat securely (using SSL). This seems to pass them all off to the 
non-secure version. Would it just be a more complex RewriteRule that 
tests for https vs. http?


Thanks,
Matt
-
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, Apache connected in interesting way

2004-11-23 Thread Joshua Szmajda
Hi all,
I run a pretty high traffic site using Tomcat. We've gone through a 
number of configurations in the past, and I wanted to share with you the 
newest setup that we're using. It's a bit unorthodox perhaps, and I was 
wondering if anyone could think of possible problems? It does seem to be 
the fastest and most stable setup we've had yet.

Previously we've used Apache and Tomcat connected through jk1 and jk2. 
Also we've run direct to tomcat's http connector. JK1 was ok, but very 
slow. JK2 was fast (using unixSocket communication), but very buggy and 
crash prone. Tomcat alone was good, but it lacked some advanced apache 
stuff we wanted (Mostly URL Rewriting and good SSL handling).

After reading about the upcoming mod_proxy ajp connector for apache 2.2, 
I had the idea to use stuff that's in the current RHEL apache 2.0 
release to accomplish what I feel to be a similar effect. We've set up 
apache to reverse proxy requests for .jsp and .do (we're using struts) 
to tomcat's standard http connector.
From the httpd.conf:


 Order deny,allow
 Allow from all

ProxyRequests off
RewriteEngine on
RewriteRule ^/$ http://128.121.26.205/index.jsp [P,NC]
RewriteRule ^/(.*.jsp.*)$ http://128.121.26.205/$1 [P,NC]
RewriteRule ^/(.*.do.*)$ http://128.121.26.205/$1 [P,NC]
This allows apache to process additional rewriting things (I left them 
out) and also to serve images and other static content. I felt that 
apache would be better at handling static content than tomcat in 
general, so this will be an overall speed improvement.

Anyway, any flaws here I should be aware of? Comments? Thanks!
-Joshua Szmajda
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: AW: Tomcat 4.1.24 + Security Manager + weird Exceptions

2004-07-21 Thread Joshua Szmajda
I'm experiencing this same issue. I've got Tomcat 5.0.27, Apache 2.0.46,
and jk2 version 2.0.4. Has there been any solution? It occurs primarily
under heavy load.
-Joshua Szmajda
We've got a similar issue, though this in on Linux and using channelUnix/JNI instead 
of normal tcp channelSocket.
We're using Apache2/mod_jk2 (built from tomcat-connectors-1.1M1).

On heavy load, there are over 3000 sockets open by one Tomcat/JVM, they don't seem to 
go down again too while Tomcat is running.
(since File Descriptor limit on Solaris is lower normally (1024 or summat i think) 
this would cause us heavy problems there too)

The Tomcats and Apache are restarted during the night to free up Memory, so socket 
count goes down then.

However the application doesn't seem to be affected by this.
In catalina.out there are many errors like this:
org.apache.jk.common.ChannelUn receive
SEVERE: receive error:   12
java.lang.Throwable
   at org.apache.jk.common.ChannelUn.receive(ChannelUn.java:230)
   at org.apache.jk.common.ChannelUn.processConnection(ChannelUn.java:282)
   at org.apache.jk.common.AprConnection.runIt(ChannelUn.java:350)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:631)
   at java.lang.Thread.run(Thread.java:536)

org.apache.jk.common.JniHandler nativeDispatch
SEVERE: nativeDispatch: error -3
java.lang.Throwable
   at org.apache.jk.common.JniHandler.nativeDispatch(JniHandler.java:312)
   at org.apache.jk.common.ChannelUn.send(ChannelUn.java:221)
   at org.apache.jk.common.ChannelUn.invoke(ChannelUn.java:306)
   at org.apache.jk.server.JkCoyoteHandler.doWrite(JkCoyoteHandler.java:249)
   at org.apache.coyote.Response.doWrite(Response.java:530)
   at org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:384)
   at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:439)
   at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:359)
   at org.apache.coyote.tomcat4.OutputBuffer.writeBytes(OutputBuffer.java:411)
   at org.apache.coyote.tomcat4.OutputBuffer.write(OutputBuffer.java:398)
   at 
org.apache.coyote.tomcat4.CoyoteOutputStream.write(CoyoteOutputStream.java:110)
   at 
org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:1996)
   at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1745)
   at 
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1073)
   at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:506)
.

-
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: AW: Tomcat 4.1.24 + Security Manager + weird Exceptions

2004-07-20 Thread Joshua Szmajda
I'm experiencing this same issue. I've got Tomcat 5.0.27, Apache 2.0.46, 
and jk2 version 2.0.4. Has there been any solution? It occurs primarily 
under heavy load.

-Joshua Szmajda
We've got a similar issue, though this in on Linux and using channelUnix/JNI instead 
of normal tcp channelSocket.
We're using Apache2/mod_jk2 (built from tomcat-connectors-1.1M1).

On heavy load, there are over 3000 sockets open by one Tomcat/JVM, they don't seem to 
go down again too while Tomcat is running.
(since File Descriptor limit on Solaris is lower normally (1024 or summat i think) 
this would cause us heavy problems there too)

The Tomcats and Apache are restarted during the night to free up Memory, so socket 
count goes down then.

However the application doesn't seem to be affected by this.
In catalina.out there are many errors like this:
org.apache.jk.common.ChannelUn receive
SEVERE: receive error:   12
java.lang.Throwable
   at org.apache.jk.common.ChannelUn.receive(ChannelUn.java:230)
   at org.apache.jk.common.ChannelUn.processConnection(ChannelUn.java:282)
   at org.apache.jk.common.AprConnection.runIt(ChannelUn.java:350)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:631)
   at java.lang.Thread.run(Thread.java:536)

org.apache.jk.common.JniHandler nativeDispatch
SEVERE: nativeDispatch: error -3
java.lang.Throwable
   at org.apache.jk.common.JniHandler.nativeDispatch(JniHandler.java:312)
   at org.apache.jk.common.ChannelUn.send(ChannelUn.java:221)
   at org.apache.jk.common.ChannelUn.invoke(ChannelUn.java:306)
   at org.apache.jk.server.JkCoyoteHandler.doWrite(JkCoyoteHandler.java:249)
   at org.apache.coyote.Response.doWrite(Response.java:530)
   at org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:384)
   at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:439)
   at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:359)
   at org.apache.coyote.tomcat4.OutputBuffer.writeBytes(OutputBuffer.java:411)
   at org.apache.coyote.tomcat4.OutputBuffer.write(OutputBuffer.java:398)
   at 
org.apache.coyote.tomcat4.CoyoteOutputStream.write(CoyoteOutputStream.java:110)
   at 
org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:1996)
   at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1745)
   at 
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1073)
   at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:506)
.

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


JK2 possible JNI problem? nativeDispatch exceptions

2004-07-20 Thread Joshua Szmajda
Hi All,
I've got Tomcat 4.1.20 and Apache 2.0.46 running on Red Hat Enterprise 
Linux AS 3. I'm using the jk2 connector (connectors version 2.0.4) with 
a unixSocket channel. My problem is that the catalina.out file 
constantly gets the following two entries:

this one comes constantly..
[Mon Jul 19 19:20:51 2004] ( info ) [jk_jni_aprImpl.c (431)]  jkInvoke() 
invoke a971c670

and an exception (very often):
Jul 19, 2004 7:20:11 PM org.apache.jk.common.JniHandler nativeDispatch
SEVERE: nativeDispatch: error -3
java.lang.Throwable
   at 
org.apache.jk.common.JniHandler.nativeDispatch(JniHandler.java:310)
   at org.apache.jk.common.ChannelUn.send(ChannelUn.java:218)
   at org.apache.jk.common.ChannelUn.invoke(ChannelUn.java:303)
   at 
org.apache.jk.server.JkCoyoteHandler.doWrite(JkCoyoteHandler.java:279)
   at org.apache.coyote.Response.doWrite(Response.java:586)
   at 
org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:405)
   at 
org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:436)
   at 
org.apache.coyote.tomcat4.OutputBuffer.doFlush(OutputBuffer.java:354)
   at 
org.apache.coyote.tomcat4.OutputBuffer.flush(OutputBuffer.java:336)
   at 
org.apache.coyote.tomcat4.CoyoteWriter.flush(CoyoteWriter.java:117)
   at 
org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:209)
   at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:810)
   at org.apache.jsp.error_jsp._jspService(error_jsp.java:337)
   at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
   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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
   at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
   at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.custom(ErrorDispatcherValve.java:420)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.throwable(ErrorDispatcherValve.java:258)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:179)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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(StandardEngineValve.java:174)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
   at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:324)
   at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:395)
   at 
org.apache.jk.common.ChannelUn.processConnection(ChannelUn.java:286)
   at org.apache.jk.common.AprConnection.runIt(ChannelUn.java:347)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
   at java.lang.Thread.run(Thread.java:534)
   
I'm running a very high traffic site and so I was wondering if perhaps 
this was due to file locking collisions on the socket? I'm not sure 
there. This didn't used to happen when I was using regular domain 
sockets. I do need the unixSocket channel however, as it's proven to be 
much much faster.

I've tried commenting out the line that writes the first line, but that 
only seems to exacerbate the number of exceptions. I also was able to 
diminish the number of exceptions by changing the shm file from anon to 
a real file on the system. I'm thinking this is slowing down the JNI 
somehow? (leading me back to the collisions theory).

Any help is greatly appreciated! Otherwise I'm left with trying to read 
the code and learn JNI =/

Thanks Again,
-Joshua Szmajda
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: context.xml - what's the secret?

2004-03-25 Thread White, Joshua A (HTSC, CASD)
No problem.

I am using the "org.apache.catalina.ant.InstallTask" ant task.

As far as I know, this task does not copy the context XML into
$CATALINA_HOME/conf/Catalina/localhost.  Should it be doing this?  In fact,
the $CATALINA_HOME/conf/Catalina directory does not exist.

Suggestions?



-Original Message-
From: Chong Yu Meng [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 9:08 AM
To: Tomcat Users List
Subject: Re: context.xml - what's the secret?


Ok, this may sound like a rather obvious question, but how are you using 
the Ant task to install ? Are you using the deployer, or a custom ant 
task ?

Also, when you deploy your web application, does it copy the context XML 
into $CATALINA_HOME/conf/Catalina/localhost ? If it does not, then I 
suspect something is not working properly with the ant build file 
(everytime I write something like this, I get plenty of negative 
responses -- but at least, Joshua, you'll get a lot of information !)

White, Joshua A (HTSC, CASD) wrote:

>No luck.
>
>I am using the ant install task to install the war.  I have tried naming
the
>context fragment both context.xml and myAppName.xml.  Any other ideas?
>
>Joshua
>
>-Original Message-
>From: Chong Yu Meng [mailto:[EMAIL PROTECTED]
>Sent: Thursday, March 25, 2004 8:03 AM
>To: Tomcat Users List
>Subject: Re: context.xml - what's the secret?
>
>
>Hi Joshua,
>
>If you're using a war file, then you should place the  fragment 
>inside META-INF then deploy it. If you have already deployed the web 
>application (that is, it is either already expanded inside your web 
>application directory, or the directory was manually created and your 
>servlets and JSPs reside inside there), then the context's XML file goes 
>into $CATALINA_HOME/conf/Catalina/localhost/
>
>And remember that it should be given the same name as your web 
>application (that is, if your web application is called 
>'MyWonderfulApp', then the name of the XML file should be 
>MyWonderfulApp.xml. Not context.xml.
>
>I spent the whole of last weekend figuring this out ... sigh !
>
>HTH
>
>
>  
>


-- 
"Men never do evil so completely and cheerfully as when they do it from
religious conviction." 
-- Blaise Pascal
++
| Pascal Chong   |
| email: [EMAIL PROTECTED]  |
||
| Please visit my site at : http://cymulacrum.net|
| If you're using my documentation, please read the Terms and|
| and Conditions at http://cymulacrum.net/terms.html |
++



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


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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



RE: context.xml - what's the secret?

2004-03-25 Thread White, Joshua A (HTSC, CASD)
No luck.

I am using the ant install task to install the war.  I have tried naming the
context fragment both context.xml and myAppName.xml.  Any other ideas?

Joshua

-Original Message-
From: Chong Yu Meng [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 8:03 AM
To: Tomcat Users List
Subject: Re: context.xml - what's the secret?


Hi Joshua,

If you're using a war file, then you should place the  fragment 
inside META-INF then deploy it. If you have already deployed the web 
application (that is, it is either already expanded inside your web 
application directory, or the directory was manually created and your 
servlets and JSPs reside inside there), then the context's XML file goes 
into $CATALINA_HOME/conf/Catalina/localhost/

And remember that it should be given the same name as your web 
application (that is, if your web application is called 
'MyWonderfulApp', then the name of the XML file should be 
MyWonderfulApp.xml. Not context.xml.

I spent the whole of last weekend figuring this out ... sigh !

HTH


-- 
"Men never do evil so completely and cheerfully as when they do it from
religious conviction." 
-- Blaise Pascal
++
| Pascal Chong   |
| email: [EMAIL PROTECTED]  |
||
| Please visit my site at : http://cymulacrum.net|
| If you're using my documentation, please read the Terms and|
| and Conditions at http://cymulacrum.net/terms.html |
++



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


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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



RE: context.xml - what's the secret?

2004-03-25 Thread White, Joshua A (HTSC, CASD)
Adam,

I will certainly give that a try...

Joshua

-Original Message-
From: Adam Fowler [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 7:55 AM
To: 'Tomcat Users List'
Subject: RE: context.xml - what's the secret?


Try putting it in WEB-INF instead of META-INF

Adam.

-Original Message-
From: White, Joshua A (HTSC, CASD) [mailto:[EMAIL PROTECTED]
Sent: 25 March 2004 12:45
To: '[EMAIL PROTECTED]'
Subject: context.xml - what's the secret?


Hello all,
 
Let me first say that I am using Tomcat 4.1.30 and have an existing
application that is working properly.  I decided that I would like to
explore putting the context element for my web application in a
myWebapp/META-INF/context.xml file instead of in my server.xml file.  The
existing configuration currently works and defines both a dbcp connection
pool and a mail session.
 
After removing this context element from my server.xml file and placing it
into the context.xml file, my application no longer works.  What did I miss?
I am using the ant install and deploy tasks to deploy/install this simple
application.
 
I receive the following exception (keep in mind that my previous
configuration works and that my JDBC driver is in the common/lib dir):
 
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null', cause:
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:743)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5
18)
at hibernateapp.DBTest.init(DBTest.java:24)
.
.
.
 
Regards,
 
Joshua
 
 


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all
copies.


_

This email and any files attached is intended for the addressee only and may
contain information that is confidential and/or legally privileged.
Unauthorised use is strictly prohibited and may be unlawful. If you are not
the addressee, you should not read, copy, disclose or otherwise use this
message, including any attachment, except for the purpose of delivery to the
addressee.

We make every effort to keep our network free from viruses. However, you do
need to verify this e-mail and any attachments to it to be virus free as we
can take no responsibility for any computer virus which might be transferred
by way of this e-mail.

Scanning of this message and addition of this footer is performed by
SurfControl E-mail Filter software in conjunction with virus detection
software.





-
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: context.xml - what's the secret?

2004-03-25 Thread White, Joshua A (HTSC, CASD)
No, I am not currently using a war file.  The ant deploy task is copying the
updated files directly to the webapps directory.

Joshua

-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 7:52 AM
To: Tomcat Users List
Subject: Re: context.xml - what's the secret?


Are you using a war file?


- Original Message - 
From: "White, Joshua A (HTSC, CASD)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 25, 2004 7:45 AM
Subject: context.xml - what's the secret?


> Hello all,
>
> Let me first say that I am using Tomcat 4.1.30 and have an existing
> application that is working properly.  I decided that I would like to
> explore putting the context element for my web application in a
> myWebapp/META-INF/context.xml file instead of in my server.xml file.  The
> existing configuration currently works and defines both a dbcp connection
> pool and a mail session.
>
> After removing this context element from my server.xml file and placing it
> into the context.xml file, my application no longer works.  What did I
miss?
> I am using the ant install and deploy tasks to deploy/install this simple
> application.
>
> I receive the following exception (keep in mind that my previous
> configuration works and that my JDBC driver is in the common/lib dir):
>
> org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
> class '' for connect URL 'null', cause:
> java.sql.SQLException: No suitable driver
> at java.sql.DriverManager.getDriver(DriverManager.java:243)
> at
>
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
> a:743)
> at
>
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5
> 18)
> at hibernateapp.DBTest.init(DBTest.java:24)
> .
> .
> .
>
> Regards,
>
> Joshua
>
>
>
>
> This communication, including attachments, is for the exclusive use of
> addressee and may contain proprietary, confidential or privileged
> information. If you are not the intended recipient, any use, copying,
> disclosure, dissemination or distribution is strictly prohibited. If
> you are not the intended recipient, please notify the sender
> immediately by return email and delete this communication and destroy all
copies.
>
>



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

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



context.xml - what's the secret?

2004-03-25 Thread White, Joshua A (HTSC, CASD)
Hello all,
 
Let me first say that I am using Tomcat 4.1.30 and have an existing
application that is working properly.  I decided that I would like to
explore putting the context element for my web application in a
myWebapp/META-INF/context.xml file instead of in my server.xml file.  The
existing configuration currently works and defines both a dbcp connection
pool and a mail session.
 
After removing this context element from my server.xml file and placing it
into the context.xml file, my application no longer works.  What did I miss?
I am using the ant install and deploy tasks to deploy/install this simple
application.
 
I receive the following exception (keep in mind that my previous
configuration works and that my JDBC driver is in the common/lib dir):
 
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null', cause:
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:743)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5
18)
at hibernateapp.DBTest.init(DBTest.java:24)
.
.
.
 
Regards,
 
Joshua
 
 


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.



apache/Jk problems

2004-02-24 Thread Joshua J. Cox
Converting some apache/tomcat systems from Webapp connectors to Jk 
using ajp13, I'm having problems getting apache/Jk to talk to Tomcat.  
I believe I've been very careful with the port assignments and whatnot, 
but continue to get failure, and the following error in the mod_jk.log:

ajp_connection_tcp_get_message: Error - Wrong message format 0x4854

I'm running tomcat 4.1.18 with Apache 2.0.48 in a Solaris 8 environment.
Any help that can be offered is much appreciated.
Here are some config file snippets, for your pleasure:

workers.properties:
--
worker.list=worker1
worker.worker1.port=8009
worker.worker1.host=tomcat-dev1
worker.worker1.type=ajp13
worker.worker1.lbfactor=1
server.xml connector:
-


httpd.conf:

LoadModule jk_module libexec/mod_jk.so
JkWorkersFile /usr/local/tomcat/conf/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

JkMount /loadbalance/* worker1
Joshua J. Cox, Unix Systems Administrator, @Once
direct.503.419.0550 reception.503.241.4185 mobile.503.449.7576
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Restrict access to a webapps folder based on ip

2003-09-09 Thread Joshua Russell
I was wondering if it was possible to restrict access to a certain 
webapps folder based on the ip the packet was coming from. 

So if .../webapps/app1 was for an intranet site with all ip's within a 
certian range having access, and /webapps/app2 for a web-site allowing 
machines with any ip.

Does this make sense to anyone? And if so is there a better solution to 
hosting two applications on the same server...???Two instances of 
Tomcat...different ports??

I am currently running Tomcat 4.0.6 standalone...




-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Apache 2.0.47, Tomcat 4.1.27 with mod_jk2 2.0.2 AND mod_deflate

2003-08-21 Thread Joshua McCulloch
I have setup Apache 2.0.47 on Windows XP to serve
jsp/servlet requests
using Tomcat 4.1.27. I did this using the mod_jk2
module and was able
to successfully connect to http://host/examples and
get the tomcat
example pages. I'm using JDK 1.3.1-03.

I then configured mod_deflate and was able to verify
it works by
telneting to port 80 and giving it a request using
"Accept-Encoding:
gzip, deflate". I did this on both the main index.html
file and the
main manual document.

However, any request to /examples/* (served by jk2)
does NOT get
compressed. I even placed the main index.html file in
TOMCAT_HOME\webapps\examples\ and that too will be
send un-compressed!

I've tried a variety of options within the 
section, and
switching the order of the LoadModule statements.

Is what I’m trying to do possible? Should I switch to
mod_jk or mod_webapp, or maybe downgrade to Apache
1.3.x?

Below are the configuration files/sections which
should be relevant:

Workers2.properties
[common]
debug=10
[config]
debug=10
debugEnv=10
[shm]
file=c:/apache/apache2/logs/shm.file
size=1048576
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009
[uri:/examples/*]
info=Map the whole webapp

httpd.conf:
LoadModule jk2_module modules/mod_jk2-2.0.43.so
LoadModule deflate_module modules/mod_deflate.so


SetOutputFilter DEFLATE

Options FollowSymLinks
AllowOverride None


Thanks,
Josh


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Random, either Error 500: "The system cannot find the file specif ied " or images missing - Win2k : Tomcat 4.1.24 : IIS 5 : JDK 1.41

2003-07-17 Thread White, Joshua A (HTSC, CASD)
Environment:
Win 2k Server   
IIS 5.0 -> proxy using isapi_redirector2.dll -> Tomcat 4.1.24
JDK 1.4.1

Note: This is an internal application and is not accessed through a
proxy server or firewall.  The uri I have specified in the
workers2.properties file is [uri:/myapp/*]  



The Problem:

Five percent of the time, users experience missing pages,images, css or js
files.  When the page is not displayed, users see a "Page cannot be
displayed" IE error.  (With friendly error messages turned off, the actual
error seems to be "The system cannot find the file specified")

Looking through the log files, I see that the dll is returning a 500 error
to the user.  When looking through the tomcat logs, I see no such thing.
Could this be an ISAPI plugin problem?  Any suggestions on where to begin
debugging this problem?

If the users go directly to tomcat (running on port 8080) these problems
disappear.  There are some known problems with IIS and isapi pluggins, but I
cant tell if this is related.  Anyone else experience Any help would be
appreciated.

Regards,

Joshua


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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



The system cannot find the file specified - HELP

2003-07-17 Thread White, Joshua A (HTSC, CASD)
I am proxying Tomcat through IIS using the isapi_redirector2.dll.

The uri I have specified in the workers2.properties file is

[uri:/myapp/*]

Ninety five percent of the time, every thing works fine.  The other five
percent of the time, users experience missing images and or css or js files.
Other times a 500 error is returned to the user (Page cannot be displayed).
When "Friendly error messages" in IE is turned off, I see the message "The
system cannot find the file specified".

Looking through the log files, I see that the dll is returning a 500 error
to the user.  When looking through the tomcat logs, I see no such thing.
Could this be an ISAPI plugin problem?

Regards,

Joshua


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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



RE: Is it possible to add header values to the request (not the r espo nse)?

2003-07-16 Thread White, Joshua A (HTSC, CASD)
Tim,

The getHeader methods does not return any reference to any kind of header
object which I could modify.
I would have to create my own setHeader method instead.  There has to be an
easier way to do this.

Any other ideas?

-Joshua


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 16, 2003 7:34 AM
To: Tomcat Users List
Subject: Re: Is it possible to add header values to the request (not the
respo nse)?


You can do this via a Filter and HttpServletRequestWrapper, where your 
imlpementation of HttpServletRequestWrapper will extend the needed getHeader

methods to send the additional stuff you need.

-Tim

White, Joshua A (HTSC, CASD) wrote:
> Hey all,
> 
> My production application uses a site minder web agent.  This agent places
> two name/value pairs into the request header, one for userName, the other
> for domain.
> 
> In my application, I have a filter which looks for these values to make
sure
> the user is logged in.  Currently I do not have site minder in my
> development environment, but I would like to simulate its functionality by
> placing values in the request header before my other filter looks for
them.
> 
> I know that you can place values in the response header.  Can it be done
> with the request as well?
> 




This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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



Is it possible to add header values to the request (not the respo nse)?

2003-07-16 Thread White, Joshua A (HTSC, CASD)
Hey all,

My production application uses a site minder web agent.  This agent places
two name/value pairs into the request header, one for userName, the other
for domain.

In my application, I have a filter which looks for these values to make sure
the user is logged in.  Currently I do not have site minder in my
development environment, but I would like to simulate its functionality by
placing values in the request header before my other filter looks for them.

I know that you can place values in the response header.  Can it be done
with the request as well?

Joshua


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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



RE: Relative URL problem

2003-07-09 Thread White, Joshua A (HTSC, CASD)
Bill,

Is this a server.xml or web.xml option?  Where should I be looking?  If
tomcat does a redirect to http://localhost:8080/myapp/, should I then see
this in the browser?

Joshua



-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 11:48 PM
To: [EMAIL PROTECTED]
Subject: Re: Relative URL problem


It would help to know your config.  e.g. Both Apache and Tomcat will respond
to a request for http://localhost:8080/myapp by sending a redirect to
http://localhost:8080/myapp/ .

"White, Joshua A (HTSC, CASD)" <[EMAIL PROTECTED]> wrote in
message
news:[EMAIL PROTECTED]
> I currently server my jsp files from under the web-inf/jsp directory.
>
> If I call my application using http://localhost:8080/myapp, my images do
not
> appear at all.  If I call my application using
http://localhost:8080/myapp/
> (note the trailing slash) everything works fine.  Subsequent calls to
other
> resources contain the slash (for example
> http://localhost:8080/myapp/myservlet).
>
> Any advice for handling relative urls on my default page?
>
> Regards,
>
> Joshua
>
>
>
>
>
> This communication, including attachments, is for the exclusive use of
> addressee and may contain proprietary, confidential or privileged
> information. If you are not the intended recipient, any use, copying,
> disclosure, dissemination or distribution is strictly prohibited. If
> you are not the intended recipient, please notify the sender
> immediately by return email and delete this communication and destroy all
copies.




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



Relative URL problem

2003-07-08 Thread White, Joshua A (HTSC, CASD)
I currently server my jsp files from under the web-inf/jsp directory.

If I call my application using http://localhost:8080/myapp, my images do not
appear at all.  If I call my application using http://localhost:8080/myapp/
(note the trailing slash) everything works fine.  Subsequent calls to other
resources contain the slash (for example
http://localhost:8080/myapp/myservlet).

Any advice for handling relative urls on my default page?

Regards,

Joshua





This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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



context.xml in META-INF directory

2003-06-30 Thread White, Joshua A (HTSC, CASD)
Hello all,

Does tomcat automatically look for a context.xml file in the META-INF
directory?  Can I just deploy the war or am I better off deploying the war
by placing the context.xml file in the webapps directory?  Is there a best
practice for using the context.xml file?

Regards,

Joshua 



This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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



referenced files such as images, js and css files seem to randoml y not get downloaded by the users browser

2003-06-26 Thread White, Joshua A (HTSC, CASD)
Hello all,

I am proxying through IIS to Tomcat.  I have noticed that referenced files
such as images, js and css files seem to randomly not get downloaded by the
users browser.  Has anyone else had such a problem?  Refreshing the page
usually fixes the problem.

I have cleared users cache and changed IE to check for a new version of the
page every time.  No silver bullet.  I am not sure where to go with this.
Any ideas?

Regards, 

Joshua White


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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



Unable to compile JSP on Win 2k sp3, tc 4.1.24 as service, sdk 1. 4.1_03 - Is there a solution?

2003-06-26 Thread White, Joshua A (HTSC, CASD)
This is urgent.  Your help would be much appreciated.  As mentioned above, I
have installed tomcat 4.1.24 as a service on Win 2k sp3 using sdk 1.4.1_03.
JAVA_HOME and CATALINA_HOME have been defined as an enviromental variable.
I am able to run all the jsp examples.  When I run my app and hit the first
jsp, I receive the following error listed below.  I have scoured the
archives and found this problem mentioned numerous times but found no
solution.  If you know the solution to this problem, please point me in the
right direction.
 
Regards,
 
Joshua
 
 
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 flag: C:\Program

[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]   -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]   -source  Provide source compatibility with specified
release

[javac]   -target  Generate class files for specific VM version

[javac]   -help Print a synopsis of standard options









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.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)

at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)

at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)

at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
69)

at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcesso
r.java:274)

at
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRe
questProcessor.java:254)

at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequ
estProcessor.java:309)

at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)

at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)

at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)

at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)

at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)

at comptrak.web.signon.SignOnFilter.doFilter(SignOnFilter.java:105)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

at

RE: RE : IIS 5 + Tomcat 4.1.24 + JK2 Connector problem

2003-06-25 Thread White, Joshua A (HTSC, CASD)
Check out 
http://www.reynir.net/tomcat/tomcat_IIS_service.html for JK or 
http://www.reynir.net/tomcat/tomcat_IIS_service_jk2.html for JK2
installation 
instructions, that work.


Regards,

Joshua White








-Original Message-
From: Dominic Parry [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 11:45 AM
To: Tomcat Users List
Subject: Re: RE : IIS 5 + Tomcat 4.1.24 + JK2 Connector problem


Did you restart Tomcat? And reboot your machine?
  - Original Message - 
  From: Hertenstein Alain 
  To: 'Tomcat Users List' 
  Sent: Wednesday, June 25, 2003 5:38 PM
  Subject: RE : RE : IIS 5 + Tomcat 4.1.24 + JK2 Connector problem


  Hi again,

  Just replaced my workers2.properties file with yours (and changing the
path
  to the shm file according to my Tomcat 4 installation): exactly the same
  problem...

  Besides, I double-checked the W2K Event log entries and couldn't find that
  entry (or similar) you mentioned :
  "Error: [jk_shm.c (333)]: shm.init(): No file"

  I really don't know what to do. Why is this such a pain to simply connect
  IIS and Tomcat, even when following the instructions ?

  Thanks again for your help...
  Alain

  -Message d'origine-
  De : David Legg [mailto:[EMAIL PROTECTED] 
  Envoyé : mercredi, 25. juin 2003 16:59
  À : 'Tomcat Users List'
  Objet : RE: RE : IIS 5 + Tomcat 4.1.24 + JK2 Connector problem


  Aha!  I thought so :-)

  Here's my workers2.properties file: -

  <
  #
  # workers2.properties
  #
  [shm]
  file=C:\tomcat4\logs\shm.file
  size=1048576

  [channel.socket:127.0.0.1:8009]
  info=Ajp13 forwarding over socket
  tomcatId=localhost:8009

  # Map the Tomcat examples webapp to the Web server uri space
  [uri:/examples/*] info=Map the whole webapp
  -->

  The [shm] entry seems to be some sort of shared memory area and I've seen
  references to something called the 'scoreboard' in conjunction with it.
  Anyway, the bottom line is you need this entry for JK2 to work on IIS.  If
  you look in your W2k Event log you'll probably also notice a tell-tale
  Tomcat application error similar to this: -

Error: [jk_shm.c (333)]: shm.init(): No file

  Hope this helps.

  Regards,

  David Legg
  Webmaster - 3Dlabs
  http://www.3dlabs.com
  mailto:[EMAIL PROTECTED]


  **
   This email and any files transmitted with it are confidential and
  intended solely for the use of the individual or entity to whom they
  are addressed. If you have received this email in error please notify
  the system manager.
  **


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



This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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



context.xml question

2003-06-18 Thread White, Joshua A (HTSC, CASD)
Three questions here:


Can the docBase attribute of the context element be relative?  The location
of the docBase will be different depending on where I am deploying to.
Given mywebapp/META-INF/context.xml, the document root will always be two
directories up from the context.xml file.  Could this be done?  Is there a
better way of managing this?

On a seperate note, when installing a war file using the catalina ant task,
should tomcat automatically look in the META-INF directory of the war file
for a context.xml file?  I have not been able to get this to work.  I wound
up specifing both the config file as well as the war file in the install
task.  Is this how it is supposed to work?

If your set the reloadable attribute of the context element to true, do you
still need to use the ant reload task to pick up your changes? 

Regards,

Joshua 




...



This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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



context.xml question

2003-06-16 Thread White, Joshua A (HTSC, CASD)
Is it necessary to specify the docBase attribute of the Context element of
the myWebApp/META-INF/context.xml file?  

Joshua





This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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



Best practice development directory layout for deploying exploded war

2003-06-13 Thread White, Joshua A (HTSC, CASD)
Hello all,

My company is contemplating the idea of deploying servlet applications on
Tomcat in production. (woohoo!)

I am hoping that some of you may suggest some best practices for laying out
your development directory structure.  I have my directory structure layed
out like an expanded war file.  If I point tomcat to this directory for
expanded deployment, it makes it easy to edit/source control jsp files.  It
also makes copying/updating/deleting jar/lib files a pain.  Do people set up
a empty classes directory under the web-inf to source control their
properties files or is it better to put them in a separate directory and
copy them there?

Is the best practice to do it this way or to copy your jsp/classes/libs to
another exploded directory all together?

Best Regards,

Joshua








This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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



Siteminder integration?

2003-06-11 Thread White, Joshua A (HTSC, CASD)
Hello all,
 
Is there a plug-in available for integrating Tomcat with Siteminder?  Has
anyone figured this out?
 
Regards,
 
Joshua
 


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.



Problems with JMX Bean in Tomcat4.1.18

2003-03-10 Thread Joshua Sunil Kumar

Hi
I have a problem with JMX Bean it was giving the following  error

ServerLifecycleListener: Creating MBean for Connector
[EMAIL PROTECTED]
java.lang.Exception: ManagedBean is not found with Ajp13Connector
at
org.apache.catalina.mbeans.MBeanUtils.createMean(MBeanUtils.java:234)


I commented out the code for the JMX Bean in the server.xml bcos in one of
the posts in the mail-archive site I found the JMX BEan and the Apj13 cannot
be used together. But
now I am getting these errors after commenting out the JMX Bean code.



java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:447)
at java.net.ServerSocket.(ServerSocket.java:165)
at java.net.ServerSocket.(ServerSocket.java:116)
at
org.apache.catalina.net.DefaultServerSocketFactory.createSocket(DefaultServe
rSocketFactory.java:147)
at
org.apache.ajp.tomcat4.Ajp13Connector.open(Ajp13Connector.java:825)
at
org.apache.ajp.tomcat4.Ajp13Connector.start(Ajp13Connector.java:1071)
at
org.apache.catalina.core.StandardService.start(StandardService.java:506)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
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)
java.lang.NullPointerException
at
org.apache.ajp.tomcat4.Ajp13Connector.run(Ajp13Connector.java:869)
at java.lang.Thread.run(Thread.java:479)


Tags in server.xml which is commented.

  

**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***

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

RE: Exception on Tomcat

2003-03-10 Thread Joshua Sunil Kumar
Hi
There is a jar file called activation jar. This file is not your classpath.
Add it up in ur classpath and the exceptions will disappear.

BR
Joshua


-Original Message-
From: Marcelo [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 7:00 PM
To: tom cat
Subject: Exception on Tomcat


Does anybody knows what this exception means? It
appers when I try to send a email(function that I get
from the webmail package of java):

org.apache.jasper.JasperException:
javax/activation/DataSource


thanks

Marcelo.

___
Busca Yahoo!
O serviço de busca mais completo da Internet. O que você pensar o Yahoo!
encontra.
http://br.busca.yahoo.com/

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

**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***

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

RE: Problem with sticky session in Tomcat4.1.18 and Apache 2.0.43 using mod_JK Connector.

2003-03-10 Thread Joshua Sunil Kumar
Hi
The sessiion problem has been fixed but I am getting the following error
something with the JMX Bean
I commented out the code for the JMX Bean in the server.xml bcos in one of
the posts I found the JMX BEan and the Apj13 cannot be used together. But
now I am getting these errors.


java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:447)
at java.net.ServerSocket.(ServerSocket.java:165)
at java.net.ServerSocket.(ServerSocket.java:116)
at
org.apache.catalina.net.DefaultServerSocketFactory.createSocket(DefaultServe
rSocketFactory.java:147)
at
org.apache.ajp.tomcat4.Ajp13Connector.open(Ajp13Connector.java:825)
at
org.apache.ajp.tomcat4.Ajp13Connector.start(Ajp13Connector.java:1071)
at
org.apache.catalina.core.StandardService.start(StandardService.java:506)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
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)
java.lang.NullPointerException
at
org.apache.ajp.tomcat4.Ajp13Connector.run(Ajp13Connector.java:869)
at java.lang.Thread.run(Thread.java:479)


Tags in server.xml which is commented.

  

Can neone help me on this.

Thanx in advance.
Joshua




-Original Message-
From: Joshua Sunil Kumar [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 5:43 PM
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Hi Eric
Thanx for the config files it works now. The only difference was the
jvmRoute in the server.xml.
There was a typo error in the server.xml file.

Bye
Joshua



-Original Message-
From: Roberts, Eric [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 3:37 PM
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Joshua,

Here are the extracts from my conf files. I am running Apache 2.0.43 with
mod_jk and Tomcat 4.1.18 also, so please check carefully that you have
similar.

workers.properties:

worker.list=tomcat1,tomcat2,loadbalancer

worker.tomcat1.port=9019
worker.tomcat1.host=myhost
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=100

worker.tomcat2.port=9029
worker.tomcat2.host=myhost
worker.tomcat2.type=ajp13
worker.tomcat2.lbfactor=100

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat1, tomcat2

mod_jk.conf:

JkMount /manager loadbalancer
JkMount /manager/* loadbalancer

JkMount /admin loadbalancer
JkMount /admin/* loadbalancer

JkMount /myapp loadbalancer
JkMount /myapp/* loadbalancer

server.xml on Tomcat 1:


  




server.xml on Tomcat 2


  




HTH

Eric

-Original Message-
From: Joshua Sunil Kumar [mailto:[EMAIL PROTECTED]
Sent: 10 March 2003 10:45
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Hi
I tried correcting the typo but it does not work .Infact the load balancing
itself doesn't work if I change it to jvmRoute.

BR
Joshua



-Original Message-
From: Roberts, Eric [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 2:52 PM
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


There is a typo in the server.xml - it should be jvmRoute.

The worker.list in your workers.properties appears to only contain the
loadbalancer:

  #worker.list=tomcat1,tomcat2,loadbalancer
  worker.list=loadbalancer
  #worker.list=loadbalancer

Uncomment the top line and remove the rest.

Are you using jk or jk2?

Eric


-Original Message-
From: Joshua Sunil Kumar [mailto:[EMAIL PROTECTED]
Sent: 10 March 2003 10:14
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Hi
I check out in the server.xml there is no entry for jvmRoute. There is
something called jmvRoute is it a typo or something cos I corrected it to
jvmRoute and it still does not work



This is tag directly taken from server.xml in the tomcat4.1.18's conf
directory

BR
Joshua

-Original Message-
From: Roberts, Eric [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 2:13 PM
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Filip's memory is correct.

In server.xml you need an entry on the engine element:
mailto:[EMAIL PROTECTED]
Sent: 10 March 2003 07:36
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using m

RE: Problem with sticky session in Tomcat4.1.18 and Apache 2.0.43 using mod_JK Connector.

2003-03-10 Thread Joshua Sunil Kumar
Hi Eric
Thanx for the config files it works now. The only difference was the
jvmRoute in the server.xml.
There was a typo error in the server.xml file.

Bye
Joshua



-Original Message-
From: Roberts, Eric [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 3:37 PM
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Joshua,

Here are the extracts from my conf files. I am running Apache 2.0.43 with
mod_jk and Tomcat 4.1.18 also, so please check carefully that you have
similar.

workers.properties:

worker.list=tomcat1,tomcat2,loadbalancer

worker.tomcat1.port=9019
worker.tomcat1.host=myhost
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=100

worker.tomcat2.port=9029
worker.tomcat2.host=myhost
worker.tomcat2.type=ajp13
worker.tomcat2.lbfactor=100

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat1, tomcat2

mod_jk.conf:

JkMount /manager loadbalancer
JkMount /manager/* loadbalancer

JkMount /admin loadbalancer
JkMount /admin/* loadbalancer

JkMount /myapp loadbalancer
JkMount /myapp/* loadbalancer

server.xml on Tomcat 1:


  




server.xml on Tomcat 2


  




HTH

Eric

-Original Message-
From: Joshua Sunil Kumar [mailto:[EMAIL PROTECTED]
Sent: 10 March 2003 10:45
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Hi
I tried correcting the typo but it does not work .Infact the load balancing
itself doesn't work if I change it to jvmRoute.

BR
Joshua



-Original Message-
From: Roberts, Eric [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 2:52 PM
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


There is a typo in the server.xml - it should be jvmRoute.

The worker.list in your workers.properties appears to only contain the
loadbalancer:

  #worker.list=tomcat1,tomcat2,loadbalancer
  worker.list=loadbalancer
  #worker.list=loadbalancer

Uncomment the top line and remove the rest.

Are you using jk or jk2?

Eric


-Original Message-
From: Joshua Sunil Kumar [mailto:[EMAIL PROTECTED]
Sent: 10 March 2003 10:14
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Hi
I check out in the server.xml there is no entry for jvmRoute. There is
something called jmvRoute is it a typo or something cos I corrected it to
jvmRoute and it still does not work



This is tag directly taken from server.xml in the tomcat4.1.18's conf
directory

BR
Joshua

-Original Message-
From: Roberts, Eric [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 2:13 PM
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Filip's memory is correct.

In server.xml you need an entry on the engine element:
mailto:[EMAIL PROTECTED]
Sent: 10 March 2003 07:36
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


BlankI remember there being a property called jvmRoute in the server.xml
file that would allow the Apache workers to make sure you got the right
Tomcat server upon the next request.

otherwise, you can just cluster enable your system, and it should work for
you.
http://www.filip.net/tomcat-clustering.html

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
www.filip.net

  -Original Message-
  From: Joshua Sunil Kumar [mailto:[EMAIL PROTECTED]
  Sent: Sunday, March 09, 2003 9:52 PM
  To: [EMAIL PROTECTED]
  Subject: Problem with sticky session in Tomcat4.1.18 and Apache 2.0.43
using mod_JK Connector.


  Hi
  I'm using Apache2.0.43 and Tomcat4.1.18. I have configured it with
multiple tomcat instances with a load balancer. But I am unable to maintain
sticky session . The application that I am using has to maintain sessions.
But this not happening .When I login the request is JSP so it does to the
first Tomcat after login when I click on any link it goes to the second
Tomcat and I get a session timeout.
  I want to know if any one has configured this version of tomcat for
maintaining sticky session . I am also sending the workers.properties
  # workers.properties
  #

  # In Unix, we use forward slashes:
  ps=/

  # list the workers by name

  #worker.list=tomcat1,tomcat2,loadbalancer
  worker.list=loadbalancer
  #worker.list=loadbalancer
  # 
  # First tomcat server
  # 
  worker.tomcat1.port=11009
  worker.tomcat1.host=192.168.146.205
  worker.tomcat1.type=ajp13

  # Specify the size of the open connection cache.
  #worker.tomcat1.cachesize

  #
  # Specifies the load balance factor when used with
  # a load balancing worker.
  # Note:
  #  > lbfactor must be > 0
  #  > Low lbfactor means less work done by the worker.

RE: Problem with sticky session in Tomcat4.1.18 and Apache 2.0.43 using mod_JK Connector.

2003-03-10 Thread Joshua Sunil Kumar
Hi
I tried correcting the typo but it does not work .Infact the load balancing
itself doesn't work if I change it to jvmRoute.

BR
Joshua



-Original Message-
From: Roberts, Eric [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 2:52 PM
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


There is a typo in the server.xml - it should be jvmRoute.

The worker.list in your workers.properties appears to only contain the
loadbalancer:

  #worker.list=tomcat1,tomcat2,loadbalancer
  worker.list=loadbalancer
  #worker.list=loadbalancer

Uncomment the top line and remove the rest.

Are you using jk or jk2?

Eric


-Original Message-
From: Joshua Sunil Kumar [mailto:[EMAIL PROTECTED]
Sent: 10 March 2003 10:14
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Hi
I check out in the server.xml there is no entry for jvmRoute. There is
something called jmvRoute is it a typo or something cos I corrected it to
jvmRoute and it still does not work



This is tag directly taken from server.xml in the tomcat4.1.18's conf
directory

BR
Joshua

-Original Message-
From: Roberts, Eric [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 2:13 PM
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Filip's memory is correct.

In server.xml you need an entry on the engine element:
mailto:[EMAIL PROTECTED]
Sent: 10 March 2003 07:36
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


BlankI remember there being a property called jvmRoute in the server.xml
file that would allow the Apache workers to make sure you got the right
Tomcat server upon the next request.

otherwise, you can just cluster enable your system, and it should work for
you.
http://www.filip.net/tomcat-clustering.html

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
www.filip.net

  -Original Message-
  From: Joshua Sunil Kumar [mailto:[EMAIL PROTECTED]
  Sent: Sunday, March 09, 2003 9:52 PM
  To: [EMAIL PROTECTED]
  Subject: Problem with sticky session in Tomcat4.1.18 and Apache 2.0.43
using mod_JK Connector.


  Hi
  I'm using Apache2.0.43 and Tomcat4.1.18. I have configured it with
multiple tomcat instances with a load balancer. But I am unable to maintain
sticky session . The application that I am using has to maintain sessions.
But this not happening .When I login the request is JSP so it does to the
first Tomcat after login when I click on any link it goes to the second
Tomcat and I get a session timeout.
  I want to know if any one has configured this version of tomcat for
maintaining sticky session . I am also sending the workers.properties
  # workers.properties
  #

  # In Unix, we use forward slashes:
  ps=/

  # list the workers by name

  #worker.list=tomcat1,tomcat2,loadbalancer
  worker.list=loadbalancer
  #worker.list=loadbalancer
  # 
  # First tomcat server
  # 
  worker.tomcat1.port=11009
  worker.tomcat1.host=192.168.146.205
  worker.tomcat1.type=ajp13

  # Specify the size of the open connection cache.
  #worker.tomcat1.cachesize

  #
  # Specifies the load balance factor when used with
  # a load balancing worker.
  # Note:
  #  > lbfactor must be > 0
  #  > Low lbfactor means less work done by the worker.
  worker.tomcat1.lbfactor=100
  #worker.tomcat1.local_worker=1


  # 
  # Second tomcat server
  # 
  worker.tomcat2.port=12009
  worker.tomcat2.host=192.168.146.205
  worker.tomcat2.type=ajp13

  # Specify the size of the open connection cache.
  #worker.tomcat2.cachesize

  #
  # Specifies the load balance factor when used with
  # a load balancing worker.
  # Note:
  #  > lbfactor must be > 0
  #  > Low lbfactor means less work done by the worker.
  worker.tomcat2.lbfactor=100
  #worker.tomcat2.local_worker=1

  # 
  # Load Balancer worker
  # 

  #
  # The loadbalancer (type lb) worker performs weighted round-robin
  # load balancing with sticky sessions.
  # Note:
  #  > If a worker dies, the load balancer will check its state
  #once in a while. Until then all work is redirected to peer
  #worker.
  worker.loadbalancer.type=lb
  worker.loadbalancer.balanced_workers=tomcat1,tomcat2
  worker.loadbalancer.sticky_session=1
   in Tomcat#worker.loadbalancer.local_worker_only=2

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


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

RE: Problem with sticky session in Tomcat4.1.18 and Apache 2.0.43 using mod_JK Connector.

2003-03-10 Thread Joshua Sunil Kumar
Hi
I check out in the server.xml there is no entry for jvmRoute. There is
something called jmvRoute is it a typo or something cos I corrected it to
jvmRoute and it still does not work



This is tag directly taken from server.xml in the tomcat4.1.18's conf
directory

BR
Joshua

-Original Message-
From: Roberts, Eric [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 2:13 PM
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


Filip's memory is correct.

In server.xml you need an entry on the engine element:
mailto:[EMAIL PROTECTED]
Sent: 10 March 2003 07:36
To: Tomcat Users List
Subject: RE: Problem with sticky session in Tomcat4.1.18 and Apache
2.0.43 using mod_JK Connector.


BlankI remember there being a property called jvmRoute in the server.xml
file that would allow the Apache workers to make sure you got the right
Tomcat server upon the next request.

otherwise, you can just cluster enable your system, and it should work for
you.
http://www.filip.net/tomcat-clustering.html

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
www.filip.net

  -Original Message-
  From: Joshua Sunil Kumar [mailto:[EMAIL PROTECTED]
  Sent: Sunday, March 09, 2003 9:52 PM
  To: [EMAIL PROTECTED]
  Subject: Problem with sticky session in Tomcat4.1.18 and Apache 2.0.43
using mod_JK Connector.


  Hi
  I'm using Apache2.0.43 and Tomcat4.1.18. I have configured it with
multiple tomcat instances with a load balancer. But I am unable to maintain
sticky session . The application that I am using has to maintain sessions.
But this not happening .When I login the request is JSP so it does to the
first Tomcat after login when I click on any link it goes to the second
Tomcat and I get a session timeout.
  I want to know if any one has configured this version of tomcat for
maintaining sticky session . I am also sending the workers.properties
  # workers.properties
  #

  # In Unix, we use forward slashes:
  ps=/

  # list the workers by name

  #worker.list=tomcat1,tomcat2,loadbalancer
  worker.list=loadbalancer
  #worker.list=loadbalancer
  # 
  # First tomcat server
  # 
  worker.tomcat1.port=11009
  worker.tomcat1.host=192.168.146.205
  worker.tomcat1.type=ajp13

  # Specify the size of the open connection cache.
  #worker.tomcat1.cachesize

  #
  # Specifies the load balance factor when used with
  # a load balancing worker.
  # Note:
  #  > lbfactor must be > 0
  #  > Low lbfactor means less work done by the worker.
  worker.tomcat1.lbfactor=100
  #worker.tomcat1.local_worker=1


  # 
  # Second tomcat server
  # 
  worker.tomcat2.port=12009
  worker.tomcat2.host=192.168.146.205
  worker.tomcat2.type=ajp13

  # Specify the size of the open connection cache.
  #worker.tomcat2.cachesize

  #
  # Specifies the load balance factor when used with
  # a load balancing worker.
  # Note:
  #  > lbfactor must be > 0
  #  > Low lbfactor means less work done by the worker.
  worker.tomcat2.lbfactor=100
  #worker.tomcat2.local_worker=1

  # 
  # Load Balancer worker
  # 

  #
  # The loadbalancer (type lb) worker performs weighted round-robin
  # load balancing with sticky sessions.
  # Note:
  #  > If a worker dies, the load balancer will check its state
  #once in a while. Until then all work is redirected to peer
  #worker.
  worker.loadbalancer.type=lb
  worker.loadbalancer.balanced_workers=tomcat1,tomcat2
  worker.loadbalancer.sticky_session=1
   in Tomcat#worker.loadbalancer.local_worker_only=2

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

**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***

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

Problem with sticky session in Tomcat4.1.18 and Apache 2.0.43 using mod_JK Connector.

2003-03-09 Thread Joshua Sunil Kumar



Hi 

I'm using 
Apache2.0.43 and Tomcat4.1.18. I have configured it with multiple tomcat 
instances with a load balancer. But I am unable to maintain sticky session . The 
application that I am using has to maintain sessions. But this not happening 
.When I login the request is JSP so it does to the first Tomcat after login when 
I click on any link it goes to the second Tomcat and I get a session timeout. 

I want to know if 
any one has configured this version of tomcat for maintaining sticky session . I 
am also sending the workers.properties 
# 
workers.properties#
 
# In Unix, we use 
forward slashes:ps=/
 
# list the workers 
by name
 
#worker.list=tomcat1,tomcat2,loadbalancerworker.list=loadbalancer#worker.list=loadbalancer# 
# First tomcat server# 
worker.tomcat1.port=11009worker.tomcat1.host=192.168.146.205worker.tomcat1.type=ajp13
 
# Specify the size 
of the open connection cache.#worker.tomcat1.cachesize
 
## Specifies 
the load balance factor when used with# a load balancing worker.# 
Note:#  > lbfactor must be > 0#  > Low 
lbfactor means less work done by the 
worker.worker.tomcat1.lbfactor=100#worker.tomcat1.local_worker=1
 
# # Second tomcat 
server# 
worker.tomcat2.port=12009worker.tomcat2.host=192.168.146.205worker.tomcat2.type=ajp13
 
# Specify the size of the open connection 
cache.#worker.tomcat2.cachesize
 
## Specifies the load balance factor when 
used with# a load balancing worker.# Note:#  > lbfactor 
must be > 0#  > Low lbfactor means less work done by the 
worker.worker.tomcat2.lbfactor=100#worker.tomcat2.local_worker=1
 
# # Load Balancer 
worker# 
 
## The loadbalancer (type lb) worker performs 
weighted round-robin# load balancing with sticky sessions.# 
Note:#  > If a worker dies, the load balancer will check its 
state#    once in a while. Until then 
all work is redirected to peer#    
worker.worker.loadbalancer.type=lbworker.loadbalancer.balanced_workers=tomcat1,tomcat2worker.loadbalancer.sticky_session=1 in 
Tomcat#worker.loadbalancer.local_worker_only=2
**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.




RE: Tomcat class loader problems?

2003-03-05 Thread White, Joshua A (CASD, IT)
Hmm,

If I drop the war into the webapps directory all is fine as well.  The
problem only seems to happen after using the custom Tomcat install/deploy
tasks.  Anyone have similar problems?  After deploying using the
install/deploy ant tasks, the application runs fine with the exception of
this one class file.

Joshua

>  -Original Message-
> From: White, Joshua A (CASD, IT)  
> Sent: Wednesday, March 05, 2003 9:16 AM
> To:   [EMAIL PROTECTED]
> Subject:  Tomcat class loader problems?
> 
> When deploying my app as a war, I receive an
> javax.servlet.ServletException with the message "Truncated class file" or
> "Extra bytes at the end of the class file" for one of my classes.
> 
> If I unzip the war file and deploy it in the webapps directory, all is
> fine.  Any suggestions?  I am using Tomcat jakarta-tomcat-4.1.18 with jdk
> 1.3.1_07 on win xp.
> 
> Joshua
> 


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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



Tomcat class loader problems?

2003-03-05 Thread White, Joshua A (CASD, IT)
When deploying my app as a war, I receive an javax.servlet.ServletException
with the message "Truncated class file" or "Extra bytes at the end of the
class file" for one of my classes.

If I unzip the war file and deploy it in the webapps directory, all is fine.
Any suggestions?  I am using Tomcat jakarta-tomcat-4.1.18 with jdk 1.3.1_07
on win xp.

Joshua



This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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



Tomcat Class loader problems?

2003-03-05 Thread White, Joshua A (CASD, IT)
When deploying my app as a war, I receive an javax.servlet.ServletException
with the message "Truncated class file" or "Extra bytes at the end of the
class file" for one of my classes.

If I unzip the war file and deploy it in the webapps directory, all is fine.
Any suggestions?  I am using Tomcat jakarta-tomcat-4.1.18 with jdk 1.3.1_07
on win xp.

Joshua


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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



Problem rendering Greek and Latin Characters in Tomcat 4.1.18

2003-02-28 Thread Joshua Sunil Kumar



Hi 

The JSP page that 
I am using has Greek and Latin Characters. I am unable to display it properly in 
the browser. 
I am fetching data 
from the a Oracle Database which is stored in UTF-8 . When I display it on the 
browser this the characters are getting garbled. Ex- Grønbæk 
If I change the 
View-->Encoding--> to UTF-8 then I am able to view it properly  as 
Ex- Grønbæk 
 
1.I am setting the 
the following META tag
But still 
when I check it up in the browser the encoding setting is 
ISO-8859-1
 
2. I have tried 
setting the response.setContentType("text/html;charset=UTF-8"); This also does 
not work. 
3. I have tried 
putting  <%@ page contentType = "text/html;charset=UTF-8" %>. This 
also does not work.
 
4. I have changed 
the setting Tomcat4.1.18 for web.xml file to 
 
Set Character 
Encoding    
filters.SetCharacterEncodingFilter    
    
encoding    
UTF-8    
    
 
 
5. I thought 
there might be a problem with the Apache webserver and then I set this in the 
httpd.conf file
AddDefaultCharset UTF-8 (default is 
ISO-8859-1)
Having done 
all the setting still I am unable to the view the characters properly. 

 
I am running 
Tomcat4.1.18 with Apache2.0.34 using the JK2 Connector on Solaris 
5.8.
 
Code snippet 
which I have used.
 
<%@ page import="java.util.*" %><%@ page 
import="java.io.*" %><%@ page import="java.sql.*" 
%><%
 
    
Class.forName(driverClassName);    
Connection con = DriverManager.getConnection(dbURL, user, 
password);    
con.setAutoCommit(false);    
Statement 
stmt=null;    
ResultSet 
rst=null;    
stmt = 
con.createStatement();    
String testString=null;
 
    
try {
 
 
 
    
rst = stmt.executeQuery(queryString);    
}    
catch(SQLException e)   
{    
System.out.println("error while fetching data from old 
table.");    
System.out.println("Error message: 
"+e.getMessage());    
return;    
}
 
    
while(rst.next())    
{    
testString = rst.getString(1);
 
    
out.println("LastNAME "+ testString);
 
 
}
 
%/>


 
7. I have also 
tried using the String.getBytes("UTF-8); But this also does not 
work.
 
I would like to know if any other setting also needs to be 
made for in addtion to what I have done so that it 
works.
 
Joshua Sunil Kumar
 
 
**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.




Problem rendering Greek and Latin Characters in Tomcat 4.1.18

2003-02-28 Thread Joshua Sunil Kumar



 
Hi 

The JSP page that 
I am using has Greek and Latin Characters. I am unable to display it properly in 
the browser. 
I am fetching data 
from the a Oracle Database which is stored in UTF-8 . When I display it on the 
browser this the characters are getting garbled. Ex- Grønbæk 
If I change the 
View-->Encoding--> to UTF-8 then I am able to view it properly  as 
Ex- Grønbæk 
 
1.I am setting the 
the following META tag
But still 
when I check it up in the browser the encoding setting is 
ISO-8859-1
 
2. I have tried 
setting the response.setContentType("text/html;charset=UTF-8"); This also does 
not work. 
3. I have tried 
putting  <%@ page contentType = "text/html;charset=UTF-8" %>. This 
also does not work.
 
4. I have changed 
the setting Tomcat4.1.18 for web.xml file to 
 
Set Character 
Encoding    
filters.SetCharacterEncodingFilter    
    
encoding    
UTF-8    
    
 
 
5. I 
thought there might be a problem with the Apache webserver and then I set this 
in the httpd.conf file
AddDefaultCharset UTF-8 (default is 
ISO-8859-1)
Having done all the setting still I am unable to the view the characters 
properly. 
 
I am 
running Tomcat4.1.18 with Apache2.0.34 using the JK2 Connector on Solaris 
5.8.
 
Code 
snippet which I have used.
 
<%@ page import="java.util.*" %><%@ page 
import="java.io.*" %><%@ page import="java.sql.*" 
%><% 
 
    
Class.forName(driverClassName);    
Connection con = DriverManager.getConnection(dbURL, user, 
password);    
con.setAutoCommit(false);    
Statement 
stmt=null;    
ResultSet 
rst=null;    
stmt = 
con.createStatement();    
String testString=null;
 
    
try {
 
 
 
    
rst = stmt.executeQuery(queryString);    
}    
catch(SQLException e)   
{    
System.out.println("error while fetching data from old 
table.");    
System.out.println("Error message: 
"+e.getMessage());    
return;    
}
 
    
while(rst.next())    
{    
testString = rst.getString(1);
 
    
out.println("LastNAME "+ testString);
 
 
}
 
%/>


 
7. I have also 
tried using the String.getBytes("UTF-8); But this also does not 
work.
 
I would like to know if any other setting also needs to be 
made for in addtion to what I have done so that it 
works.
 
Joshua Sunil Kumar
 
 
**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.




Configuring JNDI LDAP Datasource - NOT USED FOR AUTHENTICATION

2003-02-20 Thread White, Joshua A (CASD, IT)
How can I declare an LDAP datasource in the server.xml file without the need
to use it for authentication.  The documentation I have read so far assumes
that I am using LDAP for authentication.  When looking at the datasources
section of the JNDI docs, it assumes a relational database.  Can someone
give me an example?

Joshua


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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




LDAP connection pool suggestions?

2003-02-17 Thread White, Joshua A (CASD, IT)
Hello all,

I finally got MSSQL 2000 to work with DBCP.  (I am putting together my
lessons learned now)  I am looking for a similar facility for LDAP
connections.  Can anyone suggest a similar solution?  I am using JDK 1.3.x.

Regards,

Joshua


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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




RE: Web app configuration problems

2003-02-14 Thread White, Joshua A (CASD, IT)
Ok,

Before I deploy the application using ant (using the manager utility), I
first attempt to undeploy the application.  I think that the undeploy
command removes the context defined from the server.xml file from memory.
Here is what I did.

1. Start tomcat, app works fine (uses context from server.xml)
2. Use ant to first undeploy the application, then install the application
using the same context path
3. The applications resources are unavailable
4. Restart tomcat
5. App works fine

If I restart tomcat, the app works fine.  If this is true, how do I keep
re-deploying an application in development without removing the entries that
were defined in the server.xml file from memory?

-Joshua

>  -Original Message-
> From: White, Joshua A (CASD, IT)  
> Sent: Friday, February 14, 2003 11:14 AM
> To:   '[EMAIL PROTECTED]'
> Subject:  Web app configuration problems
> 
> I am hoping someone could explain how Tomcat uses context paths.
> 
> In my server.xml file, I have declared a seperate context and some JNDI
> resources for /myapp-web.
> 
> The way I deploy my web application determines if these resources will be
> available or not.  If I drop my web applications war file (myapp-web.war)
> into %CATALINA_HOME%/webapps, I am golden (The war does not even unpack).
> However, if I use the manager utility from ant, the resources are not
> available.  
> 
> I have checked to make sure that ant installs the application correctly.
> I receive the following message from ant:
> 
> [echo] OK - Installed application at context path /myapp-web
> 
> This utility seems to place an unpacked version of the war file into the
> %CATALINA_HOME%\work\Standalone\localhost directory.  This does not seem
> to be enough.  If I manually drop the war into the webapps directory,
> everything works again.
> 
> If I deploy using only the manager utility, how should I configure its
> JNDI resources so they work?
> 
> -Joshua
> 
> 
> 
> 


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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




Web app configuration problems

2003-02-14 Thread White, Joshua A (CASD, IT)
I am hoping someone could explain how Tomcat uses context paths.

In my server.xml file, I have declared a seperate context and some JNDI
resources for /myapp-web.

The way I deploy my web application determines if these resources will be
available or not.  If I drop my web applications war file (myapp-web.war)
into %CATALINA_HOME%/webapps, I am golden (The war does not even unpack).
However, if I use the manager utility from ant, the resources are not
available.  

I have checked to make sure that ant installs the application correctly.  I
receive the following message from ant:

[echo] OK - Installed application at context path /myapp-web

This utility seems to place an unpacked version of the war file into the
%CATALINA_HOME%\work\Standalone\localhost directory.  This does not seem to
be enough.  If I manually drop the war into the webapps directory,
everything works again.

If I deploy using only the manager utility, how should I configure its JNDI
resources so they work?

-Joshua






This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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




RE: JNDI datasource frustrations - almost there

2003-02-14 Thread White, Joshua A (CASD, IT)
(Thread.java:479)














-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 10:32 PM
To: Tomcat Users List
Subject: Re: JNDI datasource frustrations...


his is my sample server.xml

look for glvn key word

Good luck

-Dan




















factory

org.apache.catalina.users.MemoryUserDatabaseFactory





pathname

conf/tomcat-users.xml









validationQuery

select ping from ping 





maxWait

5000





maxActive

4





username

sa





password







url

jdbc:microsoft:sqlserver://localhost:1433;databaseName=glvn;selectMet
hod=cursor





driverClassName

com.microsoft.jdbc.sqlserver.SQLServerDriver





maxIdle

2













































































url

jdbc:HypersonicSQL:database





password







driverClassName

org.hsql.jdbcDriver





username

sa









mail.smtp.host

localhost





















































- Original Message -
From: "White, Joshua A (CASD, IT)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 13, 2003 6:24 PM
Subject: RE: JNDI datasource frustrations...


> It looks like this is a common problem.  I have found several posts on
> several boards about this problem.  Unfortunately, no solution.
>
> Does it matter whether I declare the resource in the server.xml under the
> global naming resources or do I need to define one specific to my
> applications path?
>
> Has anyone successfully connected with MSSQL Server 2k?
>
> -Joshua
>
> -Original Message-
> From: White, Joshua A (CASD, IT)
> Sent: Thursday, February 13, 2003 5:17 PM
> To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> Subject: RE: JNDI datasource frustrations...
>
>
> Here is my entry in my web.xml:
>
>   
>   Sql Server Database Connection
>   jdbc/joshsDB
>   javax.sql.DataSource
>   Container
>   
>
> I am still at a loss.  Any other ideas?
>
> -Joshua
>
>
>
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 13, 2003 3:43 PM
> To: [EMAIL PROTECTED]
> Subject: RE: JNDI datasource frustrations...
>
>
> What about your app's web.xml? This is a classic question, You many search
> through this list or struts/commons lists for answer. There is also a
> documentation on Jakarta.apache.org's.
>
> Regards,
>
>
> PQ
>
> "This Guy Thinks He Knows Everything"
> "This Guy Thinks He Knows What He Is Doing"
>
> -Original Message-
> From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED]]
> Sent: February 13, 2003 3:36 PM
> To: '[EMAIL PROTECTED]'
> Subject: JNDI datasource frustrations...
>
> All,
>
> It seems that I may be having a problem instantiating the Sql server jdbc
> driver.  I have copied the following jars into my
$CATALINA_HOME/common/lib
> directory:
> msbase.jar
> mssqlserver.jar
> msutil.jar
>
>
> I have the following in my server.xml file:
>
>  auth="Container"
> type="javax.sql.DataSource"/>
>
>
> 
> 
> username
> someuser
> 
> 
> password
> password
> 
> 
> driverClassName
> com.microsoft.jdbc.sqlserver.SQLServerDriver
> 
> 
> url
> jdbc:microsoft:sqlserver://localhost:1433
> 
> 
> maxActive
> 100
> 
> 
> maxIdle
> 1
> 
> 
> maxWait
> 1
> 
> 
>
>
> In the Tomcat console, I see the following:
>
> java.sql.SqlException: Cannot load JDBC driver class 'null'
>
> What am I doing wrong here?
>
> Joshua
>
>
>
>
> This communication, including attachments, is for the exclusive use of
> addressee and may contain proprietary, confidential or privileged
> information. If you are not the intended recipient, any use, copying,
> disclosure, dissemination or distribution is strictly prohibited. If
> you are not the intended recipient, please notify the sender
> immediately by return email and delete this communication and destroy all
> copies.
>
>
> -
> 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: JNDI datasource frustrations...

2003-02-13 Thread White, Joshua A (CASD, IT)
It looks like this is a common problem.  I have found several posts on
several boards about this problem.  Unfortunately, no solution.  

Does it matter whether I declare the resource in the server.xml under the
global naming resources or do I need to define one specific to my
applications path?

Has anyone successfully connected with MSSQL Server 2k?

-Joshua 

-Original Message-
From: White, Joshua A (CASD, IT) 
Sent: Thursday, February 13, 2003 5:17 PM
To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
Subject: RE: JNDI datasource frustrations...


Here is my entry in my web.xml:

  
  Sql Server Database Connection
  jdbc/joshsDB
  javax.sql.DataSource
  Container
  

I am still at a loss.  Any other ideas?

-Joshua






-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 3:43 PM
To: [EMAIL PROTECTED]
Subject: RE: JNDI datasource frustrations...


What about your app's web.xml? This is a classic question, You many search
through this list or struts/commons lists for answer. There is also a
documentation on Jakarta.apache.org's.

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED]] 
Sent: February 13, 2003 3:36 PM
To: '[EMAIL PROTECTED]'
Subject: JNDI datasource frustrations...

All,

It seems that I may be having a problem instantiating the Sql server jdbc
driver.  I have copied the following jars into my $CATALINA_HOME/common/lib
directory:
msbase.jar
mssqlserver.jar
msutil.jar


I have the following in my server.xml file:






username
someuser


password
password


driverClassName
com.microsoft.jdbc.sqlserver.SQLServerDriver


url
jdbc:microsoft:sqlserver://localhost:1433


maxActive
100


maxIdle
1


maxWait
1




In the Tomcat console, I see the following:

java.sql.SqlException: Cannot load JDBC driver class 'null'

What am I doing wrong here?

Joshua




This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all
copies.


-
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: JNDI datasource frustrations...

2003-02-13 Thread White, Joshua A (CASD, IT)
Here is my entry in my web.xml:

  
  Sql Server Database Connection
  jdbc/joshsDB
  javax.sql.DataSource
  Container
  

I am still at a loss.  Any other ideas?

-Joshua






-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 3:43 PM
To: [EMAIL PROTECTED]
Subject: RE: JNDI datasource frustrations...


What about your app's web.xml? This is a classic question, You many search
through this list or struts/commons lists for answer. There is also a
documentation on Jakarta.apache.org's.

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED]] 
Sent: February 13, 2003 3:36 PM
To: '[EMAIL PROTECTED]'
Subject: JNDI datasource frustrations...

All,

It seems that I may be having a problem instantiating the Sql server jdbc
driver.  I have copied the following jars into my $CATALINA_HOME/common/lib
directory:
msbase.jar
mssqlserver.jar
msutil.jar


I have the following in my server.xml file:






username
someuser


password
password


driverClassName
com.microsoft.jdbc.sqlserver.SQLServerDriver


url
jdbc:microsoft:sqlserver://localhost:1433


maxActive
100


maxIdle
1


maxWait
1




In the Tomcat console, I see the following:

java.sql.SqlException: Cannot load JDBC driver class 'null'

What am I doing wrong here?

Joshua




This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all
copies.


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




JNDI datasource frustrations...

2003-02-13 Thread White, Joshua A (CASD, IT)
All,

It seems that I may be having a problem instantiating the Sql server jdbc
driver.  I have copied the following jars into my $CATALINA_HOME/common/lib
directory:
msbase.jar
mssqlserver.jar
msutil.jar


I have the following in my server.xml file:






username
someuser


password
password


driverClassName
com.microsoft.jdbc.sqlserver.SQLServerDriver


url
jdbc:microsoft:sqlserver://localhost:1433


maxActive
100


maxIdle
1


maxWait
1




In the Tomcat console, I see the following:

java.sql.SqlException: Cannot load JDBC driver class 'null'

What am I doing wrong here?

Joshua




This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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




Re-using roles defined in web.xml file

2003-02-10 Thread White, Joshua A (CASD, IT)
Hello everyone,

I need to authenticate visitors to my site using ldap.  Based on some ldap
attributes, I can determine which role a person should be in.  Is there a
way I can dynamically associate users with the roles defined in the web.xml
file?

Joshua



This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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




installing mod_jk2

2002-11-29 Thread Joshua
how do i install and set up mod_jk2, i am running
tomcat 4.1, and Apache 2.0.43

andrewjj20

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: problem with first servlet

2002-10-31 Thread Joshua Talbott
where is the invoker servlet?

Josh


On Thursday, October 31, 2002, at 02:03 PM, Shapira, Yoav wrote:


Hi,
What version of tomcat are you using?

If you're using 4.1.12, make sure the invoker servlet mapping the
tomcat_home/conf/web.xml file is uncommented.  The invoker servlet in
that release is disabled by default due to a security-related bug.  See
the release notes for details.

Yoav Shapira
Millennium ChemInformatics



-Original Message-
From: Joshua Talbott [mailto:jtalbott@;cook-inc.com]
Sent: Thursday, October 31, 2002 1:58 PM
To: [EMAIL PROTECTED]
Subject: problem with first servlet

Hey,



I'm trying to use Tomcat 4.1 to run a simple HelloWorld servlet.
Where do I put it and what do I type in the address bar to get it to
run?  I'm able to run simple jsps and beans, but this one is giving

me

problems.  Right now I have my file in:

c:\program files\apache group\tomcat
4.1\webapps\root\WEB-INF\classes\HelloWorld.class

-AND- I type http://10.0.4.215:8080/servlet/HelloWorld

This is not working.  Any suggestions for me?


Thanks


--
To unsubscribe, e-mail:   <mailto:tomcat-user-
[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:tomcat-user-
[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:   
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: 
<mailto:tomcat-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




problem with first servlet

2002-10-31 Thread Joshua Talbott
Hey,



I'm trying to use Tomcat 4.1 to run a simple HelloWorld servlet.
Where do I put it and what do I type in the address bar to get it to
run?  I'm able to run simple jsps and beans, but this one is giving me
problems.  Right now I have my file in:

c:\program files\apache group\tomcat
4.1\webapps\root\WEB-INF\classes\HelloWorld.class

-AND- I type http://10.0.4.215:8080/servlet/HelloWorld

This is not working.  Any suggestions for me?


Thanks


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




passing a session from non-SSL to SSL

2002-09-12 Thread Joshua Szmajda

Hi all,

 Not sure if I actually sent this the first time or not, so it's 
going out again.. sorry if it's a duplicate :)

 I'm upgrading an application from Tomcat 3.2 to Tomcat 4.0, and I'm
noticing that my application is now losing track of its sessions when I
switch from non-SSL to SSL. The code worked fine in Tomcat 3.2.. I was
wondering if there's something I'm missing. My server.xml has a single
Ajp13 connector and a plain vanilla host / context configuration. I've
JKMount'ed /* to ajp13 in apache on both the normal and SSL virtual hosts.

 I'm sure it's something in the spec that's changed, but I can't for
the life of me find out what. Changing the code is possible, but
preferably avoidable as I didn't write it.

Thanks in advance!
-Joshua Szmajda



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




Re: Hosting services

2002-09-11 Thread Joshua D. Drake

Hello,

  If you use PostgreSQL instead of MysQL (why any one would use this I 
don't know), Command Prompt -- http://www.commandprompt.com/ might be of 
use.



On Wed, 11 Sep 2002, Reynir Hübner wrote:

> Hi, 
> 
> I'm looking for a hosting service in USA right now. 
> What would you recomend ?
> 
> The applications use :
> - two virtual hosts (private/public), 
> - tomcat 4.04 ( has been tested in tomcat 4.1.10),
> - MySQL database (or Oracle, MSSQL, DB2 (have been tested)), 
> - features of using web.xml configurations (for initialize on startup, 
>servlet-mappings, etc).
> 
> The applications can be deployed as war/ear or folders over ftp. We need access to 
>be able to start/stop the applications or tomcat-service.
> Preferably we would like to be able to run asp too, so that really means that the 
>server needs to run IIS and win2k server (not unix).
> Preferably we would like to have dedicated JVM, or tomcat instance.
> 
> 
> 
> please recomend something you have tried or tested your self, I've found probably 
>100 different ISP that provide some kind of Java, some obviously dont fit, others 
>may, yet others we might change our apps to work with,  but I dont have time to sign 
>up and try em all out :)
> 
> 
> thank you
> [EMAIL PROTECTED]
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: PLEASE: Setting Virtual Hosts ClassPaths with Tomcat 3.3

2002-09-09 Thread Joshua D. Drake

Hello,

  is the WEB-INF an independant location? It was my understanding that 
it was system wide. I don't want my virtual hosts to be able to see each 
others classes.

Thank you VERY VERY much for your help,

Joshua Drake


Larry Isaacs wrote:

>Hi Joshua,
>
>Is there some reason you are not putting your bean class in
>WEB-INF/classes where they would be picked up automatically?
>In the majority of cases for Tomcat 3.3.x, the CLASSPATH is
>the wrong place to put web application classes.
>
>Cheers,
>Larry
>
>
>  
>
>>-Original Message-
>>From: Joshua D. Drake [mailto:[EMAIL PROTECTED]] 
>>Sent: Saturday, September 07, 2002 2:10 PM
>>To: [EMAIL PROTECTED]
>>Subject: PLEASE: Setting Virtual Hosts ClassPaths with Tomcat 3.3
>>
>>
>>Hello,
>>
>> I am running RedHat 7.3, Apache 1.3.26 and Tomcat-3.3.1. I am having 
>>problems getting Tomcat to pick up new
>>classpaths for virtual hosts. We can successfully run jsp 
>>files from the 
>>virtual hosts but once we try to add a class
>>(for JavaBeans in this case) it fails. Here is the exact error:
>>
>>java.lang.ClassNotFoundException: SimpleBean
>>at 
>>org.apache.tomcat.util.depend.DependClassLoader.loadClassInter
>>nal1(DependClassLoader.java)
>>at 
>>org.apache.tomcat.util.depend.DependClassLoader12$1.run(Depend
>>ClassLoader12.java)
>>at java.security.AccessController.doPrivileged(Native Method)
>>at 
>>org.apache.tomcat.util.depend.DependClassLoader12.loadClass(De
>>pendClassLoader12.java)
>>at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
>>at 
>>org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepo
>>sitory.java)
>>at 
>>org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPr
>>opertyGenerator.java)
>>at 
>>org.apache.jasper.compiler.JspParseEventListener$GeneratorWrap
>>per.generate(JspParseEventListener.java)
>>at 
>>org.apache.jasper.compiler.JspParseEventListener.generateAll(J
>>spParseEventListener.java)
>>at 
>>org.apache.jasper.compiler.JspParseEventListener.endPageProces
>>sing(JspParseEventListener.java)
>>at org.apache.jasper.compiler.Compiler.compile(Compiler.java)
>>at 
>>org.apache.tomcat.facade.JasperLiaison.jsp2java(JspInterceptor.java)
>>at 
>>org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInter
>>ceptor.java)
>>at 
>>org.apache.tomcat.facade.JspInterceptor.requestMap(JspIntercep
>>tor.java)
>>at 
>>org.apache.tomcat.core.ContextManager.processRequest(ContextMa
>>nager.java)
>>at 
>>org.apache.tomcat.core.ContextManager.internalService(ContextM
>>anager.java)
>>at 
>>org.apache.tomcat.core.ContextManager.service(ContextManager.java)
>>at 
>>org.apache.tomcat.modules.server.Ajp13Interceptor.processConne
>>ction(Ajp13Interceptor.java)
>>at 
>>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java)
>>at 
>>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
>>ThreadPool.java)
>>at java.lang.Thread.run(Thread.java:536)
>>
>> Here is my apps-vhosts.xml:
>>
>> 
>>
>>
>> >   docBase="/home/vhosting/sfl/htdocs/"
>>   debug="5"
>>   />
>>
>>
>>
>>Also I have the following lines in my tomcat.properties:
>>
>>wrapper.path=/bin:/usr/bin:/usr/local/bin:/home/vhosting/sfl/b
>>in:/usr/java/j2sdk1.4.0_01/bin 
>>
>>wrapper.classpath=@JSERV_CLASSES@:@JSDK_CLASSES@:/home/vhostin
>>g/sfl/htdocs
>>
>>I have also tried the following:
>>wrapper.path=/bin:/usr/bin:/usr/local/bin:/home/vhosting/sfl/b
>>in:/usr/java/j2sdk1.4.0_01/bin 
>>
>>wrapper.classpath=@JSERV_CLASSES@
>>wrapper.classpath=@JSDK_CLASSES@
>>wrapper.classpath=/home/vhosting/sfl/htdocs/classes
>>
>>
>>Normally I would call to a separate class directory but I am 
>>just trying 
>>to get it to work at this point.
>>I also added the following to my tomcat3.conf although it is my 
>>understanding that tomcat3 doesn't
>>care about shell variables for the classpath:
>>
>>CLASSPATH=/home/vhosting/sfl/htdocs/classes:/home/vhostings/sf
>>l/htdocs/classes
>>export CLASSPATH
>>
>>Help would be greatly appreciated,
>>
>>Sincerely,
>>
>>Joshua D. Drake
>>
>>
>>--
>>To unsubscribe, e-mail:   
>><mailto:tomcat-user-> [EMAIL PROTECTED]>
>>For 
>>additional commands, 
>>e-mail: <mailto:[EMAIL PROTECTED]>
>>
>>
>>
>>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>  
>



PLEASE: Setting Virtual Hosts ClassPaths with Tomcat 3.3

2002-09-07 Thread Joshua D. Drake

Hello,

 I am running RedHat 7.3, Apache 1.3.26 and Tomcat-3.3.1. I am having 
problems getting Tomcat to pick up new
classpaths for virtual hosts. We can successfully run jsp files from the 
virtual hosts but once we try to add a class
(for JavaBeans in this case) it fails. Here is the exact error:

java.lang.ClassNotFoundException: SimpleBean
at 
org.apache.tomcat.util.depend.DependClassLoader.loadClassInternal1(DependClassLoader.java)
at 
org.apache.tomcat.util.depend.DependClassLoader12$1.run(DependClassLoader12.java)
at java.security.AccessController.doPrivileged(Native Method)
at 
org.apache.tomcat.util.depend.DependClassLoader12.loadClass(DependClassLoader12.java)
at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at 
org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepository.java)
at 
org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPropertyGenerator.java)
at 
org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(JspParseEventListener.java)
at 
org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventListener.java)
at 
org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseEventListener.java)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java)
at org.apache.tomcat.facade.JasperLiaison.jsp2java(JspInterceptor.java)
at 
org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java)
at 
org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java)
at 
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java)
at 
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java)
at java.lang.Thread.run(Thread.java:536)

 Here is my apps-vhosts.xml:

 


 



Also I have the following lines in my tomcat.properties:

wrapper.path=/bin:/usr/bin:/usr/local/bin:/home/vhosting/sfl/bin:/usr/java/j2sdk1.4.0_01/bin
 

wrapper.classpath=@JSERV_CLASSES@:@JSDK_CLASSES@:/home/vhosting/sfl/htdocs

I have also tried the following:
wrapper.path=/bin:/usr/bin:/usr/local/bin:/home/vhosting/sfl/bin:/usr/java/j2sdk1.4.0_01/bin
 

wrapper.classpath=@JSERV_CLASSES@
wrapper.classpath=@JSDK_CLASSES@
wrapper.classpath=/home/vhosting/sfl/htdocs/classes


Normally I would call to a separate class directory but I am just trying 
to get it to work at this point.
I also added the following to my tomcat3.conf although it is my 
understanding that tomcat3 doesn't
care about shell variables for the classpath:

CLASSPATH=/home/vhosting/sfl/htdocs/classes:/home/vhostings/sfl/htdocs/classes
export CLASSPATH

Help would be greatly appreciated,

Sincerely,

Joshua D. Drake


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




passing a session from non-SSL to SSL

2002-09-07 Thread Joshua Szmajda

Hi all,

I'm upgrading an application from Tomcat 3.2 to Tomcat 4.0, and I'm 
noticing that my application is now losing track of its sessions when I 
switch from non-SSL to SSL. The code worked fine in Tomcat 3.2.. I was 
wondering if there's something I'm missing. My server.xml has a single 
Ajp13 connector and a plain vanilla host / context configuration. I've 
JKMount'ed /* to ajp13 in apache on both the normal and SSL virtual hosts.

I'm sure it's something in the spec that's changed, but I can't for 
the life of me find out what. Changing the code is possible, but 
preferably avoidable as I didn't write it.

Thanks in advance!
-Joshua Szmajda


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




Seting Classpath for Virtual Hosts with Tomcat 3.3.1

2002-09-06 Thread Joshua D. Drake

Hello,

  I am running RedHat 7.3, Apache 1.3.26 and Tomcat-3.3.1. I am having 
problems getting Tomcat to pick up new
classpaths for virtual hosts. We can successfully run jsp files from the 
virtual hosts but once we try to add a class
(for JavaBeans in this case) it fails.

  Here is my apps-vhosts.xml:

  

 
  
 


Also I have the following lines in my tomcat.properties:

wrapper.path=/bin:/usr/bin:/usr/local/bin:/home/vhosting/sfl/bin:/usr/java/j2sdk1.4.0_01/bin
wrapper.classpath=@JSERV_CLASSES@:@JSDK_CLASSES@:/home/vhosting/sfl/htdocs

Normally I would call to a separate class directory but I am just trying 
to get it to work at this point.
I also added the following to my tomcat3.conf although it is my 
understanding that tomcat3 doesn't
care about shell variables for the classpath:

CLASSPATH=/home/vhosting/sfl/htdocs/classes:/home/vhostings/sfl/htdocs
export CLASSPATH

Help would be greatly appreciated,

Sincerely,

Joshua D. Drake










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




Re: Re[4]: Tomcat redirect

2002-05-07 Thread joshua wentworth

Thanks, I went ahead and told the developers that they were just going to
have to fix their code to be correct. Ideally we didn't want to change the
code, we just wanted to kludge tomcat to work with the original call
(backwards compatibility issue with the code). Thanks again.

Josh
- Original Message -
From: "Jacob Kjome" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, May 07, 2002 12:38 PM
Subject: Re[4]: Tomcat redirect


> Hello joshua,
>
> Well, take a look at the form action:
>
> action="/servlet/CatalogServlet"
>
> This isn't even a servlet to servlet call.  This is a browser to
> servlet call.  On top of that, you are telling the form to be
> sumbmitted to http://our.server.com:8080/servlet/CatalogServlet
>
> This tells Tomcat to look in the ROOT context and find a servlet
> called "CatalogServlet".  However, you want to look in the "spike"
> context.
>
> Just change your action to the following:
>
> Assuming you are at a web address that looks like:
>
> http://our.server.com/spike/servlet/SomeServlet
>
> action="CatalogServlet"
>
> will be translated by the browser as a request to:
>
> http://our.server.com/spike/servlet/CatalogServlet
>
> or
>
> if you don't want to count on being in the /spike/servlet path already
> like above, then provide a hard path off the root of the web server:
>
> action="/spike/servlet/CatalogServlet"
>
> Which translates to the following no matter what your current URL is:
>
> http://our.server.com/spike/servlet/CatalogServlet
>
>
> If you are wondering how to dynamically write this link in your
> servlet, just do:
>
> req.getServletContext() + "/servlet/CatalogServlet"
>
> That will translate to:
>
> "/spike/servlet/CatalogServet" which is what you want.
>
> Note, it also works if you are using the ROOT context since
> req.getServletContext() will return "/" in that case.
>
> Does that help?
>
> Jake
>
>
> Tuesday, May 07, 2002, 11:16:35 AM, you wrote:
>
> jw> Yeah, I figured that out a bit later. The problem seems to be that
Tomcat is
> jw> just ignoring the call to /servlet/Whatever.
> jw> The situation is like this, I'm trying to get as specific as possible
now.
> jw> The code looks like this:
> jw>  >
>
> jw> And if someone clicks on that button they get a 404 and Tomcat returns
the
> jw> error that it can't find /servlet/CatalogServlet. This exists without
any
> jw>  stuff setup in server.xml.  The problem is that in the
original
> jw> call to the original servlet we have apache redirecting the request to
> jw> http://our.server.com:8080/spike/servlet/OurServlet and when
OurServlet
> jw> calls OtherServlet via the code above it tries to locate it on
> jw> http://our.server.com:8080/servlet/OtherServlet and that doesn't work.
It
> jw> has to have the /spike/ in there. So... Any idea how I can do that?
One of
> jw> the issues is that I can't change the code in the servlet itself
(Otherwise
> jw> fixing this would be trivial).
>
> jw> Josh
>
> jw> - Original Message -
> jw> From: "Jacob Kjome" <[EMAIL PROTECTED]>
> jw> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> jw> Sent: Tuesday, May 07, 2002 12:01 PM
> jw> Subject: Re[2]: Tomcat redirect
>
>
> >> Hello joshua,
> >>
> >> Well, actually, all you've done here is specify a context called
> >> "servlet" which has it's docbase sitting on the file system as
> >> "/spike/servlet".  This would assume that you are on a Unix system and
> >> you have a directory called "spike" off the root of your sytem with a
> >> directory called "servlet" inside that.
> >>
> >> In this case, the address to your webapp would be:
> >>
> >> http://myserver.com/servlet/
> >>
> >> However, I would avoid calling your context "servlet" because I think
> >> it will conflict with the default servlet mapping that Tomcat provides
> >> for you.  In fact I think you are confusing the /servlet/* mapping that
> jw> Tomcat provides
> >> for all webapps via its default web.xml with setting up a context.
> >>
> >> Let's assume that you place your new context in Tomcat's 'webapps"
> >> directory and it is called "myservlets".  You can either not bother
> >> explicitly stating the  for this webapp in the Server.xml and
> >> let Tomcat create a d

Re: Re[2]: Tomcat redirect

2002-05-07 Thread joshua wentworth

Yeah, I figured that out a bit later. The problem seems to be that Tomcat is
just ignoring the call to /servlet/Whatever.
The situation is like this, I'm trying to get as specific as possible now.
The code looks like this:
 

And if someone clicks on that button they get a 404 and Tomcat returns the
error that it can't find /servlet/CatalogServlet. This exists without any
 stuff setup in server.xml.  The problem is that in the original
call to the original servlet we have apache redirecting the request to
http://our.server.com:8080/spike/servlet/OurServlet and when OurServlet
calls OtherServlet via the code above it tries to locate it on
http://our.server.com:8080/servlet/OtherServlet and that doesn't work. It
has to have the /spike/ in there. So... Any idea how I can do that? One of
the issues is that I can't change the code in the servlet itself (Otherwise
fixing this would be trivial).

Josh

- Original Message -
From: "Jacob Kjome" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, May 07, 2002 12:01 PM
Subject: Re[2]: Tomcat redirect


> Hello joshua,
>
> Well, actually, all you've done here is specify a context called
> "servlet" which has it's docbase sitting on the file system as
> "/spike/servlet".  This would assume that you are on a Unix system and
> you have a directory called "spike" off the root of your sytem with a
> directory called "servlet" inside that.
>
> In this case, the address to your webapp would be:
>
> http://myserver.com/servlet/
>
> However, I would avoid calling your context "servlet" because I think
> it will conflict with the default servlet mapping that Tomcat provides
> for you.  In fact I think you are confusing the /servlet/* mapping that
Tomcat provides
> for all webapps via its default web.xml with setting up a context.
>
> Let's assume that you place your new context in Tomcat's 'webapps"
> directory and it is called "myservlets".  You can either not bother
> explicitly stating the  for this webapp in the Server.xml and
> let Tomcat create a default one for it, or you can go ahead and
> specify it like this:
>
> 
>
> The path says that requests to http://myserver.com/myservlets refer to
> a Tomcat-served Servlet context.
>
> The docBase says where the context's directory exists on the file
> system.  Here, we are saying that it exists in the current directory
> (relative the webapps directory).  You could also put this elsewhere
> on your file system, but you must then provide a path relative to
> webapps directory by saying something like "../../../../myservlets"
> which says "myservlets" is located 4 directories back from wherever
> the "webapps" directory exists or you can specify a hardcoded path
> like "C:\myapps\myservlets" on windows or "/myapps/myservlets" on
> Unix.
>
> Now with that set up, calling your servlet that redirects to another
> servlet might go something like this:
>
> http://myserver.com/myservlets/servlet/MyRedirectServlet
>
> which might redirect to another servlet "MyRedirectResultServlet"
>
> You'd have to make sure that the redirection goes to
> "/servlet/MyRedirectResultServlet" in order for Tomcat to catch this
> request as a request to this other servlet.
>
> Did that answer the question or am I missing something?  Bottom line,
> rename your context to something other than "servlet" to avoid
> confusion.
>
> Jake
>
> Tuesday, May 07, 2002, 10:08:41 AM, you wrote:
>
> jw> I was hoping of something within the Tomcat configuration itself since
we
> jw> don't use an index.jsp file. To be more specific about my problem,
Whenever
> jw> a servlet calls another servlet in Tomcat it isn't intercepting the
> jw> /servlet/ directive and replacing it with /spike/servlet/ which is
what it
> jw> should be doing. Perhaps I'm overlooking something obvious in the
> jw> configuration that will do this, but I've tried putting a
> jw> 
> jw>  jw>  docBase="/spike/servlet" />
> jw> 
>
> jw> Entry in the server.xml file, but that didn't seem to do it either...
> jw> Someone smack me with a clue stick and tell me what I'm doing wrong?
>
> jw> Josh
> jw> - Original Message -
> jw> From: "Oki DZ" <[EMAIL PROTECTED]>
> jw> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> jw> Sent: Monday, May 06, 2002 8:17 PM
> jw> Subject: Re: Tomcat redirect
>
>
> jw> On 05/07 04:19 joshua wentworth wrote:
> >> I am

Re: Tomcat redirect

2002-05-07 Thread joshua wentworth

I was hoping of something within the Tomcat configuration itself since we
don't use an index.jsp file. To be more specific about my problem, Whenever
a servlet calls another servlet in Tomcat it isn't intercepting the
/servlet/ directive and replacing it with /spike/servlet/ which is what it
should be doing. Perhaps I'm overlooking something obvious in the
configuration that will do this, but I've tried putting a




Entry in the server.xml file, but that didn't seem to do it either...
Someone smack me with a clue stick and tell me what I'm doing wrong?

Josh
- Original Message -
From: "Oki DZ" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, May 06, 2002 8:17 PM
Subject: Re: Tomcat redirect


On 05/07 04:19 joshua wentworth wrote:
> I am trying to have Tomcat redirect certain requests to other applications
> or other sites. But I can't find anything in the documentation or in any
of
> the messageboards about any kind of forward or redirect function in
Tomcat.
> Is there such a function, and if so where can I find documentation on it?

You can use the following in my index.jsp, so that the main page will be
redirected to some other location: <%
response.sendRedirect(response.encodeRedirectURL(""));
%>

Oki



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


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




Tomcat redirect

2002-05-06 Thread joshua wentworth

I am trying to have Tomcat redirect certain requests to other applications
or other sites. But I can't find anything in the documentation or in any of
the messageboards about any kind of forward or redirect function in Tomcat.
Is there such a function, and if so where can I find documentation on it?

Josh W.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




I'm sure it's a rehashed issue, but I'll try anyway. (Apache 2.0.35 & tomcat 4.0.3) & mod_webapp.so

2002-04-18 Thread Joshua Chen

Hi all,

I've been trying to get my Apache 2.0.35 & Tomcat 4.0.3 up and running (on
solaris 2.7).  Apache works great, and tomcat works great as well.  But now
I try to use the mod_webapp.so file that came with apache 2.0.35, and I get
the

undefined symbol: ap_pstrdup

So I read in a couple of archives to just try and compile the mod_webapp
from the source, since ap_pstrdup is now apr_pstrdup.  no problem, I go get
the jakarta-tomcat-connectors-4.0.4-b2-src.tar.gz and go ahead and start
compiling.

I get to the end, and everything is successful.  No errors, no compilations
issues.  What I don't get is a mod_webapp.so.   (file listing at the end)

I look at my Makefile in the apache-2.0, and the only target it has is the
mod_webapp.la.  Now I'm lost.  I don't think I can do a LoadModule
webapp_module libexec/mod_webapp.la, so I'm trying to figure out what I have
done wrong.  (I tried this about a week ago, and get errors in apachectl
configtest)  I have this funny feeling I'm just missing a stupid little
detail, but I can't for the life of me figure it out.

The libtool is version 1.4.2
gcc is 2.95.2

Any ideas on how to get a mod_webapp.so?  Any help is appreciated.  (file
listing and Makefile below)

Thanks in advance
Joshua Chen


i.e.
-
{/src/jakarta-tomcat-connectors-4.0.4-b2-src/webapp/apache-2.0} ls -al
total 374
drwxr-xr-x   3 root root 512 Apr 17 19:11 .
drwxr-xr-x  11 root root1024 Apr 17 19:11 ..
drwxr-xr-x   2 root other512 Apr 17 19:11 .libs
-rw-r--r--   1 root other   5154 Apr 17 19:11 Makefile
-rw-r--r--   1 root root5092 Mar 24 00:09 Makefile.in
-rw-r--r--   1 root root   20534 Mar 24 00:09 mod_webapp.c
-rw-r--r--   1 root other784 Apr 17 19:11 mod_webapp.la
-rw-r--r--   1 root other  77348 Apr 17 19:11 mod_webapp.lo
-rw-r--r--   1 root other  76116 Apr 17 19:11 mod_webapp.o
-rw-r--r--   1 root other  0 Apr 17 19:11 mod_webapp.slo
-


---
include /src/jakarta-tomcat-connectors-4.0.4-b2-src/webapp/Makedefs

APXS =   /usr/local/apache/bin/apxs

MODULE = mod_webapp.la

all: $(MODULE)
build: $(MODULE)

mod_webapp.la: mod_webapp.c
@$(ECHO) Compiling and Linking Apache 2.0 WebApp Module
$(APXS) -I../include -c -L ../lib -lwebapp mod_webapp.c

install: mod_webapp.la
$(APXS) -i mod_webapp.la

clean:
@for ENTRY in *.o *.lo $(MODULE) .libs ; \
do \
if $(TEST) -f $${ENTRY} ; \
then \
$(ECHO) Removing file $${ENTRY} ; \
$(RM) -f $${ENTRY} ; \
fi ; \
if $(TEST) -d $${ENTRY} ; \
then \
$(ECHO) Removing directory $${ENTRY} ; \
$(RM) -rf $${ENTRY} ; \
fi ; \
done
---


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Jars in WEB-INF/lib and RMI stubs in WEB-INF/classes not found

2001-09-20 Thread Joshua van Tonder

How does classloading work in tomcat 3.2.2?

In deploying my application I am having problems getting classes loaded
aren't on the system classpath. I changed the tomcat.bat so that the
generated classpath doesn't doesn't include the system classpath and only
includes things built by the batch file.

I have placed log4j.jar and crimson.jar into WEB-INF/lib for my app.

For other reasons crimson.jar needs to be 1st on the classpath (specifically
b4 parser.jar) and I so try adding it by doing like so in batch file:

set CP=%TOMCAT_HOME%\webapps\MYAPP\WEB-INF\lib\crimson.jar;%CP%

But it isn't found. If I instead do: CP=%TOMCAT_HOME%\lib\crimson.jar it
also isn't found.

Only if I place it outside of %TOMCAT_HOME% and reference it are classes
found.

The wierd thing is that I can place log4j.jar in the %TOMCAT_HOME% and have
things work (but also can't find classes from it if it's added to classpath
referenced from WEB-INF/lib).

This also extends to rmi stubs in the WEB-INF/classes directory. Other
classes from our app in this dir our found except for the stubs.

any ideas, I'm stu[bb|mp]ed...




RE: Loosing Connections in a pool

2001-05-04 Thread Joshua Sharp

Are you receiving any error messages? I know oracle 8.1.7 has a connection
limit of ~120/process before it runs out of file descriptors. I haven't seen
any problems with loosing connections though.

Josh

-Original Message-
From: Dan Randall [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 04, 2001 2:32 PM
To: [EMAIL PROTECTED]
Subject: Loosing Connections in a pool


Hi,

My tomcat application runs in a production environment for about 24 hours
before it fails and must be restarted.  During that time JDBC connections to
Oracle become ignored and eventually disappear.  A fair guess is that I am
loosing memory, threads and  resources in general until there is nothing
left and only a restart cures the matter.

Unfortunately, tomcat, rather than apache is serving much of the pages and
graphics.  That may be a contributing factor?

I am using:

Solaris 8
Oracle 8.1.7
tomcat 3.2.1
apache 1.3.19
and Java 1.3

Does anyone have an idea of what sort of problems I might be having?  Any
known resource leaks or threading issues?

Thanks!!

Dan
<><><><><><><><><><><><><><><><><><><><><>This electronic mail transmission
may contain confidential information and is intended only for the person(s)
named.  Any use, copying or disclosure by any other person is strictly
prohibited.  If you have received this transmission in error, please notify
the sender via e-mail. <><><><><><><><><><><><><><><><><><><><><>



RE: multiple instances of tomcat

2001-05-04 Thread Joshua Sharp

To seperate the JSP repositories for each instance, you can specify the jsp
compiled classfile directory in the ContextManager tag in Server.xml. Just
change the workDir variable to different directories. That way you don't
have to orry about reading the wrong JSP repository. 

Josh

-Original Message-
From: Sankaranarayanan Ganapathy [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 04, 2001 1:49 PM
To: '[EMAIL PROTECTED]'
Subject: RE: multiple instances of tomcat


Hi,

I am not sure if it possible to run two instances of tomcat in standalone
mode with different versions of server.xml. Tomcat has this strong notion of
home built in to, the two tomcats should have different homes if they were
to work mutually exclusive of each other. For if the two instances were to
use the same home they both of them would see the same set of
webapplications, use common logs, work directory and other configuration
file in the conf directory.

Thanx
Ganesh

-Original Message-
From: Peter Hrastnik [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 04, 2001 7:05 AM
To: [EMAIL PROTECTED]
Subject: Re: multiple instances of tomcat


It is possible: You must have two different server.xml files. In the
server.xml file you can configure that port in the http connector
element. You also need to have 2 startup-scripts that call tomcat with
the appropriate server.xml file. You don't need Apache to do this.

Bye,
Peter.

-- 
Mag. Peter Hrastnik
tele.ring Telekom Service GmbH
A-1030 Wien, Hainburgerstr. 33
Tel.: +43/1/931012/3277, Mobil: +43/650/6503277


teh j wrote:
> 
> Hello all
> 
> I was just wondering whether it would be possible to
> have two different tomcat processes (running on
> different ports) simultaneously?
> 
> From looking at the 'Minimalistic Usres Guide' it
> seems this can be done with Apache, but can it be done
> with Tomcat as a standalond JSP server?
> 
> thanks!
> Jason
> 
>

_
> http://store.yahoo.com.au - Yahoo! Store
> - It's time you had your business online!
<><><><><><><><><><><><><><><><><><><><><>This electronic mail transmission
may contain confidential information and is intended only for the person(s)
named.  Any use, copying or disclosure by any other person is strictly
prohibited.  If you have received this transmission in error, please notify
the sender via e-mail. <><><><><><><><><><><><><><><><><><><><><>



Can

2001-03-19 Thread Joshua Anderson



Someone unsubscribe me from this mailing 
list?
 
I've tried "4" times and still continue to get 
e-mail.


Virtual Hosts w/ Tomcat+Apache

2001-03-11 Thread Joshua Lifton


The "Tomcat-Apache HOWTO" document that comes with the Tomcat 3.2.1 distro
mentions that there are two different ways to configure Tomcat for virtual
hosts; one is to use a different Tomcat for each Apache virtual host and
the other is to use the same Tomcat for each Apache virtual host.  In the
case of the latter, the HOWTO file mentions that Apache's httpd.conf file
must be configured using the  directive and gives an example
of such.  In addition, the HOWTO file states that Tomcat's server.xml must
be configured using the  directive.  An example is given for this as
well, but it is identical to the example given for the 
directive in the httpd.conf file.  Is this a typo?  I checked the
server.xml file and found a rough sketch of the  directive being
used for working with virtual hosts, but would like to see a more complete
example.  Anybody have experience with this?  If it is a typo, how
do we go about fixing it?  Thanks, josh


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




Re: IllegalStateException on index.html??

2001-02-07 Thread joshua


Just restart tomcat. I usually get that when I do to much refreshing.
 
[EMAIL PROTECTED] wrote:
 
Error: 500
Location: /partners/index.html
Internal Servlet Error:
java.lang.IllegalStateException: Can't happen - classname
is null, who added this ?
    at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:261)
    at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
    at org.apache.tomcat.core.Handler.service(Handler.java:254)
    at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
    at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
    at java.lang.Thread.run(Thread.java:484)
It's a very simple html page. Obviously it references
no classes. Why am I getting this error? I've been using Tomcat for a few
weeks now and this is the first time I've seen this. Restart Tomcat and
I get the page just fine. Another oddity that happened to me yesterday
was all of a sudden I was getting "Forbidden" errors on my HTML pages.
In that case I only had to restart Apache. I'm using Tomcat 3.2, Apache
1.3.14, on Solaris 2.6.
-Sean
P.S. Sorry for the duplicate.



tomcat contexts and JVMs

2001-01-16 Thread joshua . eapen

Hi All:

I am a bit confused.  Does each context in server.xml have its own JVM
session?

For example, I have two contexts:
1) Catalog - for a product catalog app
2) Support - for customer support apps

Both these contexts need a connection pool to my backend Oracle database.
If both contexts use separate JVM sessions then I would have double the
number of connections to my Oracle database and the connections would
increase per context added.

Is there a way to share the connection pool object across contexts?  Again
all this relates back to whether the various contexts runs within one JVM
session or each has its own JVM session.

Thanks,

Joshua


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