Apache+mod_jk+Tomcat in openSUSE 10.3

2008-05-21 Thread Tomás Tormo

Hi
  I'm gonna install apache+mod_jk+tomcat in openSuse 10.3, but 
according to the howto's I've seen on the internet, I should create a 
virtual host in apache in order to make it work. In my experience in 
other distros (Ubuntu, CentOs), this is not necessary... then... should  
I create that virtual host? ( i'm asking this because other guy I met 
couldn't make it work...)


Thank you very much

--
Un saludo,

Tomás Tormo Franco

Indenova, S.L.
Tels.: +34 963 81 99 47 
http://www.indenova.com
mailto:[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: How to make my web application the ROOT application

2008-05-21 Thread Mark Thomas

ryan webb wrote:

Hello,

I am using Tomcat 6.0.14.
I renamed the original ROOT folder to adminstuff and I made my web app as
the ROOT.

I checked by typing the *http://localhost/* and I saw my web application. =)
Now when I try to access *http://localhost/adminstuff/* It displays the
Tomcat Console, however when I click Status OR Tomcat Manager.
Tomcat displays, HTTP status 404 the requested resource is not available.

I need to make my web app function as ROOT while maintaining the access to
the Tomcat console so I can still administer the site.


It is just the links that are broken (they have been fixed for the next 
release). Just go directly to the pages eg http://localhost/manager/html


Note that the manager is *not* part of the ROOT webapp. ROOT just provides 
a few helpful links.


Mark


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



Re: JNDI Connection Pooling

2008-05-21 Thread Mark Thomas

Hanmay Udgiri wrote:

Hi
I am currently using connection pooling in tomcat.
The code is as below
I have a context.xml.default placed in Tomcat install
directory/conf/[enginename]/[hostname]/ file which has below code.
Context
Resource
  name=jdbc/mylogger
 auth=Container
 factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory
 type=javax.sql.DataSource
 removeAbandoned=true
 maxActive=20
 maxIdle=10
 maxWait=-1
 removeAbandonedTimeout=60 /
/Context

Where as in Java code i am setting the values of Userd,pwd driverclass and
URL.
*My question here is Is there any effect,If I am not specifying the these
values in context.xml.default???*

Context initContext = new InitialContext();
Context envContext = (Context) initContext.lookup(java:comp/env);
DataSource ds = (DataSource) envContext.lookup(jdbc/mylogger);
((org.apache.tomcat.dbcp.dbcp.BasicDataSource) ds).setUsername(sUserID);
((org.apache.tomcat.dbcp.dbcp.BasicDataSource) ds).setPassword(sPassword);
((org.apache.tomcat.dbcp.dbcp.BasicDataSource)
ds).setDriverClassName(jdbcDriverClass);
((org.apache.tomcat.dbcp.dbcp.BasicDataSource)
ds).setUrl(jdbcDriverConnectURL + dbServiceName);
dbConnection = ds.getConnection();


Does this work? Do you get nay errors in the logs?

Mark

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



RE: Manager Application (Tomcat 5.5.26)

2008-05-21 Thread Nuno Manuel Martins
Hi,

I did just that, unfortunately I am getting the same error :(

May 21, 2008 9:27:20 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet HTMLManager
java.lang.ClassNotFoundException: org.apache.catalina.manager.HTMLManagerServlet
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at 
org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:482)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)
May 21, 2008 9:35:03 AM org.apache.catalina.core.StandardWrapperValve invoke
INFO: Servlet HTMLManager is currently unavailable


Any more ideas?

Thanks,
Nuno
-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: terça-feira, 20 de Maio de 2008 12:13
To: Tomcat Users List
Subject: RE: Manager Application (Tomcat 5.5.26)

 From: David Smith [mailto:[EMAIL PROTECTED]
 Subject: Re: Manager Application (Tomcat 5.5.26)

 If I were you, I'd download a fresh copy of tomcat 5.5 (or just unzip
 the downloaded version from before) and recopy server/webapps/manager
 from the archive to your installed tomcat.

I'd suggest going farther and just throwing away the existing Tomcat
installation, since it's obviously been corrupted in ways unknown.
Start over with a fresh download and a fresh installation, update
conf/tomcat-users.xml, and verify that the manager app works.  Once
that's done, carefully make any config changes for the webapps you want
to deploy, taking notes so you can back out anything that doesn't work.

 - Chuck


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

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


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



Faking a login through JAAS into tomcat.

2008-05-21 Thread David Cassidy
Hey Guys,

I've got a page that allows a user to join up to the service.
I want them then to continue using the site as a logged in user.
I'm sure there's a really really easy way to fake the login.
I've got a custom JAAS login module which authenticates the user.

The flow is 

User goes to join page 
fills in details presses join

Request comes back into the system validates the users details - the
usual
As a response to a successful join 
the user is sent to a page in the logged in section of the site.

Now the issue is that the user is being presented the login page
requesting the username / password - i don't want that :)

what do I need to do to make it work ?

I'm using tomcat 6, java 1.6 on linux

Thanks

D


-
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: JNDI Connection Pooling

2008-05-21 Thread Hanmay Udgiri
Yes this is working
I am able to get connection pool object...


Thanks and Regards
hanmaya


On 5/21/08, Mark Thomas [EMAIL PROTECTED] wrote:

 Hanmay Udgiri wrote:

 Hi
 I am currently using connection pooling in tomcat.
 The code is as below
 I have a context.xml.default placed in Tomcat install
 directory/conf/[enginename]/[hostname]/ file which has below code.
 Context
 Resource
  name=jdbc/mylogger
 auth=Container
 factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory
 type=javax.sql.DataSource
 removeAbandoned=true
 maxActive=20
 maxIdle=10
 maxWait=-1
 removeAbandonedTimeout=60 /
 /Context

 Where as in Java code i am setting the values of Userd,pwd driverclass and
 URL.
 *My question here is Is there any effect,If I am not specifying the these
 values in context.xml.default???*

 Context initContext = new InitialContext();
 Context envContext = (Context) initContext.lookup(java:comp/env);
 DataSource ds = (DataSource) envContext.lookup(jdbc/mylogger);
 ((org.apache.tomcat.dbcp.dbcp.BasicDataSource) ds).setUsername(sUserID);
 ((org.apache.tomcat.dbcp.dbcp.BasicDataSource) ds).setPassword(sPassword);
 ((org.apache.tomcat.dbcp.dbcp.BasicDataSource)
 ds).setDriverClassName(jdbcDriverClass);
 ((org.apache.tomcat.dbcp.dbcp.BasicDataSource)
 ds).setUrl(jdbcDriverConnectURL + dbServiceName);
 dbConnection = ds.getConnection();


 Does this work? Do you get nay errors in the logs?

 Mark

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




-- 
Thanks and Regards
Hanmayya Udgiri


Re: JNDI Connection Pooling

2008-05-21 Thread Mark Thomas

Hanmay Udgiri wrote:

Yes this is working
I am able to get connection pool object...


And the database connection works? That surprises me.

Mark



On 5/21/08, Mark Thomas [EMAIL PROTECTED] wrote:

Hanmay Udgiri wrote:


Hi
I am currently using connection pooling in tomcat.
The code is as below
I have a context.xml.default placed in Tomcat install
directory/conf/[enginename]/[hostname]/ file which has below code.
Context
Resource
 name=jdbc/mylogger
auth=Container
factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory
type=javax.sql.DataSource
removeAbandoned=true
maxActive=20
maxIdle=10
maxWait=-1
removeAbandonedTimeout=60 /
/Context

Where as in Java code i am setting the values of Userd,pwd driverclass and
URL.
*My question here is Is there any effect,If I am not specifying the these
values in context.xml.default???*

Context initContext = new InitialContext();
Context envContext = (Context) initContext.lookup(java:comp/env);
DataSource ds = (DataSource) envContext.lookup(jdbc/mylogger);
((org.apache.tomcat.dbcp.dbcp.BasicDataSource) ds).setUsername(sUserID);
((org.apache.tomcat.dbcp.dbcp.BasicDataSource) ds).setPassword(sPassword);
((org.apache.tomcat.dbcp.dbcp.BasicDataSource)
ds).setDriverClassName(jdbcDriverClass);
((org.apache.tomcat.dbcp.dbcp.BasicDataSource)
ds).setUrl(jdbcDriverConnectURL + dbServiceName);
dbConnection = ds.getConnection();


Does this work? Do you get nay errors in the logs?

Mark

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








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



RE: Programatically selecting SSL certificate

2008-05-21 Thread Peter Crowther
 From: Yuval Perlov [mailto:[EMAIL PROTECTED]
 Is anyone aware of a way to programatically decide which SSL
 certificate to use?
 I am exploring the option of letting the user upload her own
 certificate. Of course
 I only want that user to use the newly uploaded certificate.

Do you mean the server certificate, or a client certificate?  If you mean the 
server certificate, this is prevented by the SSL spec.  SSL negotiation happens 
at connection time - before the HTTP request containing the URL, host header or 
any authentication information is transmitted.  So the server certificate that 
is used cannot depend on which user is present or which URL (or even site) they 
are requesting.  You know the IP address requesting the connection, but that 
may be a multi-user system and cannot be used to distinguish users.

- Peter

-
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: JNDI look issue with Tomcat during server start up

2008-05-21 Thread Hanmay Udgiri
Hi Filip,
After using code

StandardServer server =
(StandardServer) ServerFactory.getServer();
context = server.getGlobalNamingContext();

And putting the JNDI resource definition into servler.xml
GlobalNamingResources
element ,my connection polling code is working fine.


But my question still here is,I had JNDI loop up  code in a Listener class
which extends ServletContextListener which is working fine.(This is also
called during server start up)

And Also my start up class which was called after the listener class(bze in
tomcat log files listener was called first),then also I was getting Name
comp is not bound in this Context?
Why the context is available to my listener class and not my start up class
even though my connection pooling code is called after the listener.

Can you explain some thing related to how is sequence of binding of
java:com/env/jdbc
objects is done
Or any links/articles which explains this.


Thanks and Regards
Hanmaya

On Thu, May 15, 2008 at 8:41 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED]
wrote:

 this line here

 initContext.lookup(java:comp/env);

 will only work if it is run inside an application, hence you get the
 exception


 that's why I pointed you to an example, here is the link

 http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/realm/DataSourceRealm.java?revision=543691view=markup

 look at the method

 *protected* Connection open() {

 to see an example of how you would get hold of a JNDI datasource when
 running inside tomcat server code, and not web application code

 Filip





 Hanmay Udgiri wrote:

 Hi Filip,
 I could not understand what u meant.
 I am calling getConnection() method which has the below code server
 startup,like after user logs into the application and does a operation,the
 code works.

 But If I call the getConnection method during the server start up I am
 getting exception.

 javax.naming.NameNotFoundException: Name comp is not bound in this Context

 I have written a Listener class which implements ServletContextListener,I
 have written the same JNDI code in that too and this works fine.
 Here my start up class calls the getConnection() method before the my
 Listenerclass.

 *Is the issue because the server has not fully intialized/bound the JNDI
 objects.*
 And My start up class is calling the getConnection() method before server
 inialize

 System.setProperty(java.naming.factory.initial,
 org.apache.naming.java.javaURLContextFactory);
System.setProperty(java.naming.factory.url.pkgs,
 org.apache.naming);
Context initContext = new InitialContext();
// java:comp/env should not be changed
// it is the top of the JNDI context
Context envContext = (Context)
 initContext.lookup(java:comp/env);
// jdbc/DBLogger is the name that will be used in
 context.xml.default
DataSource ds = (DataSource)
 envContext.lookup(jdbc/customer);
((org.apache.tomcat.dbcp.dbcp.BasicDataSource)
 ds).setUsername(sUserID);
((org.apache.tomcat.dbcp.dbcp.BasicDataSource)
 ds).setPassword(sPassword);
((org.apache.tomcat.dbcp.dbcp.BasicDataSource)
 ds).setDriverClassName(jdbcDriverClass);
((org.apache.tomcat.dbcp.dbcp.BasicDataSource)
 ds).setUrl(jdbcDriverConnectURL + dbServiceName);
System.out.println(Sucess);
dbConnection = ds.getConnection();

 Thanks and Regards
 Hanmaya


 On Thu, May 15, 2008 at 6:58 PM, Filip Hanik - Dev Lists 
 [EMAIL PROTECTED]
 wrote:



 the best thing to do is to look into DataSourceRealm.java as part of the
 tomcat source code.
 the method open(), shows how server code would look up both a local or a
 global data source

 Filip
 Hanmay Udgiri wrote:



 Hi
 I have implemented datasource using JNDI look up.
 The code work fine If I call the code during any User action.
 But If try to call the same code during the tomcat server start up I get
 an
 exception

 javax.naming.NameNotFoundException: Name comp is not bound in this
 Context

 I am using Tomcat 5.5 and Oracle 9

 I am using JNDI look for connection pooling.
 We have a ITSMain class which uses MBeanServer to load the classes.
 This class has a ServiceManager class which load all start up services
 and
 initializes it.
 During this we have Connection pooling class which uses JNDI look up.
 So I am getting below exception If I set my JNDI class to initialize at
 start up.
 But If I don't set my class to initialize at server start up,Then I
 don't
 get any exception.



  

 No virus found in this incoming message.
 Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.16/1433 -
 Release Date: 5/14/2008 4:44 PM




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

RE: Programatically selecting SSL certificate

2008-05-21 Thread Peter Crowther
 From: Yuval Perlov [mailto:[EMAIL PROTECTED]
 Is there a least a way to programatically add connectors at run time?

If there is (and I'm not sure), you'll find it via embedded Tomcat, which 
allows creation of connectors through code.  I don't know whether connectors 
that are created after Tomcat starts will work correctly, but it *is* possible 
to create these things programmatically.

- Peter

-
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: Manager Application (Tomcat 5.5.26)

2008-05-21 Thread David Smith
Can you go through the exact steps you took in installing tomcat?  Also 
where exactly did you get your tomcat?  Lastly, what Java are you 
using?  I ask because the binary download of tomcat from one of the 
Apache mirrors just plain works out of the box with the Sun JVM.  The 
error you are getting makes me think one or more jar libraries may not 
be in the correct location or the JVM is one of the less useful ones 
like gnu java.


--David

Nuno Manuel Martins wrote:

Hi,

I did just that, unfortunately I am getting the same error :(

May 21, 2008 9:27:20 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet HTMLManager
java.lang.ClassNotFoundException: org.apache.catalina.manager.HTMLManagerServlet
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at 
org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:482)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)
May 21, 2008 9:35:03 AM org.apache.catalina.core.StandardWrapperValve invoke
INFO: Servlet HTMLManager is currently unavailable


Any more ideas?

Thanks,
Nuno
-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: terça-feira, 20 de Maio de 2008 12:13
To: Tomcat Users List
Subject: RE: Manager Application (Tomcat 5.5.26)

  

From: David Smith [mailto:[EMAIL PROTECTED]
Subject: Re: Manager Application (Tomcat 5.5.26)

If I were you, I'd download a fresh copy of tomcat 5.5 (or just unzip
the downloaded version from before) and recopy server/webapps/manager
from the archive to your installed tomcat.



I'd suggest going farther and just throwing away the existing Tomcat
installation, since it's obviously been corrupted in ways unknown.
Start over with a fresh download and a fresh installation, update
conf/tomcat-users.xml, and verify that the manager app works.  Once
that's done, carefully make any config changes for the webapps you want
to deploy, taking notes so you can back out anything that doesn't work.

 - Chuck


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

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


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

  



--
David Smith
Network Operations Supervisor
Department of Entomology
Cornell University
2132 Comstock Hall
Ithaca, NY 14853
Phone: (607) 255-9571
Fax: (607) 255-0940


-
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 6 and Servlet filter problem

2008-05-21 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Manoj,

ManojS wrote:
| Thank you for the reply. I created a sample web app with one JSP and a
| filter, in the same way you did with dummy JSP. It is working. So,
what you
| said will be correct, the problem is in the filter.
|
| How I know that the doFilter method is not executing is, while
analyzing the
| filter class provided by a third-party vendor, I could see some log4j info
| messages are putting from the doFilter method, which is not printing in my
| tomcat log.

The stack trace does not lie. You may have been looking in the wrong log
file, or the log priority of the logger or the appender in log4j may
have been configured such that your log message is ignored.

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

iEYEARECAAYFAkg0LvEACgkQ9CaO5/Lv0PBUzACgrdbc70D7WkANk7ty5emlRLBq
eqMAoIB6V5/lmOXAbeZJyr9dnfBp8U5d
=UiEE
-END PGP SIGNATURE-

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



Add context definition

2008-05-21 Thread Riaz, Bob
Hi,

 

I'm using:

*   Eclipse JEE
*   Tomcat 6
*   Windows XP Pro

 

Created a new web app, and tried to see the index.html page, just to
test. Comes up blank. There is no context in server.xml for my project.
Update context definition in Eclipse doesn't do anything.

Any thoughts would be greatly appreciated. Doesn't seem to be anything
on the web that helps this particular situation.

Thanks!

 

Bob 


 
This email may contain material confidential to
Pearson.  If you were not an intended recipient, 
please notify the sender and delete all copies. 
We may monitor email to and from our network. 



What means the second number of Next Maintenance status ?

2008-05-21 Thread Stephanie Wullbieter
Hello,

with mod_jk 1.2.23 status worker there is the output

Next Maintenance

The first seems to be the countdown until next maintenance. But what does the 
second number stand for? Could not find it in the docs.

Thank You,

Stephanie
-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/[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]



Tomcat Users List

2008-05-21 Thread Riaz, Bob
Hi,

This is my web.xml file. Nothing special. I'm just getting started.

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app xmlns=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
http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd;
version=2.4/

web-app
/web-app

- when I start Tomcat, I get the following error
org.xml.sax.SAXParseException: The markup in the document following the
root element must be well-formed.
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unkno
wn Source)
at
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644)
at
org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextCo
nfig.java:369)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1062)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j
ava:261)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:117)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4252
)
at
org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:11
14)
at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1212)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:29
3)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:117)
at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.j
ava:1337)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
essChildren(ContainerBase.java:1601)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
essChildren(ContainerBase.java:1610)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(
ContainerBase.java:1590)
at java.lang.Thread.run(Unknown Source)
SEVERE: Occurred at line 11 column 6

Any thoughts would be deeply appreciated.
Many thanks.

Bob
 
This email may contain material confidential to
Pearson.  If you were not an intended recipient, 
please notify the sender and delete all copies. 
We may monitor email to and from our network. 


-
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 Users List

2008-05-21 Thread Antonio Petrelli
2008/5/21 Riaz, Bob [EMAIL PROTECTED]:
 web-app xmlns=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
 http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd;
version=2.4/

web-app  REMOVE THIS --
/web-app

Remove the extra web-app tag.

Antonio

-
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 Users List

2008-05-21 Thread Riaz, Bob
Thanks, Antonio! 

-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 21, 2008 10:08 AM
To: Tomcat Users List
Subject: Re: Tomcat Users List

2008/5/21 Riaz, Bob [EMAIL PROTECTED]:
 web-app xmlns=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
 http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd;
version=2.4/

web-app  REMOVE THIS --
/web-app

Remove the extra web-app tag.

Antonio

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


 
This email may contain material confidential to
Pearson.  If you were not an intended recipient, 
please notify the sender and delete all copies. 
We may monitor email to and from our network. 


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



Data lost on response in 6.0.16, works fine in 6.0.14

2008-05-21 Thread Chris Stewart

We're noticing an interesting behavior after upgrading to Tomcat
6.0.16 from 5.5.  Our responses are generally large XML documents.
Once we upgraded our QA lab to Tomcat 6.0.16, we've noticed that these
XML documents are being truncated.  Has there been a change in how
Tomcat handles the size of responses?

For reference, Tomcat 5.5 has been working great for us.  Also, we
installed 6.0.14 as a test and that version worked fine as well.  Did
something change from .14 to .16 that would cause our specific problem?

Chris Stewart
[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: Manager Application (Tomcat 5.5.26)

2008-05-21 Thread Nuno Manuel Martins

Well... basically I untared the package I downloaded from the official website 
and inserted my webapps which work fine.

My only belief at this point in time is that somehow I screwed up the 
server.xml file... can someone take a look (attached) and see something out of 
place?

I know the connectors part might seem strange but we really want to listen on 
those two different ports :)

Thank you.

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: quarta-feira, 21 de Maio de 2008 12:55
To: Tomcat Users List
Subject: Re: Manager Application (Tomcat 5.5.26)

Can you go through the exact steps you took in installing tomcat?  Also
where exactly did you get your tomcat?  Lastly, what Java are you
using?  I ask because the binary download of tomcat from one of the
Apache mirrors just plain works out of the box with the Sun JVM.  The
error you are getting makes me think one or more jar libraries may not
be in the correct location or the JVM is one of the less useful ones
like gnu java.

--David

Nuno Manuel Martins wrote:
 Hi,

 I did just that, unfortunately I am getting the same error :(

 May 21, 2008 9:27:20 AM org.apache.catalina.core.StandardWrapperValve invoke
 SEVERE: Allocate exception for servlet HTMLManager
 java.lang.ClassNotFoundException: 
 org.apache.catalina.manager.HTMLManagerServlet
 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 at 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
 at 
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
 at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127)
 at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
 at 
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
 at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
 at 
 org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:482)
 at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
 at 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
 at 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
 at 
 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
 at 
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
 at 
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
 at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
 at java.lang.Thread.run(Thread.java:595)
 May 21, 2008 9:35:03 AM org.apache.catalina.core.StandardWrapperValve invoke
 INFO: Servlet HTMLManager is currently unavailable


 Any more ideas?

 Thanks,
 Nuno
 -Original Message-
 From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
 Sent: terça-feira, 20 de Maio de 2008 12:13
 To: Tomcat Users List
 Subject: RE: Manager Application (Tomcat 5.5.26)


 From: David Smith [mailto:[EMAIL PROTECTED]
 Subject: Re: Manager Application (Tomcat 5.5.26)

 If I were you, I'd download a fresh copy of tomcat 5.5 (or just unzip
 the downloaded version from before) and recopy server/webapps/manager
 from the archive to your installed tomcat.


 I'd suggest going farther and just throwing away the existing Tomcat
 installation, since it's obviously been corrupted in ways unknown.
 Start over with a fresh download and a fresh installation, update
 conf/tomcat-users.xml, and verify that the manager app works.  Once
 that's done, carefully make any config changes for the webapps you want
 to deploy, taking notes so you can back out anything that doesn't work.

  - Chuck


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

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


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

Re: Manager Application (Tomcat 5.5.26)

2008-05-21 Thread Mark Thomas

Nuno Manuel Martins wrote:

Well... basically I untared the package I downloaded from the official website 
and inserted my webapps which work fine.


If you had followed Charles's advice a few posts back, you would know which 
of your changes broke the config.



My only belief at this point in time is that somehow I screwed up the 
server.xml file... can someone take a look (attached) and see something out of 
place?

I know the connectors part might seem strange but we really want to listen on 
those two different ports :)


This is a complete mess. Comments in-line.

Service name=Catalina

Engine name=Catalina defaultHost=localhost
Realm className=org.apache.catalina.realm.UserDatabaseRealm 
resourceName=UserDatabase/


Host name=localhost appBase=/usr/local/tomcat/webapps/

Context path=/ 
docBase=/usr/local/tomcat/webapps/matm-bo reloadable=true 
crossContext=true/


Problem 1. matm-bo is going to get deployed twice. Once under / and once 
under /matm-bo


Context path=/matm-bo 
docBase=/usr/local/tomcat/webapps/matm-bo reloadable=true 
crossContext=true/


Problem 2. /matm-bo may now be deployed a third time.

Context path=/manager 
docBase=/usr/local/tomcat/server/webapps/manager reloadable=true 
crossContext=true/


Problem 3. The manager webapp needs to be privileged


/Host

Host name=my.host.com 
appBase=/usr/local/tomcat/webapps/matm-fe



Context path=/ 
docBase=/usr/local/tomcat/webapps/matm-fe reloadable=true 
crossContext=true/


Problem 4. appBase must not equal docBase. This will cause a world of pain 
for webapps for this host.


Context path=/matm-fe 
docBase=/usr/local/tomcat/webapps/matm-fe reloadable=true 
crossContext=true/


Problem 5. More appBase must not equal docBase pain and more duplicate 
deployments.


Mark

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



RE: Manager Application (Tomcat 5.5.26)

2008-05-21 Thread Nuno Manuel Martins
Thanks for the insight... will follow your suggestions.

Regards,
Nuno


-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED]
Sent: quarta-feira, 21 de Maio de 2008 17:04
To: Tomcat Users List
Subject: Re: Manager Application (Tomcat 5.5.26)

Nuno Manuel Martins wrote:
 Well... basically I untared the package I downloaded from the official 
 website and inserted my webapps which work fine.

If you had followed Charles's advice a few posts back, you would know which
of your changes broke the config.

 My only belief at this point in time is that somehow I screwed up the 
 server.xml file... can someone take a look (attached) and see something out 
 of place?

 I know the connectors part might seem strange but we really want to listen on 
 those two different ports :)

This is a complete mess. Comments in-line.

 Service name=Catalina

 Engine name=Catalina defaultHost=localhost
 Realm className=org.apache.catalina.realm.UserDatabaseRealm
resourceName=UserDatabase/

 Host name=localhost appBase=/usr/local/tomcat/webapps/

 Context path=/
docBase=/usr/local/tomcat/webapps/matm-bo reloadable=true
crossContext=true/

Problem 1. matm-bo is going to get deployed twice. Once under / and once
under /matm-bo

 Context path=/matm-bo
docBase=/usr/local/tomcat/webapps/matm-bo reloadable=true
crossContext=true/

Problem 2. /matm-bo may now be deployed a third time.

 Context path=/manager
docBase=/usr/local/tomcat/server/webapps/manager reloadable=true
crossContext=true/

Problem 3. The manager webapp needs to be privileged


 /Host

 Host name=my.host.com
appBase=/usr/local/tomcat/webapps/matm-fe


 Context path=/
docBase=/usr/local/tomcat/webapps/matm-fe reloadable=true
crossContext=true/

Problem 4. appBase must not equal docBase. This will cause a world of pain
for webapps for this host.

 Context path=/matm-fe
docBase=/usr/local/tomcat/webapps/matm-fe reloadable=true
crossContext=true/

Problem 5. More appBase must not equal docBase pain and more duplicate
deployments.

Mark

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


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



TOMCAT AND RMI or JTDS

2008-05-21 Thread Gustavo A Gonzalez
Hello all! I have five tomcat server sending data to a MS SQL database
server through an RMI, over a wan schema. When the link between any tomcat
server and the RMI server is down or slow I can’t write data and I lose in
the air that information. Im not java developer but I want to understand how
RMI works in this schema to use any other of my tomcat servers as a gateway
to the RMI server when the wan link goes down. I think that using JTDS is
the way to do the job in a way more efficient than RMI, is that right?. Data
goes through this schema:

 

JAVA-PROCEDURE --WAN--- RMI/API server  SQL SERVER

 

Some data loses going to the RMI, but I don know what request are received
by the RMI and what no! but I know what all request are sended to the RMI.

Thanks for any idea.

 

Gustavo A. González
Dto. de Infraestructura
Despegar.com, Inc.
[EMAIL PROTECTED] 

 



Deploy applications using /user/MyServlet as name

2008-05-21 Thread Cristian Bullokles
I'd like to deploy a war file using /user/myServlet as path, but when
I tried I've received that error:

FAIL - Failed to deploy application at context path /user/MyServlet.

Id like to have an user with different servlets deployed and use them
in that way:


http://localhost:8080/user1/MyServlet
http://localhost:8080/user1/MyServlet1
http://localhost:8080/user1/MyServlet2
etc.
one of this servlets will be axis2 and we want to use it in that way:

http://localhost:8080/user1/axis2

Regards
Cristian

-
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 5.0.27 reload=true

2008-05-21 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Susan,

Susan G. Conger wrote:
| Can someone tell me from experience what happens if a user is using a web
| app and I do an update and reload=true.  Will the user get kicked off and
| have to re-sign on?  Will they lose whatever they are working on?

That depends on your configuration and the exact timing of the reload.

If the request is accepted for processing before the reload, then the
user should notice nothing -- the webapp will complete all in-progress
requests before it shuts down.

If the request is accepted during the re-load, the user might get a 503
or 500 error, depending on exactly when the request comes in.

After the reload, the request should be handled normally.

If you are using server sessions, and you are not using a
PersistentManager to save the sessions to a file during webapp reloads,
then any active sessions will be lost during the restart. If you are
using FORM-based logins, then you will also lose those logins and your
users will have to re-authenticate. If you are using BASIC or
CLIENT-CERT authentication, then the user should not have to
re-authenticate, but the user's session will still be gone.

Finally, if you have stored any objects in a user's session that are not
Serializable, then that session will certainly be lost during the
restart... and might possibly preclude the loading of /all/ sessions
(meaning that one bad session could disable session persistence across
restarts entirely).

Hope that helps,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkg0igYACgkQ9CaO5/Lv0PA0oACdGU8dtZC17WJslxkshVVMNiyL
bRYAn17ICgSmjZS6UB4L24C20d4AArjg
=u1wP
-END PGP SIGNATURE-

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



RE: Manager Application (Tomcat 5.5.26)

2008-05-21 Thread Caldarale, Charles R
 From: Nuno Manuel Martins [mailto:[EMAIL PROTECTED]
 Subject: RE: Manager Application (Tomcat 5.5.26)

 My only belief at this point in time is that somehow I
 screwed up the server.xml file... can someone take a look
 (attached) and see something out of place?

As Mark said, pretty much everything.  You really, really shouldn't put the 
Context elements in server.xml - it just makes things much more complicated 
whenever you want to change something for a single webapp.  Put them where they 
belong, which is usually the each webapp's META-INF/context.xml file.  Dumping 
them all into server.xml may appear easier at first, but it just makes 
everything more difficult in the medium and long runs.

Also, when you do put the Context elements in the proper locations, remove 
the path and docBase attributes, since they must not be used when doing things 
the right way.

 - Chuck


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

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



RE: Deploy applications using /user/MyServlet as name

2008-05-21 Thread Caldarale, Charles R
 From: Cristian Bullokles [mailto:[EMAIL PROTECTED]
 Subject: Deploy applications using /user/MyServlet as name

 I'd like to deploy a war file using /user/myServlet as path, but when
 I tried I've received that error:

 FAIL - Failed to deploy application at context path /user/MyServlet.

Care to share with us a few basics?  Perhaps the version of Tomcat you're 
using, what you put in the Context element for the webapp, or any other real 
information?

 Id like to have an user with different servlets deployed and use them
 in that way:
 http://localhost:8080/user1/MyServlet
 http://localhost:8080/user1/MyServlet1
 http://localhost:8080/user1/MyServlet2
 http://localhost:8080/user1/axis2

Are you by any chance confusing servlet with webapp?  A single webapp is 
comprised of one or more related servlets.  Do you actually have multiple 
independent webapps?

 - Chuck


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

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



RE: Add context definition

2008-05-21 Thread Caldarale, Charles R
 From: Riaz, Bob [mailto:[EMAIL PROTECTED]
 Subject: Add context definition

 Created a new web app, and tried to see the index.html page, just to
 test. Comes up blank. There is no context in server.xml for
 my project.

That's good, because there shouldn't be.  Look in your webapp's 
META-INF/context.xml file for the Context element.

 Update context definition in Eclipse doesn't do anything.

Sounds like an Eclipse problem, not Tomcat.

Try running your webapp without Eclipse and see what happens.

 - Chuck


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

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



Re: Deploy applications using /user/MyServlet as name

2008-05-21 Thread Johnny Kewl


- Original Message - 
From: Cristian Bullokles [EMAIL PROTECTED]


Cristian, I think you confusing terminolgy, so the guru's have no idea what 
you saying ;)


I need help here people!

I think you mean /User/WebApp yes?

If so TC is a little strange in the area, an I'm not sure how to do the sub 
context.


Its think one has to name the context file as user#context.xml and 
path=/webappsubcontext

... or something

The real problem is that subcontexts use up context space... so something 
like /this/feels/good

Take /this
So maybe consider prepending the user name like /USER1-OrigWebAppName
Which the deployer will probably like.

I leave it for the gurus to discuss more... but show them what you actually 
doing, not just what you want... then if the terminology is screwed up, 
they'll get the idea anyway ;)


Good Luck ;)





I'd like to deploy a war file using /user/myServlet as path, but when
I tried I've received that error:

FAIL - Failed to deploy application at context path /user/MyServlet.

Id like to have an user with different servlets deployed and use them
in that way:


http://localhost:8080/user1/MyServlet
http://localhost:8080/user1/MyServlet1
http://localhost:8080/user1/MyServlet2
etc.
one of this servlets will be axis2 and we want to use it in that way:

http://localhost:8080/user1/axis2

Regards
Cristian

---
HARBOR: http://coolharbor.100free.com/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
--- 



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



Data lost on response in 6.0.16, works fine in 6.0.14

2008-05-21 Thread Chris Stewart

We're noticing an interesting behavior after upgrading to Tomcat
6.0.16 from 5.5.  Our responses are generally large XML documents.
Once we upgraded our QA lab to Tomcat 6.0.16, we've noticed that these
XML documents are being truncated.  Has there been a change in how
Tomcat handles the size of responses?

For reference, Tomcat 5.5 has been working great for us.  Also, we
installed 6.0.14 as a test and that version worked fine as well.  Did
something change from .14 to .16 that would cause our specific problem?

Chris Stewart
[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: Data lost on response in 6.0.16, works fine in 6.0.14

2008-05-21 Thread Alex Barclay

Chris Stewart wrote:

We're noticing an interesting behavior after upgrading to Tomcat
6.0.16 from 5.5.  Our responses are generally large XML documents.
Once we upgraded our QA lab to Tomcat 6.0.16, we've noticed that these
XML documents are being truncated.  Has there been a change in how
Tomcat handles the size of responses?

For reference, Tomcat 5.5 has been working great for us.  Also, we
installed 6.0.14 as a test and that version worked fine as well.  Did
something change from .14 to .16 that would cause our specific problem?

I've seen similar problems. Which connectors are you using? Are you 
writing the file or using sendfile from the connector?


Thanks

Alex.


-
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: Data lost on response in 6.0.16, works fine in 6.0.14

2008-05-21 Thread Konstantin Kolinko
It is a bug of 6.0.16 / 5.5.26. See
https://issues.apache.org/bugzilla/show_bug.cgi?id=44494

It occurs for requests that use multibyte code pages (like UTF-8).
Single-byte ones AFAIK are working fine.

-
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: Add context definition

2008-05-21 Thread Konstantin Kolinko
 Created a new web app, and tried to see the index.html page, just to
 test. Comes up blank.

Have you tried
http://localhost:8080/your project name/index.html ?


 There is no context in server.xml for my project.

Yes, there should not be any.

Have a look into  .metadata/.plugins/org.eclipse.wst.server.core/tmp0/


 Doesn't seem to be anything on the web that helps this particular situation.

Have a look at
http://wiki.eclipse.org/WTP_Tomcat_FAQ

Best regards,
K.K.

-
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: Disabling Asserts on Tomcat 5.0.x

2008-05-21 Thread Konstantin Kolinko

 Program: ...Software Foundation\Tomcat 5.0\bin\tomcat5.exe
 File: CheckFailureSnippet.cpp
 Line: 41


Whose code it is?

AFAIK, service startup code for TC 5.5 and 6.0 for Windows comes from
procrun project (http://commons.apache.org/daemon/procrun.html, search
this mailing list archives for details), but that application is
written in C [1], not C++.

[1] 
http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/nt/procrun/src/

I do not know how it is for 5.0, but probably the same.

If the error is in CheckFailureSnippet.cpp, you should find its
source, guess the error, fix and recompile it. If it is in tomcat
code, tomcat sources are available.

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



Unable to start Tomcat

2008-05-21 Thread R. Sriram

Hello,
I just downloaded apache-tomcat-6.0.16.zip, unbundled it and set 
TOMCAT_HOME and CATALINA_HOME appropriately in the User Variables in 
System Environment Variables. I also downloaded and installed JDK and 
set JAVA_HOME and included in PATH in System Variables appropriately.


When I run startup to get Tomcat started in Command Prompt, the Command 
Prompt window disappears and Tomcat doesn't start.

What do I need to do to get Tomcat started
Thanks...rs

-
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: [Fwd: Tomcat manager]

2008-05-21 Thread Konstantin Kolinko
Aren't you using some national characters in your user name or password?

Admin application specifies SetCharacterEncodingFilter in its web.xml
and uses FORM authentication. The Manager one does not specify the
filter and uses BASIC authentication.

Also,
https://issues.apache.org/bugzilla/show_bug.cgi?id=29091

Also, does it work if you access it through the web page of
http://IP_ADDRESS/manager/html/
?


2008/5/14 Khurram H Khan [EMAIL PROTECTED]:
 Hello everyone,

 I have sent an email before regarding tomcat manager. And the issue was that
 I could not use the same username and password to start/stop a webapp using
 http://IP_ADDRESS/manager/stop?path=/My_WebAp . And it keeps popping up an
 input box for username and password. I have the same username and password
 for the admin webapp and it works. But this username and password does not
 work for the manager webapp even though I have the same username and
 password. Let me give you the content of my tomcat-users.xml which are the
 following:

-
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: Unable to start Tomcat

2008-05-21 Thread R. Sriram

Hello,
I corrected TOMCAT_HOME and CATALINA_HOME. Now when I do the startup of 
Tomcat, I get the message JAVA_HOME environment variable is not defined 
correctly.

I have set the JAVA_HOME to C:\Program Files\JSDK2.0.
Thanks...rs
--
R. Sriram wrote:

Hello,
I just downloaded apache-tomcat-6.0.16.zip, unbundled it and set 
TOMCAT_HOME and CATALINA_HOME appropriately in the User Variables in 
System Environment Variables. I also downloaded and installed JDK and 
set JAVA_HOME and included in PATH in System Variables appropriately.


When I run startup to get Tomcat started in Command Prompt, the 
Command Prompt window disappears and Tomcat doesn't start.

What do I need to do to get Tomcat started
Thanks...rs

-
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: Unable to start Tomcat

2008-05-21 Thread Caldarale, Charles R
 From: R. Sriram [mailto:[EMAIL PROTECTED]
 Subject: Re: Unable to start Tomcat

 I have set the JAVA_HOME to C:\Program Files\JSDK2.0.

And what exactly is installed in C:\Program Files\JSDK2.0?  That's not a 
known JVM naming convention.  Sounds like you may need to install a proper one 
(JRE or JDK); download it from:
http://java.sun.com/javase/downloads

You need at least version 1.5, but 6 would be better.

 - Chuck


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

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



Re: How to make my web application the ROOT application

2008-05-21 Thread ryan webb
*Mr. Mark

*Thank you very much for your reply, you have saved me!
It is working like heaven. =)

You are correct about this, it is a broken link.

God bless you man!

On Wed, May 21, 2008 at 3:09 PM, Mark Thomas [EMAIL PROTECTED] wrote:

 ryan webb wrote:

 Hello,

 I am using Tomcat 6.0.14.
 I renamed the original ROOT folder to adminstuff and I made my web app as
 the ROOT.

 I checked by typing the *http://localhost/* and I saw my web application.
 =)
 Now when I try to access *http://localhost/adminstuff/* It displays the
 Tomcat Console, however when I click Status OR Tomcat Manager.
 Tomcat displays, HTTP status 404 the requested resource is not
 available.

 I need to make my web app function as ROOT while maintaining the access to
 the Tomcat console so I can still administer the site.


 It is just the links that are broken (they have been fixed for the next
 release). Just go directly to the pages eg http://localhost/manager/html

 Note that the manager is *not* part of the ROOT webapp. ROOT just provides
 a few helpful links.

 Mark


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




-- 
warmest regards,
Ryan Webb - Philippines

email: [EMAIL PROTECTED]


Re: Unable to start Tomcat

2008-05-21 Thread R. Sriram
Chuck, I had pointed it to a wrong directory. Once I set JAVA_HOME to 
C:\Program Files\Java\jdk1.6.0_06, I am able to start Tomcat. 
Thank-you...rs


Caldarale, Charles R wrote:

From: R. Sriram [mailto:[EMAIL PROTECTED]
Subject: Re: Unable to start Tomcat

I have set the JAVA_HOME to C:\Program Files\JSDK2.0.



And what exactly is installed in C:\Program Files\JSDK2.0?  That's not a 
known JVM naming convention.  Sounds like you may need to install a proper one (JRE or 
JDK); download it from:
http://java.sun.com/javase/downloads

You need at least version 1.5, but 6 would be better.

 - Chuck


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

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


  



-
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: Deploy applications using /user/MyServlet as name

2008-05-21 Thread Cristian Bullokles
Sorry for my confusing terminology. I'll try to explain better.
I'm using Tomcat 6.0.16 and as as Jhonny said, I want to have multiple
WebApplications for each user in my server.
Each user could call applications using the browser in that way:
http://myserver:8080/user1/WebApp1
http://myserver:8080/user1/WebApp2
http://myserver:8080/user2/OtherWebApp1
http://myserver:8080/user2/OtherWebApp2 .

I've deployed one application in my folder using the manager using
this sentence:

http://myserver:8080/manager/deploy?path=/WebApp1war=file:/home/user1/webapps/WebApp1.war

and this work fine, but, when i tried to deploy using the path
including username in the path it fails:

http://myserver:8080/manager/deploy?path=/user1/WebApp1war=file:/home/user1/webapps/WebApp1.war

The returned error is:

FAIL - Failed to deploy application at context path /usuario1/hello

Any idea? I need to declare one context for each application?

Regards
Cristian






On Wed, May 21, 2008 at 8:18 PM, Johnny Kewl [EMAIL PROTECTED] wrote:

 - Original Message - From: Cristian Bullokles
 [EMAIL PROTECTED]

 Cristian, I think you confusing terminolgy, so the guru's have no idea what
 you saying ;)

 I need help here people!

 I think you mean /User/WebApp yes?

 If so TC is a little strange in the area, an I'm not sure how to do the sub
 context.

 Its think one has to name the context file as user#context.xml and
 path=/webappsubcontext
 ... or something

 The real problem is that subcontexts use up context space... so something
 like /this/feels/good
 Take /this
 So maybe consider prepending the user name like /USER1-OrigWebAppName
 Which the deployer will probably like.

 I leave it for the gurus to discuss more... but show them what you actually
 doing, not just what you want... then if the terminology is screwed up,
 they'll get the idea anyway ;)

 Good Luck ;)




 I'd like to deploy a war file using /user/myServlet as path, but when
 I tried I've received that error:

 FAIL - Failed to deploy application at context path /user/MyServlet.

 Id like to have an user with different servlets deployed and use them
 in that way:


 http://localhost:8080/user1/MyServlet
 http://localhost:8080/user1/MyServlet1
 http://localhost:8080/user1/MyServlet2
 etc.
 one of this servlets will be axis2 and we want to use it in that way:

 http://localhost:8080/user1/axis2

 Regards
 Cristian

 ---
 HARBOR: http://coolharbor.100free.com/index.htm
 The most powerful application server on earth.
 The only real POJO Application Server.
 ---

 -
 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: Deploy applications using /user/MyServlet as name

2008-05-21 Thread Caldarale, Charles R
 From: Cristian Bullokles [mailto:[EMAIL PROTECTED]
 Subject: Re: Deploy applications using /user/MyServlet as name

 Each user could call applications using the browser in that way:
 http://myserver:8080/user1/WebApp1
 http://myserver:8080/user1/WebApp2
 http://myserver:8080/user2/OtherWebApp1
 http://myserver:8080/user2/OtherWebApp2 .

 I've deployed one application in my folder using the manager using
 this sentence:

You can't do this with the manager app, since it does not support multi-level 
URL paths.

What you can do is deploy each webapp in some location *outside* of the appBase 
directory configured in your Host element, and then create a Context 
element for each webapp, placing said Context element in the file 
conf/Catalina/[host]/[userName]#[appName].xml.  Each Context element must 
contain a docBase attribute giving the location of the associated .war file (or 
expansion thereof), and must not contain a path attribute.

 I need to declare one context for each application?

Yes; Context == webapp.

 - Chuck


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

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



Re: possible bug for mod_jk configure for cygwin

2008-05-21 Thread Taro App
Hi Rainer,

Yes, your patch solved the problem!
Thank you.

Taro App



 -- Forwarded message --
 From: Rainer Jung [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Date: Tue, 20 May 2008 10:27:49 +0200
 Subject: Re: possible bug for mod_jk configure for cygwin
 Taro App wrote:
  Hi list,
 
  I tried compiling mod_jk on cygwin and error occurred. It looks like a
  bug in configure, which correctly recognizes os as cygwin, but forgets
  to add -DCYGWIN for gcc, thus resulting in incorrect inclusion of
  sys/socketvar.h. Setting CFLAGS=-DCYGWIN solves the problem. Can
  someone take a look at it and maybe register this in a bug database?
  (I am pretty new here, so...)
 
  mod_jk: 1.2.26
  apache: 2.2.8
  cygwin 1.5.25
  os: Windows XP SP2
 

 Could you please try the following patch instead of any changes you did:

 Index: common/jk_global.h
 ===
 --- common/jk_global.h  (old)
 +++ common/jk_global.h  (new)
 @@ -137,7 +137,7 @@
  #include netinet/tcp.h
  #include arpa/inet.h
  #include sys/un.h
 -#if !defined(_OSD_POSIX)  !defined(AS400)  !defined(CYGWIN) 
 !defined(HPUX11)
 +#if !defined(_OSD_POSIX)  !defined(AS400)  !defined(__CYGWIN__) 
 !defined(HPUX11)
  #include sys/socketvar.h
  #endif
  #if !defined(HPUX11)  !defined(AS400)


 There is a line wrap in there. The patch should simply replace CYGWIN by
 __CYGWIN__ in file common/jk_global.h.

 
  -
 
  ./buildconf.sh
  ./configure
 --with-apache=/home/user/apache2tmp/httpd-2.2.8
  make
 
  .
 
   gcc -I/apache2tmp/httpd-2.2.8/include
  -I/apache2tmp/httpd-2.2.8/srclib/apr/include
  -I/apache2tmp/httpd-2.2.8/os/unix
  -I/apache2tmp/httpd-2.2.8/srclib/apr-util/include -g -O2
 -g -O2 -I
  /include -I /include/Windows_NT -c jk_ajp12_worker.c  -DDLL_EXPORT
  -DPIC -o .libs/jk_ajp12_worker.o
  In file included from jk_logger.h:27,
  from jk_ajp12_worker.h:27,
  from jk_ajp12_worker.c:26:
  jk_global.h:141:27: sys/socketvar.h: No such file or directory
  make[1]: *** [jk_ajp12_worker.lo] Error 1
  make[1]: Leaving directory
 
 `/tomcatconnectortmp/tomcat-connectors-1.2.26-src/native/common'
  make: *** [all-recursive] Error 1
 

 Regards,

 Rainer

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