Re: Version of Tomcat installed

2006-06-23 Thread Edward Diener

David Rees wrote:

On 6/23/06, Edward Diener <[EMAIL PROTECTED]> wrote:

How can I programatically find out which version(s) of Tomcat is
installed on my system ?


getServletContext().getServerInfo()


I need to be more precise in my question.

How can I programatically find out which version(s) of Tomcat is 
installed under Windows programming a C++ application ? There is 
probably some registry entries which will give me this information.



-
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: build.xml

2006-06-23 Thread Bill Barker

<[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>I cannot locate org.eclipse.jdt.core.JDTCompilerAdapter.  When I try to
> build a war file with Ant  my build fails because this adapter cannot be
> found. Is there a work around.  I am going to search on the web now.

If you have a recent version of Eclipse installed, and are really lazy, and 
don't care about wasted disk space, set the property 'jasper-jdt.jar' to 
point to the full path of Eclipse's jdtcore.jar in your build.properties 
file.

Otherwise, to build Tomcat 5.x+, the order is:
  $ ant download
  $ ant

If you are using a proxy server to connect to the internet, you'll need to 
configure the properties in your build.properties file first (there is a 
commented out example in build.properties.default).



>
> thanks!
>
>
> Carrie Latimer
> Florida's Turnpike Enterprise
> Tolls Data Center
> Main 561.488.5361
> SC 247.5361
> Fax 561.470.6615
> Mobile: 561.239.6189
> Nextel: 158*763*109
> [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: Version of Tomcat installed

2006-06-23 Thread David Rees

On 6/23/06, Edward Diener <[EMAIL PROTECTED]> wrote:

How can I programatically find out which version(s) of Tomcat is
installed on my system ?


getServletContext().getServerInfo()

-Dave

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



Version of Tomcat installed

2006-06-23 Thread Edward Diener
How can I programatically find out which version(s) of Tomcat is 
installed on my system ?



-
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: job offering for a web application developer in switzerland

2006-06-23 Thread Bob Hall

--- Leon Rosenberg <[EMAIL PROTECTED]>
wrote:

> and what exactly is ment by "leistungsbezogene
> Entlöhnung" ?
> 
> leon
> 

According to Babblefish:

achievement-referred remuneration

-Bob

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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: Question about StandardSession and ApplicationContext

2006-06-23 Thread John McClain
What I am finding is this.
1)I startup tomcat. At context initialized, before any data is added to
context, I take a memory heap snapshot
2) After login to our app, after memory has been added to context and
session, I take a snapshot
3) At logout BEFORE memory has been removed from session and context, I take
a snapshot
4) At context destroyed after all memory is wiped from context and session I
take a snapshot

What I am seeing is heap size goes up in 1 and 2 and 3, then back down at 4.
BUT, it does not return back down very far. In fact, it does not even go
down to the heap size in snapshot 2. When I look at what is in Context and
session, I find that there is no context or session for the snapshot taken
during context startup (makes sense), and that there is no context during
the snapshot taken in context destroyed - does not make sense as the context
has not been destroyed till the end of this function There are also 2
sessions remaining at this point. Is this because of a session pool help by
Tomcat, or what - by the time of contextDestroyed, I would have expected all
sessions to be gone - especially since I already called and processed
session.invalidate.???
Furthermore, when I compare snapshots 2 and 3, I find that
org.apache.catalina.session.StandardSession for snap 2 is 6.36 megs, of
which the attributes member is only 82 bytes (about what we added). At snap
3, the StandardSession is 8.44 megs, but the attribute member is still 82
bytes. It appears that the standard session stuff outside of attributes
contains a lot of overhead. What is that stuff? why does it seem to grow
during processing if the only place we are adding data is to session
attributes? Is there a potential for a memory leak there?

ALSO in looking at the snapshots, in every one, java.lang.string increased.
Any ideas on how I can determine which of these strings (if any) may
represent a memory leak in our system, and where the leak is occuring from?






-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 21, 2006 9:27 AM
To: Tomcat Users List
Subject: Re: Question about StandardSession and ApplicationContext


the StandardSession is not big, I would go back and guess it is your
application.
The key is to read the profiling data correctly, that's where I would start.
Tomcat has been optimized for memory and cpu usage, so 11MB session
objects would have been discovered early on.

John McClain wrote:
> I am profiling our application in jprofiler. I have noticed that the deep
> size of StandardSession object for each user is VERY large - ~ 11+mb. Yet
I
> know that we are not adding that much data. Where is all that memory
coming
> from? Is it truly non static data that is overhead for each session, or is
> it static data that each session points to?
>
> Does anyone out there have a strategy for finding memory leaks in a Tomcat
> application? I am not finding ours.
>
> John McClain
> Senior Software Engineer
> TCS Healthcare
> [EMAIL PROTECTED]
> (530)886-1700x235
> "Skepticism is the first step toward truth"
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


--


Filip Hanik

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



Has the manager interface changed from 5.5.9 to 5.5.17?

2006-06-23 Thread Garey Mills
Hi -

I was using Java something like this:

=
  URL tomcatURL = new
URL("http://:/manager/stop?path=/

Re: apache shows graphics, tomcat doesn't.

2006-06-23 Thread Jay G. Scott
> 
> 
> apache 1.3.36
> mod_jk 1.2.15
> tomcat 5.0.28
> solaris 9
> java 1.5.0_07
> 
> pointing to the same web page, both tomcat and apache can compile
> the .jsp file, but apache displays the graphic logo, tomcat doesn't.
> 
> i assume that's some configuration detail in tomcat?

hmmm.  no, guess that's normal for my setup.

j.

> 
> j.
> 
> -- 
> Jay Scott 512-835-3553[EMAIL PROTECTED]
> Head of Sun Support, Sr. Operating Systems Specialist
> Applied Research Labs, Computer Science Div.   S224
> University of Texas at Austin
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-- 
Jay Scott   512-835-3553[EMAIL PROTECTED]
Head of Sun Support, Sr. Operating Systems Specialist
Applied Research Labs, Computer Science Div.   S224
University of Texas at Austin

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



Regarding endorsed folder significance

2006-06-23 Thread Shimol Shah

Hi all,

I am having some difficulty in understanding the way
\common\lib\*.jar and \common\endorsed\*.jar are
treated.

I was having a specific problem where I was trying to add support for JSR
262 which inturn uses JAX-WS in the product I am working on. Before that it
made use of Axis for other purpose and AXis uses JAX-RPC.

The product was working fine before I added JSR262 support.
But when I copied all the jar files required for JSR-262 and JAX-WS to
web-inf\lib folder as a part of integrating the logic from the prototype to
product, the change did not work. Even thoguh the same code working out side
the container.

After a lot of investigation I figured out that it was the JAX-RPC.jar file
present in the endorsed fodler that was messing it up. So I removed that
file and JSR 262 stugg started working fine. But now my axis stuff was
complaining.

This troubled me a lot but finally also found out the solution by putting
the jax-rpc.jar file in either the WEB-INF\lib folder or the
\common\lib fodler. This way both the AXIS and JSR 262 started
working but I can't udnerstand what made it work.

If anybody can help me understand this issue, it would be great.

Thanks,
Shimol.


Setting up SSL on Tomcat 5.5.17 - no response from Tomcat

2006-06-23 Thread Erik Brakke

Hi,

I have set up standalone Tomcat 5.5.17 on Windows 2000 + J2EE 5 JDK  
and get the default ROOT webapp.  I cannot access the ROOT webapp  
using HTTPS.


I set up SSL using the HOW-TO: generate a self-signed JKS .keystore  
file and enabled the HTTPS connector in server.xml.


I'll open https://localhost:8443 in my browser, it connects (I can see  
it established with netstat), the browser states it is opening the  
page, but Tomcat does not respond, I do not get a certificate warning  
or the ROOT webapp.


I can't find any errors in /logs.  The access log shows activity on  
HTTP but nothings shows for HTTPS.


I have tried changing ports between 443 and 8443,
tried explicit path for .keystore,
tried switching from TLS to SSL.

Any ideas?  I tried upping logging to debug in server.xml but still no  
error messages.


THANKS!!
Erik


-
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: Re: Own Connector for Tomcat

2006-06-23 Thread Richard Mixon
Tomcat 5.5 works fine with Java 1.4 - just be sure and download the 'JDK 1.4
Compatability Package:' at this link:
http://tomcat.apache.org/download-55.cgi 

It is all of 1.6MB in size. Just follow the instructions - its easy.

HTH - Richard

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 23, 2006 6:54 AM
To: users@tomcat.apache.org
Subject: AW: Re: Own Connector for Tomcat

Thanks a lot for your answer, Bill.

I will try to develop my own ProtocolHandler. But the problem is, that I
can´t use Tomcat5.5, I guess. I tried it in embedded mode with Tomcat5.5 an
Java1.4 and got an Exception: java.lang.NoClassDefFoundError:
javax/management/NotificationEmitter

But the code example you gave to me I can´t use, because it is for
Tomcat5.5, I guess. I think I should use Tomcat5.0 because I have to use
Java1.4. 

I tried an example I found in the net, but got an
java.lang.NoClassDefFoundError: javax/management/NotificationEmitter. So I
searched for that and in my opinion I have to use Java1.5 for that, right?
Or is there a possiblity to use Tomcat5.5 in embedded mode with Java1.4?

So I would like to know, how to embed an own ProtocolHandler in Tomcat5.0
because Connector is not a class, it is an Interface there. The Class there
I found is CoyoteConnector.

I tried something like this and it works:

CoyoteConnector testConnector1 = (CoyoteConnector)
   server.createConnector((java.net.InetAddress) null, 7070, false);
testConnector1.setProtocolHandlerClassName("org.apache.coyote.http11.Http11P
rotocol");
server.addConnector(testConnector1);

But if I take the source code of the package in an own package an generate
an jar-File of this it does not work anymore.

CoyoteConnector testConnector2 = (CoyoteConnector)
   server.createConnector((java.net.InetAddress) null, 9090, false);
testConnector2.setProtocolHandlerClassName("src.connectors.test.Http11Protoc
ol");
server.addConnector(testConnector2);

I did not get an exception but 

--- THE EXCEPTION I GOT: ---

java.lang.NoClassDefFoundError: javax/management/NotificationEmitter
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at
org.apache.catalina.startup.Embedded.createContext(Embedded.java:475)
at src.server.Tomcat55.startTomcat(Tomcat55.java:126)
at src.server.MyServer55.main(MyServer55.java:244)
Exception in thread "main" 


>
>"Daniela Piacenti" <[EMAIL PROTECTED]> wrote in message 
>news:[EMAIL PROTECTED]
>> Hello everybody,
>>
>> I read a lot about the coyote connector and that it is possible to 
>> write own connectors for Tomcat. But I did not find anything in the 
>> whole web, how to do this. Now I am reading the source code of the 
>> coyote connector and have some questions about it.
>>
>> My problem is:
>> I am writing an application, which acts as an adapter for another 
>> application to provide its functionality via Web Services to external 
>> client applications. Therefore I am using Tomcat5 in embedded mode as 
>> servlet engine and Apache Axis as framework for the web services.
>> Now I also have to connect legacy client systems to my new 
>> application if possible. They communicate with the old external 
>> client interface directly over sockets with streams via TCP/IP using
proprietary message protocols.
>>
>> The alternative way would be to write an own SocketServer before 
>> Tomcat to make HTTP-Requests and to forward them to the Servlet 
>> Engine. Backwards the other way. But this would not be a smart and 
>> practicable way for this task, I guess. So I decided to have a look 
>> to the connector and maybe write my own connector for this.
>>
>> Generally I have the question, if it is possible and if yes, how. Do 
>> I have to write a whole connector, which implements this interface? 
>> Or is it possible to use the coyote connector with an own 
>> implemenation of an handlerclass, protocolclass and processclass? And 
>> how can I embed this connector in Tomcat?
>>
>> Hope someone may help me. Thanks a lot in advance,
>>
>
>The best way is to use the Coyote Connector, but implement your own
>ProtocolHandler: 
>http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/co
>yote/Pro
>

RE: Trouble with Admin WebApp

2006-06-23 Thread Armour David
Hi

Thanks for help on the Admin webapp location.  I have moved it to
/server/webapps.  I then restarted Tomcat and it still does not
function. I deployed the admin.xml to conf/Catalina/localhost.  The
manager application shows it running, but when I follow the link I get.

Tomcat's administration web application is no longer installed by
default. Download and install the "admin" package to use it.

The url that I get from the manager application for the admin webapp is:

http://localhost:8080/admin/


Ideas to help get this running?  Thanks.

David Armour

Java Application Architect

Winterthur U.S. Holdings, Inc.
[EMAIL PROTECTED]
608-837-4562 


-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 23, 2006 10:23 AM
To: Tomcat Users List
Subject: Re: Trouble with Admin WebApp


Wrong place to install the admin webapp.  The webapp itself needs to be 
in $CATALINA_HOME/server/webapps right next to the manager webapp.  
admin.xml is correctly placed.

--David

Armour David wrote:

>Hi
>
>I am running Windows 2000.  I have installed Tomcat 5.5.17.  I am 
>running Java Version: build 1.5.0_06-b05.
>
>I ran the Windows executable for the installation.  The default home 
>page comes up.  I have added an administrative account.  The Tomcat 
>Manager web application runs properly.
>
>I downloaded the admin webapp.  I copied the admin directory under the 
>webapps of the Tomcat install.  I also added the admin.xml to 
>conf/Catalina/localhost directory.
>
>The logs show the following error:
>
>Jun 23, 2006 8:43:59 AM org.apache.catalina.core.StandardContext start
>SEVERE: Error in resourceStart()
>Jun 23, 2006 8:43:59 AM org.apache.catalina.core.StandardContext start
>SEVERE: Error getConfigured
>Jun 23, 2006 8:43:59 AM org.apache.catalina.core.StandardContext start
>SEVERE: Context [/admin] startup failed due to previous errors Jun 23, 
>2006 8:43:59 AM org.apache.catalina.core.StandardContext stop
>INFO: Container 
>org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin]
>has not been started
>Jun 23, 2006 8:45:06 AM org.apache.coyote.http11.Http11BaseProtocol
>pause
>INFO: Pausing Coyote HTTP/1.1 on http-8080
>Jun 23, 2006 8:45:07 AM org.apache.catalina.core.StandardService stop
>INFO: Stopping service Catalina
>Jun 23, 2006 8:45:07 AM org.apache.coyote.http11.Http11BaseProtocol
>destroy
>INFO: Stopping Coyote HTTP/1.1 on http-8080
>Jun 23, 2006 8:45:07 AM org.apache.catalina.core.AprLifecycleListener
>lifecycleEvent
>INFO: Failed shutdown of Apache Portable Runtime
>Jun 23, 2006 8:45:14 AM org.apache.catalina.core.AprLifecycleListener
>lifecycleEvent
>INFO: The Apache Tomcat Native library which allows optimal performance

>in production environments was not found on the java.library.path: 
>C:\apps\apache\Tomcat 
>5.5\bin;.;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32;C:\WINNT;C:\WINN
>T
>\System32\Wbem;C:\WINNT\system32\;C:\WINNT\system32\Wbem;C:\Program
>Files\IBM\SQLLIB\BIN;C:\Program Files\IBM\SQLLIB\FUNCTION;C:\Program
>Files\IBM\SQLLIB\samples\repl;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IB
M
>\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES\REPL;C:\Program
>Files\Microsoft SQL Server\80\Tools\BINN;C:\Program
>Files\Subversion\bin;C:\Program Files\Microsoft SQL
>Server\80\Tools\Binn\;C:\j2sdk1.4.2_11\bin;C:\apps\apache-ant-1.6.5\bin
;
>C:\Program Files\Altiris\Software Virtualization Agent\;C:\Program
>Files\InstallShield\AdminStudio\5.5\ConflictSolver\;C:\Program
>Files\ActivCard\SecureLogin Single Sign-On\
>Jun 23, 2006 8:45:14 AM org.apache.coyote.http11.Http11BaseProtocol
init
>INFO: Initializing Coyote HTTP/1.1 on http-8080
>Jun 23, 2006 8:45:14 AM org.apache.catalina.startup.Catalina load
>INFO: Initialization processed in 843 ms
>Jun 23, 2006 8:45:14 AM org.apache.catalina.core.StandardService start
>INFO: Starting service Catalina
>Jun 23, 2006 8:45:14 AM org.apache.catalina.core.StandardEngine start
>INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
>Jun 23, 2006 8:45:14 AM org.apache.catalina.core.StandardHost start
>INFO: XML validation disabled
>SEVERE: Error starting static Resources
>java.lang.IllegalArgumentException: Document base C:\apps\apache\Tomcat
>5.5\server\webapps\admin does not exist or is not a readable directory
>   at
>org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.ja
v
>a:140)
>   at
>org.apache.catalina.core.StandardContext.resourcesStart(StandardContext
.
>java:3814)
>   at
>org.apache.catalina.core.StandardContext.start(StandardContext.java:398
5
>)
>   at
>org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1
0
>89)
>   at
>org.apache.catalina.startup.HostConfig.check(HostConfig.java:1202)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
>Source)
>   at java.lang.reflect.Method.invoke(Unknown Source

Re: Best Practice for properties files

2006-06-23 Thread Richard DeGrande
We had a similar problem.  We moved the properties files into the
common/classes/<> or
shared/classes/<>.  This way the properties files can be
changed in a production system without redeployment.  



>>> [EMAIL PROTECTED] 06/23/06 10:46 AM >>>
I have a fairly normal application that I am deploying on a tomcat 5.5
server.

My application uses log4j for its internal logging and I have a
log4j.properties file that I keep in web/WEB-INF/classes.  I also have a
regular app.properties file that I keep in web/WEB-INF.

I deploy my application to my tomcat server by placing app.war in the
proper directory.

My question is if I am running my application on 4 or 5 different tomcat
servers and toe log4j.properties and app.properties file needs to be set
up different on each server what is the best way to deploy and maintain
those files?  I very much want to create a single app.war file and let
each system administrator customer there properties without needing to
synchronize with me.

Any advice is appreciated.

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



Best Practice for properties files

2006-06-23 Thread Paul Mendelson
I have a fairly normal application that I am deploying on a tomcat 5.5
server.

My application uses log4j for its internal logging and I have a
log4j.properties file that I keep in web/WEB-INF/classes.  I also have a
regular app.properties file that I keep in web/WEB-INF.

I deploy my application to my tomcat server by placing app.war in the
proper directory.

My question is if I am running my application on 4 or 5 different tomcat
servers and toe log4j.properties and app.properties file needs to be set
up different on each server what is the best way to deploy and maintain
those files?  I very much want to create a single app.war file and let
each system administrator customer there properties without needing to
synchronize with me.

Any advice is appreciated.

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



build.xml

2006-06-23 Thread carrie . latimer
I cannot locate org.eclipse.jdt.core.JDTCompilerAdapter.  When I try to
build a war file with Ant  my build fails because this adapter cannot be
found. Is there a work around.  I am going to search on the web now.

thanks!


Carrie Latimer
Florida's Turnpike Enterprise
Tolls Data Center
Main 561.488.5361
SC 247.5361
Fax 561.470.6615
Mobile: 561.239.6189
Nextel: 158*763*109
[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]



apache shows graphics, tomcat doesn't.

2006-06-23 Thread Jay G. Scott

apache 1.3.36
mod_jk 1.2.15
tomcat 5.0.28
solaris 9
java 1.5.0_07

pointing to the same web page, both tomcat and apache can compile
the .jsp file, but apache displays the graphic logo, tomcat doesn't.

i assume that's some configuration detail in tomcat?

j.

-- 
Jay Scott   512-835-3553[EMAIL PROTECTED]
Head of Sun Support, Sr. Operating Systems Specialist
Applied Research Labs, Computer Science Div.   S224
University of Texas at Austin

-
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: one filter for all webapps?

2006-06-23 Thread Filip Hanik - Dev Lists
didn't even think about that, yes, and put the compiled filter into 
common/lib or common/classes


Filip

Jon Wingfield wrote:
Can't you add the filter to conf/web.xml? I think tomcat 
(conceptually) folds all of conf.xml into each webapp's web.xml.


Again, this behaviour is tomcat specific but at least the filter isn't.

Jon

Filip Hanik - Dev Lists wrote:

  in tomcat you can write a Valve

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

this is tomcat specific, so it wouldn't be portable across containers.
Filip


Dean Hiller wrote:

Is there any way to install a ServletFilter that is run before all
webapps(including the default servlet as well)?

thanks,
dean

 
No virus found in this incoming message.

Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 
6/21/2006
  



--


Filip Hanik




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





--


Filip Hanik

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



automatically detecting if HTTPS is supported

2006-06-23 Thread Jason Novotny


Hi,

   I have a JSP that does a form submission, and I'm wondering if 
there's any way I can detect if HTTPS is supported so that I can create 
a secure https connection to my servlet, or use normal http if not.


   Thanks, Jason

-
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: Tomcat can't start

2006-06-23 Thread Markus Schönhaber
Y.W.Yang wrote:
> I checked that port 8080, 8005, 8009 is free for tomcat, but

Did you also check whether these are actually the (only) ports your Tomcat is 
configured to bind to?

> http://localhost:8080 doesn't work!

If, as you wrote earlier, Tomcat isn't started for some reason, it isn't too 
surprising that you can't access it.

What's in your logs?

Regards
  mks

-
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, symbol ap_null_cleanup: referenced symbol not found

2006-06-23 Thread Jay G. Scott
> 
> 
> i'm trying to get mod_jk to work.
> 
> i configured apache thusly:
> 
> 
> set APVER=apache-1.3.36
> setenv CC gcc
> ./configure --prefix=/opt/depot/$APVER  \
> --enable-module=so  \
> --enable-module=info
> 
> when i try to start apache, i get this error.
> 
> Syntax error on line 2 of /opt/depot/apache-1.3.36/conf/tomcat/mod_jk.conf:
> Cannot load /opt/depot/apache-1.3.36/libexec/mod_jk.so into server:
> ld.so.1: /opt/depot/apache-1.3.36/bin/httpd:
> fatal:
> relocation error: file /opt/depot/apache-1.3.36/libexec/mod_jk.so:
> symbol ap_null_cleanup: referenced symbol not found
> 
> 
> if i do this instead:
> 
> ./configure --prefix=/opt/depot/$APVER  \
> --enable-module=so  \
> --enable-module=info\
> --enable-shared=max
> 
> Syntax error on line 205 of /opt/depot/apache-1.3.36/conf/httpd.conf:
> Cannot load /opt/depot/apache-1.3.36/libexec/mod_env.so into server:
> ld.so.1: /opt/depot/apache-1.3.36/bin/httpd:
> fatal:
> relocation error: file /opt/depot/apache-1.3.36/libexec/mod_env.so:
> symbol ap_palloc: referenced symbol not found
> 
> 
> i configure mod_jk.so like this:
> 
> set GPACK=mod_jk.so-1.2.15
> ./configure --prefix=/opt/depot/$GPACK  \
> --with-apxs=/opt/depot/apache-1.3.36/bin/apxs
> 
> 
> 
> so, how do you configure apache-1.3?
> how do you configure mod_jk?
> 
> if i give mod_jk  --with-apache=DIR, which DIR do they mean?
> #  --with-apache=DIR  Build static Apache module. DIR is the pathname
> #to the Apache source directory.
> 
> the source for apache-1.3.36?  or the apache-1.3 or -2.0 within the mod_jk 
> tree?
> 

the answer was in the loader  i have both sun's and gnu's loaders on
the machine.  the configure scripts for apache and mod_jk were finding
different loaders.  i got rid of the gnu loader (binutils-2.15) and
used sun compilers and the sun loader and that got me going.

j.


> j.
> 
> 
> -- 
> Jay Scott 512-835-3553[EMAIL PROTECTED]
> Head of Sun Support, Sr. Operating Systems Specialist
> Applied Research Labs, Computer Science Div.   S224
> University of Texas at Austin
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-- 
Jay Scott   512-835-3553[EMAIL PROTECTED]
Head of Sun Support, Sr. Operating Systems Specialist
Applied Research Labs, Computer Science Div.   S224
University of Texas at Austin

-
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: Tomcat session replication/cluster (mod_proxy_ajp)

2006-06-23 Thread Pid


Sean O'Reilly wrote:
> On Fri, 23 Jun 2006 09:05:18 -0500
> Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:
> I am sure it would be easier to use mod_proxy_balancer and
> mod_proxy_ajp but can't find any documentation anywhere.

My servers didn't have their clocks synchronised, check that.
Also try using the most basic cluster config to start with and work up
to more complex variations.

There's not much to configure for proxy_ajp / balancer.
We're running Apache2.2 + Tomcat 5.5.17 + with mod_proxy_ajp &c.
AJP needs no config, which is nice.
Balancer also needs very little, see mod_proxy for details.
The route=TCS1 parameter is the jvmRoute set in the tomcat Engine.

### put this in your Apache vhost/conf

ReWriteEngine on
ProxyPreserveHost On
ProxyRequests Off
ProxyVia  Off


   BalancerMember ajp://tomcat1:8009 smax=10 loadfactor=10 route=TCS1
   BalancerMember ajp://tomcat2:8009 smax=10 loadfactor=10 route=TCS2


RewriteRule ^\/(.+)\.jsp(.+)? balancer://mycluster/$1.jsp$2 [P,L]

ProxyPass /favicon.ico !
ProxyPass /robots.txt  !
ProxyPass /images/ !
ProxyPass /forms/ balancer://mycluster/forms/ \
maxattempts=1 lbmethod=bytraffic stickysession=JSESSIONID




> Thanks for the help so far guys.
> 

-
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: Tomcat session replication/cluster

2006-06-23 Thread Pid
How are you defining the cluster in your server.xml?

I did this recently, and had a bunch of small problems.
E.g. my server clocks weren't sync'd.

I found that enabling just the SimpleTcpCluster element (without all the
rest) helped me get up and running.


Sean O'Reilly wrote:
> On Fri, 23 Jun 2006 10:00:36 -0500
> Here is what is written to my logs
> 
> 23-Jun-2006 16:26:38 org.apache.catalina.cluster.session.DeltaManager
> waitForSendAllSessions SEVERE: Manager [/jsp-examples]: No session
> state send at 23/06/06 16:25 received, timing out after 60,121 ms.
> 23-Jun-2006 16:26:38 org.apache.catalina.core.ApplicationContext log
> INFO: ContextListener: contextInitialized() 23-Jun-2006 16:26:38
> org.apache.catalina.core.ApplicationContext log INFO: SessionListener:
> contextInitialized() 23-Jun-2006 16:26:39
> org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening
> on /0.0.0.0:8009 23-Jun-2006 16:26:39 org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/230  config=null
> 23-Jun-2006 16:26:39 org.apache.catalina.storeconfig.StoreLoader load
> INFO: Find registry server-registry.xml at classpath resource
> 23-Jun-2006 16:26:39 org.apache.catalina.startup.Catalina start
> INFO: Server startup in 67074 ms
> 

-
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: Tomcat session replication/cluster

2006-06-23 Thread Filip Hanik - Dev Lists

Sean O'Reilly wrote:

On Fri, 23 Jun 2006 10:00:36 -0500
Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:

  

Sean O'Reilly wrote:


On Fri, 23 Jun 2006 09:05:18 -0500
Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:

  
  

Hi Guys,

I appear to be finally getting somewhere with the in-memory state
replication but am now getting the following error when starting
up my tomcat instances/

WARNING: Manager [/jsp-examples], requesting session state from
org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.4.121:4001,catalina,192.168.4.121,4001,
alive=74436]. This operation will timeout if no session state has
been received within 60 seconds. 23-Jun-2006 13:27:38
org.apache.catalina.cluster.session.DeltaManager
waitForSendAllSessions SEVERE: Manager [/jsp-examples]: No session
state send at 23/06/06 13:26 received, timing out after 60,140 ms.
23-Jun-2006 13:27:38 org.apache.catalina.core.ApplicationContext
log INFO: ContextListener: contextInitialized() 23-Jun-2006
13:27:38 org.apache.catalina.core.ApplicationContext log INFO:
SessionListener: contextInitialized() 23-Jun-2006 13:27:38
org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening
on /0.0.0.0:8009 23-Jun-2006 13:27:38 org.apache.jk.server.JkMain
start INFO: Jk running ID=0 time=0/224  config=null 23-Jun-2006
13:27:38 org.apache.catalina.storeconfig.StoreLoader load INFO:
Find registry server-registry.xml at classpath resource
23-Jun-2006 13:27:39 org.apache.catalina.startup.Catalina start
INFO: Server startup in 67102 ms

Can anyone point me in the right direction as to why the session
state is not being replicated ?
  
  
  

Two things to check:
1. What does the other server log say, maybe there is an error
there, does the other server know of this server?
2. your server.xml, you would need to provide us with a little bit
more info

Filip

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



I might be being a bit thick here !!!

I have 3 servers !

One is running apache2, mod_jk2 and tomcat-5.5.17, the other two
just have tomcat-5.5.17. Do i need to have apache and mod_jk2
running on all servers ?

I am sure it would be easier to use mod_proxy_balancer and
mod_proxy_ajp but can't find any documentation anywhere.

Thanks for the help so far guys.
  
  
your problem is not related to Apache or mod_jk, its strictly Tomcat. 
Session state transfer fails.

and that's the path you need to persue.
1. Check all your tomcat logs
2. Make sure that node discovery is working, you should have in each
of your tomcat nodes, a info log statement saying it detected the
other two nodes.

Filip





Here is what is written to my logs

23-Jun-2006 16:26:38 org.apache.catalina.cluster.session.DeltaManager
waitForSendAllSessions SEVERE: Manager [/jsp-examples]: No session
state send at 23/06/06 16:25 received, timing out after 60,121 ms.
23-Jun-2006 16:26:38 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized() 23-Jun-2006 16:26:38
org.apache.catalina.core.ApplicationContext log INFO: SessionListener:
contextInitialized() 23-Jun-2006 16:26:39
org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening
on /0.0.0.0:8009 23-Jun-2006 16:26:39 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/230  config=null
23-Jun-2006 16:26:39 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
23-Jun-2006 16:26:39 org.apache.catalina.startup.Catalina start
INFO: Server startup in 67074 ms
  


I'm sure the is plenty more in the log earlier that you are kindfully 
omitting and that is vital


Filip



--


Filip Hanik

-
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: Tomcat session replication/cluster

2006-06-23 Thread Sean O'Reilly
On Fri, 23 Jun 2006 10:00:36 -0500
Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:

> Sean O'Reilly wrote:
> > On Fri, 23 Jun 2006 09:05:18 -0500
> > Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:
> >
> >   
> >>> Hi Guys,
> >>>
> >>> I appear to be finally getting somewhere with the in-memory state
> >>> replication but am now getting the following error when starting
> >>> up my tomcat instances/
> >>>
> >>> WARNING: Manager [/jsp-examples], requesting session state from
> >>> org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.4.121:4001,catalina,192.168.4.121,4001,
> >>> alive=74436]. This operation will timeout if no session state has
> >>> been received within 60 seconds. 23-Jun-2006 13:27:38
> >>> org.apache.catalina.cluster.session.DeltaManager
> >>> waitForSendAllSessions SEVERE: Manager [/jsp-examples]: No session
> >>> state send at 23/06/06 13:26 received, timing out after 60,140 ms.
> >>> 23-Jun-2006 13:27:38 org.apache.catalina.core.ApplicationContext
> >>> log INFO: ContextListener: contextInitialized() 23-Jun-2006
> >>> 13:27:38 org.apache.catalina.core.ApplicationContext log INFO:
> >>> SessionListener: contextInitialized() 23-Jun-2006 13:27:38
> >>> org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening
> >>> on /0.0.0.0:8009 23-Jun-2006 13:27:38 org.apache.jk.server.JkMain
> >>> start INFO: Jk running ID=0 time=0/224  config=null 23-Jun-2006
> >>> 13:27:38 org.apache.catalina.storeconfig.StoreLoader load INFO:
> >>> Find registry server-registry.xml at classpath resource
> >>> 23-Jun-2006 13:27:39 org.apache.catalina.startup.Catalina start
> >>> INFO: Server startup in 67102 ms
> >>>
> >>> Can anyone point me in the right direction as to why the session
> >>> state is not being replicated ?
> >>>   
> >>>   
> >> Two things to check:
> >> 1. What does the other server log say, maybe there is an error
> >> there, does the other server know of this server?
> >> 2. your server.xml, you would need to provide us with a little bit
> >> more info
> >>
> >> Filip
> >>
> >> -
> >> To start a new topic, e-mail: users@tomcat.apache.org
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> 
> >
> > I might be being a bit thick here !!!
> >
> > I have 3 servers !
> >
> > One is running apache2, mod_jk2 and tomcat-5.5.17, the other two
> > just have tomcat-5.5.17. Do i need to have apache and mod_jk2
> > running on all servers ?
> >
> > I am sure it would be easier to use mod_proxy_balancer and
> > mod_proxy_ajp but can't find any documentation anywhere.
> >
> > Thanks for the help so far guys.
> >   
> your problem is not related to Apache or mod_jk, its strictly Tomcat. 
> Session state transfer fails.
> and that's the path you need to persue.
> 1. Check all your tomcat logs
> 2. Make sure that node discovery is working, you should have in each
> of your tomcat nodes, a info log statement saying it detected the
> other two nodes.
> 
> Filip
> 
> 

Here is what is written to my logs

23-Jun-2006 16:26:38 org.apache.catalina.cluster.session.DeltaManager
waitForSendAllSessions SEVERE: Manager [/jsp-examples]: No session
state send at 23/06/06 16:25 received, timing out after 60,121 ms.
23-Jun-2006 16:26:38 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized() 23-Jun-2006 16:26:38
org.apache.catalina.core.ApplicationContext log INFO: SessionListener:
contextInitialized() 23-Jun-2006 16:26:39
org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening
on /0.0.0.0:8009 23-Jun-2006 16:26:39 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/230  config=null
23-Jun-2006 16:26:39 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
23-Jun-2006 16:26:39 org.apache.catalina.startup.Catalina start
INFO: Server startup in 67074 ms

-- 
Sean O'Reilly
Systems Administrator
SECPay Ltd

http://www.secpay.com

[EMAIL PROTECTED]

Mobile 07917 463906

DDI 01732 300212

This email contains information which is confidential. It is for the
exclusive use of the addressee(s). If you are not the addressee, please
note that any distribution, dissemination, copying or use of this
communication or the information in it is prohibited. If you have
received this email in error, please telephone me immediately.

-
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: Trouble with Admin WebApp

2006-06-23 Thread David Smith
Wrong place to install the admin webapp.  The webapp itself needs to be 
in $CATALINA_HOME/server/webapps right next to the manager webapp.  
admin.xml is correctly placed.


--David

Armour David wrote:


Hi

I am running Windows 2000.  I have installed Tomcat 5.5.17.  I am
running Java Version: build 1.5.0_06-b05.

I ran the Windows executable for the installation.  The default home
page comes up.  I have added an administrative account.  The Tomcat
Manager web application runs properly.

I downloaded the admin webapp.  I copied the admin directory under the
webapps of the Tomcat install.  I also added the admin.xml to
conf/Catalina/localhost directory.

The logs show the following error:

Jun 23, 2006 8:43:59 AM org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
Jun 23, 2006 8:43:59 AM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Jun 23, 2006 8:43:59 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/admin] startup failed due to previous errors
Jun 23, 2006 8:43:59 AM org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin]
has not been started
Jun 23, 2006 8:45:06 AM org.apache.coyote.http11.Http11BaseProtocol
pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Jun 23, 2006 8:45:07 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Jun 23, 2006 8:45:07 AM org.apache.coyote.http11.Http11BaseProtocol
destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Jun 23, 2006 8:45:07 AM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime
Jun 23, 2006 8:45:14 AM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance
in production environments was not found on the java.library.path:
C:\apps\apache\Tomcat
5.5\bin;.;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32;C:\WINNT;C:\WINNT
\System32\Wbem;C:\WINNT\system32\;C:\WINNT\system32\Wbem;C:\Program
Files\IBM\SQLLIB\BIN;C:\Program Files\IBM\SQLLIB\FUNCTION;C:\Program
Files\IBM\SQLLIB\samples\repl;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM
\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES\REPL;C:\Program
Files\Microsoft SQL Server\80\Tools\BINN;C:\Program
Files\Subversion\bin;C:\Program Files\Microsoft SQL
Server\80\Tools\Binn\;C:\j2sdk1.4.2_11\bin;C:\apps\apache-ant-1.6.5\bin;
C:\Program Files\Altiris\Software Virtualization Agent\;C:\Program
Files\InstallShield\AdminStudio\5.5\ConflictSolver\;C:\Program
Files\ActivCard\SecureLogin Single Sign-On\
Jun 23, 2006 8:45:14 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 23, 2006 8:45:14 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 843 ms
Jun 23, 2006 8:45:14 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 23, 2006 8:45:14 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
Jun 23, 2006 8:45:14 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\apps\apache\Tomcat
5.5\server\webapps\admin does not exist or is not a readable directory
at
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.jav
a:140)
at
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.
java:3814)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3985
)
at
org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:10
89)
at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1202)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)

The Manager application shows the admin as deployed but not started.
Also, in the Manager application all the other webapps have a live
Reload link, while the admin applications Reload link is not enabled.
What is wrong here?

David Armour

Java Application Architect

Winterthur U.S. Holdings, Inc.
[EMAIL PROTECTED]
608-837-4562 


-
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: Tomcat session replication/cluster

2006-06-23 Thread Filip Hanik - Dev Lists

Sean O'Reilly wrote:

On Fri, 23 Jun 2006 09:05:18 -0500
Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:

  

Hi Guys,

I appear to be finally getting somewhere with the in-memory state
replication but am now getting the following error when starting up
my tomcat instances/

WARNING: Manager [/jsp-examples], requesting session state from
org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.4.121:4001,catalina,192.168.4.121,4001,
alive=74436]. This operation will timeout if no session state has
been received within 60 seconds. 23-Jun-2006 13:27:38
org.apache.catalina.cluster.session.DeltaManager
waitForSendAllSessions SEVERE: Manager [/jsp-examples]: No session
state send at 23/06/06 13:26 received, timing out after 60,140 ms.
23-Jun-2006 13:27:38 org.apache.catalina.core.ApplicationContext
log INFO: ContextListener: contextInitialized() 23-Jun-2006 13:27:38
org.apache.catalina.core.ApplicationContext log INFO:
SessionListener: contextInitialized() 23-Jun-2006 13:27:38
org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening
on /0.0.0.0:8009 23-Jun-2006 13:27:38 org.apache.jk.server.JkMain
start INFO: Jk running ID=0 time=0/224  config=null 23-Jun-2006
13:27:38 org.apache.catalina.storeconfig.StoreLoader load INFO:
Find registry server-registry.xml at classpath resource 23-Jun-2006
13:27:39 org.apache.catalina.startup.Catalina start INFO: Server
startup in 67102 ms

Can anyone point me in the right direction as to why the session
state is not being replicated ?
  
  

Two things to check:
1. What does the other server log say, maybe there is an error there, 
does the other server know of this server?

2. your server.xml, you would need to provide us with a little bit
more info

Filip

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



I might be being a bit thick here !!!

I have 3 servers !

One is running apache2, mod_jk2 and tomcat-5.5.17, the other two just
have tomcat-5.5.17. Do i need to have apache and mod_jk2 running on all
servers ?

I am sure it would be easier to use mod_proxy_balancer and
mod_proxy_ajp but can't find any documentation anywhere.

Thanks for the help so far guys.
  
your problem is not related to Apache or mod_jk, its strictly Tomcat. 
Session state transfer fails.

and that's the path you need to persue.
1. Check all your tomcat logs
2. Make sure that node discovery is working, you should have in each of 
your tomcat nodes, a info log statement saying it detected the other two 
nodes.


Filip


--


Filip Hanik

-
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: Using Datasource for cloudscape

2006-06-23 Thread Jitendra Kharche

Hi there, can anybody help me on this.

Hi Dilan have you any more clue on this.

Problem:
I am using Tomcat 5.5.17 and tried running a sample datasource
application having a jsp page (see contents below) using the Cloudscape
database. I have added the driver jar into CATALINA_HOME/common/lib
directory. When I run the jsp I get following exception
WARNING: Unexpected exception resolving reference
java.lang.NoSuchMethodException:
com.ibm.db2j.jdbc.DB2jDataSource.setScope(boolean)
at java.lang.Class.getMethod(Class.java:1581)
at
com.ibm.db2j.jdbc.DB2jAbstractDataSource.getObjectInstance(Unknown
Source)
  



Contents of file CATALINA_HOME/webapps/myApp/dbdemo.jsp


<%@ page import="javax.sql.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="javax.naming.*" %>
<%  
Connection con = null;
Statement stmt = null;
try {
Context initContext = new InitialContext();
Context envContext  =
(Context)initContext.lookup("java:comp/env");
DataSource ds = (DataSource)envContext.lookup("jdbc/MyDB");
System.out.println("Got DataSource\n");
con = ds.getConnection();
System.out.println("Got Connection\n"); }
catch(java.lang.Exception e) {
e.printStackTrace();
System.err.print(e.getClass().getName());
System.err.println(e.getMessage());
}

try {
stmt = con.createStatement();   
ResultSet rs = stmt.executeQuery("SELECT * FROM employee");
System.out.println("Table assignment after insertion:");
%>
Your table contains the following entries:


emp_idemp_nameemp_dept
<%
while (rs.next()) {
String emp_id = rs.getString("emp_id");
String emp_name  = rs.getString("emp_name");
String emp_dept = rs.getString("emp_dept");
%>


<%=emp_id%><%=emp_name%><%=emp_dept%>


<%
}
rs.close(); stmt.close(); con.close();
}
catch(java.lang.Exception e) {
e.printStackTrace();
}%>



Contents of file CATALINA_HOME/conf/server.xml




  
  
  
  
  



  
  





  
  
  

  




Contents of file CATALINA_HOME/webapps/myApp/WEB-INF/web.xml



http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

datasourcedemo

index.html
index.htm
index.jsp
default.html
default.htm
default.jsp



jdbc/MyDB
javax.sql.DataSource
Container





Contents of file CATALINA_HOME/webapps/myApp/META-INF/context.xml




   
 
Regards,
Jitendra Kharche


-
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: one filter for all webapps?

2006-06-23 Thread Jon Wingfield
Can't you add the filter to conf/web.xml? I think tomcat (conceptually) 
folds all of conf.xml into each webapp's web.xml.


Again, this behaviour is tomcat specific but at least the filter isn't.

Jon

Filip Hanik - Dev Lists wrote:

  in tomcat you can write a Valve

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

this is tomcat specific, so it wouldn't be portable across containers.
Filip


Dean Hiller wrote:

Is there any way to install a ServletFilter that is run before all
webapps(including the default servlet as well)?

thanks,
dean

 
No virus found in this incoming message.

Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 6/21/2006
  



--


Filip Hanik




-
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: Tomcat session replication/cluster

2006-06-23 Thread Sean O'Reilly
On Fri, 23 Jun 2006 09:05:18 -0500
Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:

> 
> > Hi Guys,
> >
> > I appear to be finally getting somewhere with the in-memory state
> > replication but am now getting the following error when starting up
> > my tomcat instances/
> >
> > WARNING: Manager [/jsp-examples], requesting session state from
> > org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.4.121:4001,catalina,192.168.4.121,4001,
> > alive=74436]. This operation will timeout if no session state has
> > been received within 60 seconds. 23-Jun-2006 13:27:38
> > org.apache.catalina.cluster.session.DeltaManager
> > waitForSendAllSessions SEVERE: Manager [/jsp-examples]: No session
> > state send at 23/06/06 13:26 received, timing out after 60,140 ms.
> > 23-Jun-2006 13:27:38 org.apache.catalina.core.ApplicationContext
> > log INFO: ContextListener: contextInitialized() 23-Jun-2006 13:27:38
> > org.apache.catalina.core.ApplicationContext log INFO:
> > SessionListener: contextInitialized() 23-Jun-2006 13:27:38
> > org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening
> > on /0.0.0.0:8009 23-Jun-2006 13:27:38 org.apache.jk.server.JkMain
> > start INFO: Jk running ID=0 time=0/224  config=null 23-Jun-2006
> > 13:27:38 org.apache.catalina.storeconfig.StoreLoader load INFO:
> > Find registry server-registry.xml at classpath resource 23-Jun-2006
> > 13:27:39 org.apache.catalina.startup.Catalina start INFO: Server
> > startup in 67102 ms
> >
> > Can anyone point me in the right direction as to why the session
> > state is not being replicated ?
> >   
> Two things to check:
> 1. What does the other server log say, maybe there is an error there, 
> does the other server know of this server?
> 2. your server.xml, you would need to provide us with a little bit
> more info
> 
> Filip
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

I might be being a bit thick here !!!

I have 3 servers !

One is running apache2, mod_jk2 and tomcat-5.5.17, the other two just
have tomcat-5.5.17. Do i need to have apache and mod_jk2 running on all
servers ?

I am sure it would be easier to use mod_proxy_balancer and
mod_proxy_ajp but can't find any documentation anywhere.

Thanks for the help so far guys.

-- 
Sean O'Reilly
Systems Administrator
SECPay Ltd

http://www.secpay.com

[EMAIL PROTECTED]

Mobile 07917 463906

DDI 01732 300212

This email contains information which is confidential. It is for the
exclusive use of the addressee(s). If you are not the addressee, please
note that any distribution, dissemination, copying or use of this
communication or the information in it is prohibited. If you have
received this email in error, please telephone me immediately.

-
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: one filter for all webapps?

2006-06-23 Thread Filip Hanik - Dev Lists




in tomcat you can write a Valve

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

this is tomcat specific, so it wouldn't be portable across containers.
Filip


Dean Hiller wrote:
Is there any way to install a ServletFilter that is run
before all
  
webapps(including the default servlet as well)?
  
  
thanks,
  
dean
  
  
  

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 6/21/2006
  



-- 


Filip Hanik






Re: Tomcat session replication/cluster

2006-06-23 Thread Filip Hanik - Dev Lists



Hi Guys,

I appear to be finally getting somewhere with the in-memory state
replication but am now getting the following error when starting up my
tomcat instances/

WARNING: Manager [/jsp-examples], requesting session state from
org.apache.catalina.cluster.mcast.McastMember[tcp://192.168.4.121:4001,catalina,192.168.4.121,4001,
alive=74436]. This operation will timeout if no session state has been
received within 60 seconds. 23-Jun-2006 13:27:38
org.apache.catalina.cluster.session.DeltaManager waitForSendAllSessions
SEVERE: Manager [/jsp-examples]: No session state send at 23/06/06
13:26 received, timing out after 60,140 ms. 23-Jun-2006 13:27:38
org.apache.catalina.core.ApplicationContext log INFO: ContextListener:
contextInitialized() 23-Jun-2006 13:27:38
org.apache.catalina.core.ApplicationContext log INFO: SessionListener:
contextInitialized() 23-Jun-2006 13:27:38
org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening
on /0.0.0.0:8009 23-Jun-2006 13:27:38 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/224  config=null 23-Jun-2006 13:27:38
org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry
server-registry.xml at classpath resource 23-Jun-2006 13:27:39
org.apache.catalina.startup.Catalina start INFO: Server startup in
67102 ms

Can anyone point me in the right direction as to why the session state
is not being replicated ?
  

Two things to check:
1. What does the other server log say, maybe there is an error there, 
does the other server know of this server?

2. your server.xml, you would need to provide us with a little bit more info

Filip

-
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: job offering for a web application developer in switzerland

2006-06-23 Thread Martin Gainty

Leon--

Been awhile since I worked for a german company but it translates to
"performance payment"


Wann wilst ProjektStart?
Martin--

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: "Leon Rosenberg" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Friday, June 23, 2006 9:40 AM
Subject: Re: job offering for a web application developer in switzerland


and what exactly is ment by "leistungsbezogene
Entlöhnung" ?

leon

On 6/23/06, Frank Fischer <[EMAIL PROTECTED]> wrote:

Hi Jack

yes, German is a must because a part of the job will be to get in contact
with our customers that mainly are based in Germany and Switzerland.

Greetings
Frank

> -Original Message-
> From: Dakota Jack [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 23, 2006 2:54 PM
> To: Tomcat Users List
> Subject: Re: job offering for a web application developer in
> switzerland
>
> Hi, Frank,
>
> Do you have to speak German for this position?
>
>
>
> On 6/23/06, Frank Fischer <[EMAIL PROTECTED]> wrote:
> >
> > Hi all
> >
> > i hope it's not too offtopicthe company i'm working for
> has a open
> > position for an experienced java web application developer.
> The working
> > place would be at our main office in Bern, Switzerland. If you are
> > interested, please have a closer look at the detailed job
> description
> > (german only):
> >
> >
> http://www.aarenet.com/platform/content/element/184/Stellenins
> erat%20Web%20A
> > pplication%20Developer.pdf
> >
> > Regards
> > Frank
> >
> >
>
>
> --
> "You can lead a horse to water but you cannot make it float
> on its back."
> ~Dakota Jack~
>



-
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: IIS and Tomcat authentication problems

2006-06-23 Thread Phil \(waex\)
If this can help ...
With jrun the  isapi filter need to be in  a protected folder for the
authentication to be passed to the engine.

I.e. if your iis site is password protected and the jrun.dll is in a folder
that does not require auth, it won't receive the username.

Cheers

Phil 

-Original Message-
From: Markus Müller [mailto:[EMAIL PROTECTED] 
Sent: 21 June 2006 14:26
To: users@tomcat.apache.org
Subject: IIS and Tomcat authentication problems

Hi listers,

I want to use IIS with Tomcat using the the NTLM-detected user name. The
integration of IIS and Tomcat works fine, but not the authentication. I
managed this for a number of Tomcat versions before, but right know I cannot
get it to work.
Im am using:
Tomcat 5.5.12
IIS V6.0
Windows Server 2003

I added tomcatAuthenticatin="false" to my AJP 1.3 connector that resides von
port 8012 (server.xml attached), but the user name simple does not get true.
Anybody any ideas?

cheers

Markus


--
Dr. Markus Müller
l a t / l o n  GmbH (Hamburg)
Gluckstr. 53a   22081 Hamburg, Germany
phone ++49 +177 2470742 fax ++49 +228 18496-29
http://www.lat-lon.de   http://www.deegree.org



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



AW: Re: Own Connector for Tomcat

2006-06-23 Thread [EMAIL PROTECTED]
Thanks a lot for your answer, Bill.

I will try to develop my own ProtocolHandler. But the problem is, that I can´t 
use Tomcat5.5, I guess. I tried it in embedded mode with Tomcat5.5 an Java1.4 
and got an Exception: java.lang.NoClassDefFoundError: 
javax/management/NotificationEmitter

But the code example you gave to me I can´t use, because it is for Tomcat5.5, I 
guess. I think I should use Tomcat5.0 because I have to use Java1.4. 

I tried an example I found in the net, but got an 
java.lang.NoClassDefFoundError: javax/management/NotificationEmitter. So I 
searched for that and in my opinion I have to use Java1.5 for that, right? Or 
is there a possiblity to use Tomcat5.5 in embedded mode with Java1.4?

So I would like to know, how to embed an own ProtocolHandler in Tomcat5.0 
because Connector is not a class, it is an Interface there. The Class there I 
found is CoyoteConnector.

I tried something like this and it works:

CoyoteConnector testConnector1 = (CoyoteConnector)
   server.createConnector((java.net.InetAddress) null, 7070, false);
testConnector1.setProtocolHandlerClassName("org.apache.coyote.http11.Http11Protocol");
server.addConnector(testConnector1);

But if I take the source code of the package in an own package an generate an 
jar-File of this it does not work anymore.

CoyoteConnector testConnector2 = (CoyoteConnector)
   server.createConnector((java.net.InetAddress) null, 9090, false);
testConnector2.setProtocolHandlerClassName("src.connectors.test.Http11Protocol");
server.addConnector(testConnector2);

I did not get an exception but 

--- THE EXCEPTION I GOT: ---

java.lang.NoClassDefFoundError: javax/management/NotificationEmitter
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at org.apache.catalina.startup.Embedded.createContext(Embedded.java:475)
at src.server.Tomcat55.startTomcat(Tomcat55.java:126)
at src.server.MyServer55.main(MyServer55.java:244)
Exception in thread "main" 


>
>"Daniela Piacenti" <[EMAIL PROTECTED]> wrote in message 
>news:[EMAIL PROTECTED]
>> Hello everybody,
>>
>> I read a lot about the coyote connector and that it is possible to write 
>> own connectors for Tomcat. But I did not find anything in the whole web, 
>> how to do this. Now I am reading the source code of the coyote connector 
>> and have some questions about it.
>>
>> My problem is:
>> I am writing an application, which acts as an adapter for another 
>> application to provide its functionality via Web Services to external 
>> client applications. Therefore I am using Tomcat5 in embedded mode as 
>> servlet engine and Apache Axis as framework for the web services.
>> Now I also have to connect legacy client systems to my new application if 
>> possible. They communicate with the old external client interface directly 
>> over sockets with streams via TCP/IP using proprietary message protocols.
>>
>> The alternative way would be to write an own SocketServer before Tomcat to 
>> make HTTP-Requests and to forward them to the Servlet Engine. Backwards 
>> the other way. But this would not be a smart and practicable way for this 
>> task, I guess. So I decided to have a look to the connector and maybe 
>> write my own connector for this.
>>
>> Generally I have the question, if it is possible and if yes, how. Do I 
>> have to write a whole connector, which implements this interface? Or is it 
>> possible to use the coyote connector with an own implemenation of an 
>> handlerclass, protocolclass and processclass? And how can I embed this 
>> connector in Tomcat?
>>
>> Hope someone may help me. Thanks a lot in advance,
>>
>
>The best way is to use the Coyote Connector, but implement your own 
>ProtocolHandler: 
>http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/coyote/Pro
>tocolHandler.html. 
>The ProtocolHandler is responsible for setting up the ServerSocket, handling 
>the accepted requests, parsing the data it recieves and setting the 
>appropriate fields in the Request/Response (that it is also responsible for 
>creating :), creating  a Thread to process the request, and passing it off 
>to the Adapter that the Connector will have handed you, and finally sending 
>the result back to th

Trouble with Admin WebApp

2006-06-23 Thread Armour David
Hi

I am running Windows 2000.  I have installed Tomcat 5.5.17.  I am
running Java Version: build 1.5.0_06-b05.

I ran the Windows executable for the installation.  The default home
page comes up.  I have added an administrative account.  The Tomcat
Manager web application runs properly.

I downloaded the admin webapp.  I copied the admin directory under the
webapps of the Tomcat install.  I also added the admin.xml to
conf/Catalina/localhost directory.

The logs show the following error:

Jun 23, 2006 8:43:59 AM org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
Jun 23, 2006 8:43:59 AM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Jun 23, 2006 8:43:59 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/admin] startup failed due to previous errors
Jun 23, 2006 8:43:59 AM org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin]
has not been started
Jun 23, 2006 8:45:06 AM org.apache.coyote.http11.Http11BaseProtocol
pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Jun 23, 2006 8:45:07 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Jun 23, 2006 8:45:07 AM org.apache.coyote.http11.Http11BaseProtocol
destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Jun 23, 2006 8:45:07 AM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime
Jun 23, 2006 8:45:14 AM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance
in production environments was not found on the java.library.path:
C:\apps\apache\Tomcat
5.5\bin;.;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32;C:\WINNT;C:\WINNT
\System32\Wbem;C:\WINNT\system32\;C:\WINNT\system32\Wbem;C:\Program
Files\IBM\SQLLIB\BIN;C:\Program Files\IBM\SQLLIB\FUNCTION;C:\Program
Files\IBM\SQLLIB\samples\repl;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM
\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES\REPL;C:\Program
Files\Microsoft SQL Server\80\Tools\BINN;C:\Program
Files\Subversion\bin;C:\Program Files\Microsoft SQL
Server\80\Tools\Binn\;C:\j2sdk1.4.2_11\bin;C:\apps\apache-ant-1.6.5\bin;
C:\Program Files\Altiris\Software Virtualization Agent\;C:\Program
Files\InstallShield\AdminStudio\5.5\ConflictSolver\;C:\Program
Files\ActivCard\SecureLogin Single Sign-On\
Jun 23, 2006 8:45:14 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 23, 2006 8:45:14 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 843 ms
Jun 23, 2006 8:45:14 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 23, 2006 8:45:14 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
Jun 23, 2006 8:45:14 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\apps\apache\Tomcat
5.5\server\webapps\admin does not exist or is not a readable directory
at
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.jav
a:140)
at
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.
java:3814)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3985
)
at
org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:10
89)
at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1202)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)

The Manager application shows the admin as deployed but not started.
Also, in the Manager application all the other webapps have a live
Reload link, while the admin applications Reload link is not enabled.
What is wrong here?

David Armour

Java Application Architect

Winterthur U.S. Holdings, Inc.
[EMAIL PROTECTED]
608-837-4562 

-
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: job offering for a web application developer in switzerland

2006-06-23 Thread Leon Rosenberg

and what exactly is ment by "leistungsbezogene
Entlöhnung" ?

leon

On 6/23/06, Frank Fischer <[EMAIL PROTECTED]> wrote:

Hi Jack

yes, German is a must because a part of the job will be to get in contact
with our customers that mainly are based in Germany and Switzerland.

Greetings
Frank

> -Original Message-
> From: Dakota Jack [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 23, 2006 2:54 PM
> To: Tomcat Users List
> Subject: Re: job offering for a web application developer in
> switzerland
>
> Hi, Frank,
>
> Do you have to speak German for this position?
>
>
>
> On 6/23/06, Frank Fischer <[EMAIL PROTECTED]> wrote:
> >
> > Hi all
> >
> > i hope it's not too offtopicthe company i'm working for
> has a open
> > position for an experienced java web application developer.
> The working
> > place would be at our main office in Bern, Switzerland. If you are
> > interested, please have a closer look at the detailed job
> description
> > (german only):
> >
> >
> http://www.aarenet.com/platform/content/element/184/Stellenins
> erat%20Web%20A
> > pplication%20Developer.pdf
> >
> > Regards
> > Frank
> >
> >
>
>
> --
> "You can lead a horse to water but you cannot make it float
> on its back."
> ~Dakota Jack~
>



-
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: job offering for a web application developer in switzerland

2006-06-23 Thread Frank Fischer
Hi Jack

yes, German is a must because a part of the job will be to get in contact
with our customers that mainly are based in Germany and Switzerland.

Greetings
Frank

> -Original Message-
> From: Dakota Jack [mailto:[EMAIL PROTECTED] 
> Sent: Friday, June 23, 2006 2:54 PM
> To: Tomcat Users List
> Subject: Re: job offering for a web application developer in 
> switzerland
> 
> Hi, Frank,
> 
> Do you have to speak German for this position?
> 
> 
> 
> On 6/23/06, Frank Fischer <[EMAIL PROTECTED]> wrote:
> >
> > Hi all
> >
> > i hope it's not too offtopicthe company i'm working for 
> has a open
> > position for an experienced java web application developer. 
> The working
> > place would be at our main office in Bern, Switzerland. If you are
> > interested, please have a closer look at the detailed job 
> description
> > (german only):
> >
> > 
> http://www.aarenet.com/platform/content/element/184/Stellenins
> erat%20Web%20A
> > pplication%20Developer.pdf
> >
> > Regards
> > Frank
> >
> >
> 
> 
> -- 
> "You can lead a horse to water but you cannot make it float 
> on its back."
> ~Dakota Jack~
> 



-
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: Re: Tomcat can't start

2006-06-23 Thread Y.W.Yang
Thanks a lot, Markus,

I checked that port 8080, 8005, 8009 is free for tomcat, but 
http://localhost:8080 doesn't work! 

regards, 
Yanwu
  
=== At 2006-06-22, 23:13:04 you wrote: ===

>Y.W.Yang wrote:
>> Tomcat works well on my pc since the first configuration. But recently, I
>> can't start Tomcat through Elipse, "the ports required by tomcat are used
>> by other processes, or tomcat are started in other processes". Even
>> http://localhost:8080 doesn't work! I checked the port, no process use the
>> port for tomcat (8080), and tomcat is not in the active process list. Is
>> there somebody can help on that? Thanks a lot.
>
>8080 is almost certainly not the only port Tomcat wants to bind to. There's 
>also the shutdown port - by default 8005 - and maybe the AJP port - by 
>default 8009. Your server.xml will show which ports Tomcat is actually 
>configured to use.
>
>Use, for example,
>netstat -ano
>if you're on Windows, or
>netstat -anp
>if you're on Linux, to find out which processes are using which ports.
>
>You might also want to check Tomcat's log files.
>
>Regards
>  mks
>
>-
>To start a new topic, e-mail: users@tomcat.apache.org
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

= = = = = = = = = = = = = = = = = = = =

Y.W.Yang
[EMAIL PROTECTED]
2006-06-23





-
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: job offering for a web application developer in switzerland

2006-06-23 Thread Dakota Jack

Hi, Frank,

Do you have to speak German for this position?



On 6/23/06, Frank Fischer <[EMAIL PROTECTED]> wrote:


Hi all

i hope it's not too offtopicthe company i'm working for has a open
position for an experienced java web application developer. The working
place would be at our main office in Bern, Switzerland. If you are
interested, please have a closer look at the detailed job description
(german only):

http://www.aarenet.com/platform/content/element/184/Stelleninserat%20Web%20A
pplication%20Developer.pdf

Regards
Frank





--
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~


Re: Tomcat session replication/cluster

2006-06-23 Thread Sean O'Reilly
On Thu, 22 Jun 2006 15:39:09 +0100
Pid <[EMAIL PROTECTED]> wrote:

> In each case it's the ROOT context, so is it appending "" where
> there's no Context name/path: ie
> 
>  SEVERE: Context manager doesn't exist:host1+context1
> 
> where context1=""
> ?
> 
> It would still seem that the name parameter supplied to the
> getManagerName is carrying over it's previous value, and appending
> again, rather than resetting.  I'm not familiar enough with the code
> to see where it's occuring though.
> 
> 
> 
> Pid wrote:
> > OK,
> > 
> > I'm probably being dense here.
> > 
> > (There's only 1 context in each host, the ROOT context)
> > If I take the Host/Context offline in one node and restart it, the
> > logs on that node start showing the following:
> > 
> >  SEVERE: Context manager doesn't exist:host1
> > 
> > As the Context doesn't exist, which is the same message that appears
> > briefly in the logs during a restart, until that particular Host is
> > loaded (under normal circumstances).
> > 
> > This much I understand, and provides no problems for me.
> > 
> > 
> > With all Hosts available on each node of the cluster, I then update
> > the Context on one Host, (by adding a new jar, say).  The Context
> > has reloadable="true", so it does just that.
> > 
> > Once that context has updated, the other nodes start seeing:
> > 
> >  SEVERE: Context manager doesn't exist:host1host1
> > 
> > If I reload the context again, (without restarting the server), I
> > see this:
> > 
> >  SEVERE: Context manager doesn't exist:host1host1host1
> > 
> > I could go on, but I think you can see where this is going...
> > 
> > 
> > 
> > Peter Rossbach wrote:
> >> Hmm,
> >>
> >> look at o.a.c.cluster.tcp.SimpleTcpCluster
> >>
> >> L 626ff
> >> private String getManagerName(String name, Manager manager) {
> >> String clusterName = name ;
> >> if(getContainer() instanceof Engine) {
> >> Container context = manager.getContainer() ;
> >> if(context != null && context instanceof Context) {
> >> Container host = ((Context)context).getParent();
> >> if(host != null && host instanceof Host)
> >> clusterName = host.getName()  + name ;
> >> }
> >> }
> >> return clusterName;
> >> }
> >>
> >>
> >> You see we append "hostname + context" as cluster engine container.
> >>
> >> Peter
> >>
> >>
> >>
> >> Am 22.06.2006 um 10:32 schrieb Pid:
> >>
> >>>
> >>> Filip Hanik - Dev Lists wrote:
>  if the cluster is put in the engine element, the context names
>  are prefixed with the engine name, since you can have multiple
>  contexts with the same name in different host
>  when reloading a context, you'll get these errors cause the
>  context is not available during the reload
>  this will be fixed with the new Apache Tribes module
>  Filip
> >>> I understand that the context is not available during reload.
> >>> After reload has completed, the error persists.
> >>>
> >>> My Engine name is Catalina, it looks like the cluster isn't
> >>> sending the engine name, but the context name, appended to itself.
> >>>
> >>> You're implying that it should send Catalina+website1, but it's
> >>> sending website1+website1 instead.
> >>>
> >>> After startup:
> >>> Node1 sees Node2 send "website2"
> >>> Node2 sees Node1 send "website1"
> >>>
> >>> After context on Node1 is finished reloading:
> >>> Node1 sees Node2 send "website2"
> >>> Node2 sees Node1 send "website1website1"
> >>>
> >>> I think that the context name is being appended to itself.
> >>>
> >>>
>  Pid wrote:
> > I'm seeing an issue on 5.5.17 with a 2 node cluster config.
> > When a context is reloaded, it sends the context node name
> > incorrectly to the cluster.
> > E.g. context is called "website1"
> >
> > SEVERE: Context manager doesn't exist:website1website1
> >
> > The config I'm using is exactly the same as the default from
> > server.xml,
> > except the cluster is defined in Engine, rather than each Host.
> >
> >
> >
> >
> > Filip Hanik - Dev Lists wrote:
> >
> >> also, use Tomcat 5.5.17
> >>
> >> Sean O'Reilly wrote:
> >>
> >>> Hi,
> >>>
> >>> I am trying to get in-memory session replication working and
> >>> am testing
> >>> running 3 seperate tomcat instances on the same server.
> >>>
> >>> I am using tomcat-5.5.15 and apache-2.0.54 with jk2.
> >>>
> >>> Whenever i run my test app although it should be doing
> >>> round-robin load
> >>> balancing it doesn't switch to another instance of tomcat
> >>> until the eighth request and does not appear to have sent the
> >>> session information
> >>> across as the session ID changes.
> >>>
> >>> Here are my server.xml and workers2.properties files
> >>>
> >>> server.xml
> >>>
> >>> 
> >>>
> >>>   
> >>>>>> className="org.ap

job offering for a web application developer in switzerland

2006-06-23 Thread Frank Fischer
Hi all
 
i hope it's not too offtopicthe company i'm working for has a open
position for an experienced java web application developer. The working
place would be at our main office in Bern, Switzerland. If you are
interested, please have a closer look at the detailed job description
(german only):
http://www.aarenet.com/platform/content/element/184/Stelleninserat%20Web%20A
pplication%20Developer.pdf
 
Regards
Frank


one filter for all webapps?

2006-06-23 Thread Dean Hiller

Is there any way to install a ServletFilter that is run before all
webapps(including the default servlet as well)?

thanks,
dean


Re: run tomcat behind proxy server the problem is solved thanks all

2006-06-23 Thread Shuaibin Wang
hi , the problem is solved.  thanks for the attentation.  a nice weekend . 
swang


- Original Message - 
From: "Shuaibin Wang" <[EMAIL PROTECTED]>

To: 
Sent: Friday, June 23, 2006 12:11 PM
Subject: run tomcat behind proxy server


Hi,

the comcat on my pc is behind  a proxy(LAN), so when tha appllcation on my 
tomcat need to communicate to the servers somewhere else outside of the LAN, 
how do I configure  my tomcat to use the proxy?



Many thanks.

Swang 



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



run tomcat behind proxy server

2006-06-23 Thread Shuaibin Wang
Hi,  

the comcat on my pc is behind  a proxy(LAN), so when tha appllcation on my 
tomcat need to communicate to the servers somewhere else outside of the LAN, 
how do I configure  my tomcat to use the proxy?


Many thanks.

Swang

Re: Separate JVM's for TOMCAT

2006-06-23 Thread Chris Lear
* Chris Lear wrote (23/06/06 10:09):
> * [EMAIL PROTECTED] wrote (23/06/06 09:50):
>> Hi ,
>>  Can anyone tell me how to make two separate JVM of a single installation
>> of tomcat server.
>> Remember I dont want different context , but tow separate JVM , is it
>> possible ?
>> Or tomcat will only be the solution ?
> 
> You can use the badly-documented CATALINA_BASE environment variable.
> 
> It's mentioned on this page:
> http://tomcat.apache.org/tomcat-5.5-doc/appdev/deployment.html
> but the best documentation is probably in comments in the catalina.sh
> script.
> 
> The way it works is reasonably straightforward. The "base" directory
> contains subdirs for conf, logs, webapps, and work (and temp, normally).
> CATALINA_HOME is the same for all instances, and contains subdirs for
> bin, common, and shared. You can use catalina.sh (or .bat) with
> different CATALINA_HOME settings to start/stop your different instances.

I meant different CATALINA_BASE settings, of course. CATALINA_HOME
should always be the same. Sorry about that.

Chris

-
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: Separate JVM's for TOMCAT

2006-06-23 Thread Chris Lear
* [EMAIL PROTECTED] wrote (23/06/06 09:50):
> Hi ,
>  Can anyone tell me how to make two separate JVM of a single installation
> of tomcat server.
> Remember I dont want different context , but tow separate JVM , is it
> possible ?
> Or tomcat will only be the solution ?

You can use the badly-documented CATALINA_BASE environment variable.

It's mentioned on this page:
http://tomcat.apache.org/tomcat-5.5-doc/appdev/deployment.html
but the best documentation is probably in comments in the catalina.sh
script.

The way it works is reasonably straightforward. The "base" directory
contains subdirs for conf, logs, webapps, and work (and temp, normally).
CATALINA_HOME is the same for all instances, and contains subdirs for
bin, common, and shared. You can use catalina.sh (or .bat) with
different CATALINA_HOME settings to start/stop your different instances.

Chris

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



Problem accessing two McKoi databases from Tomcat

2006-06-23 Thread I D B Major

Hi

I am a student trying to set up a project using JSP with JSTL custom 
tags to provide dynamic pages to allow a web-based ticketing system for 
independent cinemas. I am at the early stages of testing that I can use 
the technologies. I have installed and configured Tomcat to allow 
password protection to the site and I have embedded a McKoi database 
which I can access and use to do insert, update and delete queries using 
a test JSP page which has customised JSTL tags that are used to run the 
SQL query on the database.


I am now trying to display data from two separate databases. I can get 
each to display separately but not both at once. My issues seem to be 
around the details held in web.xml which are as follows;


   
   javax.servlet.jsp.jstl.sql.dataSource
   jdbc/mydb
   
  
   

   DB Connection
   jdbc/mydb
   javax.sql.DataSource
   Container
   
  
   

   javax.servlet.jsp.jstl.sql.dataSource
   jdbc/curzon
   
  
   

   DB Connection
   jdbc/curzon
   javax.sql.DataSource
   Container
   

If I change the name of either of the  then the other will 
work and allow database access to that database (ie  details 
in server.xml are correctly recorded) but the one which is altered is 
not available so that Tomcat displays an error message to say the table 
requested is not found;


org.apache.jasper.JasperException: javax.servlet.jsp.JspException: 
	 select * from Film


 : Table 'APP.Film' was not found.

I have googled and googled, read the apache website in all areas I can 
think of to look up and have asked my tutor for help. All without 
success. I have discovered that the  given above is a 
default so I tried adjusting the names (setting first one and then the 
other to javax.servlet.jsp.jstl.dataSource.other or  
javax.servlet.jsp.jstl..otherdataSource or other.dataSource) and even 
removing the  altogether but none of these work.


Please can someone point me in the right direction for how to find out 
what the  needs to be set to in order to allow two databases 
to be accessed at once?


many thanks,

Iain M


-
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: what happens with the content.xml file

2006-06-23 Thread Pid
It *is* loading the context.xml attributes from the war; except: the
name of the deployed context.xml file is dependant on the name of the
war, and as the path is dependant on name of the deployed context file...

E.g.

"hostfiles/trumpet2.2.war" deploys, it's "META-INF/context.xml" is
copied to "conf/Catalina/host/trumpet2.2.xml", and the app is made
available at "http://host/trumpet2.2/";.

So because you've renamed the .war, you've renamed the deployed path.
It'd be easier to leave it as 'probe.war'.

You could try symlinks/url mapping to get /probe/ to map to /probe_ver_num/.

The context path attribute behaves in a pretty restrictive way.  I'm not
sure what the thinking behind it is/was - maybe someone more
knowledgable can help.



tom ot wrote:
> Hi pid,
> thanks for your answer. I have another question in the link you posted
> some lines above there is written:
> 
> See Automatic Application Deployment for more information. This method
> allows dynamic reconfiguration of the web application, since the main
> conf/server.xml file cannot be reloaded without restarting Tomcat.
> Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended
> to place  elements directly in the server.xml file.  Instead,
> put them in the META-INF/context.xml directory of your WAR file or the
> conf directory as described above.
> 
> I don't want to violate the recommandation of putting context tags into
> the server.xml. Is there another way to tell tomcat to take the
> context.xml attributes from the .war file? Maybe some reconfigurations
> on the tomcat (not the default configuration...).
> 
> Thanks in advance for your answer.
> 
> Kind regards
> Tom
> 
> 
>> Read the docs:
>>
>> http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
>>
>> Context path attribute: "The value of this field must not be set except
>> when statically defining a Context in server.xml, as it will be *infered
>> from the filenames* used for either the .xml context file or the
>> docBase."
>>
>>
>>
>>
>> > Hi folks,
>> >
>> > I'm quiet new to tomcat, but there is already a thing I can't
>> understand:
>> >
>> > I have downloaded the Lambda Probe application version 1.5.0.3. I've
>> got
>>
>> > the .war file called probe.war.
>> > The only thing I did is to rename the file to probe_1.5.0.3.war and
>> > deployed it to my tomcat 5.5.17 (I downloaded the tomcat .zip-file and
>> > started the startup script - no configuration was changed).
>> >
>> > I put my probe_1.5.0.3.war into the folder $CATALINA_HOME\webapps. What
>> i
>> > identified, what was happening now is:
>> >
>> > - The .war file was unpacked to $CATALINA_HOME\webapps\probe_1.5.0.3
>> with
>> > all its content
>> > - The META-INF/context.xml File (that was in the .war file) is
>> copied to
>>
>> > $CATALINA_HOME\conf\Catalina\localhost\probe_1.5.0.3.xml
>> > - The application is started.
>> >
>> > What I was wondering is, that the URL what my application is listening
>> on
>> > is
>> > http://localhost:8080/probe_1.5.0.3
>> >
>> > Does anyone know what I have to do, that my application listens to the
>> > following urls (only one at the time):
>> > http://localhost:8080/probe or even http://localhost:8080/tom/probe
>> >
>> > As I read the documentation, it should work with setting the path
>> > attribute in the context.xml File in the .war file...but i can change
>> that
>> > path attribute to what I want, my applications still listens to:
>> > http://localhost:8080/probe_1.5.0.3
>> >
>> > Thanks for your help...hope to get an answer soon.
>> >
>> > Kind regards
>> > Tom
>> >
>> > Please reply to my e-mail adress directly too!
> 
> _
> Die Vielfalt der Optionen lässt Sie im Internet erfolgreich
> recherchieren. http://search.msn.ch/
> 
> 
> -
> 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: jk connector stripping Content-Type?

2006-06-23 Thread myrealbruno
All,

Apologies, for the records: the content type mapping was missing under Tomcat.
The pages I tested were served by Apache, not by Tomcat. Apache seem to insert 
the content type if Tomcat does not send it, while
IIS does not.

Sorry again,
br1.

- Original Message - 
From: "myrealbruno" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, June 22, 2006 1:42 PM
Subject: jk connector stripping Content-Type?


> Hello,
>
> I am using the JK connector version 1.2.15 with IIS 5.
> When trying to load through IIS a powerpoint ppt file served by Tomcat I get 
> only garbage (it might be the binary displayed in the
> browser).
> I can see getting the HEAD through IIS that the Content-Type is not there, 
> while opening the same file directly from Tomcat
reports
> the correct Content-Type (application/vnd.ms-powerpoint).
>
> I made a try with pdf and doc extensions and both work.
>
> Is this a bug in the JK connector?
> Has anyone experienced this?
>
> Thank you all very much in advance,
> br1.
>
>
>
>



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



Separate JVM's for TOMCAT

2006-06-23 Thread birendar . waldiya
Hi ,
 Can anyone tell me how to make two separate JVM of a single installation
of tomcat server.
Remember I dont want different context , but tow separate JVM , is it
possible ?
Or tomcat will only be the solution ?

Thanks
Regards
Birendar S Waldiya
=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you



-
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: what happens with the content.xml file

2006-06-23 Thread tom ot

Hi pid,
thanks for your answer. I have another question in the link you posted some 
lines above there is written:


See Automatic Application Deployment for more information. This method 
allows dynamic reconfiguration of the web application, since the main 
conf/server.xml file cannot be reloaded without restarting Tomcat. Please 
note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended to place 
 elements directly in the server.xml file.  Instead, put them in 
the META-INF/context.xml directory of your WAR file or the conf directory as 
described above.


I don't want to violate the recommandation of putting context tags into the 
server.xml. Is there another way to tell tomcat to take the context.xml 
attributes from the .war file? Maybe some reconfigurations on the tomcat 
(not the default configuration...).


Thanks in advance for your answer.

Kind regards
Tom



Read the docs:

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

Context path attribute: "The value of this field must not be set except
when statically defining a Context in server.xml, as it will be *infered
from the filenames* used for either the .xml context file or the docBase."




> Hi folks,
>
> I'm quiet new to tomcat, but there is already a thing I can't
understand:
>
> I have downloaded the Lambda Probe application version 1.5.0.3. I've got

> the .war file called probe.war.
> The only thing I did is to rename the file to probe_1.5.0.3.war and
> deployed it to my tomcat 5.5.17 (I downloaded the tomcat .zip-file and
> started the startup script - no configuration was changed).
>
> I put my probe_1.5.0.3.war into the folder $CATALINA_HOME\webapps. What
i
> identified, what was happening now is:
>
> - The .war file was unpacked to $CATALINA_HOME\webapps\probe_1.5.0.3
with
> all its content
> - The META-INF/context.xml File (that was in the .war file) is copied to

> $CATALINA_HOME\conf\Catalina\localhost\probe_1.5.0.3.xml
> - The application is started.
>
> What I was wondering is, that the URL what my application is listening
on
> is
> http://localhost:8080/probe_1.5.0.3
>
> Does anyone know what I have to do, that my application listens to the
> following urls (only one at the time):
> http://localhost:8080/probe or even http://localhost:8080/tom/probe
>
> As I read the documentation, it should work with setting the path
> attribute in the context.xml File in the .war file...but i can change
that
> path attribute to what I want, my applications still listens to:
> http://localhost:8080/probe_1.5.0.3
>
> Thanks for your help...hope to get an answer soon.
>
> Kind regards
> Tom
>
> Please reply to my e-mail adress directly too!


_
Die Vielfalt der Optionen lässt Sie im Internet erfolgreich recherchieren. 
http://search.msn.ch/



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



HTTPS client connection from JSP

2006-06-23 Thread Rainer Frey
Hi all,

I have following problem: a JSP opens a HTTPS connection to read a web 
page's content. On one server this fails with:
javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: No trusted certificate found
at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA12275)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA12275)
at 
sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA12275)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA12275)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:626)
at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(DashoA12275)
at
org.apache.jsp.test_005fmrf_jsp._jspService(test_005fmrf_jsp.java:181)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

The target site has a valid Equifax Global Secure eBusiness CA 
certificate. The root certificate is included in JDK's cacert keystore. 
Confusing is: on another server it works, with same versions of Tomcat 
(5.0.24) and Java (1.4.2_10). Main difference is, that the non-working 
server has a HTTPS connector itself, with a Thawte SSL certificate. The 
JSP in question isn't accessed with HTTPS though. The working test 
server had no HTTPS defined, but I added one and created a self-signed 
certificate, and it still worked.

Configuration of non-working server:


${catalina.home}/../webapps/.keystore only contains the server 
certificate, not trusted certificate entries. As you see, a 
trustStoreFiel is not set, so the JDK default cacerts should be used. 
The CA root certificate of our own server certificate is also not 
included in the keystore, but is by default in cacerts. HTTPS to this 
server works.

Configuration of working server:

${catalina.home}/../webapps/.keystore only contains the self-signed 
certificate. Difference is AFAIS only self-signed vs. CA signed 
certificate. My collegue did additional tests with the result: it works 
on server that have no HTTPS configured, and on server that do HTTPS 
with self-signed certificates. But it does not work on server with CA 
signed SSL certificates.

Any ideas what the problem might be?

Rainer Frey
-- 
Software Development
--
Inxmail GmbH
Kaiser-Joseph-Str. 274, 79098 Freiburg, Germany
Web http://www.inxmail.de

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