mod_proxy_balancer and session affinity

2009-03-12 Thread Andrew Hole
Hi guys!

I can't find any documentation regarding session affinity using
mod_proxy_balancer (http protocol).
Anyone have or know where i cand find it?

Thanks


SEVERE: Can't lookup new HighLowSequence for field id using sequence name SEQ_t_xx_xxx

2009-03-12 Thread ChupaMe

Hi,

we have a Problem with Tomcat/MySQL which causes our webapplication to stop
working.
After a restart of Tomcat and MySQL it works again. But we have to do this a
few times a day.

First some Info about the Server and versions:
- SUSE LINUX Enterprise Server 9 (i586) Patchlevel 4
- jakarta-tomcat-5.0.19-29.18
- mysql-shared-4.0.18-32.37
- java2-jre-1.4.2-129.48
- java2-1.4.2-129.48


Often the follow error occurs the application is blocked:

Mar 12, 2009 9:25:19 AM org.apache.ojb.broker.util.logging.CommonsLoggerImpl
error
SEVERE: Can't lookup new HighLowSequence for field id using sequence name
SEQ_t_xx_xxx
org.apache.ojb.broker.TransactionInProgressException: Connection is already
in transaction
at
org.apache.ojb.broker.accesslayer.ConnectionManagerImpl.localBegin(Unknown
Source)
at
org.apache.ojb.broker.core.PersistenceBrokerImpl.beginTransaction(Unknown
Source)
…

This error is always in relation with the following warnings:

12 Mar 09:20:31  22794068 [http8080-Processor16] WARN 
ch.XXX.XXX.dh.PersistenceSession  -
org.apache.ojb.broker.PersistenceBrokerException:
org.apache.ojb.broker.accesslayer.RsIterator$ResourceClosedException:
Resources no longer reachable, RsIterator will be automatic cleaned up on
PB.close/.commitTransaction/.abortTransaction
12 Mar 09:25:19  23081606 [http8080-Processor16] INFO 
ch.XXX.XXX.dh.PersistenceSession  - Transaktion abgebrochen
12 Mar 09:25:19  23081606 [http8080-Processor16] WARN 
ch.XXX.XXX.dh.PersistenceSession  -
org.apache.ojb.broker.PersistenceBrokerException: Error while try to assign
identity value
12 Mar 09:25:19  23081606 [http8080-Processor16] WARN 
ch.XXX.XXX.servlets.BestellungSaveServlet  - Error while try to assign
identity value

Does anybody have a hint?

Thank you
-- 
View this message in context: 
http://www.nabble.com/SEVERE%3A-Can%27t-lookup-new-HighLowSequence-for-field-id-using-sequence-name-SEQ_t_xx_xxx-tp22474405p22474405.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



How can JSP use the .jar file out of Tomcat's Home ?

2009-03-12 Thread lrvberg
Hi, All,

   I have to make a JSP invoke a Class which is in a .jar file out of Tomcat
Home,

How can I deal with it? I have try to add the path of .jar file to system
CLASSPACH, but it seems useless..

 

Thanks!



RE: How can JSP use the .jar file out of Tomcat's Home ?

2009-03-12 Thread Peter Crowther
> From: lrvb...@gmail.com [mailto:lrvb...@gmail.com]
>I have to make a JSP invoke a Class which is in a .jar
> file out of Tomcat
> Home,
>
> How can I deal with it?

Add the jar to the WEB-INF/lib directory of the webapp with the JSP in.

- Peter

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How can JSP use the .jar file out of Tomcat's Home ?

2009-03-12 Thread David Smith
lrvb...@gmail.com wrote:
> Hi, All,
>
>I have to make a JSP invoke a Class which is in a .jar file out of Tomcat
> Home,
>
> How can I deal with it? I have try to add the path of .jar file to system
> CLASSPACH, but it seems useless..
>
>  
>
> Thanks!
>
>
>   
Place the jar in the applications WEB-INF/lib folder.  I can't think of
a good reason to store jars outside the proper folders.

--David

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How can JSP use the .jar file out of Tomcat's Home ?

2009-03-12 Thread lrvberg
Thanks,
For the jar is the core of another running application.
I want to use API in the jar to put stream from the servlet to the core.

Can we keep the jar out of Tomcat's Home?
-邮件原件-
发件人: Peter Crowther [mailto:peter.crowt...@melandra.com] 
发送时间: 2009年3月12日 21:35
收件人: 'Tomcat Users List'
主题: RE: How can JSP use the .jar file out of Tomcat's Home ?

> From: lrvb...@gmail.com [mailto:lrvb...@gmail.com]
>I have to make a JSP invoke a Class which is in a .jar
> file out of Tomcat
> Home,
>
> How can I deal with it?

Add the jar to the WEB-INF/lib directory of the webapp with the JSP in.

- Peter

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Error filterStart

2009-03-12 Thread Dolphin06

Hello, i have tomcat 5.5.27 installed on Red Hat 4.0 and jdk 6u12.
I m deploying my application using xml file that i put under
$TOMCAT_HOME/conf/Catalina/localhost
When i start up tomcat the application is created inside the webapps
directory and work directory, but cannot start.
Thank you for helping.
-- 
View this message in context: 
http://www.nabble.com/Error-filterStart-tp22476800p22476800.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: How can JSP use the .jar file out of Tomcat's Home ?

2009-03-12 Thread Caldarale, Charles R
> From: lrvb...@gmail.com [mailto:lrvb...@gmail.com] 
> Subject: Re: How can JSP use the .jar file out of Tomcat's Home ?
> 
> For the jar is the core of another running application.
> I want to use API in the jar to put stream from the servlet 
> to the core.

Webapps are intended to be self-contained - just copy it to WEB-INF/lib and be 
done with it.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: How can JSP use the .jar file out of Tomcat's Home ?

2009-03-12 Thread Peter Crowther
> From: lrvb...@gmail.com [mailto:lrvb...@gmail.com]
> Sent: 12 March 2009 13:51
> To: 'Tomcat Users List'
> Subject: Re: How can JSP use the .jar file out of Tomcat's Home ?
>
> Thanks,
> For the jar is the core of another running application.
> I want to use API in the jar to put stream from the servlet
> to the core.

If you have written a client/server application with both the client and the 
server in the same jar, you have an architecture problem.  You "should" 
separate out the API into its own jar, and call that.

But changing code takes time.  If the server code is never called from the API, 
all you lose by putting a copy of the jar in your webapp's WEB-INF/lib is some 
storage space.

- Peter

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Error filterStart

2009-03-12 Thread Peter Crowther
> From: Dolphin06 [mailto:david.vauque...@gmail.com]
> Hello, i have tomcat 5.5.27 installed on Red Hat 4.0 and jdk 6u12.
> I m deploying my application using xml file that i put under
> $TOMCAT_HOME/conf/Catalina/localhost
> When i start up tomcat the application is created inside the webapps
> directory and work directory, but cannot start.

What error message(s) are you seeing in Tomcat's log files?

- Peter

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Error filterStart

2009-03-12 Thread Caldarale, Charles R
> From: Dolphin06 [mailto:david.vauque...@gmail.com] 
> Subject: Error filterStart
> 
> When i start up tomcat the application is created inside the webapps
> directory and work directory, but cannot start.

And the logs say what?

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



howto clear Tomcat 6.0 ServerInfo.properties ?

2009-03-12 Thread Stephanie Wullbieter
Hi,

to edit/clear the ServerInfo.properties (Version etc.) with Tomcat 5.5 I did 
the following:

cd $CATALINA_HOME/common/classes

unzip $CATALINA_HOME/server/lib/catalina.jar 
org/apache/catalina/util/ServerInfo.properties

vi org/apache/catalina/util/ServerInfo.properties

With Tomcat 6.0 there is no common/classes directory anymore. How can I achieve 
the above with Tomcat 6.0 ? Especially when CATALINA_BASE is different from 
CATALINA_HOME.

Thank You.
-- 
Nur bis 16.03.! DSL-Komplettanschluss inkl. WLAN-Modem für nur 
17,95 ¿/mtl. + 1 Monat gratis!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Error filterStart

2009-03-12 Thread Dolphin06

INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path:
/home/wiki/jdk1.6.0_12/jre/lib/i386/server:/home/wiki/jdk1.6.0_12/jre/lib/i386:/home/wiki/jdk1.6.0_12/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
Mar 10, 2009 10:00:17 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 10, 2009 10:00:17 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 15986 ms
Mar 10, 2009 10:00:18 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 10, 2009 10:00:18 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.27
Mar 10, 2009 10:00:18 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 10, 2009 10:00:22 AM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Mar 10, 2009 10:00:22 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/mywiki] startup failed due to previous errors
Mar 10, 2009 10:00:27 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 10, 2009 10:00:28 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 10, 2009 10:00:28 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/264  config=null
Mar 10, 2009 10:00:28 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Mar 10, 2009 10:00:28 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 11477 ms
Mar 10, 2009 3:11:24 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Mar 10, 2009 3:11:25 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Mar 10, 2009 3:11:25 PM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Mar 10, 2009 3:11:25 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime


Peter Crowther wrote:
> 
>> From: Dolphin06 [mailto:david.vauque...@gmail.com]
>> Hello, i have tomcat 5.5.27 installed on Red Hat 4.0 and jdk 6u12.
>> I m deploying my application using xml file that i put under
>> $TOMCAT_HOME/conf/Catalina/localhost
>> When i start up tomcat the application is created inside the webapps
>> directory and work directory, but cannot start.
> 
> What error message(s) are you seeing in Tomcat's log files?
> 
> - Peter
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Error-filterStart-tp22476800p22477247.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Error filterStart

2009-03-12 Thread Caldarale, Charles R
> From: Dolphin06 [mailto:david.vauque...@gmail.com] 
> Subject: RE: Error filterStart
> 
> SEVERE: Error filterStart
> Mar 10, 2009 10:00:22 AM 
> org.apache.catalina.core.StandardContext start
> SEVERE: Context [/mywiki] startup failed due to previous errors
> Mar 10, 2009 10:00:27 AM 

O.k., that's a start.  Look in the other log files and you should find more 
information about the filter error, including a stack trace.  It may be as 
simple as you declaring a filter class that you haven't supplied.  Take a look 
at the WEB-INF/web.xml for your mywiki 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Error filterStart

2009-03-12 Thread Anurag Kapur
What startup filters have you defined in your web.xml?

Looks like one of them is throwing an error (because of something and the
something could be anything..not enough info at this stage).

Share a copy of your web.xml would be my suggestion.

Cheers
Anurag
--
Anurag Kapur
Associate - Technology,
Sapient Corporation India.

http://www.linkedin.com/in/anuragkapur
--


On Thu, Mar 12, 2009 at 2:13 PM, Dolphin06 wrote:

>
> INFO: The Apache Tomcat Native library which allows optimal performance in
> production environments was not found on the java.library.path:
>
> /home/wiki/jdk1.6.0_12/jre/lib/i386/server:/home/wiki/jdk1.6.0_12/jre/lib/i386:/home/wiki/jdk1.6.0_12/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
> Mar 10, 2009 10:00:17 AM org.apache.coyote.http11.Http11BaseProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Mar 10, 2009 10:00:17 AM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 15986 ms
> Mar 10, 2009 10:00:18 AM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Mar 10, 2009 10:00:18 AM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.27
> Mar 10, 2009 10:00:18 AM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Mar 10, 2009 10:00:22 AM org.apache.catalina.core.StandardContext start
> SEVERE: Error filterStart
> Mar 10, 2009 10:00:22 AM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/mywiki] startup failed due to previous errors
> Mar 10, 2009 10:00:27 AM org.apache.coyote.http11.Http11BaseProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Mar 10, 2009 10:00:28 AM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Mar 10, 2009 10:00:28 AM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/264  config=null
> Mar 10, 2009 10:00:28 AM org.apache.catalina.storeconfig.StoreLoader load
> INFO: Find registry server-registry.xml at classpath resource
> Mar 10, 2009 10:00:28 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 11477 ms
> Mar 10, 2009 3:11:24 PM org.apache.coyote.http11.Http11BaseProtocol pause
> INFO: Pausing Coyote HTTP/1.1 on http-8080
> Mar 10, 2009 3:11:25 PM org.apache.catalina.core.StandardService stop
> INFO: Stopping service Catalina
> Mar 10, 2009 3:11:25 PM org.apache.coyote.http11.Http11BaseProtocol destroy
> INFO: Stopping Coyote HTTP/1.1 on http-8080
> Mar 10, 2009 3:11:25 PM org.apache.catalina.core.AprLifecycleListener
> lifecycleEvent
> INFO: Failed shutdown of Apache Portable Runtime
>
>
> Peter Crowther wrote:
> >
> >> From: Dolphin06 [mailto:david.vauque...@gmail.com]
> >> Hello, i have tomcat 5.5.27 installed on Red Hat 4.0 and jdk 6u12.
> >> I m deploying my application using xml file that i put under
> >> $TOMCAT_HOME/conf/Catalina/localhost
> >> When i start up tomcat the application is created inside the webapps
> >> directory and work directory, but cannot start.
> >
> > What error message(s) are you seeing in Tomcat's log files?
> >
> > - Peter
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Error-filterStart-tp22476800p22477247.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Hibernate Exception...

2009-03-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Neil,

On 3/9/2009 11:44 AM, Neil B. Cohen wrote:
> This week, I erased and rebuilt my desktop system - moved it from Fedora
> 8 to Fedora 10. I re-installed Netbeans and Tomcat.

[snip]

> *Exception Details: * java.lang.NoClassDefFoundError
>   Could not initialize class org.hibernate.ejb.Ejb3Configuration

You probably forgot to put your hibernate JDBC driver into Tomcat's lib
directory. If you are using Tomcat's JNDI DataSource, I believe you must
put the JDBC driver into Tomcat's lib directory.

You didn't mention your TC version, so:

5.5: usually in $CATALINA_BASE/common/lib
6.0: usually in $CATALINA_BASE/lib

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

iEYEARECAAYFAkm5H2oACgkQ9CaO5/Lv0PBS9ACdE2hX8+RiqiYzVQunrctqq1ag
Ie4AoKtdKlMFtewSzb1d/mm2jbquVjQ1
=aJeU
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How can JSP use the .jar file out of Tomcat's Home ?

2009-03-12 Thread Mikolaj Rydzewski

lrvb...@gmail.com wrote:

   I have to make a JSP invoke a Class which is in a .jar file out of Tomcat
Home,
  
You need to create new instance of ClassLoader (e.g. URLClassLoader) and 
load 'external' jar using it.


You're on right way to shoot yourself in both feet ;-)

--
Mikolaj Rydzewski 



smime.p7s
Description: S/MIME Cryptographic Signature


RE: howto clear Tomcat 6.0 ServerInfo.properties ?

2009-03-12 Thread Caldarale, Charles R
> From: Stephanie Wullbieter [mailto:swu...@gmx.de] 
> Subject: howto clear Tomcat 6.0 ServerInfo.properties ?
> 
> With Tomcat 6.0 there is no common/classes directory anymore. 

RTFM:
http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html

> How can I achieve the above with Tomcat 6.0 ? Especially when 
> CATALINA_BASE is different from CATALINA_HOME.

Why do you think you need to edit ServerInfo.properties at all?

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [OT] RE: Max Number of users

2009-03-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chuck,

On 3/9/2009 7:05 PM, Caldarale, Charles R wrote:
>> From: Gregor Schneider [mailto:rc4...@googlemail.com] 
>> Subject: Re: [OT] RE: Max Number of users
>>
>> I'll provide my business-card in Amsterdam so that you believe me that
>> it's *not* Jeppesen
> 
> Kölnische Rückversicherungs-Gesellschaft AG, part of Gen Re, part of one of 
> Jimmy Buffett's relative's companies.

...and they're running Microsoft-IIS/5.0 on their web server ;)

- -chris

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

iEYEARECAAYFAkm5IDsACgkQ9CaO5/Lv0PBVBQCdF2Ep1NiQI/WvvausRNgic2Q3
q/gAnRNCC6PNceok3ZPdrTw6qAp84rfD
=oB4T
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Question about writing a servlet filter in Tomcat 5.5.x

2009-03-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Gregor,

On 3/9/2009 2:49 PM, Gregor Schneider wrote:
> Don't have an example using ServletResponseWrapper here, but reading
> this thread might shed some light:
> 
> http://www.nabble.com/-Http-ServletResponseWrapper.getOutputStream()-td20452362.html
> Another good start might be http://java.sun.com/products/servlet/Filters.html

Or my recent thread:
http://www.nabble.com/Capturing-a-complete-request-(free-filter-code!)-td22123786.html

There's a complete, working example there of capturing both the input of
a request and the output of a response. Of course, it's more of a
"tee"-style capture, but you get the idea.

About the original filter not working: Ben, did you implement their
filter exactly, or did you use it as a guide to build one of your own?
Would you care to post the code?

I object to their implementation of their response wrapper's
getOutputStream method because it always returns a new object instead of
re-using "the" object. I suspect it doesn't mean much in practical
terms, but it could interfere with output if the servlet (or JSP) calls
getOutputStream multiple times.

I would suggest adding lots of debug logging to your class to see what
is being called when.

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

iEYEARECAAYFAkm5ITgACgkQ9CaO5/Lv0PBsFACfT5oIKSBXvO+4hMUsOz/TgFm6
azgAn2SrQvwE2pbuJF2mPTDmhyz85/C8
=BNje
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How can JSP use the .jar file out of Tomcat's Home ?

2009-03-12 Thread David Smith
The problem is your other running application is in a separate jvm
instance. Even if you did get it to run inside tomcat, it wouldn't be
able to bridge tomcat to the other running app by jar alone. The API
would have to define some sort of communication and work in a
client/server mode of some sort -- even if by unix sockets.

--David

lrvb...@gmail.com wrote:
> Thanks,
> For the jar is the core of another running application.
> I want to use API in the jar to put stream from the servlet to the core.
>
> Can we keep the jar out of Tomcat's Home?
> -邮件原件-
> 发件人: Peter Crowther [mailto:peter.crowt...@melandra.com] 
> 发送时间: 2009年3月12日 21:35
> 收件人: 'Tomcat Users List'
> 主题: RE: How can JSP use the .jar file out of Tomcat's Home ?
>
>   
>> From: lrvb...@gmail.com [mailto:lrvb...@gmail.com]
>>I have to make a JSP invoke a Class which is in a .jar
>> file out of Tomcat
>> Home,
>>
>> How can I deal with it?
>> 
>
> Add the jar to the WEB-INF/lib directory of the webapp with the JSP in.
>
> - Peter
>
>   


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



The requested resource () is not available?

2009-03-12 Thread Pat Riehecky
I have been trying to install a tomcat app onto a fresh Ubuntu box (8.04
tomcat 5.5), but when attempting to view the app's pages I get

HTTP Status 404 - 



type Status report

message 

description The requested resource () is not available.



Apache Tomcat/5.5


I know this is well before my app starts up, but I haven't a clue what
to do about it.  When I google the error I get dozens of suggestions,
each of which says not to do the other unless I know what I am doing.

I don't.

What doc should I read/what should I do?  What does this mean?
Pat


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: The requested resource () is not available?

2009-03-12 Thread David Smith
Pat Riehecky wrote:
> I have been trying to install a tomcat app onto a fresh Ubuntu box (8.04
> tomcat 5.5), but when attempting to view the app's pages I get
>
> HTTP Status 404 - 
>
> 
>
> type Status report
>
> message 
>
> description The requested resource () is not available.
>
>
> 
> Apache Tomcat/5.5
>
>
> I know this is well before my app starts up, but I haven't a clue what
> to do about it.  When I google the error I get dozens of suggestions,
> each of which says not to do the other unless I know what I am doing.
>
> I don't.
>
> What doc should I read/what should I do?  What does this mean?
> Pat
>
>   
>...I know this is well before my app starts up...

Ok... I'm confused.  If it's not running yet, why should anything but a
404 show up?

In any problem, the first place to look is the logs.  Second is the
tomcat docs to verify things are setup correctly.  Actually in your
case, if this tomcat came with Ubuntu, maybe the second place to look is
the Ubuntu docs for this package.

After that, we need more information like where things were installed
and what was attempted in what order, ...etc., ...  We can't see over
your shoulder. :-)

--David


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [OT] RE: Max Number of users

2009-03-12 Thread Gregor Schneider
Chris,

On Thu, Mar 12, 2009 at 3:46 PM, Christopher Schultz
 wrote:
>>
>> Kölnische Rückversicherungs-Gesellschaft AG, part of Gen Re, part of one of 
>> Jimmy Buffett's relative's companies.
>
> ...and they're running Microsoft-IIS/5.0 on their web server ;)
>
That's our coroporate website - not my baby. If it was my baby, I'd
just dump and re-develop.

Just to give you one site (a smaller one) which is within our
responsibility - and to increase the number of backlinks for Google:

www.tele-underwriting.de

or, an older website, which soon will be renewed:

www.compass-webdemo.com

Those sites are using OpenSource-components only - and this won't
change unless somebody else gets in charge - which might take quite a
while *cough*

cheers

Gregor
-- 
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: howto clear Tomcat 6.0 ServerInfo.properties ?

2009-03-12 Thread Mark Thomas
Stephanie Wullbieter wrote:
> Hi,
> 
> to edit/clear the ServerInfo.properties (Version etc.) with Tomcat 5.5 I did 
> the following:
> 
> cd $CATALINA_HOME/common/classes
> 
> unzip $CATALINA_HOME/server/lib/catalina.jar 
> org/apache/catalina/util/ServerInfo.properties
> 
> vi org/apache/catalina/util/ServerInfo.properties
> 
> With Tomcat 6.0 there is no common/classes directory anymore. How can I 
> achieve the above with Tomcat 6.0 ? Especially when CATALINA_BASE is 
> different from CATALINA_HOME.

Do the same thing but just unpack the jar to $CATALINA_HOME/lib

common/classes and common/lib have been merged into $CATALINA_HOME/lib
in Tomcat 6.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache/mod_jk serves random files from tomcat

2009-03-12 Thread SQ

Good to see others are seeing the same problem that’s been driving us crazy
and is slowly become a very serious issue.  Admittedly, my knowledge on this
whole area is limited, but I’ll try my best to provide as much info as
possible to help solve the problem.

Here are some specifics:
Tomcat serves most of the pages, excluding html pages, which there are very
few.  We have tried extensively to reproduce the problem, but cannot. 
Restarting either apache or tomcat clears the problem.  We have two
different environments that are exhibiting the same problem.  

In both environments, tomcat and apache are on the same machines.

Development 
Solaris 10
Tomcat 5.0.19
Apache 2.0.49
mod_jk2/2.0.4

Web
Solaris 10
Tomcat 5.0.19
Apache 2.2.6
mod_jk/1.2.25

Web servers are load balanced using separate machines.  These machines have
a probe that runs, checking the health of the web servers.  The servers are
constantly going up and down depending on the random responses.  This is
normally how we are alerted of the problem, or user input.  Problem happens
daily on the web servers, maybe once a week in development.

I looked for any signs of APR and found none; I don’t think we’re using it.

After glancing over past responses, it appears upgrading mod_jk should be
the first step, but it doesn’t seem like that was a guaranteed fix for all. 
Interestingly enough, we’re using two different versions and getting the
same problem on both.  Any other suggestions?  Any additional info I can
provide?

-- 
View this message in context: 
http://www.nabble.com/Apache-mod_jk-serves-random-files-from-tomcat-tp18385568p22478781.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat w/apr data lost in http post request?

2009-03-12 Thread Oliver Schoett

Christopher Schultz wrote:

Can MSIE even control which data goes in which packet? That would seem
to be part of the TCP/IP stack, buried in the OS, and affecting both
MSIE and any other browser on the same system.
   


We saw that Firefox uses only one packet to send a POST request (of 
resonable size), so the application(s) seem to have control over this.  
I am sure there are APIs that are sufficiently low-level for this.


Regards,

Oliver Schoett


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Lazy Virtual Hosting?

2009-03-12 Thread Gregor Schneider
Mark,

I guess I didn't phrase properly since you seem to have misunderstood me:

I want a *separation* of the hosts. Alias, as I understand it, helps
to run multiple domains within the same IP-adress.

Therefore, I'm using multiple host-elements (one for each
IP/domain-combination) to separate them - aka virtual hosting - esp.,
since they serve different content.

@Chuck:

> Caldarale, Charles R wrote:
>
> If you really want to have a separate  for each site with no 
> potential for cross-talk, you'll actually need a separate
>  element for each.  Alternatively, a  at the  level 
> would probably suffice to prevent mixing of IP
> addresses  and site names.

Multiple Service-Elements for me, I guess, would be a show-stopper:

If I'm not mistaken, Tomcat's SSO-Valve only works within multiple
Engines (as toplevel-element). Since I can't insert a Valve into a
Server-Element, there's no SSO-functionality between different
Services - am I right with that?

Therefore, I guess I stick with my current design having 1 Service, 1
Executor, in there 1 HTTP-Connector for each IP, and I should be on
the safe side.

Any objections from the gurus?

Rgds

Gregor
-- 
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Lazy Virtual Hosting?

2009-03-12 Thread Mark Thomas
Gregor Schneider wrote:
> Mark,
> 
> I guess I didn't phrase properly since you seem to have misunderstood me:
> 
> I want a *separation* of the hosts. Alias, as I understand it, helps
> to run multiple domains within the same IP-adress.

I thought the issue was that you wanted to make sure the name and
associated IP address were served by the same virtual host. Without an
alias for the IP address any requests that use IP address rather than
FQDN will be served by the default host.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: [OT] Re: Default Tomcat Page w/o Redirect

2009-03-12 Thread Gregor Schneider
Chris,

On Wed, Mar 11, 2009 at 11:13 PM, Christopher Schultz
 wrote:
>
> No, he's telling you about /his/ webapp, not making a general statement.
>

agreed - wasn't thinking of that

>
>> Now I'm wondering ("Mr. Servlet-Spec" Chuck, you comment on that one):
>
> Aw you can read the spec just as well as Chuck can!
>

yep - I could read them, but Chuck knows them by heart ;)

I guess I got the concept know. What I was missing was that there's a
Controller-Servlet that's forwarding / requesting (to) the JSPs.

Rgds

Gregor
-- 
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Lazy Virtual Hosting?

2009-03-12 Thread Caldarale, Charles R
> From: Gregor Schneider [mailto:rc4...@googlemail.com] 
> Subject: Re: Lazy Virtual Hosting?
> 
> I want a *separation* of the hosts. Alias, as I understand it, helps
> to run multiple domains within the same IP-adress.

No, it can be used for different things.  In this case, the  simply 
allows use of either the DNS name or the IP address.  You would still have one 
 element for each site, and each  element would have an  of 
its IP address inside it.

> Since I can't insert a Valve into a Server-Element, there's 
> no SSO-functionality between different Services

Yup, that precludes the strict separation mechanism.

> Therefore, I guess I stick with my current design having 1 Service, 1
> Executor, in there 1 HTTP-Connector for each IP, and I should be on
> the safe side.

Yes, just add the appropriate  inside each .

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Lazy Virtual Hosting?

2009-03-12 Thread Robert Koberg


On Mar 12, 2009, at 12:18 PM, Mark Thomas wrote:


Gregor Schneider wrote:

Mark,

I guess I didn't phrase properly since you seem to have  
misunderstood me:


I want a *separation* of the hosts. Alias, as I understand it, helps
to run multiple domains within the same IP-adress.


I thought the issue was that you wanted to make sure the name and
associated IP address were served by the same virtual host. Without an
alias for the IP address any requests that use IP address rather than
FQDN will be served by the default host.


Here is  place where I have wanted external host files similar to  
webapp configs, e.g.


$TC/conf/Catalina/_common_/shared-webapp.xml
$TC/conf/Catalina/_common_/shared-webapp2.xml


$TC/conf/Catalina/localhost/host-webapp.xml
$TC/conf/Catalina/my.domain.com/host-webapp2.xml


$TC/conf/Catalina/my.domain.com.xml
$TC/conf/Catalina/my.domain.com.xml

So, similar to how webapp loading, the hosts could be loaded based off  
of existing configs.


Is this in the realm of possibilities?

-Rob

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: SEVERE: Can't lookup new HighLowSequence for field id using sequence name SEQ_t_xx_xxx

2009-03-12 Thread Gregor Schneider
This doesn't look as if this error has anything to do with Tomcat.

My best guess:

You're using a MySQL.

We also do have some issue here every now and then that the connection
to MySQL is lost when using a db-connection-pool.

I know there's a workaround for that, just can't recall exactly how it was.

Usually dbcp re-connects back with MySQL, but I guess that this might
cause problems with your persistance-framework.

Check out this site
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html
and look for "common problems" - maybe this gives you a start.

Rgds

Gregor
-- 
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Problems with LoadBalancing

2009-03-12 Thread Toni Menendez Lopez
Rainer,

May be my problem is due to the fact I have the line :

#worker.izonetv.sticky_session_force=1

commented.

The reason is that if I uncomment this line I have this error in Apache :

[Thu Mar 12 17:31:37 2009][23548:6496] [error] service::jk_lb_worker.c
(1144): All tomcat instances failed, no more workers left for recovery

Any idea what can be the problem ?

Toni.

2009/3/11 Toni Menendez Lopez 

>
>
> 2009/3/11 Rainer Jung 
>
>> On 11.03.2009 14:03, Toni Menendez Lopez wrote:
>>
>>> Hello everybody,
>>> I have following architecture :
>>> 2 Server with Apache and Tomcat
>>> Versions :
>>> APACHE
>>> -
>>> httpd -v
>>> Server version: Apache/2.0.52
>>> Server built:   May 24 2006 11:45:06
>>> TOMCAT
>>> -
>>> ./version.sh
>>> Using JRE_HOME:   /opt/jdk1.5.0_10
>>> Server version: Apache Tomcat/5.5.20
>>> Server built:   Sep 12 2006 10:09:20
>>> Server number:  5.5.20.0
>>> OS Name:Linux
>>> OS Version: 2.6.9-55.0.2.ELsmp
>>> Architecture:   i386
>>> JVM Version:1.5.0_10-b03
>>> JVM Vendor: Sun Microsystems Inc.
>>>
>>
>> What's your mod_jk version?
>
>
>   -->JK Version: mod_jk/1.2.23
>
>>
>>
>> I am doing load balancing between both with JK, with an scenario of 50
>>> reques per session (aprox), and 500 reqxseg ( aprox ).
>>>
>>
>> What is reqxseg?
>
>
> --> HTTP request per second.
>
>>
>>
>> The thing is the following, when I shutdown the passive server, I have a
>>>
>>
>> What is a "passive" server? I thought you do load balancing?
>> What do you mean by "shutdown"?
>>
>
> --> I have a red hat cluster in both servers which give to me an Virtual IP
> for both servers, this virtual IP is of one of the servers and is the
> entrace point for my architecture, so the requests are received only with
> one apache, which delivers the request to the tomcats of both servers.
>
> --> The passive servers in the one which does not have the IP, si the
> apache of this servers is just not receiving requests.
>
> --> Shutting down, is just swtch off the server ( just simulating a crash
> of the server).
>
>   download of my reqxseg, and the requests that where managed by the
>>> passive server get stucked for long time, like 5 min.
>>> New request afther shutting donw the passive server are well processed.
>>> But the thing is if there is a way to reduce this time that requests are
>>> stucked.
>>>
>>
>> The answer depends on your answer to m>
>> This is my worker :
>>> # izonetv LoadBalancer Definition
>>>
>>> worker.izonetv.balance_workers=izonetv-mifeas01_data,izonetv-mifeas02_data
>>> worker.izonetv.method=Session
>>> worker.izonetv.retries=1
>>> worker.izonetv.sticky_session=True
>>> #worker.izonetv.sticky_session_force=1
>>> worker.izonetv.type=lb
>>> # izonetv-mifeas01_data Node Definition
>>> worker.izonetv-mifeas01_data.connect_timeout=1
>>> worker.izonetv-mifeas01_data.fail_on_status=404
>>>
>>
>> You don't want to fail on 404.
>
> --> Sorry what does mean this parameter ? I just copy from another
> configuration.
>
>>
>>
>> worker.izonetv-mifeas01_data.host=mifeas01_data
>>> worker.izonetv-mifeas01_data.lbfactor=1
>>> worker.izonetv-mifeas01_data.port=8009
>>> worker.izonetv-mifeas01_data.reply_timeout=3
>>> worker.izonetv-mifeas01_data.type=ajp13
>>> # izonetv-mifeas02_data Node Definition
>>> worker.izonetv-mifeas02_data.connect_timeout=1
>>> worker.izonetv-mifeas02_data.fail_on_status=404
>>>
>>
>> You don't want to fail on 404.
>>
>> worker.izonetv-mifeas02_data.host=mifeas02_data
>>> worker.izonetv-mifeas02_data.lbfactor=1
>>> worker.izonetv-mifeas02_data.port=8009
>>> worker.izonetv-mifeas02_data.reply_timeout=3
>>> worker.izonetv-mifeas02_data.type=ajp13
>>>
>>
>> Regards,
>>
>> Rainer
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>


Cofiguring tomcat for trial certificate by trusted authorities like verisign not working.

2009-03-12 Thread Bhuvanesh Pattanashetti
Hi all,
I m trying to set up the SSL for tomcat server. I wanted to know what
exactly is the procedure.
here is what i have followed.

Procedure 1.

   1. Created my own keystore.
   2. Imported the trial certificate (provided by Verisign ) into the
   keystore.
   3. Added a ssl connector component in to the conf/server.xml into tomcat
   configuration file.
   4. Started the Server, When tried accessing connector port from browser,
   I got cannot display the webpage.
   5.

procedure 2 :

   1. Created my own keystore.
   2. Imported the trial certificate (provided by Verisign ) into the
   keystore.
   3. Imported the trial certificate (provided by Verisign ) into the
   cacerts from jre/lib/security/cacerts.
   4. Added a ssl connector component in to the conf/server.xml into tomcat
   configuration file mentioning keyAlias pointing to imported certificate
   alias.
   5. Started the Server, at start up i got the folliwing exception

   java.io.IOException: Alias name mykeyalias does not identify a key entry

I had importing the root certificate or intrmediate certificate first before
importing trial verisign certificate suggested by tomcat.
But none of the things are working :-( please suggest me.
thanks in advance.
Bhuvan P


Re: Lazy Virtual Hosting?

2009-03-12 Thread Gregor Schneider
On Thu, Mar 12, 2009 at 5:29 PM, Caldarale, Charles R
 wrote:
>> From: Gregor Schneider [mailto:rc4...@googlemail.com]
>> Subject: Re: Lazy Virtual Hosting?
>>
>> I want a *separation* of the hosts. Alias, as I understand it, helps
>> to run multiple domains within the same IP-adress.
>
> No, it can be used for different things.  In this case, the  simply 
> allows use of either the DNS name or the IP address.  You would still have 
> one  element for each site, and each  element would have an 
>  of its IP address inside it.
>
>> Since I can't insert a Valve into a Server-Element, there's
>> no SSO-functionality between different Services
>
> Yup, that precludes the strict separation mechanism.
>
>> Therefore, I guess I stick with my current design having 1 Service, 1
>> Executor, in there 1 HTTP-Connector for each IP, and I should be on
>> the safe side.
>
> Yes, just add the appropriate  inside each .
>

I see. What I missed was, that I assumed (led by the example in the
docs) that Alias takes a hostname as argument. Never thought of the
option to place an IP-address.

Cheers

Gregor
-- 
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



DeadlockDetector

2009-03-12 Thread János Löbb

Hi,

One of our programmer tries to deploy an application on Tomcat 6.0.18  
and the deploying process times out.  There is a part when the app  
connects to a mysql database and looks like that is the point where  
the subject matter appears.


When the app is run from IntelliJ there are no problems !!

The machine is an OS X 10.5.2 or better machine.

The symptom is that the deployment process looks like stuck, and when  
I look the processes with top it shows >>>23456 ports in use by the  
java process.  After shutdown of tomcat there is lingering java  
processes remaining, one or two, that I have to kill manually.


Here is the whole log for the deployment from catalina.out.

Mar 12, 2009 12:39:37 PM org.apache.catalina.startup.HostConfig  
deployWAR

INFO: Deploying web application archive Aquamine.war
Mar 12, 2009 12:39:39 PM org.apache.catalina.loader.WebappClassLoader  
validateJarFile
INFO: validateJarFile(/usr/local/apache-tomcat-6.0.18/webapps/Aquamine/ 
WEB-INF/lib/javaee.jar) - jar not loaded. See Servlet Spec 2.3,  
section 9.7.2. Offending class: javax/servlet/Servlet.class
Mar 12, 2009 12:39:39 PM org.apache.catalina.loader.WebappClassLoader  
validateJarFile
INFO: validateJarFile(/usr/local/apache-tomcat-6.0.18/webapps/Aquamine/ 
WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 2.3,  
section 9.7.2. Offending class: javax/servlet/Servlet.class

- Root WebApplicationContext: initialization started
- JDK 1.4+ collections available
- Commons Collections 3.x available
- Loading XML bean definitions from ServletContext resource [/WEB-INF/ 
applicationContext.xml]
- Bean factory for application context [Root WebApplicationContext]:  
org.springframework.beans.factory.support.DefaultListableBeanFactory  
defining beans  
[sessionFactory 
,sessionFactoryCaDR 
,sessionFactoryCoPath 
,transactionManager 
,hibernateTemplate 
,hibernateTemplateCaDR 
,hibernateTemplateCoPath 
,org 
.springframework 
.aop 
.framework 
.autoproxy 
.DefaultAdvisorAutoProxyCreator 
,org 
.springframework 
.transaction 
.interceptor 
.TransactionAttributeSourceAdvisor 
,transactionInterceptor 
,dataSource 
,AppUser2 
,AppUserService2 
,ArrayAssay 
,ArrayAssayService 
,AssayType 
,AssayTypeService 
,ArrayMap 
,ArrayMapService 
,ArraySlide 
,ArraySlideService 
,ArrayUser 
,ArrayUserService 
,Block 
,BlockService 
,ClinicalCase 
,ClinicalCaseService 
,ClinicalAttribute 
,ClinicalAttributeService 
,ClinicalAttributeSet 
,ClinicalAttributeSetService 
,ClinicalElement 
,ClinicalElementService 
,Core 
,CoreService 
,CoreType 
,CoreTypeService 
,Diagnosis 
,DiagnosisService 
,ExportFormat 
,ExportFormatService 
,ExportFormatDetail 
,ExportFormatDetailService 
,ExportType 
,ExportTypeService 
,ImportFormat 
,ImportFormatService 
,ImportFormatDetail 
,ImportFormatDetailService 
,ImportType 
,ImportTypeService 
,Institution 
,InstitutionService 
,InstitutionDept 
,InstitutionDeptService 
,Location 
,LocationService 
,Patient 
,PatientService 
,Permission 
,PermissionService 
,AppUserPermission 
,AppUserPermissionService 
,AppUserTissueArrayPermission 
,AppUserTissueArrayPermissionService 
,AppUserArrayMapPermission 
,AppUserArrayMapPermissionService 
,AppUserAssayPermission 
,AppUserAssayPermissionService 
,Race 
,RaceService 
,ScoreAttribute 
,ScoreAttributeService 
,ScoreElement 
,ScoreElementService 
,ScoreType 
,ScoreTypeService 
,Sex 
,SexService 
,Specimen 
,SpecimenService 
,Spot 
,SpotService 
,StageAtDiagnosis 
,StageAtDiagnosisService 
,Target 
,TargetService 
,TissueArray 
,TissueArrayService 
,TissueSource 
,TissueSourceService 
,TissueType 
,TissueTypeService 
,LookupService 
,ClinicalExportModel 
,DataExportService 
,CaseScoreMapperService 
,MapPositionMapperService 
,ClinicalExtensionService 
,UserTypeService,GroupUserService,UserSessionService]; root of  
BeanFactory hierarchy

- 102 beans defined in application context [Root WebApplicationContext]
- CGLIB2 available: proxyTargetClass feature enabled
- Hibernate Annotations 3.2.0.GA
- Hibernate 3.2.1
- hibernate.properties not found
- Bytecode provider name : cglib
- using JDK 1.4 java.sql.Timestamp handling
- configuring from url: jar:file:/usr/local/apache-tomcat-6.0.18/ 
webapps/Aquamine/WEB-INF/lib/cruella-core.jar!/hibernate.cfg.xml

- Configured SessionFactory: null
- Building new Hibernate SessionFactory
- Binding entity from annotated class: edu.yale.ytma.entity.AppUser2
- Bind entity edu.yale.ytma.entity.AppUser2 on table app_user2
- Binding entity from annotated class:  
edu.yale.ytma.entity.AppUserPermission
- Bind entity edu.yale.ytma.entity.AppUserPermission on table  
appuser_permission
- Binding entity from annotated class:  
edu.yale.ytma.entity.AppUserTissueArrayPermission
- Bind entity edu.yale.ytma.entity.AppUserTissueArrayPermission on  
table appuser_tissuearray_permission
- Binding entity from annotated class:  
edu.yale.ytma.entity.AppUserArrayMapPermission
- Bind entity edu.yale.ytma.entity.AppUserArrayMapPermission on table  
a

Garbage collection problem and Tomcat

2009-03-12 Thread Ian Long

Hey All,

I'm having an issue where a connection pool (apache dbcp) is waiting  
forever for a connection, when I see no reason for it to do so.   
Nothing else has the lock, as I did a stack dump of the stuck  
threads.  I googled the problem and found a few other people who had  
the issue, and there problem was related to GC.


From the kill -quit of the tomcat process, I see the following:

INFO   | jvm 1| 2009/03/12 11:52:58 | Heap
INFO   | jvm 1| 2009/03/12 11:52:58 |  PSYoungGen  total  
207616K, used 45724K [0xa6a6, 0xb4de, 0xb4de)
INFO   | jvm 1| 2009/03/12 11:52:58 |   eden space 198784K, 18%  
used [0xa6a6,0xa8e676f0,0xb2c8)
INFO   | jvm 1| 2009/03/12 11:52:58 |   from space 8832K, 99% used  
[0xb454,0xb4ddfae8,0xb4de)
INFO   | jvm 1| 2009/03/12 11:52:58 |   to   space 17088K, 0% used  
[0xb2c8,0xb2c8,0xb3d3)
INFO   | jvm 1| 2009/03/12 11:52:58 |  PSOldGentotal  
1864192K, used 623335K [0x34de, 0xa6a6, 0xa6a6)
INFO   | jvm 1| 2009/03/12 11:52:58 |   object space 1864192K, 33%  
used [0x34de,0x5ae99da0,0xa6a6)
INFO   | jvm 1| 2009/03/12 11:52:58 |  PSPermGen   total  
77056K, used 76996K [0x1cde, 0x2192, 0x34de)
INFO   | jvm 1| 2009/03/12 11:52:58 |   object space 77056K, 99%  
used [0x1cde,0x21911028,0x2192)

INFO   | jvm 1| 2009/03/12 11:52:58 |

I see the 'from space' is at 99% used, as is PSPermGen object space.

My memory parameters for tomcat are:

wrapper.java.additional.5=-XX:MaxPermSize=384m
wrapper.java.initmemory=2048
wrapper.java.maxmemory=2048

Do you think this could be causing my problem?  I am using cacti to  
graph tomcat heap, but it doesn't show any problems.


Cheers,
Ian Long
Chief Software Architect, Opterus Inc.

Email: ian.l...@opterus.com
Phone: 416-840-8495 x666
Mobile: 416-817-9206
Web: http://www.opterus.com






RE: tomcat w/apr data lost in http post request?

2009-03-12 Thread Martin Gainty

which HTTP version (1.0 or 1.1)
?
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 




> To: users@tomcat.apache.org
> From: oliver.scho...@capgemini-sdm.com
> Subject: Re: tomcat w/apr data lost in http post request?
> Date: Thu, 12 Mar 2009 16:55:04 +0100
> 
> Christopher Schultz wrote:
> > Can MSIE even control which data goes in which packet? That would seem
> > to be part of the TCP/IP stack, buried in the OS, and affecting both
> > MSIE and any other browser on the same system.
> >
> 
> We saw that Firefox uses only one packet to send a POST request (of 
> resonable size), so the application(s) seem to have control over this.  
> I am sure there are APIs that are sufficiently low-level for this.
> 
> Regards,
> 
> Oliver Schoett
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

_
Hotmail® is up to 70% faster. Now good news travels really fast. 
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_032009

Re: Cofiguring tomcat for trial certificate by trusted authorities like verisign not working.

2009-03-12 Thread Manuel Llabata

Could you show us your connector configuration.
regards

--
From: "Bhuvanesh Pattanashetti" 
Sent: Thursday, March 12, 2009 5:48 PM
To: 
Subject: Cofiguring tomcat for trial certificate by trusted authorities like 
verisign not working.



Hi all,
I m trying to set up the SSL for tomcat server. I wanted to know what
exactly is the procedure.
here is what i have followed.

Procedure 1.

  1. Created my own keystore.
  2. Imported the trial certificate (provided by Verisign ) into the
  keystore.
  3. Added a ssl connector component in to the conf/server.xml into tomcat
  configuration file.
  4. Started the Server, When tried accessing connector port from browser,
  I got cannot display the webpage.
  5.

procedure 2 :

  1. Created my own keystore.
  2. Imported the trial certificate (provided by Verisign ) into the
  keystore.
  3. Imported the trial certificate (provided by Verisign ) into the
  cacerts from jre/lib/security/cacerts.
  4. Added a ssl connector component in to the conf/server.xml into tomcat
  configuration file mentioning keyAlias pointing to imported certificate
  alias.
  5. Started the Server, at start up i got the folliwing exception

  java.io.IOException: Alias name mykeyalias does not identify a key entry

I had importing the root certificate or intrmediate certificate first 
before

importing trial verisign certificate suggested by tomcat.
But none of the things are working :-( please suggest me.
thanks in advance.
Bhuvan P



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Garbage collection problem and Tomcat

2009-03-12 Thread Caldarale, Charles R
> From: Ian Long [mailto:ian.l...@opterus.com] 
> Subject: Garbage collection problem and Tomcat
> 
> I'm having an issue where a connection pool (apache dbcp) is waiting  
> forever for a connection, when I see no reason for it to do so.   

The usual cause is pool exhaustion, due to improper coding in a webapp that 
fails to return connections to the pool under *all* circumstances.

> Nothing else has the lock

Irrelevant.

> I googled the problem and found a few other people who had  
> the issue, and there problem was related to GC.

Highly unlikely; sounds like finger-pointing.

> I see the 'from space' is at 99% used, as is PSPermGen object space.

Not true in either case.  You've used up 99% of what was *allocated* for the 
particular space at this time, not 99% of the maximum.  You're nowhere close to 
filling up any region of the heap.

> Do you think this could be causing my problem?

No.

If you had bothered to tell us the version of Tomcat you're using, we could 
have told you the proper documentation to read about how to use a connection 
pool.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Garbage collection problem and Tomcat

2009-03-12 Thread Gabor Kincses
I like your attitude.  Your bile is spilling out.  The word *please* is not
in your repertoire.  Nice.

Gabor
P.S. Sorry, I should have resisted.

On Thu, Mar 12, 2009 at 10:45 AM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:

> > From: Ian Long [mailto:ian.l...@opterus.com]
> > Subject: Garbage collection problem and Tomcat
> >
> > I'm having an issue where a connection pool (apache dbcp) is waiting
> > forever for a connection, when I see no reason for it to do so.
>
> The usual cause is pool exhaustion, due to improper coding in a webapp that
> fails to return connections to the pool under *all* circumstances.
>
> > Nothing else has the lock
>
> Irrelevant.
>
> > I googled the problem and found a few other people who had
> > the issue, and there problem was related to GC.
>
> Highly unlikely; sounds like finger-pointing.
>
> > I see the 'from space' is at 99% used, as is PSPermGen object space.
>
> Not true in either case.  You've used up 99% of what was *allocated* for
> the particular space at this time, not 99% of the maximum.  You're nowhere
> close to filling up any region of the heap.
>
> > Do you think this could be causing my problem?
>
> No.
>
> If you had bothered to tell us the version of Tomcat you're using, we could
> have told you the proper documentation to read about how to use a connection
> pool.
>
>  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Garbage collection problem and Tomcat

2009-03-12 Thread Ian Long
I'm using hibernate wrapped via the spring framework, so all  
connections *should* be returned to the pool under all conditions.  I  
don't use tomcat(6.0.16) connection pools, I have hibernate (via  
spring) to use the connection pool directly.


The pool is setup as follows:

jdbc.testOnBorrow=true
jdbc.validationQuery=select 1 + 1
jdbc.maxActive=100
jdbc.maxIdle=10
jdbc.minIdle=0
jdbc.timeBetweenEvictionRunsMillis=-1
jdbc.minEvictableIdleTimeMillis=90
jdbc.maxWait=15000

These map directly to the dbcp settings.

Cheers,
Ian Long
Chief Software Architect, Opterus Inc.

Email: ian.l...@opterus.com
Phone: 416-840-8495 x666
Mobile: 416-817-9206
Web: http://www.opterus.com




On 12-Mar-09, at 1:45 PM, Caldarale, Charles R wrote:


From: Ian Long [mailto:ian.l...@opterus.com]
Subject: Garbage collection problem and Tomcat

I'm having an issue where a connection pool (apache dbcp) is waiting
forever for a connection, when I see no reason for it to do so.


The usual cause is pool exhaustion, due to improper coding in a  
webapp that fails to return connections to the pool under *all*  
circumstances.



Nothing else has the lock


Irrelevant.


I googled the problem and found a few other people who had
the issue, and there problem was related to GC.


Highly unlikely; sounds like finger-pointing.


I see the 'from space' is at 99% used, as is PSPermGen object space.


Not true in either case.  You've used up 99% of what was *allocated*  
for the particular space at this time, not 99% of the maximum.   
You're nowhere close to filling up any region of the heap.



Do you think this could be causing my problem?


No.

If you had bothered to tell us the version of Tomcat you're using,  
we could have told you the proper documentation to read about how to  
use a connection pool.


- 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Garbage collection problem and Tomcat

2009-03-12 Thread Caldarale, Charles R
> From: Ian Long [mailto:ian.l...@opterus.com] 
> Subject: Re: Garbage collection problem and Tomcat
> 
> I'm using hibernate wrapped via the spring framework, 
> so all connections *should* be returned to the pool 
> under all conditions.

Then you might want to inquire on the Spring mailing list.  There is likely 
some tracing capability in whatever pooling mechanism you're using so you can 
find out who's not returning the connections.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Garbage collection problem and Tomcat

2009-03-12 Thread Caldarale, Charles R
> From: Gabor Kincses [mailto:berke...@gmail.com] 
> Subject: Re: Garbage collection problem and Tomcat
> 
> I like your attitude.  Your bile is spilling out.  The word 
> *please* is not in your repertoire.  Nice.

You're right, I could have been kinder in my response.  I'm always annoyed when 
the poster doesn't bother to include basic information such as Tomcat version, 
JRE/JDK being used, and platform.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Cofiguring tomcat for trial certificate by trusted authorities like verisign not working.

2009-03-12 Thread Caldarale, Charles R
> From: Bhuvanesh Pattanashetti [mailto:bhuva...@gmail.com] 
> Subject: Cofiguring tomcat for trial certificate by trusted 
> authorities like verisign not working.
> 
> I m trying to set up the SSL for tomcat server. I wanted to know what
> exactly is the procedure.

Tomcat version?

JRE/JDK being used?

Platform you're running on?

Are you using APR?

And, as Manuel suggested, post your  config; perhaps all of your 
server.xml.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Garbage collection problem and Tomcat

2009-03-12 Thread Gabor Kincses
I like your answer.  Gentlemanness returned.  Opinion reverted.

Gabor
P.S. I get crabby when vital information is missing in bug reports as much
as the next guy.  I should have resisted instead of wasting people's time.

On Thu, Mar 12, 2009 at 11:12 AM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:

> > From: Gabor Kincses [mailto:berke...@gmail.com]
> > Subject: Re: Garbage collection problem and Tomcat
> >
> > I like your attitude.  Your bile is spilling out.  The word
> > *please* is not in your repertoire.  Nice.
>
> You're right, I could have been kinder in my response.  I'm always annoyed
> when the poster doesn't bother to include basic information such as Tomcat
> version, JRE/JDK being used, and platform.
>
>  - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Sound

2009-03-12 Thread Gabor Kincses
I'm guilty as well.  JRE 1.6-ish.

Gabor

On Wed, Mar 11, 2009 at 8:43 PM, Gabor Kincses  wrote:

> Hello,
>
> This should really be pretty simple.  I'm trying to serve up an mp3 file
> without any action mapping.  But upon trying to access the file I'm getting
> a 404.  What's more interesting is that after directory listing is enabled,
> the mp3 file is excluded from the listing.
>
> This is on a pretty vanilla 6.0.18 out of the box on Windows.
>
> Thanks,
> Gabor
>
>


Re: Sound

2009-03-12 Thread David Smith
Gabor Kincses wrote:
> I'm guilty as well.  JRE 1.6-ish.
>
> Gabor
>
> On Wed, Mar 11, 2009 at 8:43 PM, Gabor Kincses  wrote:
>
>   
>> Hello,
>>
>> This should really be pretty simple.  I'm trying to serve up an mp3 file
>> without any action mapping.  But upon trying to access the file I'm getting
>> a 404.  What's more interesting is that after directory listing is enabled,
>> the mp3 file is excluded from the listing.
>>
>> This is on a pretty vanilla 6.0.18 out of the box on Windows.
>>
>> Thanks,
>> Gabor
>>
>>
>> 
>
>   
Smells like an OS issue.  What OS? Is there anything that sets that file
apart from the others like it being a symlink?

--David

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



remote jconsole connection did not succeed

2009-03-12 Thread Ivars Strazdiņš

Hi *,
in this setup there are two tomcat 6.0.18 instances each running on 
separate windows 2003 server with Sun JDK 1.6.0_12.
I have configured JMX console access pretty much the standard way on 
both systems, with switches:

-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=9004
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false

The funny thing is that I can connect to one Tomcat both locally and 
remotely, but only locally to other Tomcat instance (that is, from the 
same system and to local process).
If I try to connect remotely to that instance, connection fails with 
message "the connection did not succeed".

I dont even have a clue what to look for :(
Both servers are nearly identical and run the same webapps.
Thanks for your time,
Ivars

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Sound

2009-03-12 Thread David Smith
David Smith wrote:
> Gabor Kincses wrote:
>   
>> I'm guilty as well.  JRE 1.6-ish.
>>
>> Gabor
>>
>> On Wed, Mar 11, 2009 at 8:43 PM, Gabor Kincses  wrote:
>>
>>   
>> 
>>> Hello,
>>>
>>> This should really be pretty simple.  I'm trying to serve up an mp3 file
>>> without any action mapping.  But upon trying to access the file I'm getting
>>> a 404.  What's more interesting is that after directory listing is enabled,
>>> the mp3 file is excluded from the listing.
>>>
>>> This is on a pretty vanilla 6.0.18 out of the box on Windows.
>>>
>>> Thanks,
>>> Gabor
>>>
>>>
>>> 
>>>   
>>   
>> 
> Smells like an OS issue.  What OS? Is there anything that sets that file
> apart from the others like it being a symlink?
>
> --David
>
>
>   
Sorry ... I should have seen the Windows part.  Anything else that might
set it apart?  Permissions?  Shortcut?

--David

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Sound

2009-03-12 Thread Gabor Kincses
Nah.  It's just Windows XP with NTFS.

How do I turn on tracing?

Gabor

On Thu, Mar 12, 2009 at 11:36 AM, David Smith  wrote:

> Gabor Kincses wrote:
> > I'm guilty as well.  JRE 1.6-ish.
> >
> > Gabor
> >
> > On Wed, Mar 11, 2009 at 8:43 PM, Gabor Kincses 
> wrote:
> >
> >
> >> Hello,
> >>
> >> This should really be pretty simple.  I'm trying to serve up an mp3 file
> >> without any action mapping.  But upon trying to access the file I'm
> getting
> >> a 404.  What's more interesting is that after directory listing is
> enabled,
> >> the mp3 file is excluded from the listing.
> >>
> >> This is on a pretty vanilla 6.0.18 out of the box on Windows.
> >>
> >> Thanks,
> >> Gabor
> >>
> >>
> >>
> >
> >
> Smells like an OS issue.  What OS? Is there anything that sets that file
> apart from the others like it being a symlink?
>
> --David
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Sound

2009-03-12 Thread Gabor Kincses
Just a plain old 375k mp3 file for a little audio logo.  There is another
mp3 file (long version) that's 6M.  As I said neither shows up in directory
listings, either.  Really strange.

Gabor

On Thu, Mar 12, 2009 at 11:40 AM, Gabor Kincses  wrote:

> Nah.  It's just Windows XP with NTFS.
>
> How do I turn on tracing?
>
> Gabor
>
>
> On Thu, Mar 12, 2009 at 11:36 AM, David Smith  wrote:
>
>> Gabor Kincses wrote:
>> > I'm guilty as well.  JRE 1.6-ish.
>> >
>> > Gabor
>> >
>> > On Wed, Mar 11, 2009 at 8:43 PM, Gabor Kincses 
>> wrote:
>> >
>> >
>> >> Hello,
>> >>
>> >> This should really be pretty simple.  I'm trying to serve up an mp3
>> file
>> >> without any action mapping.  But upon trying to access the file I'm
>> getting
>> >> a 404.  What's more interesting is that after directory listing is
>> enabled,
>> >> the mp3 file is excluded from the listing.
>> >>
>> >> This is on a pretty vanilla 6.0.18 out of the box on Windows.
>> >>
>> >> Thanks,
>> >> Gabor
>> >>
>> >>
>> >>
>> >
>> >
>> Smells like an OS issue.  What OS? Is there anything that sets that file
>> apart from the others like it being a symlink?
>>
>> --David
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>


RE: Sound

2009-03-12 Thread Caldarale, Charles R
> From: Gabor Kincses [mailto:berke...@gmail.com] 
> Subject: Sound
> 
> But upon trying to access the file I'm getting
> a 404.

Have you changed the  in conf/web.xml?  (Or for that matter made 
any changes to conf/web.xml?)

Try enabling the AccessLogValve in conf/server.xml and see if anything 
interesting shows up.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Sound

2009-03-12 Thread Gabor Kincses
God, I'm really stupid.  Forgot to tell Eclipse, hence it wasn't published.
What a bozo.  ;-)

Cheers,
Gabor

On Thu, Mar 12, 2009 at 11:42 AM, Gabor Kincses  wrote:

> Just a plain old 375k mp3 file for a little audio logo.  There is another
> mp3 file (long version) that's 6M.  As I said neither shows up in directory
> listings, either.  Really strange.
>
> Gabor
>
>
> On Thu, Mar 12, 2009 at 11:40 AM, Gabor Kincses wrote:
>
>> Nah.  It's just Windows XP with NTFS.
>>
>> How do I turn on tracing?
>>
>> Gabor
>>
>>
>> On Thu, Mar 12, 2009 at 11:36 AM, David Smith  wrote:
>>
>>> Gabor Kincses wrote:
>>> > I'm guilty as well.  JRE 1.6-ish.
>>> >
>>> > Gabor
>>> >
>>> > On Wed, Mar 11, 2009 at 8:43 PM, Gabor Kincses 
>>> wrote:
>>> >
>>> >
>>> >> Hello,
>>> >>
>>> >> This should really be pretty simple.  I'm trying to serve up an mp3
>>> file
>>> >> without any action mapping.  But upon trying to access the file I'm
>>> getting
>>> >> a 404.  What's more interesting is that after directory listing is
>>> enabled,
>>> >> the mp3 file is excluded from the listing.
>>> >>
>>> >> This is on a pretty vanilla 6.0.18 out of the box on Windows.
>>> >>
>>> >> Thanks,
>>> >> Gabor
>>> >>
>>> >>
>>> >>
>>> >
>>> >
>>> Smells like an OS issue.  What OS? Is there anything that sets that file
>>> apart from the others like it being a symlink?
>>>
>>> --David
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>>
>>>
>>
>


Re: remote jconsole connection did not succeed

2009-03-12 Thread Ivars Strazdiņš

Martin Gainty wrote:

possibly firewall issue from client:
netstat -aon | grep 9004
do you see anything coming up?

nope, I can connect just fine:

iva...@poga:~$ telnet hostname 9004
Trying 192.168.0.3...
Connected to hostname.domain
Escape character is '^]'.

Ivars


> Date: Thu, 12 Mar 2009 20:36:38 +0200
> From: ivars.strazd...@gmail.com
> To: users@tomcat.apache.org
> Subject: remote jconsole connection did not succeed
>
> Hi *,
> in this setup there are two tomcat 6.0.18 instances each running on
> separate windows 2003 server with Sun JDK 1.6.0_12.
> I have configured JMX console access pretty much the standard way on
> both systems, with switches:
> -Dcom.sun.management.jmxremote
> -Dcom.sun.management.jmxremote.port=9004
> -Dcom.sun.management.jmxremote.ssl=false
> -Dcom.sun.management.jmxremote.authenticate=false
>
> The funny thing is that I can connect to one Tomcat both locally and
> remotely, but only locally to other Tomcat instance (that is, from the
> same system and to local process).
> If I try to connect remotely to that instance, connection fails with
> message "the connection did not succeed".
> I dont even have a clue what to look for :(
> Both servers are nearly identical and run the same webapps.
> Thanks for your time,
> Ivars
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>


Express your personality in color! Preview and select themes for 
Hotmail®. See how. 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: remote jconsole connection did not succeed

2009-03-12 Thread Caldarale, Charles R
> From: Ivars Strazdiņš [mailto:ivars.strazd...@gmail.com] 
> Subject: remote jconsole connection did not succeed
> 
> If I try to connect remotely to that instance, connection 
> fails with message "the connection did not succeed".

This is usually the firewall blocking the secondary (and unpredictable) JMX 
port.  See the discussion here:
http://marc.info/?l=tomcat-user&m=122277270626801&w=2

If you can't turn off the firewall, the enhancement should be available in the 
next Tomcat 6.0 release, or you could just pick it up from svn and build it in.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: The requested resource () is not available?

2009-03-12 Thread Pat Riehecky
On Thu, 2009-03-12 at 11:17 -0400, David Smith wrote:
> Pat Riehecky wrote:
> > I have been trying to install a tomcat app onto a fresh Ubuntu box (8.04
> > tomcat 5.5), but when attempting to view the app's pages I get
> >
> > HTTP Status 404 - 
> >
> > 
> >
> > type Status report
> >
> > message 
> >
> > description The requested resource () is not available.
> >
> >
> > 
> > Apache Tomcat/5.5
> >
> >
> > I know this is well before my app starts up, but I haven't a clue what
> > to do about it.  When I google the error I get dozens of suggestions,
> > each of which says not to do the other unless I know what I am doing.
> >
> > I don't.
> >
> > What doc should I read/what should I do?  What does this mean?
> > Pat
> >
> >   
> >...I know this is well before my app starts up...
> 
> Ok... I'm confused.  If it's not running yet, why should anything but a
> 404 show up?
It is my understanding that tomcat runs the application, since tomcat
doesn't seem to be happy with my configuration.  I would therefore
conclude that the app isn't running.  If that isn't the way tomcat works
I again offer to ready any docs you suggest.
> 
> In any problem, the first place to look is the logs.  Second is the
> tomcat docs to verify things are setup correctly.  Actually in your
> case, if this tomcat came with Ubuntu, maybe the second place to look is
> the Ubuntu docs for this package.
Perhaps my original post was a bit vague, I have read the ubuntu docs,
the docs that came with this app, and several pages of google results on
googleing the error.

Here is the output from catalina, since I am not a tomcat person, I
haven't a clue if this is one of the logs to which you refer.  If you
can point me towards a resource, I will read it, but I have about 4
hours of java under me right now so specifics are rather key to the
operation.

Mar 12, 2009 2:20:28 PM 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: 
/usr/openwin/lib:/usr/lib:/opt/SUNWspro/lib:/usr/local/lib:/opt/SUNWspro/lib:/lib:/usr/java/packages/lib/i386:/lib:/usr/lib
Mar 12, 2009 2:20:28 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
Mar 12, 2009 2:20:28 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8443
Mar 12, 2009 2:20:28 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 592 ms
Mar 12, 2009 2:20:29 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 12, 2009 2:20:29 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5
Mar 12, 2009 2:20:29 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 12, 2009 2:20:30 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Mar 12, 2009 2:20:30 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/idp] startup failed due to previous errors
Mar 12, 2009 2:20:30 PM org.apache.coyote.http11.Http11BaseProtocol
start
INFO: Starting Coyote HTTP/1.1 on http-8180
Mar 12, 2009 2:20:30 PM org.apache.coyote.http11.Http11BaseProtocol
start
INFO: Starting Coyote HTTP/1.1 on http-8443
Mar 12, 2009 2:20:30 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /127.0.0.1:8009
Mar 12, 2009 2:20:30 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/24  config=null
Mar 12, 2009 2:20:30 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Mar 12, 2009 2:20:30 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1392 ms



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: remote jconsole connection did not succeed

2009-03-12 Thread Ivars Strazdiņš

Caldarale, Charles R wrote:
From: Ivars Strazdiņš [mailto:ivars.strazd...@gmail.com] 
Subject: remote jconsole connection did not succeed


If I try to connect remotely to that instance, connection 
fails with message "the connection did not succeed".



This is usually the firewall blocking the secondary (and unpredictable) JMX 
port.  See the discussion here:
http://marc.info/?l=tomcat-user&m=122277270626801&w=2

If you can't turn off the firewall, the enhancement should be available in the 
next Tomcat 6.0 release, or you could just pick it up from svn and build it in.
  
Well, could it be anything else because firewall is turned off on that 
server?

Ivars

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

  


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: The requested resource () is not available?

2009-03-12 Thread Caldarale, Charles R
> From: Pat Riehecky [mailto:prieh...@iwu.edu] 
> Subject: Re: The requested resource () is not available?
> 
> Here is the output from catalina

It's a start, but there's more.

> Mar 12, 2009 2:20:30 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> Mar 12, 2009 2:20:30 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/idp] startup failed due to previous errors

The above is the critical information from the log file you found.  There will 
be more detailed info in other log files that Tomcat produces.  For a real 
Tomcat installation (one downloaded from tomcat.apache.org), the log files are 
in Tomcat's logs directory; if you're using Ubuntu's repackaged version of 
Tomcat, there's no telling where they are.  Finding the additional info would 
be very useful.

Since the error refers to listenerStart within the ipd webapp, it looks like 
some form of listener is misconfigured (or the targeted class file is missing) 
in the app's WEB-INF/web.xml file.  You may need the author of the webapp to 
help you out. 

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: mod_proxy_balancer and session affinity

2009-03-12 Thread Rainer Jung

On 12.03.2009 10:43, Andrew Hole wrote:

Hi guys!

I can't find any documentation regarding session affinity using
mod_proxy_balancer (http protocol).
Anyone have or know where i cand find it?


Look for "route" and "stickysession" on the page

http://httpd.apache.org/docs/2.2/mod/mod_proxy.html

Regards,

Rainer

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: The requested resource () is not available?

2009-03-12 Thread David Smith
Caldarale, Charles R wrote:
>> From: Pat Riehecky [mailto:prieh...@iwu.edu] 
>> Subject: Re: The requested resource () is not available?
>>
>> Here is the output from catalina
>> 
>
> It's a start, but there's more.
>
>   
>> Mar 12, 2009 2:20:30 PM org.apache.catalina.core.StandardContext start
>> SEVERE: Error listenerStart
>> Mar 12, 2009 2:20:30 PM org.apache.catalina.core.StandardContext start
>> SEVERE: Context [/idp] startup failed due to previous errors
>> 
>
> The above is the critical information from the log file you found.  There 
> will be more detailed info in other log files that Tomcat produces.  For a 
> real Tomcat installation (one downloaded from tomcat.apache.org), the log 
> files are in Tomcat's logs directory; if you're using Ubuntu's repackaged 
> version of Tomcat, there's no telling where they are.  Finding the additional 
> info would be very useful.
>
> Since the error refers to listenerStart within the ipd webapp, it looks like 
> some form of listener is misconfigured (or the targeted class file is 
> missing) in the app's WEB-INF/web.xml file.  You may need the author of the 
> webapp to help you out. 
>
>  - Chuck
>
>
>   
If you can't find any further information in any of tomcat's other
logging files, they may also be stored with the webapp depending on how
the logging environment for your webapp is setup.  I know for instance
Magnolia CMS has it's own logs directory.

--David

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache/mod_jk serves random files from tomcat

2009-03-12 Thread Rainer Jung

On 12.03.2009 16:42, SQ wrote:

Good to see others are seeing the same problem that’s been driving us crazy
and is slowly become a very serious issue.  Admittedly, my knowledge on this
whole area is limited, but I’ll try my best to provide as much info as
possible to help solve the problem.

Here are some specifics:
Tomcat serves most of the pages, excluding html pages, which there are very
few.  We have tried extensively to reproduce the problem, but cannot.
Restarting either apache or tomcat clears the problem.  We have two
different environments that are exhibiting the same problem.

In both environments, tomcat and apache are on the same machines.

Development
Solaris 10
Tomcat 5.0.19
Apache 2.0.49
mod_jk2/2.0.4

Web
Solaris 10
Tomcat 5.0.19
Apache 2.2.6
mod_jk/1.2.25

Web servers are load balanced using separate machines.  These machines have
a probe that runs, checking the health of the web servers.  The servers are
constantly going up and down depending on the random responses.  This is
normally how we are alerted of the problem, or user input.  Problem happens
daily on the web servers, maybe once a week in development.

I looked for any signs of APR and found none; I don’t think we’re using it.

After glancing over past responses, it appears upgrading mod_jk should be
the first step, but it doesn’t seem like that was a guaranteed fix for all.
Interestingly enough, we’re using two different versions and getting the
same problem on both.  Any other suggestions?  Any additional info I can
provide?


Jus to make sure, we are talking about the same kind of observation: 
could you please describe independently, how the observed problem looks 
like in your case?


Since you see the problem with mod_jk2 and with mod_jk I somehow doubt, 
that it comes form mod_jk (but hey, I'm involved in mod_jk development, 
so that might simply be defense.


What is obvious, your Tomcat is *very* outdated. You are using a no 
longer supported major version (5.0) and with 5.0 you are using a very 
old minor version.


If you have any chance, upgrade your Tomcat.

Apart from that: what else can you tell about the problem? Are there log 
entries either from mod_jk, Apache httpd or Tomcat associated with these 
events? Would you be able to snoop traffic between httpd and Tomcat and 
between httpd and the clients?


Where did you get your mod_jk from? How was it build?

Regards,

Rainer

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Problems with LoadBalancing

2009-03-12 Thread Rainer Jung

On 12.03.2009 17:45, Toni Menendez Lopez wrote:

Rainer,

May be my problem is due to the fact I have the line :

#worker.izonetv.sticky_session_force=1

commented.

The reason is that if I uncomment this line I have this error in Apache :

[Thu Mar 12 17:31:37 2009][23548:6496] [error] service::jk_lb_worker.c
(1144): All tomcat instances failed, no more workers left for recovery

Any idea what can be the problem ?


Set your JkLogLevel to info. Whenever an [error] occurs, look for the 
[info] messages before the error and having the same [pid:tid] numbers. 
Those will indicate, why the request failed.


You can post those lines if you don't understand them.

Most of the time such problems comes from webapps or backend sizing, 
which can't cope with the load. In these cases we always suggest to take 
2 or 3 thread dumps, each a couple of seconds apart from each other and 
have a look at them.


On a Unix/Linux system you can take a thread dump using "kill -QUIT" 
against your process (it will not end Tomcat, it will simply write some 
information to catalina.out and then proceed normal processing, at least 
if you are sing JVM 1.4.2 or newer).


Regards,

Rainer

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Cofiguring tomcat for trial certificate by trusted authorities like verisign not working.

2009-03-12 Thread Bill Barker
Willing to try and play psychic ;).

Procedure 1 is what you want.  But the keystore must be the same one that 
you used to create the CSR you sent to Verisign.  This is by far the second 
most common mistake that people make when setting up Tomcat to use SSL.  As 
Chuck suggested, check if you are using APR (the SSL configuration options 
are different, and APR can't use a JKS keystore).  This is the most common 
mistake.  Verisign has an intermediate cert as well.  You'll likely need to 
import that as well.  And of course, import the Verisign root cert.


"Bhuvanesh Pattanashetti"  wrote in message 
news:bce69da80903120948v7c2f1693md9db7e74e6e3f...@mail.gmail.com...
> Hi all,
> I m trying to set up the SSL for tomcat server. I wanted to know what
> exactly is the procedure.
> here is what i have followed.
>
> Procedure 1.
>
>   1. Created my own keystore.
>   2. Imported the trial certificate (provided by Verisign ) into the
>   keystore.
>   3. Added a ssl connector component in to the conf/server.xml into tomcat
>   configuration file.
>   4. Started the Server, When tried accessing connector port from browser,
>   I got cannot display the webpage.
>   5.
>
> procedure 2 :
>
>   1. Created my own keystore.
>   2. Imported the trial certificate (provided by Verisign ) into the
>   keystore.
>   3. Imported the trial certificate (provided by Verisign ) into the
>   cacerts from jre/lib/security/cacerts.
>   4. Added a ssl connector component in to the conf/server.xml into tomcat
>   configuration file mentioning keyAlias pointing to imported certificate
>   alias.
>   5. Started the Server, at start up i got the folliwing exception
>
>   java.io.IOException: Alias name mykeyalias does not identify a key entry
>
> I had importing the root certificate or intrmediate certificate first 
> before
> importing trial verisign certificate suggested by tomcat.
> But none of the things are working :-( please suggest me.
> thanks in advance.
> Bhuvan P
> 




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: How can JSP use the .jar file out of Tomcat's Home ?

2009-03-12 Thread 李睿
Thanks for your reminding:)

On Thu, Mar 12, 2009 at 10:59 PM, David Smith  wrote:

> The problem is your other running application is in a separate jvm
> instance. Even if you did get it to run inside tomcat, it wouldn't be
> able to bridge tomcat to the other running app by jar alone. The API
> would have to define some sort of communication and work in a
> client/server mode of some sort -- even if by unix sockets.
>
> --David
>
> lrvb...@gmail.com wrote:
> > Thanks,
> > For the jar is the core of another running application.
> > I want to use API in the jar to put stream from the servlet to the core.
> >
> > Can we keep the jar out of Tomcat's Home?
> > -邮件原件-
> > 发件人: Peter Crowther [mailto:peter.crowt...@melandra.com]
> > 发送时间: 2009年3月12日 21:35
> > 收件人: 'Tomcat Users List'
> > 主题: RE: How can JSP use the .jar file out of Tomcat's Home ?
> >
> >
> >> From: lrvb...@gmail.com [mailto:lrvb...@gmail.com]
> >>I have to make a JSP invoke a Class which is in a .jar
> >> file out of Tomcat
> >> Home,
> >>
> >> How can I deal with it?
> >>
> >
> > Add the jar to the WEB-INF/lib directory of the webapp with the JSP in.
> >
> > - Peter
> >
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: How can JSP use the .jar file out of Tomcat's Home ?

2009-03-12 Thread 李睿
Thanks :)

On Thu, Mar 12, 2009 at 10:43 PM, Mikolaj Rydzewski  wrote:

> lrvb...@gmail.com wrote:
>
>>   I have to make a JSP invoke a Class which is in a .jar file out of
>> Tomcat
>> Home,
>>
>>
> You need to create new instance of ClassLoader (e.g. URLClassLoader) and
> load 'external' jar using it.
>
> You're on right way to shoot yourself in both feet ;-)
>
> --
> Mikolaj Rydzewski 
>
>


Fwd: Cookie not being set

2009-03-12 Thread Andromeda Mobile
Thanks guys for your help. By moving the jsp include to the head of
the document I was able to get the set cookie working so it was to do
with the fact that the cookie needed to be sent before any other
output was streamed.


-- Forwarded message --
From: Michael Farah 
Date: Mon, Mar 9, 2009 at 7:58 AM
Subject: Cookie not being set
To: users@tomcat.apache.org


Hi all

I’m running two web apps off a single instance of Tomcat 6.0.1.8 on a CentOS
64 bit OS. Tomcat is fronted with Apache 2.2 and I’m using mod_proxy_http.
Both applications are wap sites.

I’ve been trying to implement an analytics solution provided by Admob. The
solution uses a pixel image in conjunction with a  cookie to provide
detailed user info. Similar to Google analytics but without the Javascript.
Admob provides the code in multiple formats including Java.
The problem is that the cookie is not being set. I have been back and forth
with Admob and they are adamant that the problem lies in our enviroment.
Below is my Virtual Host config;


    ServerName sitea.com
    ServerAlias www.sitea.com
    DocumentRoot /home/sitea
    ProxyPass / http://tomcatserver.com:8080/sitea/
    ProxyPassReverse / http://tomcatserver.com:8080/sitea/
    ProxyPassReverseCookieDomain tomcatserver.com site.com


The Admob code is a JSP file named AdMob.jsp that is imported into each page
of our webapp via this code snippet


The AdMob.jsp file is pretty big so I won’t pase it all here except for two
snippets which I feel are most relevant. The first is this one;

admobRequiredParams.put("COOKIE_DOMAIN", "sitea.com"); // If your mobile
site uses multiple subdomains, replace "null" with your root domain (e.g.
"example.com") to make the AdMob cookie visible across subdomains.

The second is the code that sets the cookie;

private String admobGetCookieValue(HttpServletRequest request,
HttpServletResponse response, PageContext pageContext, String cookieDomain)
{
  try {
    Cookie cookies[] = request.getCookies();
    if (cookies != null) {
  for (int i = 0; i < cookies.length; i++) {
    if (cookies[i].getName().equals("admobuu")) return
cookies[i].getValue();
  }
    }

    // Set a cookie if one has not already been set
    if (pageContext.getAttribute("admobCookie") == null) {
  String value = UUID.randomUUID().toString().replace("-","");
  Cookie c = new Cookie("admobuu", value);
  c.setMaxAge(60*60*24*365*20);
  c.setPath("/");
  if (cookieDomain != null) {
    if (cookieDomain.charAt(0) != '.') cookieDomain = "." +
cookieDomain;
    c.setDomain(cookieDomain);
  }
  response.addCookie(c);
  pageContext.setAttribute("admobCookie", value);
    }
    return (String)pageContext.getAttribute("admobCookie");
  }
  catch (Exception e) {
    return "";
  }
}

When accessing sitea.com via Firefox with Live HTTP headers, it’s clear that
the cookie is not being set as it doesn’t come shop up. However there is
another cookie being set which I don’t recognise;

Cookie: an=Af4ab27e8d16fb4ac50f73d03fe54c132

Can anyone please assist in explaining why this AdMob cookie is not being
set?

Thanks in advance
Michael

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Cofiguring tomcat for trial certificate by trusted authorities like verisign not working.

2009-03-12 Thread Bhuvanesh Pattanashetti
HI All,thanks all  for your suggestions. :-)

Here are following some more details.

I m using

- tomcat 6.0,
- JDK 1.6,
- no i m not using keystore.
- I m running on Xp with Spring-DM framework.
connector is as follows.



I have generated the keystore using keytool.
Please suggest me further.





On Fri, Mar 13, 2009 at 7:51 AM, Bill Barker  wrote:

> Willing to try and play psychic ;).
>
> Procedure 1 is what you want.  But the keystore must be the same one that
> you used to create the CSR you sent to Verisign.  This is by far the second
> most common mistake that people make when setting up Tomcat to use SSL.  As
> Chuck suggested, check if you are using APR (the SSL configuration options
> are different, and APR can't use a JKS keystore).  This is the most common
> mistake.  Verisign has an intermediate cert as well.  You'll likely need to
> import that as well.  And of course, import the Verisign root cert.
>
>
> "Bhuvanesh Pattanashetti"  wrote in message
> news:bce69da80903120948v7c2f1693md9db7e74e6e3f...@mail.gmail.com...
> > Hi all,
> > I m trying to set up the SSL for tomcat server. I wanted to know what
> > exactly is the procedure.
> > here is what i have followed.
> >
> > Procedure 1.
> >
> >   1. Created my own keystore.
> >   2. Imported the trial certificate (provided by Verisign ) into the
> >   keystore.
> >   3. Added a ssl connector component in to the conf/server.xml into
> tomcat
> >   configuration file.
> >   4. Started the Server, When tried accessing connector port from
> browser,
> >   I got cannot display the webpage.
> >   5.
> >
> > procedure 2 :
> >
> >   1. Created my own keystore.
> >   2. Imported the trial certificate (provided by Verisign ) into the
> >   keystore.
> >   3. Imported the trial certificate (provided by Verisign ) into the
> >   cacerts from jre/lib/security/cacerts.
> >   4. Added a ssl connector component in to the conf/server.xml into
> tomcat
> >   configuration file mentioning keyAlias pointing to imported certificate
> >   alias.
> >   5. Started the Server, at start up i got the folliwing exception
> >
> >   java.io.IOException: Alias name mykeyalias does not identify a key
> entry
> >
> > I had importing the root certificate or intrmediate certificate first
> > before
> > importing trial verisign certificate suggested by tomcat.
> > But none of the things are working :-( please suggest me.
> > thanks in advance.
> > Bhuvan P
> >
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Path problem

2009-03-12 Thread popprem

 
 Hi,

 I'v really stuck with an issue. I have done a web program using struts
framework. I have a plugin class there for which i have to pass a
configuration file as parameter. That file is in webapps/Myapp/WEB-INF/
directory. So i mentioned relative path as
../webapps/Myapp/WEB-INF/conf.xml. it works fine if i download tomcat zip
file & extract it & use. Bt if i download a .exe file (eg:
Apache-tomcat-5.5.15.exe) & run it to install & use it, struts doesnt get
that path. 

I'm really stuck with this prob. i need a way to specify path which works
for both tomcat installations.

Please help me to solve this prob.

Note: 
I thought to check where a file creates if i create a file from my program.
When the tomcat.zip is used i found the created test file is in bin
directory of tomcat. That means tomcat defaultly points to bin directory, so
the path to the config file ../webapps/Myapp/WEB-INF/conf.xml. works fine.
When i used tomcat.exe & installed tomcat in my machine & run the program,i
found that the test file i created in my code level was in windows/system32/
directory. so in this case tomcat doesnt defaultly points to the bin
directory i guess.

hope this helps to give me a good answer.
Thanks in advance.


-- 
View this message in context: 
http://www.nabble.com/Path-problem-tp22490662p22490662.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Cofiguring tomcat for trial certificate by trusted authorities like verisign not working.

2009-03-12 Thread Bhuvanesh Pattanashetti
Some more information regarding my problem statement,
i followed exactly like this,


   1. created the keystore using keytool
   2. created CSR using the -certreq using keytool
   3. sent the same to verisign and get the certificate as as a reply.
   4. imported the root certificate provided by verisign.
   5. imported the intermediate cert provided by verisign.
   6. inported that trial certificate provided by verisign into the same
   keystore from which i generated the CSR
   7. referred the keystore from the  component.(I have posted
   my connector configuration ablove
   8. when i started the server i got the following error,

java.io.IOException: Alias name aliasName does not identify a key entry.

please suggest me further.

Thanks,
Bhuvan P

On Fri, Mar 13, 2009 at 10:32 AM, Bhuvanesh Pattanashetti <
bhuva...@gmail.com> wrote:

> HI All,thanks all  for your suggestions. :-)
>
> Here are following some more details.
>
> I m using
>
> - tomcat 6.0,
> - JDK 1.6,
> - no i m not using keystore.
> - I m running on Xp with Spring-DM framework.
> connector is as follows.
>
> port="8443" minSpareThreads="5" maxSpareThreads="75"
>enableLookups="true" disableUploadTimeout="true"
>acceptCount="100"  maxThreads="200"
>scheme="https" secure="true" SSLEnabled="true"
> keyAlias="aliasName"
>keystoreFile="KEeySrotePath" keystorePass="password"
>clientAuth="false" sslProtocol="TLS"/>
>
> I have generated the keystore using keytool.
> Please suggest me further.
>
>
>
>
>
> On Fri, Mar 13, 2009 at 7:51 AM, Bill Barker  wrote:
>
>> Willing to try and play psychic ;).
>>
>> Procedure 1 is what you want.  But the keystore must be the same one that
>> you used to create the CSR you sent to Verisign.  This is by far the
>> second
>> most common mistake that people make when setting up Tomcat to use SSL.
>>  As
>> Chuck suggested, check if you are using APR (the SSL configuration options
>> are different, and APR can't use a JKS keystore).  This is the most common
>> mistake.  Verisign has an intermediate cert as well.  You'll likely need
>> to
>> import that as well.  And of course, import the Verisign root cert.
>>
>>
>> "Bhuvanesh Pattanashetti"  wrote in message
>> news:bce69da80903120948v7c2f1693md9db7e74e6e3f...@mail.gmail.com...
>> > Hi all,
>> > I m trying to set up the SSL for tomcat server. I wanted to know what
>> > exactly is the procedure.
>> > here is what i have followed.
>> >
>> > Procedure 1.
>> >
>> >   1. Created my own keystore.
>> >   2. Imported the trial certificate (provided by Verisign ) into the
>> >   keystore.
>> >   3. Added a ssl connector component in to the conf/server.xml into
>> tomcat
>> >   configuration file.
>> >   4. Started the Server, When tried accessing connector port from
>> browser,
>> >   I got cannot display the webpage.
>> >   5.
>> >
>> > procedure 2 :
>> >
>> >   1. Created my own keystore.
>> >   2. Imported the trial certificate (provided by Verisign ) into the
>> >   keystore.
>> >   3. Imported the trial certificate (provided by Verisign ) into the
>> >   cacerts from jre/lib/security/cacerts.
>> >   4. Added a ssl connector component in to the conf/server.xml into
>> tomcat
>> >   configuration file mentioning keyAlias pointing to imported
>> certificate
>> >   alias.
>> >   5. Started the Server, at start up i got the folliwing exception
>> >
>> >   java.io.IOException: Alias name mykeyalias does not identify a key
>> entry
>> >
>> > I had importing the root certificate or intrmediate certificate first
>> > before
>> > importing trial verisign certificate suggested by tomcat.
>> > But none of the things are working :-( please suggest me.
>> > thanks in advance.
>> > Bhuvan P
>> >
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>