Blocking Proxy Access

2008-06-25 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=41765 Posted on behalf of 
a User

Is there anyway to detect that a web user is trying to access my site via an 
open/anonymous proxy? Other than building a list of open proxy IP addresses and 
checking against it? This list would be huge and ever changing. There must be 
an easier way. Sorry if this post is slightly OT.

Thanks



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



Re: Blocking Proxy Access

2008-06-25 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=41765 Posted on behalf of 
a User

It's to keep undesirables, who have been banned, off from a social networking 
site.

In Response To: 

> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Is there anyway to detect that a web user is trying to access
> my site via an open/anonymous proxy? Other than building a
> list of open proxy IP addresses and checking against it? This
> list would be huge and ever changing. There must be an easier
> way. Sorry if this post is slightly OT.

Open/anonymous proxies deliberately have signatures that are almost identical 
to any other proxy, so there's no reliable way of knowing based on features of 
the request.  You need that list.  Unless someone else maintains it (and you 
trust them to correctly classify proxies), you'll have to build it yourself.  
If someone else maintains it, you may be able to use it.

What on earth is the use case, if you don't mind me asking?

- Peter

-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



Upgrade Tomcat 4.1 to 5.5

2008-07-08 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=43409 Posted on behalf of 
a User

Hi All,

I would like to upgrade Apache Tomcat/4=2E1=2E36-LE-jdk14 =
to Apache Tomcat 5=2E5=2E26=2E
I currently have the following installa=
tion:
OS =3D Windows 2003
JDK =3D Version 1=2E5=2E0_11 Build 149023=

Using mod_jk connector between Apache 2=2E0=2E52 and Tomcat
Using =
mod_ssl for SSL encryption to Tomcat Application=2E
How would I proce=
ed to upgrade?
Do I need to stop the current version and install it ov=
er the current =24Catalina_Home or do I install it to a new directory=2E =
Also would I need to reconfigure the mod_jk connector=2E

Thanks 
Thabit



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



HEAD request to a Servlet

2008-08-03 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=46841 Posted on behalf of 
a User

A request like:

HEAD /SomeServlet?id=10471 HTTP/1.1" 500 returns a 500 error. The log has the 
following:

javax.servlet.ServletException: Original SevletResponse or wrapped original 
ServletResponse not passed to RequestDispatcher in violation of SRV.8.2 and 
SRV.14.2.5.1
at 
org.apache.catalina.core.ApplicationDispatcher.checkSameObjects(ApplicationDispatcher.java:1018)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:329)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at showme.servlet.Detail.processRequest(Detail.java:153)
at showme.servlet.Detail.doGet(Detail.java:163)
at javax.servlet.http.HttpServlet.doHead(HttpServlet.java:271)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
at 
org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:381)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)

Any solution to this annoying problem?

Thanks



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



Re: HEAD request to a Servlet

2008-08-03 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=46841 Posted on behalf of 
a User

That's exactly it. Thanks for pointing me in the right direction! Now I have to 
figure out which version of JBoss will be built around that version of Tomcat.



In Response To: 

[EMAIL PROTECTED] wrote:
> A request like:
> 
> HEAD /SomeServlet?id=10471 HTTP/1.1" 500 returns a 500 error. The log has the 
> following:
> 
> javax.servlet.ServletException: Original SevletResponse or wrapped original 
> ServletResponse not passed to RequestDispatcher in violation of SRV.8.2 and 
> SRV.14.2.5.1
> 
> Any solution to this annoying problem?

Looks like https://issues.apache.org/bugzilla/show_bug.cgi?id=44562

An upgrade to to 6.0.18 should fix it.

Mark



-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



Re: CGIServlet in Tomcat 6

2008-08-12 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=4877 Posted on behalf of 
a User

Add it where exactly?  In $CATALINA_HOME/conf/context.xml?  In 
$CATALINA_HOME/conf/server.xml?  Please provide the exact path and a snippet of 
the code...


In Response To: 

Hi all,

I'm using CGI servlet in Tomcat 5 without any problem, but with Tomcat
6 I get this error when deploying my web application:

java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.CGIServlet is privileged and cannot be
loaded by this web application

In Tomcat 6, I noticed that the servlet-cgi.jar is now part of
catalina.jar, but that's it.

thanks a lot for any advice.

Yannick


compete error message:

java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.CGIServlet is privileged and cannot be
loaded by thisweb application
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1134)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:451)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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



Re: jsvc creates pid file owned by root

2008-09-05 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=31984 Posted on
behalf of a User

>>You shouldn't be messing about with the ownership of the PID file. It is
>>created by jsvc at startup. If you use jsvc properly it will start as
>>root, create the pid file, startup tomcat ...

Ah, but what if you are using jsvc to run something other than tomcat?

I am using jsvc to run a standalone java application as a daemon that
starts whenever the server is restarted.  However, I would like a certain
user other than root to be able to run the same launching script for this
daemon to start and stop the service as needed.

I find I cannot do it because of the permission on the .pid file.  No
matter where I put the pidfile and no matter whether or not I run umask in
the launching script, the pidfile gets created with an owner of root and
perms of 600.   

If I run umask 133 and then create a file, I get perm 644 as I want on the
file.  But the same does not work from within my jsvc-launch script with
the pid file.

Nothing I've tried works.

In Response To: 


Hi,

I can start and stop Tomcat 5.5 with the jsvc program but the problem is
that the pid file is created with permissions 600 and owned by root.
I want to be able to read the pid file to check if the Tomcat process is up
and running 
and also for other purposes.

Is it possible to make the pid file be owned by the user that runs Tomcat or
have the permissions to be set to 666?

Regards
Gunnar

-- 
<...>
http://www.nabble.com/jsvc-creates-pid-file-owned-by-root-tp16606528p1660652
8.html
Sent from the Tomcat - User mailing list archive at <...>.


-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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



Re: The requested resource (/manager/) is not available.

2008-09-08 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=6039 Posted on behalf of 
a User

try:
/manager/html instead!


In Response To: 

Hi list,

I'm trying to use the manager webapp for the custom Ant tasks on Tomcat 
6.0.9 with Sun Solaris 10. I've gone into the tomcat-users.xml file and 
created a username/password admin/admin that has the manager role. 
However, when I try to connect to the manager webapp by pointing my 
browser to http://localhost:port/manager, I get the error:

_The requested resource (/manager/) is not available.

_I know I must be missing something obvious. I've searched Google for 
suggestions and I've read the Manager How-To online but to no avail. 
Perhaps I am missing some directories in my Tomcat installation? When I 
try to navigate to http://localhost:port/tomcat-docs I receive the same 
error.

Is it possible I have a directory in the wrong place? I doubt that would 
be the case because I simply downloaded the Tomcat 6.0.9 core 
distribution and followed the instructions. Do I need the deployer or 
something?

Thanks,
Dan

-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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



Re: CGIServlet in Tomcat 6

2008-09-10 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=4877 Posted on behalf of 
a User

In order to add privileged="true" property simply edit 
$CATALINA_HOME/conf/context.xml
replace tag  by 

In Response To: 

Hi all,

I'm using CGI servlet in Tomcat 5 without any problem, but with Tomcat
6 I get this error when deploying my web application:

java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.CGIServlet is privileged and cannot be
loaded by this web application

In Tomcat 6, I noticed that the servlet-cgi.jar is now part of
catalina.jar, but that's it.

thanks a lot for any advice.

Yannick


compete error message:

java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.CGIServlet is privileged and cannot be
loaded by thisweb application
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1134)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:451)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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



Re: Running Apache Tomcat and Apache on Win XP

2007-08-22 Thread samk
Download the http server from Apache


In Response To: 


Hi,

I'm a little confused about Apache Tomcat. When installed (Win XP) do I get
both the Apache HTTP server and the Tomcat?

I needed the Apache HTTP server for some PHP development tests. And did try
to install it on may machine, but it didn't work. Now I realise that I have
Apache Tomcat on the same machine. Perhaps this won't work?

Can I use the Apache Tomcat installation to serve a PHP application, or do I
need to install a separate Apache HTTP server and shold that work when I
have Apache Tomcat installed?

Thanks!
-- 
<...> 
http://www.nabble.com/Running-Apache-Tomcat-and-Apache-on-Win-XP-tf4311573.html#a12274518
Sent from the Tomcat - User mailing list archive at <...>.


-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 Sent from Techienuggets Netbeans IDE Forum: 
http://www.techienuggets.com/Detail?tx=3

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



Re: A Global Error Page (JSP or JSF)

2007-08-23 Thread samk
I have configured a servlet to display an error message and a stack trace for 
500 errors 9defined in web.xml). It works sometimes and not at others? By this 
i mean some 500 errors are caught and reported the others just cause an error 
and failure.


In Response To: 

Does anybody have an example of global JSP (or JSF) error page that can be used 
to catch 500 errors genertaed by either servlets or jsps?

Thanks.


 Sent from Techienuggets Netbeans IDE Forum: 
http://www.techienuggets.com/Detail?tx=11104

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



Re: A Global Error Page (JSP or JSF)

2007-08-23 Thread samk
That's exactly what I have done. I have even tested it by having a servlet do a 
int i = 500/0; which causes a 500 error and a divide by zero exception which 
invokes the page correctly with the error and the stack trace; however, 
sometimes for errors (like trying to access a null object) the page is not 
invoked but there's a stack trace in the logs.

In Response To: 

try to put something like this into your web.xml (i hope that is what
you've been asking for):


java.lang.Throwable
/errorPages/generalError.html


That page should just display some message like "general error
occured, please report to webmaster... ". The error itself you then
should find in your logs.

Cheers

Gregor
-- 
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 Sent from Techienuggets Netbeans IDE Forum: 
http://www.techienuggets.com/Detail?tx=11104

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



Siteminder based Security

2007-08-23 Thread samk
This is probably a far fetched request but does anyone know a good way of 
nulling the Siteminder header when a user logs out so that they'll be 
challenged by Siteminder again when they hit a protected URL? I am invalidating 
the user session and in HTTP watch I can see that the SM session is gone but 
yet Siteminder doesn't throw a challenge.

thanks for any insight.


 Sent from Techienuggets Netbeans IDE Forum: 
http://www.techienuggets.com/Detail?tx=11164

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



Re: java.net.SocketException: Invalid argument

2007-08-23 Thread samk
What's your server & OS?


In Response To: 

I am running Tomcat 5.0.28 and Apache 2.2 using mod_jk. I am constantly seeing 
the following error show up in the catalina.log:

WARNING: Exception executing accept
java.net.SocketException: Invalid argument
at java.net.PlainSocketImpl.socketSetOption(Native Method)
at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:240)
at java.net.Socket.setSoLinger(Socket.java:826)
at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:300)
at 
org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:847)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)

Is this something that I should be concerned with? I don't see any glaring 
performance issues with my site, but I still don't like the fact that my logs 
are filling up with errors. Thanks for your help and input.

Aaron Steele
Technology Manager
 
Natural Wellness USA, Inc.
http://www.veria.com
701 Highlander Blvd, Suite 200 | Arlington, Texas 76015
p (817) 804-4646 | c (817) 879-7528 | f (817) 804-4696


-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 Sent from Techienuggets Netbeans IDE Forum: 
http://www.techienuggets.com/Detail?tx=11168

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



Re: java.net.SocketException: Invalid argument

2007-08-23 Thread samk
By looking at the stack trace it looks like setsockopt() is trying to set an 
option on the underlying socket that's not supported by your TCP/IP 
implementation. It probably is some performance related option that's being 
ignored. You could turn up the logging level by setting JkLogLevel debug.

You could also run truss against the jvm process to see what the socket option 
is.

In Response To: 

Sun v245 running Solaris 10

Aaron Steele
Technology Lead
 
Natural Wellness USA, Inc.
http://www.veria.com
701 Highlander Blvd, Suite 200 | Arlington, Texas 76015
p (817) 804-4646 | c (817) 879-7528 | f (817) 804-4696


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 23, 2007 9:51 PM
To: [EMAIL PROTECTED]
Subject: Re: java.net.SocketException: Invalid argument
Importance: High

What's your server & OS?


In Response To: 

I am running Tomcat 5.0.28 and Apache 2.2 using mod_jk. I am constantly
seeing the following error show up in the catalina.log:

WARNING: Exception executing accept
java.net.SocketException: Invalid argument
at java.net.PlainSocketImpl.socketSetOption(Native Method)
at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:240)
at java.net.Socket.setSoLinger(Socket.java:826)
at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:300)
at
org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)
at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:847)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
at java.lang.Thread.run(Thread.java:534)

Is this something that I should be concerned with? I don't see any glaring
performance issues with my site, but I still don't like the fact that my
logs are filling up with errors. Thanks for your help and input.

Aaron Steele
Technology Manager
 
Natural Wellness USA, Inc.
http://www.veria.com
701 Highlander Blvd, Suite 200 | Arlington, Texas 76015
p (817) 804-4646 | c (817) 879-7528 | f (817) 804-4696


-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 Sent from Techienuggets Netbeans IDE Forum:
http://www.techienuggets.com/Detail?tx=11168

-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 Sent from Techienuggets Netbeans IDE Forum: 
http://www.techienuggets.com/Detail?tx=11168

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



Re: java.net.SocketException: Invalid argument

2007-08-23 Thread samk
Looks like the SO_LINGER option isn't being set. I would look into that.

In Response To: 

By looking at the stack trace it looks like setsockopt() is trying to set an 
option on the underlying socket that's not supported by your TCP/IP 
implementation. It probably is some performance related option that's being 
ignored. You could turn up the logging level by setting JkLogLevel debug.

You could also run truss against the jvm process to see what the socket option 
is.

 Sent from Techienuggets Netbeans IDE Forum: 
http://www.techienuggets.com/Detail?tx=11168

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



Re: A Global Error Page (JSP or JSF)

2007-08-24 Thread samk
It works most of the time but sometimes it doesn't for no discernible reason. 
:( One of life's great mysteries that I am looking in to.


In Response To: 

Hi Chris,

I guess you're question pointed to Sam, right?

Anyways, that's also what I think.

According to the specs a *noncaught* exception should trigger the errorpage

At least here it's working as expected ;)

Cheers

Gregor
-- 
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 Sent from Techienuggets Netbeans IDE Forum: 
http://www.techienuggets.com/Detail?tx=11104

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



Re: [mod_jk] problem serving URIs with 'special characters'

2007-08-26 Thread samk
URLEncoding doesn't take care of this problem?


In Response To: 

Hi; (using: centos, apache 2.0.52, mod_jk 1.2.21, tomcat 6)

Recently, I encountered a problem with URIs that has 'non western
European' characters (for example:
http://www.somehost.com/roller/admin/entry/nofx_%D7%91%D7%93%D7%A8%D7%9A
). I noticed that apache was forwarding to tomcat a different URI than
the original which caused problems in my site.

 

Digging into the subject I found the JkOptions +ForwardURICompatUnparsed
fixed my problem. However, I then encountered a different problem then.
On the first hit, some images were not displayed in the browser (not
served to it). So I checked the forums and found out about the
JkStripSession. I figured it might help so I turned it on but nothing
happened.

 

My questions are:

1.  Should the JkStripSession help in this case? Was there a known
bug in my apache/mod_jk versions related to this (couldn't find in
bugzilla)?
2.  How should I solve this? The only thing I need is to be able to
forward URIs with 'special characters' as is to tomcat for a specific
application (context)

 

I am really out of my element here so I would appreciate your help
greatly.

Thanks in advance

 

Related forum topic I found:

http://www.nabble.com/Image-problem-tf3629476.html#a10141944

http://www.nabble.com/-mod_jk--JkStripSession-directive-tf3294527.html#a
9164432

 

 

The configuration I thought would work but had the image loading
problem:

JkMount /* ajp13
JkStripSession On

JkOptions +ForwardURICompatUnparsed



#i think the following has nothing to do with my problem but its here
anyway...
RewriteEngine On
RewriteCond %{HTTP_HOST} !^waves.co.il$ [NC] RewriteRule ^(.*)$
http://www.xwave.co.il$1 [R,L] 

 

 

 

Guy Katz
R&D
Allot Communications * a mind for networks(tm)
Tel: + 972 9 761 928 8
Fax: + 972 9 744 362 6
[EMAIL PROTECTED]
www.allot.com  

 

 



 Sent from Techienuggets Netbeans IDE Forum: 
http://www.techienuggets.com/Detail?tx=11219

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



Re: [mod_jk] problem serving URIs with 'special characters'

2007-08-26 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=28696 Posted on behalf of 
a User

I meant do use URLEncoding when you're creating the URL with characters from 
another language. I presume that these URLs are being generated by your Server 
side application, yes...?

String send = URLEncoder.encode( toSend, "UTF-8" );

Where toSend is the URL with the non-standard characters.


In Response To: 

I am not sure what you are reffering to by saying URLencoding but:
the default jkoption value in the mod_jk in the version i have processes the 
URI in a way that changes its value. that is why i changed it to  
+ForwardURICompatUnparsed but than i encountered the image loading problem.
i would be happy to hear ideas but please be more specific.
thanks.



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Sun 8/26/2007 10:11 PM
To: [EMAIL PROTECTED]
Subject: Re: [mod_jk] problem serving URIs with 'special characters'



URLEncoding doesn't take care of this problem?


In Response To:

Hi; (using: centos, apache 2.0.52, mod_jk 1.2.21, tomcat 6)

Recently, I encountered a problem with URIs that has 'non western
European' characters (for example:
http://www.somehost.com/roller/admin/entry/nofx_%D7%91%D7%93%D7%A8%D7%9A
). I noticed that apache was forwarding to tomcat a different URI than
the original which caused problems in my site.



Digging into the subject I found the JkOptions +ForwardURICompatUnparsed
fixed my problem. However, I then encountered a different problem then.
On the first hit, some images were not displayed in the browser (not
served to it). So I checked the forums and found out about the
JkStripSession. I figured it might help so I turned it on but nothing
happened.



My questions are:

1.  Should the JkStripSession help in this case? Was there a known
bug in my apache/mod_jk versions related to this (couldn't find in
bugzilla)?
2.  How should I solve this? The only thing I need is to be able to
forward URIs with 'special characters' as is to tomcat for a specific
application (context)



I am really out of my element here so I would appreciate your help
greatly.

Thanks in advance



Related forum topic I found:

http://www.nabble.com/Image-problem-tf3629476.html#a10141944

http://www.nabble.com/-mod_jk--JkStripSession-directive-tf3294527.html#a
9164432





The configuration I thought would work but had the image loading
problem:

JkMount /* ajp13
JkStripSession On

JkOptions +ForwardURICompatUnparsed



#i think the following has nothing to do with my problem but its here
anyway...
RewriteEngine On
RewriteCond %{HTTP_HOST} !^waves.co.il$ [NC] RewriteRule ^(.*)$
http://www.xwave.co.il$1 [R,L]







Guy Katz
R&D
Allot Communications * a mind for networks(tm)
Tel: + 972 9 761 928 8
Fax: + 972 9 744 362 6
[EMAIL PROTECTED]
www.allot.com 







 Sent from Techienuggets Netbeans IDE Forum: 
http://www.techienuggets.com/Detail?tx=11219

-




-


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



Re: Java servlets

2007-08-29 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=11489 Posted on behalf of 
a User

Hi see this for an explanation:

http://www.techienuggets.com/Detail?tx=24



In Response To: 

Hi all, 
 
 This is not a question specific to tomcat but more about servlets. 
 I am using a dispatcher forward to invoke another servlet. 
 Why do I get an exception --> java.lang.IllegalStateException: Cannot forward 
after response has been committed
 
 For some reason I am unable to find good documentation to do complicated 
servlets invocations. Does any one know?
 
 
 
Ole Ersoy <[EMAIL PROTECTED]> wrote:Incidentally - since we are talking about 
pooling - should the executor configuration be a tip? It allows the connectors 
to share a single thread pool, rather than each connector having its own. This 
seems like a memory and performance slurpee to me.

Cheers,
- Ole

myrealbruno wrote:
> IMHO the only good reason to move a library out from an application and
> place it into /common/lib (or /lib) is to get advantage of connection
> pooling.
> http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html
> 
> Then, yes, if you have different database versions you might find yourself
> in the usual library versions nightmare.. :-)
> 
> -Original Message-
> From: Diego Yasuhiko Kurisaki [mailto:[EMAIL PROTECTED] 
> Sent: 22 August 2007 00:35
> To: Tomcat Users List
> Subject: Re: 20 Tips for Using Tomcat in Production
> 
> 
> I agree, i'm not willing to pay the management overhead of putting my shared
> libraries to the tomcat common lib, unless my gains are very big in terms of
> memory consumption.
> 
> I don't really think you should change for another one though, but you can
> make regards about the cons of that approach.
> 
> Anyway, great work 5 stars.
> 
> 
> On 8/21/07, Ben Souther  wrote:
>>  From:
>> Christopher Schultz
>>> I also agree with David and, uh, David, that #6 is a little dubious. 
>>> Yes, moving shared libraries into the common/lib directory will save 
>>> you some memory, but it creates a management headache when it comes 
>>> to version numbers, WAR packaging, etc. Ideally, the WAR contains 
>>> everything the webapp needs. If you rely on the servlet container to 
>>> provide essential libraries, you are changing your deployment 
>>> strategy significantly.
>> +1
>>
>> Starting with Servlet Spec 2.3 (I think) there has been an emphasis on 
>> putting everything a web app needs to run into its war file. To put 
>> include something that runs contrary to this 'best practice' in an 
>> article of tips at this point in time doesn't sound like a good idea.
>>
>> I would seriously consider replacing that one with something else.
>>
>>
>>
>>
>> -
>>
>>
> 
> 

-



   
-
Boardwalk for $500? In 2007? Ha! 


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



Re: Question on static variables

2007-09-04 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=11977 Posted on behalf of 
a User

Nothing to do with Tomcat. Look up the Singleton pattern and it will teach you 
what you need.


In Response To: 

I have a unique situation where I'm building a polling server for a
Flash/Flex application.  I want to turn information around very quickly
between clients and therefore don't want to use a database if I don't have
to.  What I want to do is store information in a few static variables used
in a servlet.  I'm looking for speed more than anything as the clients will
be polling the server every 2-3 seconds.  I'm expecting about 100 to 500
(max) clients at any given time.  What I'm curious about is how Tomcat
handles static variables.  Coming from ASP.NET experience I know that using
static variables with IIS they are held in the app domain and the app domain
can be reloaded by IIS for a number of reasons (config files changed, files
changed, etc.)  This kinda makes using static variables in ASP.NET and IIS a
bit tricky and unreliable.  So the question I have is how does Tomcat handle
static variables then?  When would they get reloaded/recycled, etc.?  I'm
aware I could use something like memcached to mimic what I'm doing but again
I'd rather stick to static variables if possible for the sake of simplicity.

Thanks for any help on this.


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



Re: an easier way to deploy war file?

2007-09-04 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=11882 Posted on behalf of 
a User

Even when you hot or auto-deploy the war file the previous version has to be 
replaces by extracting content from the new war file. There will be a pause 
with 404 errors if you hit the URL while the deployment is taking place. As far 
as I know there's no instant way of doing this.


In Response To: 


Hi Gregor,

Thanks, i tried this, it works, sometimes I can see the updated program
immediately, but sometimes I got all those 404 errors, I have to wait for a
few minutes before I can see the updates reflected, any idea? how to reflect
changes asap? Thanks.



Gregor Schneider wrote:
> 
> - *never* start tomcat as root: create a user "tomcat" if not already
> existing and run tomcat with that user-id
> 
> - if it's not a production-server with very high security, grant
> ftp-access to user "tomcat"
> 
> - from your local pc, ftp to your ubuntu, login as user "tomcat"
> 
> - change to directory "www/webapps"
> 
> - put your web-app.war
> 
> that's it
> 
> be sure that autodeploy is set to true. having done so, there's no
> need to delete any directories on your ubuntu-server
> 
> cheers
> 
> gregor
> 
> ps: before starting tomcat as user tomcat, you might have to issue
> 
> chown -R tomcat:tomcat * in $CATALINA_HOME
> -- 
> w
> 

-- 
<...> 
http://www.nabble.com/an-easier-way-to-deploy-war-file--tf4376062.html#a12490683
Sent from the Tomcat - User mailing list archive at <...>.


-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



Generating a 404 response

2007-09-09 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=12338 Posted on behalf of 
a User

I have a J2EE application residing on Tomcat. The pages are dynamically 
generated. If a use enters an invalid request I redirect him to a generic error 
page (which isn't really an error page but just a jsp that display a message 
and allows a redirect back to the site's main page). I would like to return a 
status of 404 from this page but because the page gets served properly I am 
returning a status of 200. The problem with this is that my error page than 
gets indexed by search engines. Any advise on how to tackle this?

TIA



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



Re: Generating a 404 response

2007-09-09 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=12338 Posted on behalf of 
a User

Hi Martin,

My name's Jason. I am posting from a Tomcat Forum on a website. Sam must be the 
admin person...? Anyway what's happening is that if a user request causes a 
page request for a non-existent page we redirect to our custom error page 
404.jsp, which displays a nice error. What's happening is that if a spider 
(googlebot) has a reference to a page that's now non-existent it will come to 
that page and get sent to 404.jsp, which it will happily index since it gets a 
HTTP 200 status back. My question is how to get this page to send a HTTP 404 
even though it loads correctly.

Thanks,

Jason

In Response To: 

Sam-

How is your custom error page being indexed?

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

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 09, 2007 3:15 PM
Subject: Generating a 404 response


> See Thread at: http://www.techienuggets.com/Detail?tx=12338 Posted on 
> behalf of a User
>
> I have a J2EE application residing on Tomcat. The pages are dynamically 
> generated. If a use enters an invalid request I redirect him to a generic 
> error page (which isn't really an error page but just a jsp that display a 
> message and allows a redirect back to the site's main page). I would like 
> to return a status of 404 from this page but because the page gets served 
> properly I am returning a status of 200. The problem with this is that my 
> error page than gets indexed by search engines. Any advise on how to 
> tackle this?
>
> TIA
>
>
>
> -
> To start a new topic, e-mail: [EMAIL PROTECTED]
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> 


-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



Re: Generating a 404 response

2007-09-09 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=12338 Posted on behalf of 
a User

Thanks very much. I will try that.


In Response To: 

[EMAIL PROTECTED] wrote:
> See Thread at: http://www.techienuggets.com/Detail?tx=12338 Posted on behalf 
> of a User
> 
> I have a J2EE application residing on Tomcat. The pages are dynamically 
> generated. If a use enters an invalid request I redirect him to a generic 
> error page (which isn't really an error page but just a jsp that display a 
> message and allows a redirect back to the site's main page). I would like to 
> return a status of 404 from this page but because the page gets served 
> properly I am returning a status of 200. The problem with this is that my 
> error page than gets indexed by search engines. Any advise on how to tackle 
> this?

Servlet docs suggest you can nominate your JSP as an
error page for status 404 - in Tomcat you could put
this in conf/web.xml (after )

   
 404
 /my_error_404.jsp
  

then if you call response.sendError(404, "") when your
app decides the request isn't sensible, this page will
be used.  I haven't tried this.

Paul Singleton


-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



Re: Generating a 404 response

2007-09-09 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=12338 Posted on behalf of 
a User

It didn't work. I got a 500 later in my code. Here's what I did:

if(detail.size() > 0)
{
dbutil = new 
DBUtil(getServletConfig().getInitParameter(Constants.JNDI_NAME));
dbutil.executeNoResults(updateSql);
dbutil.cleanup();
session.setAttribute("title", title);
session.setAttribute("desc", title);
session.setAttribute("keywords", keywords);
dispatcher = 
getServletContext().getRequestDispatcher("/displayArticle.jsp");
}
else
response.sendError(404, "");
// dispatcher = getServletContext().getRequestDispatcher("/404.jsp");

Notice I commented out the code that would later dispatch to 404.jsp.

Here's my entry from web.xml:

  

404
/404.jsp


Looks like the 404 page isn't being invoked by the response.sendError(404, "");


In Response To: 

[EMAIL PROTECTED] wrote:
> See Thread at: http://www.techienuggets.com/Detail?tx=12338 Posted on behalf 
> of a User
> 
> I have a J2EE application residing on Tomcat. The pages are dynamically 
> generated. If a use enters an invalid request I redirect him to a generic 
> error page (which isn't really an error page but just a jsp that display a 
> message and allows a redirect back to the site's main page). I would like to 
> return a status of 404 from this page but because the page gets served 
> properly I am returning a status of 200. The problem with this is that my 
> error page than gets indexed by search engines. Any advise on how to tackle 
> this?

Servlet docs suggest you can nominate your JSP as an
error page for status 404 - in Tomcat you could put
this in conf/web.xml (after )

   
 404
 /my_error_404.jsp
  

then if you call response.sendError(404, "") when your
app decides the request isn't sensible, this page will
be used.  I haven't tried this.

Paul Singleton


-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



Re: Generating a 404 response

2007-09-09 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=12338 Posted on behalf of 
a User

OK. My fault. This works:

else
{
  response.sendError(404, "");
   return;
}

Now when I look in my http server log I see a status of 404 with the original 
URL.

Thanks for your help.


In Response To: 

It didn't work. I got a 500 later in my code. Here's what I did:

if(detail.size() > 0)
{
dbutil = new 
DBUtil(getServletConfig().getInitParameter(Constants.JNDI_NAME));
dbutil.executeNoResults(updateSql);
dbutil.cleanup();
session.setAttribute("title", title);
session.setAttribute("desc", title);
session.setAttribute("keywords", keywords);
dispatcher = 
getServletContext().getRequestDispatcher("/displayArticle.jsp");
}
else
response.sendError(404, "");
// dispatcher = getServletContext().getRequestDispatcher("/404.jsp");

Notice I commented out the code that would later dispatch to 404.jsp.

Here's my entry from web.xml:

  

404
/404.jsp


Looks like the 404 page isn't being invoked by the response.sendError(404, "");


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



Re: Oracle Invalid Login Credentials

2007-09-13 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=12700 Posted on behalf of 
a User

You should look at the SQL ORA error message that should be in the SQLException 
thrown by your JDBC call. This should be in your log4j log file if you're using 
log4j or any other logging mechanism, perhaps even the default log.


In Response To: 

>Is it possible that your db connection is being terminated (probably due
>to inactivity) and that the "invalid login" is a spurious error?

Once the 'Invalid login ' error happens, then everyone else gets the same
error upon login until Tomcat is re-started.

Which log files would help me determine a JDBC error?

Thank you,
 
Greg Demieville

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 12, 2007 3:18 PM
To: Tomcat Users List
Subject: Re: Oracle Invalid Login Credentials

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Greg,

Greg Demieville wrote:
> We occasionally get 'Access Denied Invalid Login Credentials' when
accessing
> our application. Stopping and Re-starting Tomcat fixes the issue. We are
> using Apache Tomcat 5.0.28/Java JDK 1.5.0.11/Oracle 9.2/JSP pages. Is
there
> a known issue with Tomcat and Oracle, or do we need to require the Tomcat
> service restart as part of a maintenance schedule?

Is it possible that your db connection is being terminated (probably due
to inactivity) and that the "invalid login" is a spurious error?

If you are using a Tomcat connection pool (which I highly recommend),
consider using testOnBorrow and friends to make sure that your DB
connection is good before you try to use it for things like authentication.

(Or, are you getting this error from the Oracle JDBC driver?)

- -chris

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

iD8DBQFG6EmT9CaO5/Lv0PARAh1AAJ96NOesCJF67tl1cYs5xJoCJSXT5wCghrLt
0r5BbE6fjDRX36eYqkdrr30=
=DfO/
-END PGP SIGNATURE-

-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



Re: [Fwd: Can't run jsp pages on tomcat 6.0.10]

2007-09-20 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=7258 Posted on behalf of 
a User

Did anyone end up with a solution or fix for this issue?  I have encountered 
this problem as well.  The one thing I can add is that under http the jsp pages 
compile and run, however under https, that's where I get the error.

In Response To: 

Nobody says nothing so i admit it it's something new as i feared. And 
probably nobody is using tomcat 6 (wise people).

Well i removed every .jar from my lib for testing it out. And reduced my 
web.xml for minimal (welcome file list stuff).

The error HTTP 500 is the same but it presents now a "superficial" part 
that it did not appear before.

I am running on a CentOS 4 with Tomcat 6.0.10 and jdk 6.

Am i the only one who thinks the migration between tomcat versions is 
too much of a headache? My case before i had a logging classes error in 
a tomcat5.5 that it didn't appear on tomcat 5.0 and the only way to go 
through with migration it was to downgrade hibernate 3 to hibernate 2, 
don't ask me why... Anyway if anyone can helpme on this i would 
appreciate it very much.


*exception*

javax.servlet.ServletException: Servlet.init() para servlet jsp lanzó excepción

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
java.lang.Thread.run(Thread.java:619)

*root cause*

java.lang.NoSuchFieldError: IS_SECURITY_ENABLED

org.apache.jasper.compiler.JspRuntimeContext.(JspRuntimeContext.java:136)
org.apache.jasper.servlet.JspServlet.init(JspServlet.java:101)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
java.lang.Thread.run(Thread.java:619)

Each 



 Mensaje original 

For any of my jsp pages i get:

java.lang.NoSuchFieldError: IS_SECURITY_ENABLED
org.apache.jasper.compiler.JspRuntimeContext.(JspRuntimeContext.java:136) 
org.apache.jasper.servlet.JspServlet.init(JspServlet.java:101) 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) 
java.lang.Thread.run(Thread.java:619)

My html pages i get without any problem. And the examples work fine. The 
same for another weapp using only zk. But for the old scripting jsp 
pages nothing and they worked under tomcat 5.5. Always this error even 
if i try with a empty jsp page. I am trying to solve this in the dark as 
i can't find any related stuff on this problem.






-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-- 



*Rui Monteiro - 616976483 *

[EMAIL PROTECTED] 

 

*Villanueva de la Serena
Pol. Ind. Cagancha, 9
06700 VILLANUEVA DE LA SERENA (Badajoz)
Telf: 924 840962 y Fax: 924 842261 *
[EMAIL PROTECTED] 



*Mérida
Avda. de la Juan Carlos I, 11
06800 MERIDA (Badajoz)
Telf: 924 318405 y Fax: 924 387352*
[EMAIL PROTECTED] 



*Cáceres
San Vicente de Paúl, esquina a Federico Ballell
10001 CACERES
Telf: 927 246456 y Fax: 927 210986*
[EMAIL PROTECTED] 



-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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



Re: mod_jk for OS X PPC

2008-02-08 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=16694 Posted on behalf of 
a User

hi. i have an iphone and i try to downgrade it with ibrickr. it seems to work 
but i have a big problem. your program is start running stops and restart 
iphone. i dont know what to do. please help me . thanks loizos

In Response To: 

Hi.
I'm a developer of a JBoss/Tomcat app. I work on a Mac. I upgraded my  
Mac's OS on Saturday to OS X 10.5 (Leopard). Prior to the upgrade I  
was using the version of Apache that came with 10.4, which I think was  
1.3. Apple is shipping 2.2.6 with 10.5. They don't include the mod_jk  
module built for the OS with the non-server version of the OS. (I  
guess they might with the server version, I'm not sure.) Anyway, I  
need mod_jk in order for Apache to talk to Tomcat, so I went to the  
Tomcat Connectors pages and found that mod_jk is only available in an  
x86 version as a binary. So I downloaded the source, installed the  
XCode tools so that I could try to compile it. I'm unable to find  
apxs2 on my hard drive, but I have a apxs file in my /usr/sbin  
directory, so I thought I would try to build using:
./configure --with-apxs=/usr/sbin/apxs
When I install the resultant mod_jk.so, Apache complains that it found  
mod_jk mach-o, but it is for the wrong architecture.
If anyone has already done this, I'd love to hear from you.
Thank you,
Richard

-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



mod_jk Problems - - worker went to error state and dont recover

2008-02-20 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=25608 Posted on behalf of 
a User

Hallo to all,
After long unsuccessful research i hope someone can give me a hint to the 
following problems.

Our Apache-mod_jk-Tomcat Infrastructur was running without Problems for about 
one year-than since two month mod_jk errors occurs.
We upgraded the mod_jk Version, made improvements in the worker.properties - 
the problems changed and get less but sometimes they appear further on.
 
It seems that the mod_jk worker loose the connection to their 
Tomcat-Backendserver - there are messages in the mod_jk log Files which points 
in this direction. Normally this seems not to be a big problem - but under 
certain conditions (which ?) the worker goes to an error state and cannot 
recover itself- must be done manually.

Problem 1: The Tomcats are reachable - unknown why the workers think the server 
is dead ?
Problem 2: I have no idea why the worker goes to an error state and cannot 
recover.
Problem3: I miss explanations of logged messages - i read the messages - but 
cannot match them to the situation - when does a worker post this messages

[Wed Feb 20 10:04:01.889 2008] [19237:3086010048] [info] jk_handler::mod_jk.c 
(2270): Aborting connection for worker=ajp_ggi 
[Wed Feb 20 10:04:39.799 2008] [19294:3086010048] [error] 
ajp_get_reply::jk_ajp_common.c (1623): (INETP1011) Timeout with waiting reply 
from tomcat. Tomcat is down, stopped or network problems (errno=110)
[Wed Feb 20 10:04:39.799 2008] [19294:3086010048] [error] 
ajp_service::jk_ajp_common.c (2034): (INETP1011) receiving reply from tomcat 
failed with out recovery in send loop attempt=0
[Wed Feb 20 10:04:41.799 2008] [19294:3086010048] [error] 
service::jk_lb_worker.c (1105): unrecoverable error 504, request failed. Tomcat 
failed in the middle of request, we can't recover to another instance.

-> Which Timeout - how does mod_jk think Tomcat is down ? Where can i found 
details to errno=110 ?...
-> receiving reply from tomcat failed with out recovery in send loop attempt=0  
- ? with out recovery in send loop - means?
-> unrecoverable error 504 - details to this error ?

Ok - i turn the logging level to debug - the course of events get more clear - 
but also more questions appear - there are socket numbers - which sockets - 
what are these numbers e.g will be shutting down socket 35 for worker INETP1021 
- The sockets are good for ? - how many are there/per worker ? can i configure 
them ?

=> Generally -How can i solve such problems - i tried to look into the mod_jk 
code - searching for error codes, error messages - but cannot find some 
relevant informations, - i am studying the log Files - but don't find out what 
really happens.

So  - maybe someone has an idea why the worker think that the corresponding 
Tomcat is dead, and why he will not recover by itself. !

And i am also searching for tips how i can help myself  - and where to find 
something about the error codes, messages,..in mod_jk

thanks for your attention
Best
ahmed musa (writing from vienna)
 
Current Infrastructur
We have 3 Apache Webserver (2.2.6) -based on CentOS release 4.3 /Kernelversion 
2.6.9-34
In front of the Webserver there are two (two Locations) HW-Loadbalancer (but 
they have no role in this story)
The Webservers are hosted at our ISP.
 
The Webserver balance the requests via mod_jk (Version 1.2.25) for approx. 10 
Webapps to 18 Backend-Tomcatserver (Bladeserver - because of underlying 
Application-Parts the OS is Windows 2003 Server - a long story not worth to 
explain :-) ). The Tomcatserver gain Data via Requests against DB2 
Server/DB2-Databases on the Mainframe. The Tomcatserver are Inhouse -and were 
rebooted nightly because of automated Deployment processes.

Between the Webserver and the Tomcatserver is a Checkpoint Firewall.  
All webapps are deployed on all Tomcats - only mod_jk manages the requests to 
certain Tomcat- instances.
(on one Bladeserver there are two identically Tomcat Instances running).
 
Versions: Tomcat - 5.5.17_11, JDK 1.5.0_11-b03. The requests against the public 
Website(s) are normal short living requests - not many - The most Webapps 
(Portals) need a login, have a strong focus on business
logic - so the instances are big (many MBs in RAM), the sessions are sticky and 
the session timeout is 20 minutes. But there are also less requests. To the 
User requests - Monitoring requests from our ISP are added.
The Problems appears at Servers/Portals which very less Userrequests.

worker.properties
worker.list=ajp_bam,ajp_ggi,ajp_ad,ajp_svp,...,jkstatus

worker.template.type=ajp13
worker.template.lbfactor=5
worker.template.socket_keepalive=1
worker.template.connect_timeout=7000
worker.template.prepost_timeout=5000
worker.template.reply_timeout=12
worker.template.retries=6
worker.template.activation=Active
worker.template.recovery_options=7

worker.lbtemplate.type=lb
worker.lbtemplate.max_reply_timeouts=6
worker.lbtemplate.method=Session

#Produ

Re: CGIServlet in Tomcat 6

2008-03-13 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=4877 Posted on behalf of 
a User

Sorry for a kind of a necropost, but is't enough to add privileged="true" to 
the root tag of main context.xml which is in $CATALINA_HOME/conf/context.xml

In Response To: 

Hi all,

I'm using CGI servlet in Tomcat 5 without any problem, but with Tomcat
6 I get this error when deploying my web application:

java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.CGIServlet is privileged and cannot be
loaded by this web application

In Tomcat 6, I noticed that the servlet-cgi.jar is now part of
catalina.jar, but that's it.

thanks a lot for any advice.

Yannick


compete error message:

java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.CGIServlet is privileged and cannot be
loaded by thisweb application
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1134)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:451)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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



Re: Unconnected sockets not implemented

2008-03-19 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=8748 Posted on behalf of 
a User

For the sake of anyone else running into this cryptic exception, the FIRST 
thing to do is verify everything about how SSL is configured in your VM -- make 
sure the javax.net.ssl.keyStore and javax.net.ssl.trustStore system properties 
are set and pointing to the right place, the files are readable and all that, 
the passwords are correct, all the certificates are in place, yadda yadda yadda.

This exception is most likely due to a failure with JSSE during the SSL 
handshake.

In Response To: 

Hi all,

I have tomcat ssl configured ant tried to access it with a jsse client but i
get the following error:

 [java] Exception in thread "main" org.apache.axis2.AxisFault:
Unconnected s
ockets not implemented; nested exception is:
 [java] java.net.SocketException: Unconnected sockets not
implemented; n

any idea?

Thanks,
Nencho



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



Re: Tomcat does not start

2008-03-27 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=8839 Posted on behalf of 
a User

Only one thing we have to do, to copy the file name msvcr71.dll from you jre 
directory installation (ex: C:\Program Files\Java\jre1.6.0_03\bin) to the bin 
folder of tomcat´s intallation  (ex: C:\Archivos de programa\Apache Software 
Foundation\Tomcat 5.0\bin), it really fixed that f.u.c.k.i.n.g problem, so i 
hope you can too

In Response To: 

Hi there,
I'm having problems running Apache Tomcat 6 (But the
same happens with Tomcat 5.0) on a Windows XP home
computer with Sun JRE 1.6.0_01. I've installed the
same configuration on other machines with successfull
results...
the log message follows:
[2007-05-18 00:37:09] [986  prunsrv.c] [error] Failed
creating java
C:\Programmi\Java\jre1.6.0_01\bin\client\jvm.dll
[2007-05-18 00:37:09] [1260 prunsrv.c] [error]
ServiceStart returned 1
[2007-05-18 00:37:09] [info] Run service finished.
[2007-05-18 00:37:09] [info] Procrun finished.

Do you guys have any idea about this?

Thanks
Francesco


  ___ 
L'email della prossima generazione? Puoi averla con la nuova <...> Mail: 
http://it.docs.yahoo.com/nowyoucan.html

-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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



Re: Tomcat not starting

2008-04-17 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=12232 Posted on behalf of 
a User

I was also stuck at the same problem, and copying "msvcr71.dll" to the Tomcat 
bin directory fixed it. Thanks for the solution.

In Response To: 

Windows 2000 sp4 
JRE 1.6_02
Tomcat won't start. Any help 
Tried it on two seperate machines. Even uninstall and re-installed with boot up 
in between.

Received the following error in the log file
[2007-09-07 04:09:17] [174  javajni.c] [error] The specified module could not 
be found.
[2007-09-07 04:09:17] [986  prunsrv.c] [error] Failed creating java C:\Program 
Files\Java\jre1.6.0_02\bin\client\jvm.dll
[2007-09-07 04:09:17] [1260 prunsrv.c] [error] ServiceStart returned 1

Sincerely, 

Luc Nadon
Information Technology Analyst
ITS-Niagara, Fort Erie Section
Phone: (905) 994-6887
email: [EMAIL PROTECTED]

The rights and freedoms of one should not jeopardize that of another.




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



Apache HTTP Server Redirect to Tomcat

2008-04-20 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=33186 Posted on behalf of 
a User

Hi,

I'm using an Apache HTTP server that connects to Tomcat via mod_jk. All my 
servlet mappings work correctly. My question is that I want my default page for 
the Apache http server to be a servlet rather than index.html. I have tried 
changing DirectoryIndex in my http.conf but it gives a 503 error for entry like 
/myServlet. I think it expects a file name. How can I do this?

Thanks



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



Re: ! Tomcat 500 error NEED HELP!

2008-05-09 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=9415 Posted on behalf of 
a User

type Exception report

message 

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception 

javax.servlet.ServletException
at com.enigma.sdk.web.actions.ActionController.process(Unknown Source)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
at java.lang.Thread.run(Unknown Source)

I am getting this error can someone please help

In Response To: 



I've installed apache-tomcat-6.0.10 and jdk1.5.0_12

I've set the ENV variables:

_RUNJAVA = %JAVA_HOME%\bin\java
_RUNJAVAC = %JAVA_HOME%\bin\javac
_RUNJAVAW = %JAVA_HOME%\bin\javaw
_RUNJDB = %JAVA_HOME%\bin\jdb
CATALINA_HOME = d:\apache-tomcat-6.0.10
CLASSPATH = d:\Servlets+JSP;d:\java\jdk1.5.0_12
JAVA_HOME = d:\java\jdk1.5.0_12
PATH = d:\java\jdk1.5.0_12\bin;d:\apache-tomcat-6.0.10\bin

The server starts fine, but even http://localhost/ returns a 500 error

JSPs were running fine a few days ago but I must have changed something and
in trying to fix it I've changed much more, so now I have no idea. I've put
the JARS withing lib also within lib/common for both java and tomcat. Trying
accuracy through volume, please someone help me!

Here is the error for localhost:

type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

excepti

Re: The return type is incompatible with JspSourceDependent.getDependants()

2008-05-18 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=6123 Posted on behalf of 
a User

This problem is sometimes caused by an older version of the JspSourceDependent 
class being in one of your class loaders.  In my case, GWT (google widget 
toolkit) had this class so that it could install a tomcat server, and it was 
causing this problem.  If you are using an IDE, try looking for the class 
JspSourceDependent and see if it shows up in any of your jars.  If it does, 
either edit the contents of the jar to take it out, or take the jar out of your 
WEB-INF/lib directory (or manifest files if you are using a classpath ref)

In Response To: 

All,
We just upgraded Tomcat to 5. We have several web
apps that are on this machine. Of the several that are
there only one doesn't work after the upgrade. This is
the error we recieve when we try and bring up the
default page for the site:

HTTP Status 500 - 



type Exception report


message 

description The server encountered an internal error
() that prevented it from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unable to compile
class for JSP

Generated servlet error:
The return type is incompatible with
JspSourceDependent.getDependants()



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

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)



I am unclear as to what this really means. If anyone
could point me to something to try, I would greatly
appreciate it.

Thank you so much.
B

 




 

Bored stiff? Loosen up... 
Download and play hundreds of games for free on <...> Games.
http://games.yahoo.com/games/front

-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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



Re: mod_jk -> tomcat sending delay

2008-05-30 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=5001 Posted on behalf of 
a User

We solved the problem by increasing the number of connections in server.xml on 
Tomcat

...

The default is 20 which is not sufficient even if we don't actually have more 
than 7-10 people online. Our architecture was 2 load balanced apache connecting 
to a single tomcat server

In Response To: 

Hi,


I observe in mod_jk's log errors:
[error] ajp_get_reply::jk_ajp_common.c (1566): (ajp13w) Tomcat is down 
or refused connection. No response has been sent to the client (yet)

In the rush hours (20-30 requests/second) up to several entries per hour.
Sometimes it's followed by:
[error] ajp_service::jk_ajp_common.c (1928): (ajp13w) Connecting to 
tomcat failed. Tomcat is probably not started or is listening on the 
wrong port
or
[error] ajp_connection_tcp_get_message::jk_ajp_common.c (948): (ajp13w) 
can't receive the response message from tomcat, network problems or 
tomcat is down (127.0.0.1:8009), err=-104

but usually it is covered by another retries. It's corresponding to 
exception in tomcat:
ERROR [org.apache.jk.common.HandlerRequest] Error decoding request
java.net.SocketTimeoutException: Read timed out

*Note* Post is quite long because of info from logs. To get know what it 
is about it is enough to read descriptions next to numbers.


I increased logs granularity (mod_jk and tomcat + tcpdump) and in a few 
checked issues it looks like:

*1*. mod_jk talks with tomcat and some request is serviced.

(...)
[11:10:30] [debug] ajp_process_callback::jk_ajp_common.c (1491): AJP13 
protocol: Reuse is OK
[debug] ajp_done::jk_ajp_common.c (2258): recycling connection pool 
slot=0 for worker ajp13w
[debug] jk_handler::mod_jk.c (2126): Service finished with status=200 
for worker=wlb

*2*. A few seconds later thread is used again by an another request.

[11:10:32] [debug] wc_get_worker_for_name::jk_worker.c (114): found a 
worker wlb
[debug] wc_get_name_for_type::jk_worker.c (290): Found worker type 'lb'
[debug] init_ws_service::mod_jk.c (584): Service protocol=HTTP/1.1 
method=POST (...)
[debug] service::jk_lb_worker.c (840): service sticky_session=1 
id='8A49C0D934C8A115342BA5CBFC79C434'
[debug] service::jk_lb_worker.c (860): service worker=ajp13w route=ajp13w
[debug] ajp_get_endpoint::jk_ajp_common.c (2315): acquired connection 
pool slot=0
[debug] ajp_marshal_into_msgb::jk_ajp_common.c (548): ajp marshaling done
[debug] ajp_service::jk_ajp_common.c (1771): processing ajp13w with 2 
retries
[debug] ajp_connection_tcp_send_message::jk_ajp_common.c (893): sending 
to ajp13 pos=4 len=307 max=8192
(...) [header is sent and it is received by tomcat]

*3*.
a) mod_jk tries to send body:

[11:10:32] [debug] ajp_send_request::jk_ajp_common.c (1273): request 
body to send 646 - request body to resend 0

b) tomcat is waiting for it:
DEBUG [org.apache.jk.common.ChannelSocket] Call next 0 
[EMAIL PROTECTED]
DEBUG [org.apache.jk.common.HandlerRequest] Handling 2
DEBUG [org.apache.jk.common.ChannelSocket] receive()

*4*. 5 seconds later (connector timeout is 5000ms) tomcat throws exception:
[11:10:37] ERROR [org.apache.jk.common.HandlerRequest] Error decoding 
request
java.net.SocketTimeoutException: Read timed out
and resets connection (regarding to tcpdump log)

*5*. A few more seconds later (e.g. 8 from point 3) mod_jk starts 
sending a body:
[11:10:40] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c 
(893): sending to ajp13 pos=4 len=652 max=8192
[debug] ajp_connection_tcp_send_message::jk_ajp_common.c (893):  
12 34 02 88 02 86 3C 3F (...) [body's dump]

*6*. Unfortunately connection was already reseted by tomcat and mod_jk 
got info about that:
[11:10:40] [info]  ajp_connection_tcp_get_message::jk_ajp_common.c 
(942): (ajp13w) Tomcat has forced a connection close for socket 28
[error] ajp_get_reply::jk_ajp_common.c (1566): (ajp13w) Tomcat is down 
or refused connection. No response has been sent to the client (yet)
[info]  ajp_service::jk_ajp_common.c (1877): (ajp13w) receiving from 
tomcat failed, recoverable operation attempt=0

*7*. mod_jk tries to do send request again to tomcat:
[11:10:40] [info]  ajp_service::jk_ajp_common.c (1916): (ajp13w) sending 
request to tomcat failed,  recoverable operation attempt=1
[debug] jk_open_socket::jk_connect.c (335): socket TCP_NODELAY set to On
[debug] jk_open_socket::jk_connect.c (433): trying to connect socket 28 
to 127.0.0.1:8009
[debug] jk_open_socket::jk_connect.c (459): socket 28 connected to 
127.0.0.1:8009
[debug] ajp_connect_to_endpoint::jk_ajp_common.c (847): Connected socket 
28 to (127.0.0.1:8009)
[debug] ajp_connection_tcp_send_message::jk_ajp_common.c (893): sending 
to ajp13 pos=4 len=307 max=8192

Usually (but not always) it is able to do that without errors.

I sniffed into mod_jk source code, but I haven't found a place where it 
can stuck.


*Question*
What can be delay (about 8 seconds) in mod_jk between sending HTTP 
header and HTTP content caused by?


I 

Body not transmitted with javaxmail when Tomcat is starting

2008-10-24 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=57811 Posted on behalf of 
a User

I use the same code in 2 ways :
1/ In a simple java project with Eclipse
2/ In a Tomcat application 

When I send a mail in a simple java project, it works.
The mail is sent with subject and body.

When I use the same code at the start of a tomcat server, it doesn't work.
The mail is sent but there is no body.

I send the trace for the both case.

I don't understand why


This is the code :

  Properties props = new Properties();
  props.put("mail.smtp.host", "MESSAGERIE");
  props.put("mail.smtp.auth", "false");
  Session session = Session.getDefaultInstance(props);
  session.setDebug(true);

  MimeMessage   message = new MimeMessage(session);
  message.setContent("Hello this is the body of the mail","text/plain");

  message.setFrom(new InternetAddress("unknown"));
  InternetAddress dests[] = new InternetAddress[]
  { new InternetAddress("[EMAIL PROTECTED]") };
  message.setRecipients(Message.RecipientType.TO, dests);
  message.setSubject("Sujet");
  
  Transport.send(message);




Trace when it works in a simple java project :

DEBUG: setDebug: JavaMail version 1.4.1
[EMAIL PROTECTED]
DEBUG: getProvider() returning 
javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun 
Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "MESSAGERIE.castel.fr", port 25, isSSL 
false
220 Messagerie.castel.fr Microsoft ESMTP MAIL Service, Version: 6.0.3790.1830 
ready at  Fri, 24 Oct 2008 11:20:49 +0200 
DEBUG SMTP: connected to host "MESSAGERIE.castel.fr", port: 25

EHLO LABOLLC
250-Messagerie.castel.fr Hello [192.168.49.19]
250-TURN
250-SIZE
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-X-EXPS GSSAPI NTLM LOGIN
250-X-EXPS=LOGIN
250-AUTH GSSAPI NTLM LOGIN
250-AUTH=LOGIN
250-X-LINK2STATE
250-XEXCH50
250 OK
DEBUG SMTP: Found extension "TURN", arg ""
DEBUG SMTP: Found extension "SIZE", arg ""
DEBUG SMTP: Found extension "ETRN", arg ""
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "DSN", arg ""
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: Found extension "8bitmime", arg ""
DEBUG SMTP: Found extension "BINARYMIME", arg ""
DEBUG SMTP: Found extension "CHUNKING", arg ""
DEBUG SMTP: Found extension "VRFY", arg ""
DEBUG SMTP: Found extension "X-EXPS", arg "GSSAPI NTLM LOGIN"
DEBUG SMTP: Found extension "X-EXPS=LOGIN", arg ""
DEBUG SMTP: Found extension "AUTH", arg "GSSAPI NTLM LOGIN"
DEBUG SMTP: Found extension "AUTH=LOGIN", arg ""
DEBUG SMTP: Found extension "X-LINK2STATE", arg ""
DEBUG SMTP: Found extension "XEXCH50", arg ""
DEBUG SMTP: Found extension "OK", arg ""
DEBUG SMTP: use8bit false
MAIL FROM:
250 2.1.0 [EMAIL PROTECTED] OK
RCPT TO:<[EMAIL PROTECTED]>
250 2.1.5 [EMAIL PROTECTED] 
DEBUG SMTP: Verified Addresses
DEBUG SMTP:   [EMAIL PROTECTED]
DATA
354 Start mail input; end with .
From: unknown
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
Subject: Sujet
MIME-Version: 1.0
Content-Type: text/plain;charset="iso-2022-jp"
Content-Transfer-Encoding: 7bit

Hello this is the body of the mail  
  => this is the content !!!
.
250 2.6.0  <[EMAIL PROTECTED]> Queued mail for delivery
QUIT
221 2.0.0 Messagerie.castel.fr Service closing transmission channel



Trace when it doesn't work  :When tomcat is starting !!!
DEBUG: getProvider() returning 
javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun 
Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "MESSAGERIE.castel.fr", port 25, isSSL 
false
220 Messagerie.castel.fr Microsoft ESMTP MAIL Service, Version: 6.0.3790.1830 
ready at  Fri, 24 Oct 2008 11:21:56 +0200 
DEBUG SMTP: connected to host "MESSAGERIE.castel.fr", port: 25

EHLO LABOLLC
250-Messagerie.castel.fr Hello [192.168.49.19]
250-TURN
250-SIZE
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-X-EXPS GSSAPI NTLM LOGIN
250-X-EXPS=LOGIN
250-AUTH GSSAPI NTLM LOGIN
250-AUTH=LOGIN
250-X-LINK2STATE
250-XEXCH50
250 OK
DEBUG SMTP: Found extension "TURN", arg ""
DEBUG SMTP: Found extension "SIZE", arg ""
DEBUG SMTP: Found extension "ETRN", arg ""
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "DSN", arg ""
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: Found extension "8bitmime", arg ""
DEBUG SMTP: Found extension "BINARYMIME", arg ""
DEBUG SMTP: Found extension "CHUNKING", arg ""
DEBUG SMTP: Found extension "VRFY", arg ""
DEBUG SMTP: Found extension "X-EXPS", arg "GSSAPI NTLM LOGIN"
DEBUG SMTP: Found extension "X-EXPS=LOGIN", arg ""
DEBUG SMTP

Re: FarmWarDeployer Tomcat 6.0.18 on REL

2009-11-30 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=83985 Posted on behalf of 
a User

I have the same issue, seems there is something wrong with this object, and you 
do have an error message in your logs, it's "SEVERE: FarmWarDeployer can only 
work as host cluster subelement!".

According to Apache, they have an issue ...

http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-deployer.html

-David

In Response To: 

I've clustered 2 seperate servers together, and i've enabled the 
FarmWarDeployer on each. I can see that the servers are talking to each other 
in the logs, but I cannot get apps deployed to the farm to propagate across the 
cluster. I'm not seeing any error messages in the logs. Any help/suggestions 
would be greatly appreciated.

Here is the output from catalina.out

May 6, 2009 2:02:10 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Realm} Setting property 
'debug' to '99' did not find a matching property.
May 6, 2009 2:02:10 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.16.
May 6, 2009 2:02:10 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], 
random [true].
May 6, 2009 2:02:11 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-10.49.64.68-8080
May 6, 2009 2:02:11 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-10.49.64.68-8009
May 6, 2009 2:02:11 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-10.49.64.68-8443
May 6, 2009 2:02:11 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 917 ms
May 6, 2009 2:02:11 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 6, 2009 2:02:11 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
May 6, 2009 2:02:11 PM org.apache.catalina.ha.tcp.SimpleTcpCluster start
INFO: Cluster is about to start
May 6, 2009 2:02:11 PM org.apache.catalina.tribes.transport.ReceiverBase bind
INFO: Receiver Server Socket bound to:/10.49.64.68:5000
May 6, 2009 2:02:11 PM org.apache.catalina.tribes.membership.McastServiceImpl 
setupSocket
INFO: Setting cluster mcast soTimeout to 500
May 6, 2009 2:02:11 PM org.apache.catalina.tribes.membership.McastServiceImpl 
waitForMembers
INFO: Sleeping for 1000 milliseconds to establish cluster membership, start 
level:4
May 6, 2009 2:02:11 PM org.apache.catalina.ha.tcp.SimpleTcpCluster memberAdded
INFO: Replication member 
added:org.apache.catalina.tribes.membership.MemberImpl[tcp://{10, 49, 64, 
77}:5000,{10, 49, 64, 77},5000, alive=13087,id={-3 -128 -85 -120 118 -106 77 -4 
-74 -119 108 -114 77 -1 -24 -113 }, payload={}, command={}, domain={}, ]
May 6, 2009 2:02:12 PM org.apache.catalina.tribes.membership.McastServiceImpl 
waitForMembers
INFO: Done sleeping, membership established, start level:4
May 6, 2009 2:02:12 PM org.apache.catalina.tribes.membership.McastServiceImpl 
waitForMembers
INFO: Sleeping for 1000 milliseconds to establish cluster membership, start 
level:8
May 6, 2009 2:02:12 PM org.apache.catalina.tribes.io.BufferPool getBufferPool
INFO: Created a buffer pool with max size:104857600 bytes of 
type:org.apache.catalina.tribes.io.BufferPool15Impl
May 6, 2009 2:02:13 PM org.apache.catalina.tribes.membership.McastServiceImpl 
waitForMembers
INFO: Done sleeping, membership established, start level:8
May 6, 2009 2:02:13 PM org.apache.catalina.ha.deploy.FarmWarDeployer start
SEVERE: FarmWarDeployer can only work as host cluster subelement!
May 6, 2009 2:02:13 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-10.49.64.68-8080
May 6, 2009 2:02:13 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-10.49.64.68-8009
May 6, 2009 2:02:14 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-10.49.64.68-8443
May 6, 2009 2:02:14 PM org.apache.catalina.startup.Catalina start


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