Re: apache and native library ?

2006-11-07 Thread mast

i am not on windows, but the connector address=0.0.0.0 works thanks
- Original Message - 
From: Mladen Turk [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, November 07, 2006 7:45 AM
Subject: Re: apache and native library ?



mast wrote:

in fact there is a little diffrence
without native :
INFO: JK: ajp13 listening on /0.0.0.0:9570


with native :
INFO: Initializing Coyote AJP/1.3 on ajp-9570
INFO: Starting Coyote AJP/1.3 on ajp-9570



Not sure when you have downloaded the .dll
Download the tcnative-1-ipv4.dll from
http://tomcat.heanet.ie/native/1.1.6/binaries/win32/
Anyhow the tcnative-1.dll is symlink to the tcnative-1-ipv4.dll

The other solution is to set the IP address inside the
Connector address=0.0.0.0

Regards,
Mladen


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Application Path

2006-11-07 Thread Harry
Alternatively, you can set a BASE reference within the HEAD element of each
page, and then use relative-paths in all your URLs:


head
...
base href=http://www.webadorable.com/your-app-context-name-here//
...
/head

...

img src=relpath/to/image.jpg/


The BASE value can (should!) be set dynamically, of course - with a tag
library, or whatever.

Notice that the BASE reference has a trailing slash, whilst your relative
paths must start without a leading slash.

Harry Mantheakis


 Is there any reason you can't just have the paths composed dynamically?:
 
 img src=${pageContext.request.contextPath}/webapp/relpath/to/image.jpg /
 
 For the ROOT webapp, the expression will return an empty path, so it's
 always correct.
 
 --David
 
 Vernon _ wrote:
 
 I have another new application deployed in a non-root directory. I
 need to have absolute paths for CSS and Javascript in order to import
 them properly with differenct level structure of JSP files. I can
 deploy it as the root application or add the application name in the
 absolute path. Neither solutions are very good. Any good practise to
 solve this issue?
 
 Thanks,
 
 Vernon
 
 _
 Find a local pizza place, music store, museum and moreŠthen map the
 best route! http://local.live.com?FORM=MGA001
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: apache and native library ?

2006-11-07 Thread Mladen Turk

mast wrote:

i am not on windows,


LOL. When you said Hi i have install the native library ...
I presume you are on windoze.



but the connector address=0.0.0.0 works thanks


Right, your kernel probably supports IPV6, and in that
case (APR caused) the null address is the same
as address=:: (readed as all IPV6 addresses), so
that's why the IPV4 addresses are refused.

Anyhow, glad that it works ;)

Regards,
Mladen.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problems with unpacking ROOT.war

2006-11-07 Thread andrew . w . cooke
Hi Nathan,

I thought there must be other users out there experiencing the same
problem!No - I haven't been able to resolve my problem (ROOT.war
doesn't unpack when ROOT.xml is in conf/Catalina/localhost), and have to
work around it instead.

 What are you passing for ${path}, I have been using / but I don't think
this correct.

I think the path attribute should be set to  for a root application -
though I think tomcat is robust in case you do use /.

When I was experimenting,  I was able to get the war file to expand if (1)
there wasn't a ROOT.xml in conf/Catalina/localhost and (2) ROOT.war has
META-INF/context.xml :

http://marc.theaimsgroup.com/?l=tomcat-userm=116107471021645w=2

and I think it will also expand if ROOT.war doesn't have a META-INF
directory.

But for our application, we need to use different context files in
different environments, and so can't ship a war file containing one context
file.  So I've written ant tasks to manually unpack the war when deploying
the app locally, and when the war is released, we have to manually unpack
the war.

... a drag - which is why I've been chasing this problem on this list (and
I guess I should raise a bug in bugzilla?)

cheers,

Andy



   
 Nathan Wilhelmi   
 [EMAIL PROTECTED] 
 u To 
   [EMAIL PROTECTED] 
 06/11/2006 22:33   cc 
   
   Subject 
   Re: problems with unpacking 
   ROOT.war
   
   
   
   
   
   




Hi Andrew - Have you gotten any resolution to this, I am having the same
problem, although I can't get it to work even with the context.xml file
in the META-INF directory. What are you passing for ${path}, I have been
using / but I don't think this correct.

Thanks!

-Nate


[EMAIL PROTECTED] wrote:
 Hi there,

 I've been having trouble persuading tomcat 5.5 to expand ROOT.war when it
 is dropped into webapps, and started.  The problem seems to go away if
 ROOT.war contains META-INF/context.xml - but since we deploy this war
file
 to different environments, shipping it with a context file isn't an
option.

 See the email below for instructions on how to duplicate the bug.  (btw,
 this is quite an old mailtrail, and I notice there are a couple of stray
 messages that should belong in this particular mail trail).

 I've also experimented today with the manager app, and again , when I use
 the deploy ant target, the app fails to start because it seems tomcat
isn't
 expanding the war file:

 deploy url=${url} username=${username} password=${password}
 path=${path} localWar=file://${build}/ROOT.war
 config=file://${build}/ROOT.xml /

 The manager can correctly stop and undeploy the ROOT app, but when I use
 the above task, ROOT.war and ROOT.xml are dropped into the correct
folders,
 but the war *isn't* expanded).

 ROOT.xml has the following context attributes:

 Context debug=1 reloadable=true antiResourceLocking=true
 antiJARLocking=true

 and host has the usual defaults:

 Host name=localhost appBase=webapps unpackWARs=true
 autoDeploy=true xmlValidation=false xmlNamespaceAware=false

 My question is:   has anyone else experienced similar problems with
 expanding ROOT.war?My work around is to write ant targets and scripts
 to manually expand the war... however I'd like to understand if this is a
 bug, or just a quirk of my setup.  If it is a bug, then I'd like to
submit
 this to tomcat's bugzilla.

 thanks

 Andy





  [EMAIL PROTECTED]

  mchase.com


To
  18/10/2006 09:32  Tomcat Users List

users@tomcat.apache.org


cc
  Please respond to

Tomcat Users
Subject
List   RE: problems with unpacking

  [EMAIL PROTECTED] ROOT.war

  che.org















 Hi Charles,


 Neither one is correct.  You must NOT use the path attribute in a
 Context element unless the Context is defined in server.xml.  The
 URI path to the app is determined 

Problems with Tomcat and xml files

2006-11-07 Thread Juanjo Cuadrado

Hi,

I'm developing a Web application and I'm having problems to deploy it in a
Tomcat server.
To develop, I use NetBeans 5.0 (jdk 1.5) and I debug with Tomcat 5.5.9 that
NetBeans has inside.

In the development environment all works fine, but when I try to deploy it
(the application) in a
pre-production environment(with Tomcat 5.0.27 and jdk 1.5), Tomcat give me
the follow error:
java.lang.NoSuchMethodError: org.w3c.dom.Element.getTextContent()

I have been looking for in forums and I have read that the problem could be
related with any compatibility
library that Tomcat uses, but I'm not sure...

Any idea?


Why can java.io.NotSerializableException occur?

2006-11-07 Thread starki78
We have a crash at tomcat 4.
The thing I don't understand is the fact that
the class causing this error has no default constructor and
does not implement serializable.

So why can this error occur?

THANKS A LOT


2006-11-07 11:25:49 StandardManager[/pss] IOException while loading persi=
sted sessions: java.io.WriteAbortedException: writing aborted; java.io.No=
tSerializableException: com.struts.statistics.Deviation

.Measures
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableEx=
ception: com.struts.statistics.Deviation
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at java.util.ArrayList.readObject(ArrayList.java:547)
at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces=
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838=
)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)=

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1=
646)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at org.apache.catalina.session.StandardSession.readObject(StandardSessio=
n.java:1369)
at org.apache.catalina.session.StandardSession.readObjectData(StandardSe=
ssion.java:864)
at org.apache.catalina.session.StandardManager.load(StandardManager.java=
:440)
at org.apache.catalina.session.StandardManager.start(StandardManager.jav=
a:655)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3=
585)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)=

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

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363=
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4=
97)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:219=
0)
at org.apache.catalina.startup.CatalinaService.start(CatalinaService.jav=
a:273)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.=
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces=
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.BootstrapService.start(BootstrapService.j=
ava:245)
at org.apache.catalina.startup.BootstrapService.main(BootstrapService.ja=
va:307)=0A




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Why can java.io.NotSerializableException occur?

2006-11-07 Thread Juanjo Cuadrado

Hi,

   maybe the problem is that tomcat is trying to do anything with the
session and it is trying to write you object for sesion persistence...


2006/11/7, starki78 [EMAIL PROTECTED]:


We have a crash at tomcat 4.
The thing I don't understand is the fact that
the class causing this error has no default constructor and
does not implement serializable.

So why can this error occur?

THANKS A LOT


2006-11-07 11:25:49 StandardManager[/pss] IOException while loading persi=
sted sessions: java.io.WriteAbortedException: writing aborted; java.io.No=
tSerializableException: com.struts.statistics.Deviation

.Measures
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableEx=
ception: com.struts.statistics.Deviation
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at java.util.ArrayList.readObject(ArrayList.java:547)
at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces=
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838=
)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)=

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1=
646)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at org.apache.catalina.session.StandardSession.readObject(StandardSessio=
n.java:1369)
at org.apache.catalina.session.StandardSession.readObjectData(StandardSe=
ssion.java:864)
at org.apache.catalina.session.StandardManager.load(StandardManager.java=
:440)
at org.apache.catalina.session.StandardManager.start(StandardManager.jav=
a:655)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3=
585)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)=

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

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363=
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4=
97)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:219=
0)
at org.apache.catalina.startup.CatalinaService.start(CatalinaService.jav=
a:273)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.=
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces=
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.BootstrapService.start(BootstrapService.j=
ava:245)
at org.apache.catalina.startup.BootstrapService.main(BootstrapService.ja=
va:307)=0A




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Include Directive

2006-11-07 Thread Juanjo Cuadrado

Hi,

  Can you try the follow:

%@ include file=*/header.jsp* %

   I think that this will work fine.

2006/11/7, Justin Jaynes [EMAIL PROTECTED]:


Hello,

I am trying to eliminate unnecessary duplication of code by using include
directives.  Currently my directory structure is like this:

[main app directory]
index.jsp
header.jsp
footer.jsp
[admin subdirectory]
index.jsp

The index.jsp file in the main directory contains the code %@ include
file=header.jsp % and it works great.

In the admin directory the index.jsp file contains this code %@ include
file=../header.jsp % obviously referencing to the parent directory, where
the header.jsp file sits.  I don't want to have to copy it to the child
directory and maintain two copies of it.

But when I do this, I get an error every time.  What am I doing
wrong?  You can find the error below.

Justin

HTTP Status 500 - type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
org.apache.jasper.JasperException: /index.jsp(4,0) File /../header.jsp
not found
   org.apache.jasper.servlet.JspServletWrapper.handleJspException(
JspServletWrapper.java:512)
   org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:377)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
:314)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
org.apache.jasper.JasperException: /index.jsp(4,0) File /../header.jsp
not found
   org.apache.jasper.compiler.DefaultErrorHandler.jspError(
DefaultErrorHandler.java:39)
   org.apache.jasper.compiler.ErrorDispatcher.dispatch(
ErrorDispatcher.java:405)
   org.apache.jasper.compiler.ErrorDispatcher.jspError(
ErrorDispatcher.java:86)
   org.apache.jasper.compiler.Parser.processIncludeDirective(
Parser.java:339)
   org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java
:372)
   org.apache.jasper.compiler.Parser.parseDirective(Parser.java:484)
   org.apache.jasper.compiler.Parser.parseElements(Parser.java:1556)
   org.apache.jasper.compiler.Parser.parse(Parser.java:126)
   org.apache.jasper.compiler.ParserController.doParse(
ParserController.java:211)
   org.apache.jasper.compiler.ParserController.parse(
ParserController.java:100)
   org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
   org.apache.jasper.JspCompilationContext.compile(
JspCompilationContext.java:563)
   org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:305)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
:314)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




j_security_check exception

2006-11-07 Thread Assaf Flatto

Hello

working with Tomcat i am unable to get the replication to preform 
smoothly , when i start an authentication session (login) i see my 
application finishing the login procedure correctly but the replication 
is throwing this exception and the application and tomcat freeze.


Any one ever encountered this behavior before ?

Thanks


Assaf



2006-11-07 14:22:34,951 [http-8443-Processor25] DEBUG 
org.apache.catalina.cluster.tcp.ReplicationValve  - Invoking replication

request on /jsp/pages/j_security_check
2006-11-07 14:22:35,086 [http-8443-Processor25] ERROR 
org.apache.coyote.tomcat5.CoyoteAdapter  - An exception or error 
occurred in the container during the r

equest processing
java.lang.ClassCastException
   at 
org.apache.catalina.cluster.session.DeltaRequest.setPrincipal(DeltaRequest.java:89)
   at 
org.apache.catalina.cluster.session.DeltaSession.setPrincipal(DeltaSession.java:567)
   at 
org.apache.catalina.cluster.session.DeltaSession.setPrincipal(DeltaSession.java:561)
   at 
org.apache.catalina.authenticator.AuthenticatorBase.register(AuthenticatorBase.java:818)
   at 
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:176)
   at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve.java:141)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
   at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
   at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
   at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

   at java.lang.Thread.run(Thread.java:534)


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: catalina.sh == artifact

2006-11-07 Thread Gregor Schneider

hi guys,

thanks for the hint.

i was actually missing the point to look into the PolicyFiles-doc, I
just looked into the wrong files.

thanks again

greg
--
what's puzzlin' you, is the nature of my game

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat + Jprobe

2006-11-07 Thread Ravikanth


I installed JProbe Free Edition, 

Iam able to start Tomcat through JProbe. But with this when i clicked on
Start collecting data in Jprobe memory usage is going very high and
resulting Mem our of Error.

Is there any posiblity to start the Tomcat individually and attaching JProbe
profiler to the running Tomcat process remotely.

Thx in advance.

Ravi
-- 
View this message in context: 
http://www.nabble.com/Tomcat-%2B-Jprobe-tf2588449.html#a7217567
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Comet + tomcat6

2006-11-07 Thread Rémy Maucherat

The place to look is: http://tomcat.apache.org/tomcat-6.0-doc/aio.html

I have added a bigger warning that these features require the APR or
NIO HTTP connector.

Rémy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Request for WMV file to machine name doesn't work

2006-11-07 Thread Zachary Wiener
As suggested, I tried ipconfig /all, but my IP shows up the same remotely 
as does locally.  I have tried different browsers, such as Firefox and did 
not have the problem, but I'm not sure what in IE could be making this 
happen.  I'll try getting the ieHttpHeaders and/or Live HTTP Headers.  I 
imagine I can do this using a program such as Ethereal? 

Thanks,
Zach




Mark Thomas [EMAIL PROTECTED] 
11/06/2006 07:42 PM
Please respond to
Tomcat Users List users@tomcat.apache.org


To
Tomcat Users List users@tomcat.apache.org
cc

Subject
Re: Request for WMV file to machine name doesn't work






Zachary Wiener wrote:
 I still have the problem even if I do add the MIME type.  And the 
problem 
 occurs only when I am on the same machine as where Tomcat is installed, 
 and I request the file using http://machine name:8080 as opposed to 
 http://localhost:8080.

Bizarre. Have you tried using different browsers? It is also worth
getting hold of ieHttpHeaders or Live HTTP Headers as appropriate for
your browser and seeing if the headers are correct.

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





Re: Request for WMV file to machine name doesn't work

2006-11-07 Thread Mark Thomas
Zachary Wiener wrote:
 As suggested, I tried ipconfig /all, but my IP shows up the same remotely 
 as does locally.  I have tried different browsers, such as Firefox and did 
 not have the problem, but I'm not sure what in IE could be making this 
 happen.  I'll try getting the ieHttpHeaders and/or Live HTTP Headers.  I 
 imagine I can do this using a program such as Ethereal?

That it works in Firefox and not IE is useful. Compare the headers you
see in IE when it works and doesn't and that should get us a long way
towards the answer.

Ethereal should be fine.

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Request for WMV file to machine name doesn't work

2006-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Zachary,

 I have tried different browsers, such as Firefox and did not have the
 problem, but I'm not sure what in IE could be making this happen.

Well, there's your problem: MSIE ignores MIME type headers in favor of
detecting the MIME type itself. There's little to nothing you can do
about this, unless you can patch the registry on every machine that will
be used to connect to your application.

This is a great resource for understanding what /should/ be happening,
and what MSIE actually does:
http://ppewww.ph.gla.ac.uk/~flavell/www/content-type.html

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFUIUQ9CaO5/Lv0PARAghCAJ4m7SeRfOFP5nn9xU9THe7W7isU+ACgpSql
tUdlov32PfVNkJ1Hm4HVsOU=
=tHTh
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Include Directive

2006-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Justin,

 The index.jsp file in the main directory contains the code %@
 include file=header.jsp % and it works great.
 
 In the admin directory the index.jsp file contains this code %@
 include file=../header.jsp % obviously referencing to the parent
 directory, where the header.jsp file sits.  I don't want to have to
 copy it to the child directory and maintain two copies of it.
 
 But when I do this, I get an error every time.  What am I doing
 wrong?  You can find the error below.

It's a good idea to start your include directives with a '/', making
your paths relative to the context path (the webapp base URI, if you
will). As you can see, Tomcat is adding a leading '/' for you, which
makes the path into nonsense:

 File /../header.jsp not found

/../header.jsp would actually be located one directory above your
webapp's root directory, which is illegal.

Consider using /header.jsp as the include's location.

There is another thread from the last 24 hours or so with someone asking
about changing context paths. This is the best way to do this:

%@ include file=%= request.getContextPath() %/header.jsp %

Not sure if that compiles (I haven't touched JSP in years), but it's the
general idea.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFUIbR9CaO5/Lv0PARAiNSAJ9T4mX3Vz5nMvdNN/RfyS25CmpKVQCdENMF
f09sh+IY0kXEb/MPD39Qi+Y=
=44Mk
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems with Tomcat and xml files

2006-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Juanjo,

 In the development environment all works fine, but when I try to deploy it
 (the application) in a
 pre-production environment(with Tomcat 5.0.27 and jdk 1.5), Tomcat give me
 the follow error:
 java.lang.NoSuchMethodError: org.w3c.dom.Element.getTextContent()

This looks like a DOM library library mismatch. If you really are using
JDK 1.5, then you don't need Tomcat's compatibility library (in fact, it
will break your stuff if you do use it).

If you don't have the compatibility library installed, then you need to
look at your other XML libraries. It also might help to look at the NSME
above and inspect the stack trace. For instance, if you get that
exception in, say, dom4j, then you ought to check the versions of both
your dom4j library and the XML processing libraries you are bundling
with your application, or that come with Tomcat.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFUIe39CaO5/Lv0PARAlxyAKCn/vqo1rgityxSZ5aE3Z1ZCKqU2wCfaEmQ
UArxoMfb+6TohFhmdQYNcUc=
=8CJ8
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Request for WMV file to machine name doesn't work

2006-11-07 Thread Zachary Wiener
Thanks for the link.  I'll have to read it and see if it addresses why 
things work when the request is to localhost, as opposed to machine name.





Christopher Schultz [EMAIL PROTECTED] 
11/07/2006 08:07 AM
Please respond to
Tomcat Users List users@tomcat.apache.org


To
Tomcat Users List users@tomcat.apache.org
cc

Subject
Re: Request for WMV file to machine name doesn't work






-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Zachary,

 I have tried different browsers, such as Firefox and did not have the
 problem, but I'm not sure what in IE could be making this happen.

Well, there's your problem: MSIE ignores MIME type headers in favor of
detecting the MIME type itself. There's little to nothing you can do
about this, unless you can patch the registry on every machine that will
be used to connect to your application.

This is a great resource for understanding what /should/ be happening,
and what MSIE actually does:
http://ppewww.ph.gla.ac.uk/~flavell/www/content-type.html

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFUIUQ9CaO5/Lv0PARAghCAJ4m7SeRfOFP5nn9xU9THe7W7isU+ACgpSql
tUdlov32PfVNkJ1Hm4HVsOU=
=tHTh
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





Re: Include Directive

2006-11-07 Thread Dies Koper

Hello Chris, Justin,


The index.jsp file in the main directory contains the code %@
include file=header.jsp % and it works great.

In the admin directory the index.jsp file contains this code %@
include file=../header.jsp % obviously referencing to the parent
directory, where the header.jsp file sits.  I don't want to have to
copy it to the child directory and maintain two copies of it.

But when I do this, I get an error every time.  What am I doing
wrong?  You can find the error below.


It's a good idea to start your include directives with a '/', making
your paths relative to the context path (the webapp base URI, if you
will). As you can see, Tomcat is adding a leading '/' for you, which
makes the path into nonsense:


The JSP2.0 spec says that both context-relative paths and page relative 
paths area allowed. Both are as described in RFC 2396 meaning that 
../ is allowed too. For page relative paths, it is prepended by the 
path of the JSP or tag that it is used in (relative to the context path) 
so that the path eventually starts with a '/'.

#Section JSP1.2.1

While I agree it is better to use a context-relative path to make it 
easier later to move the page around, I don't see why it wouldn't work 
with ../header.jsp..



There is another thread from the last 24 hours or so with someone asking
about changing context paths. This is the best way to do this:

%@ include file=%= request.getContextPath() %/header.jsp %

Not sure if that compiles (I haven't touched JSP in years), but it's the
general idea.


No, this is a directive to the JSP translator so no Java code in it is 
executed.


Regards,
Dies


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk affinity for a lamed tomcat instance

2006-11-07 Thread Rainer Jung
Hi Dan,

if mod_jk doesn't detect the error status of the tomcat instance,
because tomcat still sends valid http requests, you can set the worker
to disabled (no new sessions) or even stopped (no more requests).

By the way: I'm in Munich (W-JAX conference).

Regards,

Rainer

Dan Ackerson schrieb:
 I have a load-balanced cluster of application servers configured via
 mod_jk. If one of the application servers has a soft JVM error (for
 instance OOME: PermGen), mod_jk seems to develop an unfortunate
 affinity for this lamed instance (probably because this server is no
 longer processing requests and looks fairly idle).
 
 How can I alert the AJP connector on the tomcat side that this app
 server is dead so that mod_jk no longer routes requests to it?
 
 Thanks in advance,
 
 Dan
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Possible bug in Apache Tomcat JK 1.2.19 for WIN32?

2006-11-07 Thread Per Johnsson
Hi!
 
I don't know if this is a bug or if it's a known issue.
 
This is an extract from our uriworkermap.properties file:
...
/ExtranetLogin*=ajp13w
/images*=ajp13w
/ExtranetLogin*=ajp14w
..
 
It seems like the two ExtranetLogin pointing to two different hosts was
confused in some way and didn't work. After changing the ajp14w to
/Extranet* it worked. So I wonder if there may be some sort of mixup
with url defenitions matching exacly like the two we have above.
 
/Regards Per Jonsson


This e-mail and the information it contains may be privileged and/or
confidential.  It is for the intended addressee(s) only.
The unauthorised use, disclosure or copying of this e-mail, or any information 
it contains, is prohibited. 
If you are not an intended recipient, please contact the sender and delete the 
material from your computer.





Re: reply_timeout

2006-11-07 Thread Rainer Jung
Good question (we need to add the distinction lb/usual worker) to the
docs page for the advanced worker parameters.

The answer is: Number 2.

Regards,

Rainer

Dan Carwin schrieb:
 Is reply_timeout designed to be set...
 
 1. only for the loadbalancing worker.
 2. for every worker except the loadbalancer.
 3. for every worker including the loadbalancer.
 
 Thanks,
 Dan Carwin
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Possible bug in Apache Tomcat JK 1.2.19 for WIN32?

2006-11-07 Thread Rainer Jung
I'm not sure, what kind of problem you have. Putting two identical
patterns for different workers into uriworkermap.properties will not
result in a well understood (or documented) behaviour.

Nevertheless

http://issues.apache.org/bugzilla/show_bug.cgi?id=40855

might be interesting to read.

Regards,

Rainer

Per Johnsson schrieb:
 Hi!
  
 I don't know if this is a bug or if it's a known issue.
  
 This is an extract from our uriworkermap.properties file:
 ...
 /ExtranetLogin*=ajp13w
 /images*=ajp13w
 /ExtranetLogin*=ajp14w
 ..
  
 It seems like the two ExtranetLogin pointing to two different hosts was
 confused in some way and didn't work. After changing the ajp14w to
 /Extranet* it worked. So I wonder if there may be some sort of mixup
 with url defenitions matching exacly like the two we have above.
  
 /Regards Per Jonsson
 
 
 This e-mail and the information it contains may be privileged and/or
 confidential.  It is for the intended addressee(s) only.
 The unauthorised use, disclosure or copying of this e-mail, or any 
 information it contains, is prohibited. 
 If you are not an intended recipient, please contact the sender and delete 
 the material from your computer.
 
 
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Possible bug in Apache Tomcat JK 1.2.19 for WIN32?

2006-11-07 Thread Per Johnsson
Thanks four your quick response.

I think, after reading the bugzilla, the problem is:

The keys on the left side are used in a case insensitive way as a key
in
a hash table. If there are multiple same keys, the first key wins and
the value is set to the last one.

It would explain our problem.

We run a rather complex environment with 4 live tomcat servers fronting
with 4 iis , and one tomcatpreview sharing an IIS with one of the live
ones. So we have the exact patterns in both ajp13w and ajp14w..

/Regards Per Jonsson

-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED] 
Sent: den 7 november 2006 15:25
To: Tomcat Users List
Subject: Re: Possible bug in Apache Tomcat JK 1.2.19 for WIN32?

I'm not sure, what kind of problem you have. Putting two identical
patterns for different workers into uriworkermap.properties will not
result in a well understood (or documented) behaviour.

Nevertheless

http://issues.apache.org/bugzilla/show_bug.cgi?id=40855

might be interesting to read.

Regards,

Rainer

Per Johnsson schrieb:
 Hi!
  
 I don't know if this is a bug or if it's a known issue.
  
 This is an extract from our uriworkermap.properties file:
 ...
 /ExtranetLogin*=ajp13w
 /images*=ajp13w
 /ExtranetLogin*=ajp14w
 ..
  
 It seems like the two ExtranetLogin pointing to two different hosts 
 was confused in some way and didn't work. After changing the ajp14w to
 /Extranet* it worked. So I wonder if there may be some sort of mixup 
 with url defenitions matching exacly like the two we have above.
  
 /Regards Per Jonsson
 
 **
 ** This e-mail and the information it contains may be 
 privileged and/or confidential.  It is for the intended addressee(s) 
 only.
 The unauthorised use, disclosure or copying of this e-mail, or any
information it contains, is prohibited. 
 If you are not an intended recipient, please contact the sender and
delete the material from your computer.
 **
 **
 
 

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



This e-mail and the information it contains may be privileged and/or
confidential.  It is for the intended addressee(s) only.
The unauthorised use, disclosure or copying of this e-mail, or any information 
it contains, is prohibited. 
If you are not an intended recipient, please contact the sender and delete the 
material from your computer.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Request for WMV file to machine name doesn't work

2006-11-07 Thread Martin Gainty
You will also need to specify Content-disposition after setting Content-type as 
setting these attributes for your response 
 response.setContentType(video/x-ms-wmv) 
 response.setHeader(Content-disposition,attachment; filename=file.wmv); 

Take a look at 
http://joseph.randomnetworks.com/archives/2004/10/01/making-ie-accept-file-downloads

Anyone else?
M-

This e-mail communication and any attachments may contain confidential and 
privileged information for the use of the 
designated recipients named above. If you are not the intended recipient, you 
are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, 
distribution or copying of it or its 
contents
- Original Message - 
From: Zachary Wiener [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, November 07, 2006 8:25 AM
Subject: Re: Request for WMV file to machine name doesn't work


 Thanks for the link.  I'll have to read it and see if it addresses why 
 things work when the request is to localhost, as opposed to machine name.
 
 
 
 
 
 Christopher Schultz [EMAIL PROTECTED] 
 11/07/2006 08:07 AM
 Please respond to
 Tomcat Users List users@tomcat.apache.org
 
 
 To
 Tomcat Users List users@tomcat.apache.org
 cc
 
 Subject
 Re: Request for WMV file to machine name doesn't work
 
 
 
 
 
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Zachary,
 
 I have tried different browsers, such as Firefox and did not have the
 problem, but I'm not sure what in IE could be making this happen.
 
 Well, there's your problem: MSIE ignores MIME type headers in favor of
 detecting the MIME type itself. There's little to nothing you can do
 about this, unless you can patch the registry on every machine that will
 be used to connect to your application.
 
 This is a great resource for understanding what /should/ be happening,
 and what MSIE actually does:
 http://ppewww.ph.gla.ac.uk/~flavell/www/content-type.html
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.5 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iD8DBQFFUIUQ9CaO5/Lv0PARAghCAJ4m7SeRfOFP5nn9xU9THe7W7isU+ACgpSql
 tUdlov32PfVNkJ1Hm4HVsOU=
 =tHTh
 -END PGP SIGNATURE-
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


how to get the client certificate and save/retrieve it to/from openldap

2006-11-07 Thread Eric Yin

Hi,

I'm using Tomcat for mutual authitication. after the brower and server 
finish the certificate exchange and verification (which is already 
done). I want to get the client certificate and compare it with what's 
been stored in the LDAP.


I'm new with linux. how can i get the client certificate using JSP or 
Servelet? and how can i connect to openldap and save/retrieve files 
to/from the Ldap server using JSP or Servelet?


thanks,

Eric.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk affinity for a lamed tomcat instance

2006-11-07 Thread Dan Ackerson

Sorry if I wasn't clear - I wanted to know if their was a way I could
programmatically alert mod_jk from Tomcat that this worker should be
disabled.  This way, the worker could automatically signal to mod_jk that it
was lamed and I wouldn't have to run over to the jk-status page to
manually disable it.

For example : MyOutOfMemoryListener.class { setAJPErrorState(true); }

-- 
View this message in context: 
http://www.nabble.com/mod_jk-affinity-for-a-lamed-tomcat-instance-tf2581047.html#a7221335
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to retrieve mod_jk version from mod_jk.so?

2006-11-07 Thread Fan, Tony
Hi,

 

  I used to get version information very easily from mod_jk.so in
Solaris system by typing strings /usr/local/apache2/modules/mod_jk.so |
egrep mod_jk/ when I compiled jk module with Apache 2.0,  after I
switched to Apache2.2 and the mod_jk.so build base on Apache2.2 doesn't
return version information anymore.  I am using jk version 1.2.15.  Is
there a way to get version information just from mod_jk.so?

 

--Tony



Re: How to retrieve mod_jk version from mod_jk.so?

2006-11-07 Thread Mladen Turk

Fan, Tony wrote:

I am using jk version 1.2.15.  Is
there a way to get version information just from mod_jk.so?



Set
JkLogLevel debug

... and you will have the line in the modjk.log
after starting httpd in the form:
[debug] mod_jk.c (2410): Initialized mod_jk/1.2.20-dev

Regards,
Mladen.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Application Path

2006-11-07 Thread Vernon _

Thanks for all your information.

I was thinking of a application configuration solution so that I don't need 
to alter the code between development and deployment. I have several 
applications in various development phases in my box. I try to figure to 
handle them together.



Vernon
__
http://www.vicina.info


Original Message Follows
From: Harry [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: Application Path
Date: Tue, 07 Nov 2006 09:31:27 +
MIME-Version: 1.0
Received: from mail.apache.org ([140.211.11.2]) by 
bay0-mc9-f5.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Tue, 7 
Nov 2006 01:31:58 -0800

Received: (qmail 18223 invoked by uid 500); 7 Nov 2006 09:32:06 -
Received: (qmail 18212 invoked by uid 99); 7 Nov 2006 09:32:06 -
Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133)
by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 01:32:06 -0800

Received: neutral (herse.apache.org: local policy)
Received: from [80.168.70.142] (HELO relay2.mail.uk.clara.net) 
(80.168.70.142)by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 
01:31:51 -0800
Received: from mantheakis.claranet.co.uk ([80.168.130.24] helo=[10.0.0.3])by 
relay2.mail.uk.clara.net with esmtp (Exim 4.50)id 1GhNIn-0007na-7mfor 
users@tomcat.apache.org; Tue, 07 Nov 2006 09:31:29 +

X-Message-Info: txF49lGdW42h0cbO+nEGCm+Gy+i+Lt7qOV5pel0LBy8=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Help: mailto:[EMAIL PROTECTED]
List-Unsubscribe: mailto:[EMAIL PROTECTED]
List-Post: mailto:users@tomcat.apache.org
List-Id: users.tomcat.apache.org
Delivered-To: mailing list users@tomcat.apache.org
X-ASF-Spam-Status: No, hits=0.5 required=10.0tests=DNS_FROM_RFC_ABUSE
X-Spam-Check-By: apache.org
User-Agent: Microsoft-Entourage/10.1.6.040913.0
X-Virus-Checked: Checked by ClamAV on apache.org
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 07 Nov 2006 09:31:58.0422 (UTC) 
FILETIME=[92575F60:01C7024F]


Alternatively, you can set a BASE reference within the HEAD element of each
page, and then use relative-paths in all your URLs:


head
...
base href=http://www.webadorable.com/your-app-context-name-here//
...
/head

...

img src=relpath/to/image.jpg/


The BASE value can (should!) be set dynamically, of course - with a tag
library, or whatever.

Notice that the BASE reference has a trailing slash, whilst your relative
paths must start without a leading slash.

Harry Mantheakis


 Is there any reason you can't just have the paths composed dynamically?:

 img src=${pageContext.request.contextPath}/webapp/relpath/to/image.jpg 
/


 For the ROOT webapp, the expression will return an empty path, so it's
 always correct.

 --David

 Vernon _ wrote:

 I have another new application deployed in a non-root directory. I
 need to have absolute paths for CSS and Javascript in order to import
 them properly with differenct level structure of JSP files. I can
 deploy it as the root application or add the application name in the
 absolute path. Neither solutions are very good. Any good practise to
 solve this issue?

 Thanks,

 Vernon

 _
 Find a local pizza place, music store, museum and moreŠthen map the
 best route! http://local.live.com?FORM=MGA001


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

_
Stay in touch with old friends and meet new ones with Windows Live Spaces 
http://clk.atdmt.com/MSN/go/msnnkwsp007001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Load balancing mark down question

2006-11-07 Thread Sharma, Siddharth
Hi

We have a cluster of Linux (RedHat) machines each housing an apache, 4
tomcat instances and 4 other jvms that run our custom servers.
Each tomcat has a corresponding custom server that it delegates requests to.
In other words, there is one to one correspondence between a tomcat instance
and a custom server instance.
Problem is that when a custom server crashes and its tomcat is still
accepting, mod_jk does not mark it down. Consequently users continue to be
directed to that tomcat even though they are experiencing errors.
In mod_jk, we have defined a load balancing worker that fronts the 4 tomcat
workers.
So questions are:

1. On what basis does mod_jk mark a tomcat worker down? Is it http return
codes?

2. Some load balancers allow scraping of the http body to see if there is an
error in addition to relying on http codes. Is that possible in mod_jk? Is
it configurable?

3. Is it possible to stop|start a mod_jk worker via an http call? Or some
other programmable way? 

Any ideas on how to solve this problem?

Thanks
Sidd

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Running Tomcat 5.5 under NON admin acccount on XP. Access is denied. Unable to open the service Tomcat5

2006-11-07 Thread Tom
Hello all. 

I have installed Tomcat 5.5.17 on our developer’s Windows XP SP2 
workstations. While running as an administrator, there are no problems 
when logging in. However, when logging in as a standard user, we 
receive the error box titled “Application System Error” with 
text “Access is denied. Unable to open the service Tomcat5”

I found that Tomcat5w.exe tries to run for each user on logon by 
searching the registry. 

I also checked the security event log and found that there were event 
ID 560 errors (failure audits) on object open. 
Object Server : SC Manager
Object Type: SERVICE OBJECT
Object Name: Tomcat5

I have googled, searched the FAQs, searched the docs and still cannot 
come up with what permissions need changing or rights need adding.

We cannot allow our users to have Power User or administrative access 
to the machine.

Can someone shed some light on this?

Thanks in advance for any help





-- 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Change welcome page

2006-11-07 Thread Fabian Brauers

Hi,

is there an easy way to configure Tomcat (5.0.27) in order to change the  
default welcome page (http://localhost:8080)?
I'm using Business Objects with Tomcat and I always have to use a long URL  
like 'http://localhost:8080/businessobjects/enterprise115/desktoplaunch'  
to see the application that I want to see. I'm trying for two days now and  
wasn't able to configure it...


Any hints??

thanks a lot!!

Fabian

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Change welcome page

2006-11-07 Thread Timothy Collett

On Nov 7, 2006, at 2:27 PM, Fabian Brauers wrote:


Hi,

is there an easy way to configure Tomcat (5.0.27) in order to  
change the default welcome page (http://localhost:8080)?
I'm using Business Objects with Tomcat and I always have to use a  
long URL like 'http://localhost:8080/businessobjects/enterprise115/ 
desktoplaunch' to see the application that I want to see. I'm  
trying for two days now and wasn't able to configure it...


Any hints??


You just need to change the ROOT/WEB-INF/web.xml to remove the  
servlet mapping to index.jsp.


Timothy Collett

--

The Tao that is seen
Is not the true Tao, until
You bring fresh toner.
~haiku~


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Change welcome page

2006-11-07 Thread Fabian Brauers

Hi,

and then? What do I have to change in order to see the BusinessObjects  
application when I use http://localhost:8080  ?
I guess I have to put another line in the ROOT/WEB-INF/web.xml 
right?


Fabian

On Tue, 07 Nov 2006 20:30:17 +0100, Timothy Collett [EMAIL PROTECTED]  
wrote:



On Nov 7, 2006, at 2:27 PM, Fabian Brauers wrote:


Hi,

is there an easy way to configure Tomcat (5.0.27) in order to change  
the default welcome page (http://localhost:8080)?
I'm using Business Objects with Tomcat and I always have to use a long  
URL like 'http://localhost:8080/businessobjects/enterprise115/ 
desktoplaunch' to see the application that I want to see. I'm trying  
for two days now and wasn't able to configure it...


Any hints??


You just need to change the ROOT/WEB-INF/web.xml to remove the servlet  
mapping to index.jsp.


Timothy Collett

--

The Tao that is seen
Is not the true Tao, until
You bring fresh toner.
~haiku~


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk affinity for a lamed tomcat instance

2006-11-07 Thread Martin Gainty
Dan-
the only way I could see accomplishing this task to programmatically support 
socket_keepalive on the connection and use default config of quiesce connection 
when not use ...as in this parameter which requests mod_jk to close connections 
immediately after use as in this option

JkOptions +DisableReuse

Caveat:This is only one option amongst many

Anyone else?
M-
This e-mail communication and any attachments may contain confidential and 
privileged information for the use of the 
designated recipients named above. If you are not the intended recipient, you 
are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, 
distribution or copying of it or its 
contents
- Original Message - 
From: Dan Ackerson [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Tuesday, November 07, 2006 11:19 AM
Subject: Re: mod_jk affinity for a lamed tomcat instance


 
 Sorry if I wasn't clear - I wanted to know if their was a way I could
 programmatically alert mod_jk from Tomcat that this worker should be
 disabled.  This way, the worker could automatically signal to mod_jk that it
 was lamed and I wouldn't have to run over to the jk-status page to
 manually disable it.
 
 For example : MyOutOfMemoryListener.class { setAJPErrorState(true); }
 
 -- 
 View this message in context: 
 http://www.nabble.com/mod_jk-affinity-for-a-lamed-tomcat-instance-tf2581047.html#a7221335
 Sent from the Tomcat - User mailing list archive at Nabble.com.
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: Change welcome page

2006-11-07 Thread Caldarale, Charles R
 From: Fabian Brauers [mailto:[EMAIL PROTECTED] 
 Subject: Re: Change welcome page
 
 What do I have to change in order to see the 
 BusinessObjects application when I use http://localhost:8080  ?

You have to replace the existing ROOT app with your own.  Delete the
existing webapps/ROOT directory, and then rename your .war or deployment
directory to ROOT - assuming it's under webapps.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to retrieve mod_jk version from mod_jk.so?

2006-11-07 Thread Rainer Jung
... and also:

strings ./native/apache-2.0/mod_jk.so|grep mod_jk/
mod_jk/1.2.19
mod_jk/1.2.19

I didn't check with 1.2.15, but at least for 1.2.19 this is a solaris
build for Apache 2.2 and your method works. Maybe your file is corrupt?

Regards,

Rainer

Mladen Turk schrieb:
 Fan, Tony wrote:
 I am using jk version 1.2.15.  Is
 there a way to get version information just from mod_jk.so?

 
 Set
 JkLogLevel debug
 
 ... and you will have the line in the modjk.log
 after starting httpd in the form:
 [debug] mod_jk.c (2410): Initialized mod_jk/1.2.20-dev
 
 Regards,
 Mladen.
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Load balancing mark down question

2006-11-07 Thread Rainer Jung
Hi,

Sharma, Siddharth schrieb:
 Hi
 
 We have a cluster of Linux (RedHat) machines each housing an apache, 4
 tomcat instances and 4 other jvms that run our custom servers.
 Each tomcat has a corresponding custom server that it delegates requests to.
 In other words, there is one to one correspondence between a tomcat instance
 and a custom server instance.
 Problem is that when a custom server crashes and its tomcat is still
 accepting, mod_jk does not mark it down. Consequently users continue to be
 directed to that tomcat even though they are experiencing errors.
 In mod_jk, we have defined a load balancing worker that fronts the 4 tomcat
 workers.
 So questions are:
 
 1. On what basis does mod_jk mark a tomcat worker down? Is it http return
 codes?

Never http return code. jk detects communication failures betwenn apache
and tomcat:

- timeouts
- connection problems
- missing answers
- client (browser) aborts

 
 2. Some load balancers allow scraping of the http body to see if there is an
 error in addition to relying on http codes. Is that possible in mod_jk? Is
 it configurable?

No. You need to do that externally.

 
 3. Is it possible to stop|start a mod_jk worker via an http call? Or some
 other programmable way? 

Yes. Configure a status worker:

worker.list=admin
worker.admin.type=status

The name of the worker (here: admin) is arbitrary.
Map the worker to a url in your web server, e.g. using JkMount in
Apache. Add access control to the URL (using web server methods).

Then open the URL in your browser and get used to its features. You can
click on the individual worker members of a balancer and a form will pop
up, allowing to disable (no more new sessions) or stop (no more
requests) this worker. The request when sending the form is a GET
request, so you can learn the URL syntax easily.

Be careful: these changes are not persistant. Apache restart, even
graceful, throws you back to your config file settings.

Regards,

Rainer

 
 Any ideas on how to solve this problem?
 
 Thanks
 Sidd
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reverse proxying in Tomcat / Apache

2006-11-07 Thread Mário Gamito
Hi,

I have this server with Apache and Tomcat installed.

I have a Tomcat aplication running, so the URL contains the :8080 port
part.

like http://zbr:8080/contineo

I want to remove the :8080 part of the URL.

I (think) know that a way is configuring reverse proxying in Apache.

I do this in a server i have with Zope (same problem with port part) and
 i have Apache configured like this:

-
http://localhost:8080/misc_
Proxypass /p_ http://localhost:8080/p_
ProxyPass /
http://localhost:8080/VirtualHostBase/http/www.dte.ua.pt:80/plone/VirtualHostRoot/
ProxyPassReverse /
http://localhost:8080/VirtualHostBase/http/www.dte.ua.pt:80/plone/VirtualHostRoot/
-

www.dte.ua.pt is Zope running on port 8080, but one only need to type
ww.dte.ua.pt, no need for the port part.

Then, for the pages served by Apache, i make:
Alias /cv /home/vhosts/dte/cv
This gives www.dte.ua.pt/cv

My question is, how can i do the same with Tomcat and Apache ?

Any help would be appreciated.

Warm Regards,
Mário Gamito
-- 
Fingerprint: 0xDDC13DAE

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re[2]: Change welcome page

2006-11-07 Thread Dima Retov
It is better to add index.jsp that would redirect to business objects.
You would not have to move business objects.

index.jsp

%

response.sendRedirect(http://localhost:8080/businessobjects/enterprise115/desktoplaunch;);

%


Tuesday, November 7, 2006, 10:40:49 PM, you wrote:

 From: Fabian Brauers [mailto:[EMAIL PROTECTED] 
 Subject: Re: Change welcome page
 
 What do I have to change in order to see the 
 BusinessObjects application when I use http://localhost:8080  ?

CCR You have to replace the existing ROOT app with your own.  Delete the
CCR existing webapps/ROOT directory, and then rename your .war or deployment
CCR directory to ROOT - assuming it's under webapps.

CCR  - Chuck


CCR THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
CCR MATERIAL and is thus for use only by the intended recipient. If you
CCR received this in error, please contact the sender and delete the e-mail
CCR and its attachments from all computers.

CCR -
CCR To start a new topic, e-mail: users@tomcat.apache.org
CCR To unsubscribe, e-mail: [EMAIL PROTECTED]
CCR For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Best regards,
 Dimamailto:[EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Reverse proxying in Tomcat / Apache

2006-11-07 Thread William Bonnet

Hi Mário


I (think) know that a way is configuring reverse proxying in Apache.


What about using mod_jk ?

Kind regards,
William

--
William  http://www.wbonnet.net

http://www.sunwizard.net Le site français des amateurs de stations Unix
http://www.blastwave.org An OpenSolaris Community Site
http://www.guses.org French speaking Solaris User Group


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



advice on creating a self contained demo

2006-11-07 Thread Michael Hencin
Hello all.

I have been trying to find a simple way to bundle our webapp into a self
contained demo. Perhaps with a version of TC and JAVA in stalled that I know
will work. I have seen some applications doing similar things. i.e.
(Openreports)

 

What I would like bets is to have a single installer/script that would
install TC and my webapp and be ready to run out of the box as a demo.
Currently we specify the requirements to run our webapp as a demo, but this
amounts to basically having the potential client install a standard TC. 

 

Most of our interested parties are not initially an IT type. So having a
simple installer that would install TC with our webapp on a single pc would
be great. 

 

Any suggestions or offline input would be helpful. Thanks

 

 

 

 

Michael Hencin

 



RE: Load balancing mark down question

2006-11-07 Thread Sharma, Siddharth
Hi Rainer
Thx for the response.

What does missing answers mean?
If there is no http body, will it be marked down?

Yea, I figured that status is probably the best way to do it.
I already have status configured and I figured out the request parameters.
Only complication is the id parameter. 
Even if I provide the w parameter as the worker name, it does not update
its status unless the 'correct' id value is provided.
id value seems to be a positional index of the worker in the configuration
or something.
This sort of sucks for me because my coding will not be straightforward and
I will have to maintain the mapping of worker name and id.



-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 3:58 PM
To: Tomcat Users List
Subject: Re: Load balancing mark down question

Hi,

Sharma, Siddharth schrieb:
 Hi
 
 We have a cluster of Linux (RedHat) machines each housing an apache, 4
 tomcat instances and 4 other jvms that run our custom servers.
 Each tomcat has a corresponding custom server that it delegates requests
to.
 In other words, there is one to one correspondence between a tomcat
instance
 and a custom server instance.
 Problem is that when a custom server crashes and its tomcat is still
 accepting, mod_jk does not mark it down. Consequently users continue to be
 directed to that tomcat even though they are experiencing errors.
 In mod_jk, we have defined a load balancing worker that fronts the 4
tomcat
 workers.
 So questions are:
 
 1. On what basis does mod_jk mark a tomcat worker down? Is it http return
 codes?

Never http return code. jk detects communication failures betwenn apache
and tomcat:

- timeouts
- connection problems
- missing answers
- client (browser) aborts

 
 2. Some load balancers allow scraping of the http body to see if there is
an
 error in addition to relying on http codes. Is that possible in mod_jk? Is
 it configurable?

No. You need to do that externally.

 
 3. Is it possible to stop|start a mod_jk worker via an http call? Or some
 other programmable way? 

Yes. Configure a status worker:

worker.list=admin
worker.admin.type=status

The name of the worker (here: admin) is arbitrary.
Map the worker to a url in your web server, e.g. using JkMount in
Apache. Add access control to the URL (using web server methods).

Then open the URL in your browser and get used to its features. You can
click on the individual worker members of a balancer and a form will pop
up, allowing to disable (no more new sessions) or stop (no more
requests) this worker. The request when sending the form is a GET
request, so you can learn the URL syntax easily.

Be careful: these changes are not persistant. Apache restart, even
graceful, throws you back to your config file settings.

Regards,

Rainer

 
 Any ideas on how to solve this problem?
 
 Thanks
 Sidd
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: advice on creating a self contained demo

2006-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michael,

 Most of our interested parties are not initially an IT type. So having a
 simple installer that would install TC with our webapp on a single pc would
 be great. 

It might be overkill, but now that VMWare Player is free, you could
create a virtual machine and bundle everything -- including a web
browser -- together in a single file and just have them double-click on
the icon to startup the whole thing.

It only requires installation of VMWare Player, instead of Tomcat,
Apache httpd, your app, etc. You also get to set up everything the way
you want it, and get to reduce the possibility for error.

Unfortunately, a full VM is generally very large, and many potential
clients will not want to install VMware.

Just a thought.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFUPlG9CaO5/Lv0PARAnm4AKCSrdQeBs7dvoKwPOxvUyRIT68QYQCeJfMD
KUj9UGREdQo6FHuT/IKqpAU=
=VM5e
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Load balancer - Using the balancer webapp

2006-11-07 Thread Michael, Mary
My requirement: I would like to include a round robin logic between 2
urls ( ie, routing between 2 urls in a round robin fashion).

 

 

The website states:

 

The balancer distribution contains a number of useful rules. The
framework is also designed for easy extensibility so that you can write
your own rules quickly. Rules should be JavaBeans (public no-args
constructor, public setter method setXXX for property xxx), as they are
instantiated by Jakarta Commons Digester. Feel free to inquire on the
tomcat-user mailing list regarding the availability of rules or the
inclusion of your rules in the distribution.

 

Question: 

 

I would like to know whether it can be done using webapp balancer. If
yes, I would like to know more details on how to configure this.

 



Re: Reverse proxying in Tomcat / Apache

2006-11-07 Thread Mário Gamito
Hi William,

I'm a completely Tomcat ignorant :(
I just installed it to deploy an application i was asked for.

Best Regards,
Mário Gamito

William Bonnet wrote:
 Hi Mário
 
 I (think) know that a way is configuring reverse proxying in Apache.
 
 What about using mod_jk ?
 
 Kind regards,
 William
 


-- 
Fingerprint: 0xDDC13DAE

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Is Tomcat a good solution for me?

2006-11-07 Thread Gary Kuznitz
Hi,

I'd like some help in figuring out if Tomcat is right for me.  I currently have 
PWS running in '98se with ASP pages.  I have very little traffic.  I'd like to 
use the same web pages I currently have.

I'd like to move towards XP Pro.  
My first question is should I use Tomcat to replace PWS?
Should I install Apache at the same time or will Tomcat suffice my needs.  I 
don't expect to expand the web pages.
Can I install Tomcat on the same PC PWS is currently running and use a 
different port for Tomcat while I am testing/configuring the same web pages.  
After I know it works I would want to swap ports between PWS and Tomcat.  After 
I know Tomcat is fully functional I could remove PWS.
I don't currently have the XP Pro box.  I'd like to migrate everything to 
Tomcat on '98 if I could.

Any and all suggestions are welcome.  If I haven't given enough information to 
advise me please let me know.

Thank you,

Gary Kuznitz



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Is Tomcat a good solution for me?

2006-11-07 Thread Robert Harper
If your content is static pages, the Apache might be a better option. If you
are using Java Servlets for dynamic content, then Tomcat would work fine.
You may have to adjust some of your code to match changes in the runtimes.
If you are using ASP, I don't think Tomcat is for you.

You should be able to run PWS and Tomcat at the same time on different
ports.

Remember that Tomcat is a Java centric servlet container. It can serve up
static content but is primarily suited to run and control your Java
Servlets.

Robert S. Harper
Information Access Technology, Inc.
-Original Message-
From: Gary Kuznitz [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 2:47 PM
To: Tomcat Users List
Subject: Is Tomcat a good solution for me?

Hi,

I'd like some help in figuring out if Tomcat is right for me.  I currently
have 
PWS running in '98se with ASP pages.  I have very little traffic.  I'd like
to 
use the same web pages I currently have.

I'd like to move towards XP Pro.  
My first question is should I use Tomcat to replace PWS?
Should I install Apache at the same time or will Tomcat suffice my needs.  I

don't expect to expand the web pages.
Can I install Tomcat on the same PC PWS is currently running and use a 
different port for Tomcat while I am testing/configuring the same web pages.

After I know it works I would want to swap ports between PWS and Tomcat.
After 
I know Tomcat is fully functional I could remove PWS.
I don't currently have the XP Pro box.  I'd like to migrate everything to 
Tomcat on '98 if I could.

Any and all suggestions are welcome.  If I haven't given enough information
to 
advise me please let me know.

Thank you,

Gary Kuznitz



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is Tomcat a good solution for me?

2006-11-07 Thread Timothy Collett

On Nov 7, 2006, at 4:47 PM, Gary Kuznitz wrote:
Any and all suggestions are welcome.  If I haven't given enough  
information to

advise me please let me know.


I'm not quite sure if I understand you correctly...but Tomcat cannot  
serve ASPs.  It serves JSPs and servlets.


If I've misunderstood, and you're intending to migrate from ASPs to  
JSPs/servlets, then I apologize.


Timothy Collett

--

But what ... is it good for?
--Engineer at the Advanced Computing Systems Division of IBM, 1968,  
commenting on the microchip



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk affinity for a lamed tomcat instance

2006-11-07 Thread Rainer Jung
From the docs about DisableReuse: Using this option will have a strong
performance penalty for Apache and Tomcat. Use this only as a last
resort in case of unfixable network problems..

Concerning the original queation: I don't see any clean and direct way
of doing that.

What's possible though is making an http request to the status worker to
disable or stop a worker. Unfortunately this change is not persistant
concerning apache restarts.

The status worker is completely GET based, so you can look at your
browsers URL line, how the request for disabling a worker would look
like by doing it once in a browser.

Regards,

Rainer

Martin Gainty schrieb:
 Dan-
 the only way I could see accomplishing this task to programmatically support 
 socket_keepalive on the connection and use default config of quiesce 
 connection when not use ...as in this parameter which requests mod_jk to 
 close connections immediately after use as in this option
 
 JkOptions +DisableReuse
 
 Caveat:This is only one option amongst many
 
 Anyone else?
 M-
 This e-mail communication and any attachments may contain confidential and 
 privileged information for the use of the 
 designated recipients named above. If you are not the intended recipient, you 
 are hereby notified that you have received
 this communication in error and that any review, disclosure, dissemination, 
 distribution or copying of it or its 
 contents
 - Original Message - 
 From: Dan Ackerson [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Tuesday, November 07, 2006 11:19 AM
 Subject: Re: mod_jk affinity for a lamed tomcat instance
 
 
 Sorry if I wasn't clear - I wanted to know if their was a way I could
 programmatically alert mod_jk from Tomcat that this worker should be
 disabled.  This way, the worker could automatically signal to mod_jk that it
 was lamed and I wouldn't have to run over to the jk-status page to
 manually disable it.

 For example : MyOutOfMemoryListener.class { setAJPErrorState(true); }

 -- 
 View this message in context: 
 http://www.nabble.com/mod_jk-affinity-for-a-lamed-tomcat-instance-tf2581047.html#a7221335
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: advice on creating a self contained demo

2006-11-07 Thread Michael Hencin
Chris

Thanks, but that does sound like overkill. I was looking more for a way to
bundle my webapp with TC, and then just install that. With some
preconfigured items; namely my database, my webapp in place and ready to
run. Even if I had a requirement for the java to be installed, I think that
would be a step closer to having what I want. I have read about 

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 3:23 PM
To: Tomcat Users List
Subject: Re: advice on creating a self contained demo

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michael,

 Most of our interested parties are not initially an IT type. So having a
 simple installer that would install TC with our webapp on a single pc
would
 be great. 

It might be overkill, but now that VMWare Player is free, you could
create a virtual machine and bundle everything -- including a web
browser -- together in a single file and just have them double-click on
the icon to startup the whole thing.

It only requires installation of VMWare Player, instead of Tomcat,
Apache httpd, your app, etc. You also get to set up everything the way
you want it, and get to reduce the possibility for error.

Unfortunately, a full VM is generally very large, and many potential
clients will not want to install VMware.

Just a thought.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFUPlG9CaO5/Lv0PARAnm4AKCSrdQeBs7dvoKwPOxvUyRIT68QYQCeJfMD
KUj9UGREdQo6FHuT/IKqpAU=
=VM5e
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Reverse proxying in Tomcat / Apache

2006-11-07 Thread Rainer Jung
With mod_jk you get that for free (and a lot more), but you have to
learn a bit about its configuration etc.

If you want to stick to mod_proxy, you need to investigate the
attributes proxyName, proxyPort and scheme in the docs for the
connectors and then set them inside server.xml.

http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

Regards,

Rainer

Mário Gamito schrieb:
 Hi William,
 
 I'm a completely Tomcat ignorant :(
 I just installed it to deploy an application i was asked for.
 
 Best Regards,
 Mário Gamito
 
 William Bonnet wrote:
 Hi Mário

 I (think) know that a way is configuring reverse proxying in Apache.
 What about using mod_jk ?

 Kind regards,
 William

 
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SSL not working on Tomcat

2006-11-07 Thread Michael Casale
Howdy all,

 

I'm struggling through setting up Tomcat with SSL on a Windows 2003
server, and even when I get the server running, with no errors in the
logs when restarting the tomcat service, all I get is a Page Not Found
error when I point to the ssl port on the server. Pointing to the
default connector on port 8080 works fine.

 

Here's a little background:

 

1.  Using keytool, I created a certificate request, sent it off to
Geotrust, and purchased a cert to import. It was emailed to me. 
2.  Following the recommendations of geotrust
(http://www.geocerts.com/support/install/install_tomcat.php ) , I
downloaded their root cert, imported it, converted their cert to DER
format (on a separate Linux box), and imported it into the keystore.
3.  I restarted the Tomcat service with no errors, see the connector
started on port 8443:

 

Nov 7, 2006 4:55:35 PM org.apache.coyote.http11.Http11BaseProtocol init

INFO: Initializing Coyote HTTP/1.1 on http-8080

Nov 7, 2006 4:55:35 PM org.apache.coyote.http11.Http11BaseProtocol init

INFO: Initializing Coyote HTTP/1.1 on http-8443

Nov 7, 2006 4:55:35 PM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 812 ms

Nov 7, 2006 4:55:35 PM org.apache.catalina.core.StandardService start

INFO: Starting service Catalina

Nov 7, 2006 4:55:35 PM org.apache.catalina.core.StandardEngine start

INFO: Starting Servlet Engine: Apache Tomcat/5.5.12

Nov 7, 2006 4:55:35 PM org.apache.catalina.core.StandardHost start

INFO: XML validation disabled

Nov 7, 2006 4:55:36 PM org.apache.coyote.http11.Http11BaseProtocol start

INFO: Starting Coyote HTTP/1.1 on http-8080

Nov 7, 2006 4:55:36 PM org.apache.coyote.http11.Http11BaseProtocol start

INFO: Starting Coyote HTTP/1.1 on http-8443

Nov 7, 2006 4:55:37 PM org.apache.jk.common.ChannelSocket init

INFO: JK: ajp13 listening on /0.0.0.0:8009

Nov 7, 2006 4:55:37 PM org.apache.jk.server.JkMain start

INFO: Jk running ID=0 time=0/31  config=null

Nov 7, 2006 4:55:37 PM org.apache.catalina.storeconfig.StoreLoader load

INFO: Find registry server-registry.xml at classpath resource

Nov 7, 2006 4:55:37 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 1203 ms

 

Now, opening any page on the server at http://servername:8080
http://servername:8080/  works fine, but https://servername:8443
https://servername:8443/  doesn't work. All ports are opened through
the firewall, etc. Same for https://localhost:8443
https://localhost:8443/ .

 

Here is the server.xml file entry for the connector:

 

Connector className=org.apache.coyote.tomcat5.CoyoteConnector

  port=8443 minProcessors=5 maxProcessors=20

  enableLookups=true disableUploadTimeout=true

  acceptCount=100 debug=0 scheme=https secure=true

  sslProtocol=TLS

  keystoreFile=c:\files\tomcat

  keystorePass=THEPASS/

 

According to the Tomcat SSL documentation, I need to have the root cert
and the purchased cert in the keystore file, and I need to use the
keyAlias to tell Tomcat which one to use. But whenever I add in the
keyAlias entry it gives me the Alias name tomcat does not identify a
key entry error in the logs.

 

If I could find out how to enable better logging I may be able to
troubleshoot this further.

 

Thanks for any help!

 

Michael Casale

Systems Administrator / IT Manager

Knoa Software

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 

Ph.  (212) 807-9608 ext. 6000

Fax  (212) 675-6121

 



RE: mod_jk affinity for a lamed tomcat instance

2006-11-07 Thread Sharma, Siddharth
To enable/disable via the status worker:

Start 
/status_worker_uri?cmd=updatew=workerNameid=workerPosIndexlb=0wf=1
wr=wc=

Stop
/status_worker_uri?cmd=updatew=workerNameid=workerPosIndexlb=0wf=1
wr=wc=ws=on




-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 5:04 PM
To: Tomcat Users List
Subject: Re: mod_jk affinity for a lamed tomcat instance

From the docs about DisableReuse: Using this option will have a strong
performance penalty for Apache and Tomcat. Use this only as a last
resort in case of unfixable network problems..

Concerning the original queation: I don't see any clean and direct way
of doing that.

What's possible though is making an http request to the status worker to
disable or stop a worker. Unfortunately this change is not persistant
concerning apache restarts.

The status worker is completely GET based, so you can look at your
browsers URL line, how the request for disabling a worker would look
like by doing it once in a browser.

Regards,

Rainer

Martin Gainty schrieb:
 Dan-
 the only way I could see accomplishing this task to programmatically
support socket_keepalive on the connection and use default config of quiesce
connection when not use ...as in this parameter which requests mod_jk to
close connections immediately after use as in this option
 
 JkOptions +DisableReuse
 
 Caveat:This is only one option amongst many
 
 Anyone else?
 M-
 This e-mail communication and any attachments may contain confidential and
privileged information for the use of the 
 designated recipients named above. If you are not the intended recipient,
you are hereby notified that you have received
 this communication in error and that any review, disclosure,
dissemination, distribution or copying of it or its 
 contents
 - Original Message - 
 From: Dan Ackerson [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Tuesday, November 07, 2006 11:19 AM
 Subject: Re: mod_jk affinity for a lamed tomcat instance
 
 
 Sorry if I wasn't clear - I wanted to know if their was a way I could
 programmatically alert mod_jk from Tomcat that this worker should be
 disabled.  This way, the worker could automatically signal to mod_jk that
it
 was lamed and I wouldn't have to run over to the jk-status page to
 manually disable it.

 For example : MyOutOfMemoryListener.class { setAJPErrorState(true); }

 -- 
 View this message in context:
http://www.nabble.com/mod_jk-affinity-for-a-lamed-tomcat-instance-tf2581047.
html#a7221335
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Load balancing mark down question

2006-11-07 Thread Rainer Jung
Good point concerning the id. I'm already thinking about a couple of
changes to the status worker, especially the URLs it uses and the
missing parameter validation. So it's not totally unlikely, that we will
have a 1.2.20 release this year inclusing better support for automating
status worker actions.

Missing answer: if there is no http body in the request, and the
announced content length is bigger than zero, I can imagine three cases:

1) The connection is being closed by the tomcat side. This will be
detected as an error.
2) You've got a reply_timeout and you run into the timeout. This will be
detected as an error.
3) You've got no reply_timeout and the connection is kept alive, but no
packet returned. I guess, this will just keep apache reading. I'm not
sure, if the 300 seconds timeout of apache works in this case, and what
will happen, after you run into this timeout.

If your observations differ from my predictions, let me know :)

Regards,

Rainer


Sharma, Siddharth schrieb:
 Hi Rainer
 Thx for the response.
 
 What does missing answers mean?
 If there is no http body, will it be marked down?
 
 Yea, I figured that status is probably the best way to do it.
 I already have status configured and I figured out the request parameters.
 Only complication is the id parameter. 
 Even if I provide the w parameter as the worker name, it does not update
 its status unless the 'correct' id value is provided.
 id value seems to be a positional index of the worker in the configuration
 or something.
 This sort of sucks for me because my coding will not be straightforward and
 I will have to maintain the mapping of worker name and id.
 
 
 
 -Original Message-
 From: Rainer Jung [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, November 07, 2006 3:58 PM
 To: Tomcat Users List
 Subject: Re: Load balancing mark down question
 
 Hi,
 
 Sharma, Siddharth schrieb:
 Hi

 We have a cluster of Linux (RedHat) machines each housing an apache, 4
 tomcat instances and 4 other jvms that run our custom servers.
 Each tomcat has a corresponding custom server that it delegates requests
 to.
 In other words, there is one to one correspondence between a tomcat
 instance
 and a custom server instance.
 Problem is that when a custom server crashes and its tomcat is still
 accepting, mod_jk does not mark it down. Consequently users continue to be
 directed to that tomcat even though they are experiencing errors.
 In mod_jk, we have defined a load balancing worker that fronts the 4
 tomcat
 workers.
 So questions are:

 1. On what basis does mod_jk mark a tomcat worker down? Is it http return
 codes?
 
 Never http return code. jk detects communication failures betwenn apache
 and tomcat:
 
 - timeouts
 - connection problems
 - missing answers
 - client (browser) aborts
 
 2. Some load balancers allow scraping of the http body to see if there is
 an
 error in addition to relying on http codes. Is that possible in mod_jk? Is
 it configurable?
 
 No. You need to do that externally.
 
 3. Is it possible to stop|start a mod_jk worker via an http call? Or some
 other programmable way? 
 
 Yes. Configure a status worker:
 
 worker.list=admin
 worker.admin.type=status
 
 The name of the worker (here: admin) is arbitrary.
 Map the worker to a url in your web server, e.g. using JkMount in
 Apache. Add access control to the URL (using web server methods).
 
 Then open the URL in your browser and get used to its features. You can
 click on the individual worker members of a balancer and a form will pop
 up, allowing to disable (no more new sessions) or stop (no more
 requests) this worker. The request when sending the form is a GET
 request, so you can learn the URL syntax easily.
 
 Be careful: these changes are not persistant. Apache restart, even
 graceful, throws you back to your config file settings.
 
 Regards,
 
 Rainer
 
 Any ideas on how to solve this problem?

 Thanks
 Sidd

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Is Tomcat a good solution for me?

2006-11-07 Thread Steffen Heil
Hi

 I currently have PWS running in '98se with ASP pages.
 I don't expect to expand the web pages.

These two sentences make me think the following:
PWS is basically nothing different than IIS, but compiled for Windows 98.
As Windows XP comes with IIS this is propably the best chiose for you.

There you have asp and you can use the components already do.

Regards,
  Steffen


smime.p7s
Description: S/MIME cryptographic signature


Re: mod_jk affinity for a lamed tomcat instance

2006-11-07 Thread Dan Ackerson

 What's possible though is making an http request to the status worker to
 disable or stop a worker. Unfortunately this change is not persistant
 concerning apache restarts.
This is an excellent solution - especially as the application servers are
restarted more often than Apache! :)

Thanks everyone for your input - I will let you know the results.

-- 
View this message in context: 
http://www.nabble.com/mod_jk-affinity-for-a-lamed-tomcat-instance-tf2581047.html#a7228699
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Locale difference with Console and Windows Service

2006-11-07 Thread maxt

Exactly. Strange one.

Is there anything about an install of JRE or Tomcat that is inherently
Region based?

eg, Do I need to reinstall Tomcat or JRE when my region is US? It was AU
when installed. In other words, was the Region change totally effective when
these apps were initially installed with a AU Region?

Max


Christopher Schultz-2 wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Max,
 
 maxt wrote:
 To give a little more background, I have a Servlet, Tomcat application
 that a
 potential customer can download and install on their Windows PC. I would
 like to create localizations for it.
 
 It is easier to enable such a person to use Windows Services to start
 Tomcat
 without having any knowledge of Tomcat.
 
 I have been testing this on my own Australian computer by changing the
 Region to en_US.
 
 The Robot enables the potential customer to follow a set of AccessKey
 based
 HTML pages to do an initial setup of their own situation.
 
 Aah. That makes a lot more sense, now.
 
 These two functions do not seem to work correctly on my Australian
 computer
 when Region is en_US with Tomcat Services, but are OK when using the
 Console.
 
 So, it's not that your servlet is having problems, then. It's the
 installation that you are trying to script that's acting funny? Or both?
 
 - -chris
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.5 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iD8DBQFFT87c9CaO5/Lv0PARAqclAKCnnV3bv1QjJ9mloWRinUwO8If9wQCfS2nk
 9EaVDPeQexhNo0sY2tL9fX4=
 =jVsb
 -END PGP SIGNATURE-
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Locale-difference-with-Console-and-Windows-Service-tf2572041.html#a7228995
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Need setting up Tomcat with Apache web-server

2006-11-07 Thread Patrick Fong

Hi

I am trying to setup Tomcat with Apache web-server. I know this is a 
common problem, but I've searched the mailing lists database and have 
not found a solution to my problem. I have a feeling this is a simple 
problem and not opening a vital port.


I'm running Apache2 (v2.0.59) with Tomcat (v5.5.17). Both Apache2 and 
Tomcat have been installed as services on my WinXP machine. I am looking 
for an open-source (free) alternative to Resin Caucho.


After setting up and trying to run JSPs with Tomcat, I get a 503 error 
with the following error printed in the log files -


[6124:5512] [info]  jk_ajp_common.c (941): (testWorker) Tomcat has 
forced a connection close for socket 824
[6124:5512] [error] jk_ajp_common.c (1536): (testWorker) Tomcat is down 
or refused connection. No response has been sent to the client (yet)


I've included the changes I've made the specific configuration files
1) *Http.conf*

LoadModule jk_module modules/mod_jk.so

IfModule mod_jk.c
JkWorkersFile C:/Program Files/Apache 
Group/apache-tomcat-5.5.17/conf/workers.properties

JkLogFile c:/logs/tomcat/tomcat.log
JkLogLevel info
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories
JkRequestLogFormat %w %V %T

Alias /jsp-examples C:/Program Files/Apache 
Group/apache-tomcat-5.5.17/webapps/jsp-examples/
Directory C:/Program Files/Apache 
Group/apache-tomcat-5.5.17/webapps/jsp-examples/

   Options Indexes +FollowSymLinks
   AllowOverride None
   Allow from all
/Directory
JkMount /jsp-examples/servlet/* testWorker
JkMount /jsp-examples/*.jsp testWorker
Location /jsp-examples/WEB-INF/
   AllowOverride None
   deny from all
/Location
/IfModule
  


2) *Worker.properties*
IfModule mod_jk.c
JkWorkersFile C:/Program Files/Apache 
Group/apache-tomcat-5.5.17/conf/workers.properties

JkLogFile c:/logs/tomcat/tomcat.log
JkLogLevel info
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories
JkRequestLogFormat %w %V %T

Alias /jsp-examples C:/Program Files/Apache 
Group/apache-tomcat-5.5.17/webapps/jsp-examples/
Directory C:/Program Files/Apache 
Group/apache-tomcat-5.5.17/webapps/jsp-examples/

   Options Indexes +FollowSymLinks
   AllowOverride None
   Allow from all
/Directory
JkMount /jsp-examples/servlet/* testWorker
JkMount /jsp-examples/*.jsp testWorker
Location /jsp-examples/WEB-INF/
   AllowOverride None
   deny from all
/Location
/IfModule
  

3) *server.xml *- I've changed the port for non-SSL HTTP/1.1 Connector 
to 8081 because port 8080 is being used by an existing application. 
HTTP/1.0 is not created.


   !-- Define a non-SSL HTTP/1.1 Connector on port 8081(From 8080) --
   Connector port=8081 maxHttpHeaderSize=8192
  maxThreads=150 minSpareThreads=25 maxSpareThreads=75
  enableLookups=false redirectPort=8443 acceptCount=100
  connectionTimeout=2 disableUploadTimeout=true /

   Connector port=8009
  enableLookups=false redirectPort=8443 
protocol=AJP/1.3 /


   Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009
   minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/

Context path=/jsp-examples docBase=C;/Program Files/Apache 
Group/apache-tomcat-5.5.17/webapps/jsp-examples/ debug=0/




Any ideas?

Cheers
Patrick


RE: advice on creating a self contained demo

2006-11-07 Thread Caldarale, Charles R
 From: Michael Hencin [mailto:[EMAIL PROTECTED] 
 Subject: RE: advice on creating a self contained demo
 
 I was looking more for a way to bundle my webapp with TC,
 and then just install that.

Look at the embedded capability of Tomcat.  You can have a small Java
driver program that launches Tomcat inside the same JVM, with your
webapp in place.

3rd download from here:
http://tomcat.apache.org/download-55.cgi#5.5.20

Doc here:
http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/cat
alina/startup/Embedded.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Need setting up Tomcat with Apache web-server

2006-11-07 Thread Caldarale, Charles R
 From: Patrick Fong [mailto:[EMAIL PROTECTED] 
 Subject: Need setting up Tomcat with Apache web-server
 
 Any ideas?

Just one, but you may not like it: simplify your life by getting rid of
httpd, unless you have a dire need for it.  Configure Tomcat to use
ports 80 and 443 and let it serve your static content as well.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: SSL not working on Tomcat

2006-11-07 Thread Caldarale, Charles R
 From: Michael Casale [mailto:[EMAIL PROTECTED] 
 Subject: SSL not working on Tomcat 
 
 I'm struggling through setting up Tomcat with SSL on a Windows 2003
 server, and even when I get the server running, with no errors in the
 logs when restarting the tomcat service, all I get is a Page 
 Not Found error when I point to the ssl port on the server.

Depending on how you installed Tomcat, you may have also gotten the
native connector, aka APR.  Its SSL configuration is different from the
traditional Tomcat connector.  Look here for details:
http://tomcat.apache.org/tomcat-5.5-doc/apr.html

Regardless, you probably want to move up to a more recent level.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Need setting up Tomcat with Apache web-server

2006-11-07 Thread Patrick Fong
Yeah - I can't. Apache is currently used in the production server. Resin 
is the current Servlet Engine. An open source alternative is best.


Caldarale, Charles R wrote:
From: Patrick Fong [mailto:[EMAIL PROTECTED] 
Subject: Need setting up Tomcat with Apache web-server


Any ideas?



Just one, but you may not like it: simplify your life by getting rid of
httpd, unless you have a dire need for it.  Configure Tomcat to use
ports 80 and 443 and let it serve your static content as well.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  


Re: Locale difference with Console and Windows Service

2006-11-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Max,

maxt wrote:
 Is there anything about an install of JRE or Tomcat that is inherently
 Region based?

I don't believe so. Your JRE will have a default locale that it picks
based upon some voodoo with your operating system, etc. For instance,
I'm in the US, to it defaults to en_US. I would imagine that yours would
default to en_AU since you are (??) in Australia.

If you change your user prefs to another language or locale, I would
imagine that any new JVMs that you start up would use the new locale.

I would also imagine that if you ran Tomcat as a service, that the user
who runs the service has their own locale which is different from your
user's locale. That was probably set during OS installation, but is
probably changeable somehow.

 eg, Do I need to reinstall Tomcat or JRE when my region is US?

That doesn't seem likely.

 It was AU when installed. In other words, was the Region change
 totally effective when these apps were initially installed with a AU
 Region?

Run this code to see all of the JVM settings, including the locale:

public class Env
{
public static void main(String[] args)
{
System.getProperties().list(System.out);
}
}

Look at the user.language and user.country properties. Together, I
believe that these define the default locale for the VM. If you want to
load resource bundles with different locales, you'll need to detect the
locale however you want (including simply flat-out asking the user), and
then load the appropriate bundle.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFURZ19CaO5/Lv0PARAr1PAJ9CXn3PL9X5aQnYRD4OvgZrYReVjgCeKrzx
XF7+dthb6o9d+x4Nmlp34ow=
=qVPL
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SSL not working on Tomcat

2006-11-07 Thread Mark Eggers
Did you try this with Firefox?  IE has some problems
with no-cache in the header or as a pragma.  Later
versions of Tomcat 5.5 set this.

There is a mailing list thread concerning this:

http://marc.theaimsgroup.com/?t=11180675668r=1w=2

along with some solutions.

Hope this helps.

/mde/
just my two cents . . . .

--- Michael Casale [EMAIL PROTECTED] wrote:

 Howdy all,
 
 I'm struggling through setting up Tomcat with SSL on
 a Windows 2003
 server, and even when I get the server running, with
 no errors in the
 logs when restarting the tomcat service, all I get
 is a Page Not Found
 error when I point to the ssl port on the server.
 Pointing to the
 default connector on port 8080 works fine.
 
 Here's a little background:
 
 1.Using keytool, I created a certificate request,
 sent it off to
 Geotrust, and purchased a cert to import. It was
 emailed to me. 
 2.Following the recommendations of geotrust

(http://www.geocerts.com/support/install/install_tomcat.php
 ) , I
 downloaded their root cert, imported it, converted
 their cert to DER
 format (on a separate Linux box), and imported it
 into the keystore.
 3.I restarted the Tomcat service with no errors,
 see the connector
 started on port 8443:
 
 Nov 7, 2006 4:55:35 PM
 org.apache.coyote.http11.Http11BaseProtocol init
 
 INFO: Initializing Coyote HTTP/1.1 on http-8080
 
 Nov 7, 2006 4:55:35 PM
 org.apache.coyote.http11.Http11BaseProtocol init
 
 INFO: Initializing Coyote HTTP/1.1 on http-8443
 
 Nov 7, 2006 4:55:35 PM
 org.apache.catalina.startup.Catalina load
 
 INFO: Initialization processed in 812 ms
 
 Nov 7, 2006 4:55:35 PM
 org.apache.catalina.core.StandardService start
 
 INFO: Starting service Catalina
 
 Nov 7, 2006 4:55:35 PM
 org.apache.catalina.core.StandardEngine start
 
 INFO: Starting Servlet Engine: Apache Tomcat/5.5.12
 
 Nov 7, 2006 4:55:35 PM
 org.apache.catalina.core.StandardHost start
 
 INFO: XML validation disabled
 
 Nov 7, 2006 4:55:36 PM
 org.apache.coyote.http11.Http11BaseProtocol start
 
 INFO: Starting Coyote HTTP/1.1 on http-8080
 
 Nov 7, 2006 4:55:36 PM
 org.apache.coyote.http11.Http11BaseProtocol start
 
 INFO: Starting Coyote HTTP/1.1 on http-8443
 
 Nov 7, 2006 4:55:37 PM
 org.apache.jk.common.ChannelSocket init
 
 INFO: JK: ajp13 listening on /0.0.0.0:8009
 
 Nov 7, 2006 4:55:37 PM org.apache.jk.server.JkMain
 start
 
 INFO: Jk running ID=0 time=0/31  config=null
 
 Nov 7, 2006 4:55:37 PM
 org.apache.catalina.storeconfig.StoreLoader load
 
 INFO: Find registry server-registry.xml at classpath
 resource
 
 Nov 7, 2006 4:55:37 PM
 org.apache.catalina.startup.Catalina start
 
 INFO: Server startup in 1203 ms
 
 Now, opening any page on the server at
 http://servername:8080
 http://servername:8080/  works fine, but
 https://servername:8443
 https://servername:8443/  doesn't work. All ports
 are opened through
 the firewall, etc. Same for https://localhost:8443
 https://localhost:8443/ .
 
 Here is the server.xml file entry for the connector:
 
 Connector

className=org.apache.coyote.tomcat5.CoyoteConnector
 
   port=8443 minProcessors=5 maxProcessors=20
 
   enableLookups=true disableUploadTimeout=true
 
   acceptCount=100 debug=0 scheme=https
 secure=true
 
   sslProtocol=TLS
 
   keystoreFile=c:\files\tomcat
 
   keystorePass=THEPASS/
 
  
 
 According to the Tomcat SSL documentation, I need to
 have the root cert
 and the purchased cert in the keystore file, and I
 need to use the
 keyAlias to tell Tomcat which one to use. But
 whenever I add in the
 keyAlias entry it gives me the Alias name tomcat
 does not identify a
 key entry error in the logs. 
 
 If I could find out how to enable better logging I
 may be able to
 troubleshoot this further.




 

Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problems when trying to create mod_jk.conf-auto

2006-11-07 Thread Beagan, Patrick
Tomcat does not seem to want to create a mod_jk.conf-auto file for me to
use with Apache.   I've following the documentation to startup tomcat
using 'bin/startup.bat -jkconf '  .No file gets created and tomcat
just starts up normally (docs say it should create the mod_jk.conf-auto
file then shutdown).Am I missing something?  This is a fresh install
of tomcat 5.5.20 on Windows XP.   

 

I also tried putting the following xml under the Server... element : 

 

ApacheConfig forwardAll=false noRoot=false 
jkConfig=conf/mod_jk.conf-auto jkDebug=error /

 

 

I also tried putting the following xml under the Server... element : 

 

ContextManager

Property name=jkconf value=true /

/ContextManager

 

 

 

 Nothing seems to work.  Any ideas?



Re: SSL not working on Tomcat

2006-11-07 Thread Dhiraj Ramakrishnan

Hi,

According to you, one of the steps that you did was ,

 I downloaded their root cert, imported it, converted their cert to
DER
format (on a separate Linux box), and imported it into the keystore. 

You seem to be running your application on a windows box.
Can that be the reason why your  key is not working properly ?

Thanks

Dhiraj Ramakrishnan

On 11/8/06, Caldarale, Charles R [EMAIL PROTECTED] wrote:


 From: Michael Casale [mailto:[EMAIL PROTECTED]
 Subject: SSL not working on Tomcat

 I'm struggling through setting up Tomcat with SSL on a Windows 2003
 server, and even when I get the server running, with no errors in the
 logs when restarting the tomcat service, all I get is a Page
 Not Found error when I point to the ssl port on the server.

Depending on how you installed Tomcat, you may have also gotten the
native connector, aka APR.  Its SSL configuration is different from the
traditional Tomcat connector.  Look here for details:
http://tomcat.apache.org/tomcat-5.5-doc/apr.html

Regardless, you probably want to move up to a more recent level.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: SSL not working on Tomcat

2006-11-07 Thread Michael Casale
I've installed Firefox 2.0 and I get the error:

Firefox can't connect securely to upm.knoa.com because the site uses a
security protocol which isn't enabled

So... I changed sslProtocol=TLS to sslProtocol=SSL and restarted the
service. I get the same error.

Meanwhile, with Internet Explorer, I turned off friendly error messages,
and loaded the page. Instead of a page not found I get a blank page.
Interesting.

Next I tried the validator, a tool from here: http://validator.w3.org/

Great tool. It reports the following error:

500 SSL negotiation failed: error:1406D0CB:SSL
routines:GET_SERVER_HELLO:peer error no cipher

Any ideas? I'm going to try re-importing the original certificate in
PKCS12 format...


Michael Casale

Systems Administrator / IT Manager

Knoa Software

[EMAIL PROTECTED]

Ph.  (212) 807-9608 ext. 6000

Fax  (212) 675-6121


-Original Message-
From: Mark Eggers [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 6:35 PM
To: Tomcat Users List
Subject: Re: SSL not working on Tomcat 

Did you try this with Firefox?  IE has some problems
with no-cache in the header or as a pragma.  Later
versions of Tomcat 5.5 set this.

There is a mailing list thread concerning this:

http://marc.theaimsgroup.com/?t=11180675668r=1w=2

along with some solutions.

Hope this helps.

/mde/
just my two cents . . . .

--- Michael Casale [EMAIL PROTECTED] wrote:

 Howdy all,
 
 I'm struggling through setting up Tomcat with SSL on
 a Windows 2003
 server, and even when I get the server running, with
 no errors in the
 logs when restarting the tomcat service, all I get
 is a Page Not Found
 error when I point to the ssl port on the server.
 Pointing to the
 default connector on port 8080 works fine.
 
 Here's a little background:
 
 1.Using keytool, I created a certificate request,
 sent it off to
 Geotrust, and purchased a cert to import. It was
 emailed to me. 
 2.Following the recommendations of geotrust

(http://www.geocerts.com/support/install/install_tomcat.php
 ) , I
 downloaded their root cert, imported it, converted
 their cert to DER
 format (on a separate Linux box), and imported it
 into the keystore.
 3.I restarted the Tomcat service with no errors,
 see the connector
 started on port 8443:
 
 Nov 7, 2006 4:55:35 PM
 org.apache.coyote.http11.Http11BaseProtocol init
 
 INFO: Initializing Coyote HTTP/1.1 on http-8080
 
 Nov 7, 2006 4:55:35 PM
 org.apache.coyote.http11.Http11BaseProtocol init
 
 INFO: Initializing Coyote HTTP/1.1 on http-8443
 
 Nov 7, 2006 4:55:35 PM
 org.apache.catalina.startup.Catalina load
 
 INFO: Initialization processed in 812 ms
 
 Nov 7, 2006 4:55:35 PM
 org.apache.catalina.core.StandardService start
 
 INFO: Starting service Catalina
 
 Nov 7, 2006 4:55:35 PM
 org.apache.catalina.core.StandardEngine start
 
 INFO: Starting Servlet Engine: Apache Tomcat/5.5.12
 
 Nov 7, 2006 4:55:35 PM
 org.apache.catalina.core.StandardHost start
 
 INFO: XML validation disabled
 
 Nov 7, 2006 4:55:36 PM
 org.apache.coyote.http11.Http11BaseProtocol start
 
 INFO: Starting Coyote HTTP/1.1 on http-8080
 
 Nov 7, 2006 4:55:36 PM
 org.apache.coyote.http11.Http11BaseProtocol start
 
 INFO: Starting Coyote HTTP/1.1 on http-8443
 
 Nov 7, 2006 4:55:37 PM
 org.apache.jk.common.ChannelSocket init
 
 INFO: JK: ajp13 listening on /0.0.0.0:8009
 
 Nov 7, 2006 4:55:37 PM org.apache.jk.server.JkMain
 start
 
 INFO: Jk running ID=0 time=0/31  config=null
 
 Nov 7, 2006 4:55:37 PM
 org.apache.catalina.storeconfig.StoreLoader load
 
 INFO: Find registry server-registry.xml at classpath
 resource
 
 Nov 7, 2006 4:55:37 PM
 org.apache.catalina.startup.Catalina start
 
 INFO: Server startup in 1203 ms
 
 Now, opening any page on the server at
 http://servername:8080
 http://servername:8080/  works fine, but
 https://servername:8443
 https://servername:8443/  doesn't work. All ports
 are opened through
 the firewall, etc. Same for https://localhost:8443
 https://localhost:8443/ .
 
 Here is the server.xml file entry for the connector:
 
 Connector

className=org.apache.coyote.tomcat5.CoyoteConnector
 
   port=8443 minProcessors=5 maxProcessors=20
 
   enableLookups=true disableUploadTimeout=true
 
   acceptCount=100 debug=0 scheme=https
 secure=true
 
   sslProtocol=TLS
 
   keystoreFile=c:\files\tomcat
 
   keystorePass=THEPASS/
 
  
 
 According to the Tomcat SSL documentation, I need to
 have the root cert
 and the purchased cert in the keystore file, and I
 need to use the
 keyAlias to tell Tomcat which one to use. But
 whenever I add in the
 keyAlias entry it gives me the Alias name tomcat
 does not identify a
 key entry error in the logs. 
 
 If I could find out how to enable better logging I
 may be able to
 troubleshoot this further.




 


Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index


RE: SSL not working on Tomcat

2006-11-07 Thread Michael Casale
I also tried building the keystore in PKCS12 format - importing both the
root cert and normal cert into the keystore.

I'm getting the same error.

Michael Casale

Systems Administrator / IT Manager

Knoa Software

[EMAIL PROTECTED]

Ph.  (212) 807-9608 ext. 6000

Fax  (212) 675-6121


-Original Message-
From: Dhiraj Ramakrishnan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 6:44 PM
To: Tomcat Users List
Subject: Re: SSL not working on Tomcat

Hi,

 According to you, one of the steps that you did was ,

  I downloaded their root cert, imported it, converted their cert
to
DER
format (on a separate Linux box), and imported it into the keystore. 

You seem to be running your application on a windows box.
Can that be the reason why your  key is not working properly ?

Thanks

Dhiraj Ramakrishnan

On 11/8/06, Caldarale, Charles R [EMAIL PROTECTED] wrote:

  From: Michael Casale [mailto:[EMAIL PROTECTED]
  Subject: SSL not working on Tomcat
 
  I'm struggling through setting up Tomcat with SSL on a Windows 2003
  server, and even when I get the server running, with no errors in
the
  logs when restarting the tomcat service, all I get is a Page
  Not Found error when I point to the ssl port on the server.

 Depending on how you installed Tomcat, you may have also gotten the
 native connector, aka APR.  Its SSL configuration is different from
the
 traditional Tomcat connector.  Look here for details:
 http://tomcat.apache.org/tomcat-5.5-doc/apr.html

 Regardless, you probably want to move up to a more recent level.

 - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the
e-mail
 and its attachments from all computers.

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.32/523 - Release Date:
11/7/2006
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SSL not working on Tomcat

2006-11-07 Thread Martin Gainty
Michael comments prefixed with Re



Howdy all,

 

I'm struggling through setting up Tomcat with SSL on a Windows 2003
server, and even when I get the server running, with no errors in the
logs when restarting the tomcat service, all I get is a Page Not Found
error when I point to the ssl port on the server. Pointing to the
default connector on port 8080 works fine.

 

Here's a little background:

 

1. Using keytool, I created a certificate request, sent it off to
Geotrust, and purchased a cert to import. It was emailed to me. 
2. Following the recommendations of geotrust
(http://www.geocerts.com/support/install/install_tomcat.php ) , I
downloaded their root cert, imported it, converted their cert to DER
format (on a separate Linux box), and imported it into the keystore.
3. I restarted the Tomcat service with no errors, see the connector
started on port 8443:

 

Nov 7, 2006 4:55:35 PM org.apache.coyote.http11.Http11BaseProtocol init

INFO: Initializing Coyote HTTP/1.1 on http-8080

Nov 7, 2006 4:55:35 PM org.apache.coyote.http11.Http11BaseProtocol init

INFO: Initializing Coyote HTTP/1.1 on http-8443

Nov 7, 2006 4:55:35 PM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 812 ms

Nov 7, 2006 4:55:35 PM org.apache.catalina.core.StandardService start

INFO: Starting service Catalina

Nov 7, 2006 4:55:35 PM org.apache.catalina.core.StandardEngine start

INFO: Starting Servlet Engine: Apache Tomcat/5.5.12

Nov 7, 2006 4:55:35 PM org.apache.catalina.core.StandardHost start

INFO: XML validation disabled

Nov 7, 2006 4:55:36 PM org.apache.coyote.http11.Http11BaseProtocol start

INFO: Starting Coyote HTTP/1.1 on http-8080

Nov 7, 2006 4:55:36 PM org.apache.coyote.http11.Http11BaseProtocol start

INFO: Starting Coyote HTTP/1.1 on http-8443

Nov 7, 2006 4:55:37 PM org.apache.jk.common.ChannelSocket init

INFO: JK: ajp13 listening on /0.0.0.0:8009

Nov 7, 2006 4:55:37 PM org.apache.jk.server.JkMain start

INFO: Jk running ID=0 time=0/31  config=null

Nov 7, 2006 4:55:37 PM org.apache.catalina.storeconfig.StoreLoader load

INFO: Find registry server-registry.xml at classpath resource

Nov 7, 2006 4:55:37 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1203 ms
Now, opening any page on the server at http://servername:8080
http://servername:8080/  works fine, but https://servername:8443
https://servername:8443/  doesn't work. All ports are opened through
the firewall, etc. Same for https://localhost:8443
https://localhost:8443/ .

 Here is the server.xml file entry for the connector:
Connector className=org.apache.coyote.tomcat5.CoyoteConnector
  port=8443 minProcessors=5 maxProcessors=20
  enableLookups=true disableUploadTimeout=true
  acceptCount=100 debug=0 scheme=https secure=true
  sslProtocol=TLS
  keystoreFile=c:\files\tomcat
  keystorePass=THEPASS/

MGcould you check to see if the keystoreFile is called tomcat and is located 
in in C:\files ?
MGout of curiosity which JVM are you using Sun or IBM..this changes the values 
assigned to sslProtocol and algorithm?
MGhttp://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html
MGM- 

Michael Casale

Systems Administrator / IT Manager

Knoa Software

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 

Ph.  (212) 807-9608 ext. 6000

Fax  (212) 675-6121

 



RE: SSL not working on Tomcat

2006-11-07 Thread Michael Casale
Thanks for your response. The tomcat keystore is located in c:\files. The 
version of Java is 1.5.0_06

Thanks!

Mike

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 9:08 PM
To: Tomcat Users List
Subject: Re: SSL not working on Tomcat

Michael comments prefixed with Re



Howdy all,

 

I'm struggling through setting up Tomcat with SSL on a Windows 2003
server, and even when I get the server running, with no errors in the
logs when restarting the tomcat service, all I get is a Page Not Found
error when I point to the ssl port on the server. Pointing to the
default connector on port 8080 works fine.

 

Here's a little background:

 

1. Using keytool, I created a certificate request, sent it off to
Geotrust, and purchased a cert to import. It was emailed to me. 
2. Following the recommendations of geotrust
(http://www.geocerts.com/support/install/install_tomcat.php ) , I
downloaded their root cert, imported it, converted their cert to DER
format (on a separate Linux box), and imported it into the keystore.
3. I restarted the Tomcat service with no errors, see the connector
started on port 8443:

 

Nov 7, 2006 4:55:35 PM org.apache.coyote.http11.Http11BaseProtocol init

INFO: Initializing Coyote HTTP/1.1 on http-8080

Nov 7, 2006 4:55:35 PM org.apache.coyote.http11.Http11BaseProtocol init

INFO: Initializing Coyote HTTP/1.1 on http-8443

Nov 7, 2006 4:55:35 PM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 812 ms

Nov 7, 2006 4:55:35 PM org.apache.catalina.core.StandardService start

INFO: Starting service Catalina

Nov 7, 2006 4:55:35 PM org.apache.catalina.core.StandardEngine start

INFO: Starting Servlet Engine: Apache Tomcat/5.5.12

Nov 7, 2006 4:55:35 PM org.apache.catalina.core.StandardHost start

INFO: XML validation disabled

Nov 7, 2006 4:55:36 PM org.apache.coyote.http11.Http11BaseProtocol start

INFO: Starting Coyote HTTP/1.1 on http-8080

Nov 7, 2006 4:55:36 PM org.apache.coyote.http11.Http11BaseProtocol start

INFO: Starting Coyote HTTP/1.1 on http-8443

Nov 7, 2006 4:55:37 PM org.apache.jk.common.ChannelSocket init

INFO: JK: ajp13 listening on /0.0.0.0:8009

Nov 7, 2006 4:55:37 PM org.apache.jk.server.JkMain start

INFO: Jk running ID=0 time=0/31  config=null

Nov 7, 2006 4:55:37 PM org.apache.catalina.storeconfig.StoreLoader load

INFO: Find registry server-registry.xml at classpath resource

Nov 7, 2006 4:55:37 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1203 ms
Now, opening any page on the server at http://servername:8080
http://servername:8080/  works fine, but https://servername:8443
https://servername:8443/  doesn't work. All ports are opened through
the firewall, etc. Same for https://localhost:8443
https://localhost:8443/ .

 Here is the server.xml file entry for the connector:
Connector className=org.apache.coyote.tomcat5.CoyoteConnector
  port=8443 minProcessors=5 maxProcessors=20
  enableLookups=true disableUploadTimeout=true
  acceptCount=100 debug=0 scheme=https secure=true
  sslProtocol=TLS
  keystoreFile=c:\files\tomcat
  keystorePass=THEPASS/

MGcould you check to see if the keystoreFile is called tomcat and is located 
in in C:\files ?
MGout of curiosity which JVM are you using Sun or IBM..this changes the values 
assigned to sslProtocol and algorithm?
MGhttp://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html
MGM- 

Michael Casale

Systems Administrator / IT Manager

Knoa Software

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 

Ph.  (212) 807-9608 ext. 6000

Fax  (212) 675-6121

 


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.32/523 - Release Date: 11/7/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.32/523 - Release Date: 11/7/2006
 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How do I set the default response encoding

2006-11-07 Thread Tim Lucia
You can use a filter:

/* 
 * Copyright (C) 2005 Tim Lucia. 
 * 
 * This software is distributed under the GNU General Public License (GPL).
 */
package tim.lucia;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * J2EE Filter to modify responses from the front controller, ensuring
that 
 * the encoding of the response is always set consistently.
 * 
 * @author tim.lucia
 */
public class EncodingFilter implements Filter
{
private static final String ENCODING = UTF-8;
private String encoding = null;

/**
 * Container startup notification
 */
public void init(FilterConfig arg0) throws ServletException 
{
encoding = arg0.getInitParameter(encoding);
if (null == encoding) {
encoding = ENCODING;
}
}

/**
 * Process the container's filter request.
 * @param request - Request object
 * @param response - response object
 * @param chain - next filter in the chain.
 */
public void doFilter(ServletRequest request, ServletResponse response,
 FilterChain chain)
throws IOException, ServletException 
{
request.setCharacterEncoding(encoding);

// move on to the next
chain.doFilter(request, response);
}
}

-Original Message-
From: Joseph S [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 6:37 PM
To: Tomcat Users List
Subject: How do I set the default response encoding

My problem: I want to set the default output encoding to UTF-I if the 
browser supports it, for all my jsps and servlets.  I could put %@ page 
contentType=text/html;charset=utf-8 % in all my jsps, but I don't 
want to have to put that in all jsps, and I only want to set utf8 if the 
  request header Accept-Charset has utf-8 in it.  Where is this set?

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Include Directive

2006-11-07 Thread Justin Jaynes
Chris,

Using /header.jsp which is of course an absolute path, I get virtually the 
same error.  Only /../header.jsp changes to /header.jsp  Still doesn't work.

You also suggested this: %@ include file=%= request.getContextPath() 
%/header.jsp %
I tried it but the code inside the quotes does not get evaluated.

Justin

- Original Message 
From: Christopher Schultz [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, November 7, 2006 6:14:58 AM
Subject: Re: Include Directive

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Justin,

 The index.jsp file in the main directory contains the code %@
 include file=header.jsp % and it works great.
 
 In the admin directory the index.jsp file contains this code %@
 include file=../header.jsp % obviously referencing to the parent
 directory, where the header.jsp file sits.  I don't want to have to
 copy it to the child directory and maintain two copies of it.
 
 But when I do this, I get an error every time.  What am I doing
 wrong?  You can find the error below.

It's a good idea to start your include directives with a '/', making
your paths relative to the context path (the webapp base URI, if you
will). As you can see, Tomcat is adding a leading '/' for you, which
makes the path into nonsense:

 File /../header.jsp not found

/../header.jsp would actually be located one directory above your
webapp's root directory, which is illegal.

Consider using /header.jsp as the include's location.

There is another thread from the last 24 hours or so with someone asking
about changing context paths. This is the best way to do this:

%@ include file=%= request.getContextPath() %/header.jsp %

Not sure if that compiles (I haven't touched JSP in years), but it's the
general idea.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFUIbR9CaO5/Lv0PARAiNSAJ9T4mX3Vz5nMvdNN/RfyS25CmpKVQCdENMF
f09sh+IY0kXEb/MPD39Qi+Y=
=44Mk
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Include Directive Misbehaving

2006-11-07 Thread Justin Jaynes
To further complicate this problem, I have tried more experimenting and am 
becoming more frustrated.

The original situation remains below.

Now if I add a sub-directory to the admin subdirectoy, the directory structure 
looks like this:

[main host directory (/host)]
index.jsp
header.jsp (ROOT VERSION, with a notation I can see in the html distinguishable 
from others)
[admin sub directory (/host/admin)
index.jsp
header.jsp (ADMIN VERSION, with a notation)
[user sub directory (/host/admin/user)]
[justin sub directory (/host/admin/user/justin)]
index.jsp

As you can see, I have copied the header.jsp to the sub-directory admin and 
have altered its contets so I can identify which header.jsp is being 
used--namely that in the root directory or in the admin directory.

Then in the index.jsp file in the justin subdirectory, I use the code

%@ include file=../../../header.jsp %

to reach the ROOT header.jsp to be included.  But instead, the output in the 
browser uses the file from the ADMIN directory.

So I figured I should just add ../ once more to move one more level up.  so I 
did.

%@ include file=../../../../header.jsp %

But it used the ADMIN version again.

%@ include file=../../../../../../../../header.jsp %

actually does too.  What is the problem here?

And trying to go less instead of more,

%@ include file=../../header.jsp %

this also works but uses the ADMIN version.  Which is the expected behavior FOR 
ONCE.

But then even less

%@ include file=../header.jsp %

gives this error:

org.apache.jasper.JasperException: /sites/14/index.jsp(8,0) File 
/sites/14/../header.jsp not found

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Can someone try to reproduce this error?  I believe that Tomcat 5.5 and 6.0 do 
not behave properly in this reguard.  Unless I am making a mistake.  If that is 
the case, please guide me out of it.

Justin

When I enter the same 

- Original Message 
From: Justin Jaynes [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Monday, November 6, 2006 10:01:00 PM
Subject: Include Directive

Hello,

I am trying to eliminate unnecessary duplication of code by using include 
directives.  Currently my directory structure is like this:

[main app directory]
index.jsp
header.jsp
footer.jsp
[admin subdirectory]
index.jsp

The index.jsp file in the main directory contains the code %@ include 
file=header.jsp % and it works great.

In the admin directory the index.jsp file contains this code %@ include 
file=../header.jsp % obviously referencing to the parent directory, where 
the header.jsp file sits.  I don't want to have to copy it to the child 
directory and maintain two copies of it.

But when I do this, I get an error every time.  What am I doing wrong?  You can 
find the error below.

Justin

HTTP Status 500 - type Exception report
message 
description The server encountered an internal error () that prevented it from 
fulfilling this request.
exception 
org.apache.jasper.JasperException: /index.jsp(4,0) File /../header.jsp not 
found

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause 
org.apache.jasper.JasperException: /index.jsp(4,0) File /../header.jsp not 
found

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:86)
org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:339)
org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:372)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:484)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1556)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)

org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)


Re: Include Directive Misbehaving

2006-11-07 Thread Mark Thomas
Justin Jaynes wrote:
 To further complicate this problem, I have tried more experimenting and am 
 becoming more frustrated.

I have just tested all combinations of files and included files for
three levels of directories and everything is working as it should.

Just a guess but...
Is it possible your contexts are not correctly deployed? If your
host's appBase and your web application's docBase point to the same
directory and autoDeploy is enabled you will have all sorts of odd
behaviour since by default *every* directory in a host's appBase gets
deployed as a web application.

HTH,

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Include Directive Misbehaving

2006-11-07 Thread Justin Jaynes
Oh snap!  That's exactly what's happening.  Can you point me to a good document 
that expalins how to set up contexts?  I've got everything set up exactly as 
you described.

Any good reading for a comprehensive (or even rudimetry) understanding would be 
greatly appreciated.

If you can explain it in a reasonable length that is appropriate to this forum 
(and convenient to your time), it would also be greatly appreciated.

The explanation in the doc on the tomcat.apache.org site seems to only cover 
what I am using, which treats every director as a webapp.  Definatly not what I 
want.

Justin

- Original Message 
From: Mark Thomas [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, November 7, 2006 9:30:07 PM
Subject: Re: Include Directive Misbehaving

Justin Jaynes wrote:
 To further complicate this problem, I have tried more experimenting and am 
 becoming more frustrated.

I have just tested all combinations of files and included files for
three levels of directories and everything is working as it should.

Just a guess but...
Is it possible your contexts are not correctly deployed? If your
host's appBase and your web application's docBase point to the same
directory and autoDeploy is enabled you will have all sorts of odd
behaviour since by default *every* directory in a host's appBase gets
deployed as a web application.

HTH,

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Include Directive

2006-11-07 Thread Layton Berry

Using Tomcat 5.5.20, I'm having no trouble with relative paths such as:

%@ include file=../filename.inc %

... and we have several of them.  So your original usage looks correct. 
 I would say to be sure you didn't put the wrong index.jsp file in the 
main app directory.


We do not use a leading slash, since that would mean it is not a 
relative path.  Clearly, /../filename.jsp is not going to work.


We do not use the .jsp extension for include files because 
pre-compiling would try to compile the include files, and Tomcat will 
also try to compile them if you try to access them.


Layton

Justin Jaynes wrote:

Chris,

Using /header.jsp which is of course an absolute path, I get virtually the 
same error.  Only /../header.jsp changes to /header.jsp  Still doesn't work.

You also suggested this: %@ include file=%= request.getContextPath() 
%/header.jsp %
I tried it but the code inside the quotes does not get evaluated.

Justin

- Original Message 
From: Christopher Schultz [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, November 7, 2006 6:14:58 AM
Subject: Re: Include Directive

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Justin,


The index.jsp file in the main directory contains the code %@
include file=header.jsp % and it works great.

In the admin directory the index.jsp file contains this code %@
include file=../header.jsp % obviously referencing to the parent
directory, where the header.jsp file sits.  I don't want to have to
copy it to the child directory and maintain two copies of it.

But when I do this, I get an error every time.  What am I doing
wrong?  You can find the error below.


It's a good idea to start your include directives with a '/', making
your paths relative to the context path (the webapp base URI, if you
will). As you can see, Tomcat is adding a leading '/' for you, which
makes the path into nonsense:


File /../header.jsp not found


/../header.jsp would actually be located one directory above your
webapp's root directory, which is illegal.

Consider using /header.jsp as the include's location.

There is another thread from the last 24 hours or so with someone asking
about changing context paths. This is the best way to do this:

%@ include file=%= request.getContextPath() %/header.jsp %

Not sure if that compiles (I haven't touched JSP in years), but it's the
general idea.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFUIbR9CaO5/Lv0PARAiNSAJ9T4mX3Vz5nMvdNN/RfyS25CmpKVQCdENMF
f09sh+IY0kXEb/MPD39Qi+Y=
=44Mk
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Include Directive Misbehaving

2006-11-07 Thread Mark Thomas
Justin Jaynes wrote:
 Oh snap!  That's exactly what's happening.  Can you point me to a good 
 document that expalins how to set up contexts?  I've got everything set up 
 exactly as you described.

 Any good reading for a comprehensive (or even rudimetry) understanding would 
 be greatly appreciated.
The on-line docs should have what you need. If we can id places where
changes are needed then I'll get them incorporated.

 If you can explain it in a reasonable length that is appropriate to this 
 forum (and convenient to your time), it would also be greatly appreciated.
The short version is:
- a context's docBase should never be the same as a host's appBase

A suitable directory structure for multiple hosts could be:
$CATALINA_HOME\host1-webapps  - Host1 appBase
$CATALINA_HOME\host1-webapps\ROOT - Default context for Host1
$CATALINA_HOME\host1-webapps\app1 - Application on Host1
$CATALINA_HOME\host1-webapps\app2 - Application on Host1
$CATALINA_HOME\host2-webapps  - Host2 appBase
$CATALINA_HOME\host2-webapps\ROOT - Default context for Host2
$CATALINA_HOME\host2-webapps\app3 - Application on Host2
etc for as many hosts and applications as you like

 The explanation in the doc on the tomcat.apache.org site seems to only cover 
 what I am using, which treats every director as a webapp.  Definatly not what 
 I want.
Which page(s) are you looking at? If the docs tell you to do this they
need to be changed. I can't see anything like this but I could easily
be missing the obvious.

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Why can java.io.NotSerializableException occur?

2006-11-07 Thread starki78
THank you, I don't know
I just can say that this error occured the first time:

Has someone seen it before?
Nice greetings Starki

2006-11-07 11:25:49 StandardManager[/pss] IOException while loading persisted 
sessions: java.io.WriteAbortedException: writing aborted; 
java.io.NotSerializableException: com.production.pss.bde.dwh.Deviance
java.io.WriteAbortedException: writing aborted; 
java.io.NotSerializableException: com.production.pss.bde.dwh.Deviance
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at java.util.ArrayList.readObject(ArrayList.java:547)
at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)









-- Initial Header ---

From  : Juanjo Cuadrado [EMAIL PROTECTED]
To  : Tomcat Users List users@tomcat.apache.org
Cc  :
Date  : Tue, 7 Nov 2006 12:01:56 +0100
Subject : Re: Why can java.io.NotSerializableException occur?







 Hi,

 maybe the problem is that tomcat is trying to do anything with the
 session and it is trying to write you object for sesion persistence...


 2006/11/7, starki78 [EMAIL PROTECTED]:
 
  We have a crash at tomcat 4.
  The thing I don't understand is the fact that
  the class causing this error has no default constructor and
  does not implement serializable.
 
  So why can this error occur?
 
  THANKS A LOT
 
 
  2006-11-07 11:25:49 StandardManager[/pss] IOException while loading persi=
  sted sessions: java.io.WriteAbortedException: writing aborted; java.io.No=
  tSerializableException: com.struts.statistics.Deviation
 
  .Measures
  java.io.WriteAbortedException: writing aborted; java.io.NotSerializableEx=
  ception: com.struts.statistics.Deviation
  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
  at java.util.ArrayList.readObject(ArrayList.java:547)
  at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces=
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838=
  )
  at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)=
 
  at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1=
  646)
  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
  at org.apache.catalina.session.StandardSession.readObject(StandardSessio=
  n.java:1369)
  at org.apache.catalina.session.StandardSession.readObjectData(StandardSe=
  ssion.java:864)
  at org.apache.catalina.session.StandardManager.load(StandardManager.java=
  :440)
  at org.apache.catalina.session.StandardManager.start(StandardManager.jav=
  a:655)
  at org.apache.catalina.core.StandardContext.start(StandardContext.java:3=
  585)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)=
 
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)=
 
  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363=
  )
  at org.apache.catalina.core.StandardService.start(StandardService.java:4=
  97)
  at org.apache.catalina.core.StandardServer.start(StandardServer.java:219=
  0)
  at org.apache.catalina.startup.CatalinaService.start(CatalinaService.jav=
  a:273)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.=
  java:39)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces=
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at org.apache.catalina.startup.BootstrapService.start(BootstrapService.j=
  ava:245)
  at org.apache.catalina.startup.BootstrapService.main(BootstrapService.ja=
  va:307)=0A
 
 
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


--
Scopri il nuovo MOTOROLA K1, il cellulare con superficie frontale a specchio. 
Se sarai fortunato potrai anche vincerne uno! Clicca e vinci !
http://click.libero.it/motorola8nov



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe,