Re: Problem with mod_jk installation

2009-01-08 Thread samlin

When followed the same procedure for tomcat 6.0.16 with identitical entries
in required files, i could see Apache forwarding requests to Tomcat. i.e.
http://192.168.1.1:8080/sample-site/jsp/home.jsp AND
http://192.168.1.1/sample-site/jsp/home.jsp displays me the expected site
page.

I followed exactly the same procedure woth Tomcat 5.5.27 but URL without
port 8080 reports page not found.


Rainer Jung-3 wrote:
> 
> On 05.01.2009 13:09, samlin wrote:
>> Hi
>>
>> I am using
>> CentOS release 5.2 (Final)
>> jdk1.5.0_16
>> httpd-2.2.3-11.el5_2.centos.4
>> tomcat-5.5.27
>>
>> I tried compiling mod_jk.so
>> I used tomcat-connectors-1.2.27-src.tar.gz
>> resultant mod_jk.so was copied to /etc/httpd/modules/ directory
>>
>> -workers.properties
>> worker.list=worker1
>> worker.worker1.type=ajp13
>> worker.worker1.host=server2.utvi.com
>> worker.worker1.port=8009
>> -mod_jk.conf
>> LoadModulejk_module  modules/mod_jk.so
> 
> If /etc/httpd is not your ServerRoot, you need to use the full path to 
> the file in LoadModule.
> 
>> JkWorkersFile /etc/httpd/conf/workers.properties
>> JkShmFile /var/log/httpd/mod_jk.shm
>> JkLogFile /var/log/httpd/mod_jk.log
>> JkLogLevelinfo
>> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
>> JkMount /testapp worker1
>> JkMount /testapp/*.jsp worker1
>> JkMount /testapp/* worker1
> 
> If your request will be served by a VirtualHost, you need to put the 
> JkMount into the VirtualHost.
> 
> You didn't tell us, what does not work (e.g. what is your test case, 
> which behaviour do you exoect and which behaviour do you get instead).
> 
> Regards,
> 
> Rainer
> 
> -
> 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/Problem-with-mod_jk-installation-tp19639347p21367451.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 6 does not start in a cluster. It simply hangs... Any Idea..

2009-01-08 Thread jsandhu2204

Please see the three stack dumps I did.

http://www.nabble.com/file/p21367357/Thread-dump-three-times.txt
Thread-dump-three-times.txt 


Filip Hanik - Dev Lists wrote:
> 
> Could you take more than one thread dump, take 3, wait 5 seconds between 
> each.
> As you can see, the startup thread is still executing your application 
> code com.valleyoak.util.IVosTableInfo, this is the thread that starts up 
> tomcat
> 
> Filip
> 
> main thread - the one starting tomcat
> 
> "main" prio=6 tid=0x01dc1c00 nid=0x15cc in Object.wait() 
> [0x01f4d000..0x01f4fc70]
> 
> java.lang.Thread.State: RUNNABLE
> at
> com.valleyoak.util.IVosTableInfo.findColumnTables(IVosTableInfo.java:161)
> at com.valleyoak.db.IVosStorable.findColumnTables(IVosStorable.java:1245)
> at com.valleyoak.model.Payment.(Payment.java:136)
> at 
> com.valleyoak.model.ContextListener.contextInitialized(ContextListener.java:107)
> at 
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
> - locked <0x41f4f390> (a org.apache.catalina.core.StandardContext)
> at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> - locked <0x41eef8b8> (a java.util.HashMap)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
> at 
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
> at 
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
> 
> 
> One of the cluster threads have received the session state data from the 
> other node and is deserializing it
> 
> "pool-2-thread-1" prio=6 tid=0x01dc5c00 nid=0xf00 in 
> Object.wait() [0x777c000..0x0777fae0]
> java.lang.Thread.State: RUNNABLE
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:169)
> at com.valleyoak.util.IVosTableInfo.class$(IVosTableInfo.java:504)
> at com.valleyoak.util.IVosTableInfo.loadTables(IVosTableInfo.java:522)
> at com.valleyoak.util.IVosTableInfo.(IVosTableInfo.java:53)
> at com.valleyoak.db.IVosStorable.findColumnTables(IVosStorable.java:1245)
> at com.valleyoak.model.User.(User.java:71)
> at java.io.ObjectStreamClass.hasStaticInitializer(Native Method)
> at
> java.io.ObjectStreamClass.computeDefaultSUID(ObjectStreamClass.java:1696)
> at java.io.ObjectStreamClass.access$100(ObjectStreamClass.java:52)
> at java.io.ObjectStreamClass$1.run(ObjectStreamClass.java:205)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> java.io.ObjectStreamClass.getSerialVersionUID(ObjectStreamClass.java:202)
> at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:558)
> at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
> at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
> at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
> 
> 
> 
> jsandhu2204 wrote:
>> I have created stack trace when servers hangs.  Please see attached.  I
>> would
>> appreciate if you can help me with this.
>> If I put  flag in the web.xml of the application. Tomcat6
>> does not start sometimes.  It simply hangs.
>>
>> http://www.nabble.com/file/p21347289/CheatSheet-ltr1vs02-Tomcat6-hangs-if-put-distributeable-tag.rtf
>> CheatSheet-ltr1vs02-Tomcat6-hangs-if-put-distributeable-tag.rtf 
>>
>> http://www.nabble.com/file/p21347289/CheatSheet-Tomcat6-hangs-if-put-distributeable-tag.rtf
>> CheatSheet-Tomcat6-hangs-if-put-distributeable-tag.rtf 
>>
>> Filip Hanik - Dev Lists wrote:
>>   
>>> When this happens, simply take a thread dump, and we can see  why it is 
>>> hanging
>>>
>>> Unix:
>>> kill -3 
>>> jstack -l 
>>>
>>> Windows
>>> Ctrl+Break in the console
>>> jstack -l 
>>>
>>> Filip
>>>
>>> jsandhu2204 wrote:
>>> 
 Problem1 :  While starting tomcat6, sometimes it starts other times it
 simply
 hangs on the following message: 
 INFO: Manager [localhost#/ivos]; session state send at 12/12/08 12:34
 AM
 received in 110 ms. 
 Tomcat Log: 

 INFO: Register manager /ivos to cluster element Engine with name
 Catalina
 Dec 12, 2008 12:34:53 AM org.apache.catalina.ha.session.DeltaManager
 start 

 INFO: Starting clustering manager at /ivos Dec 12, 2008 12:34:53 AM
 org.apache.catalina.ha.session.DeltaManager getAllClusterSessions 

 WARNING: Manager [localhost#/ivos], requesting session state from
 org.apache.catalina.tribes.membership.MemberImpl[tcp://{10, 88, 8,
 28}:4002,{10, 88, 8, 28},4002, alive=123501,id={27 -68 111 -64 -49 -117
 68
 38 -98 -27 -49 39 -22 6 -88 -38 }, payload={}, command={}, domain={},
 ].
 This operation will timeout if no session state has been received
 within
 60
>

Deleting context files when redeploy application

2009-01-08 Thread Sreenivas Reddy
Hi Users,

I'm using Tomcat 6.0.18. When I re-deploy my application using tomcat admin
console, it is deleting context files from
"/tomcat6.0.18/conf/Catalina/localhost" location. Pls help me to resolve
this problem.
Thanks in advance.

srinivasredd...@gmail.com


Re: WARNING: Error sending end packet - ajp

2009-01-08 Thread Bill Barker

"Jim Goodspeed"  wrote in message 
news:84347690901081130k2b5e952agd426dd757e60d...@mail.gmail.com...
> Hi,
>
> I am getting the following WARNING message in my catalina.out file.  I am
> currently running Apache 2.2.10, Tomcat 6.0.16 and Sun's JDK 1.6.0_07.  I
> can't tell if this is causing a problem or not.  Thanks in advance for the
> help.
>

Other than taking up disc space, it isn't causing a problem.  It just means 
that Apache dropped the connection before Tomcat could send it's message 
saying that it was ready for another request.  The result will be that 
Tomcat will simply send the thread back to it's pool to wait for another 
connection.

If you upgrade your Tomcat version, that message will be logged at DEBUG 
level (and so shouldn't show up with a production configuration).

>
> Jan 8, 2009 1:40:10 PM org.apache.jk.core.MsgContext action
> WARNING: Error sending end packet
> java.net.SocketException: Broken pipe
>at java.net.SocketOutputStream.socketWrite0(Native Method)
>at
> java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
>at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
>at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:531)
>at
> org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:121)
>at org.apache.jk.core.MsgContext.action(MsgContext.java:304)
>at org.apache.coyote.Response.action(Response.java:183)
>at org.apache.coyote.Response.finish(Response.java:305)
>at
> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:195)
>at
> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
>at 
> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
>at
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
>at
> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
>at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
>at java.lang.Thread.run(Thread.java:619)
>
>
> My AJP configuration is the following in my server.xml file:
>
>   enableLookups="false" redirectPort="8445" debug="0"
>maxThreads="200" minSpareThreads="10" maxSpareThreads="25"
>acceptCount="100" connectionTimeout="2"
>   protocol="AJP/1.3" />
>
> Apache is load balancing two tomcat servers with the following
> configuration:
>
>ProxyRequests Off
>ProxyPreserveHost On
>
>
>Order deny,allow
>Allow from all
>
>
>ProxyPass /lexmaint !
>
>
>BalancerMember ajp://server1:8009 route=app1-a loadfactor=5
>BalancerMember ajp://server2:8009 route=app1-b loadfactor=5
>
>
>
>ProxyPass balancer://app1/ stickysession=JSESSIONID
>
> 




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



Strange parser behavior from adding log4j

2009-01-08 Thread Ken Bowen

Hi all,

[Tomcat 6.0.18, java 1.5.0_16, struts 1.2.8]

I have a struts 1.2.8 app [I know, that's antediluvian] which has been  
running fine for some time.
I'm now trying to add log4j logging to it.  I am getting an extremely  
strange side-effect when I
add a log4j.properties file to WEB-INF/classes in my app, even a very  
simple one.
When no log4j.properties file is present, my app starts and runs just  
fine.
But when I add WEB-INF/classes/log4j.properties, even as simple a file  
as


log4j.rootLogger=ERROR, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%-4r [%t] %-5p %c %x -  
%m%n


then what happens when this is present is that I get the following  
error during startup:


4[ContainerBackgroundProcessor[StandardEngine[Catalina]]] ERROR  
org.apache.commons.digester.Digester  - Parse Error at line 405 column  
17: The content of element type "struts-config" must match "(display- 
name?,description?,data-sources?,form-beans?,global-exceptions?,global- 
forwards?,action-mappings?,controller?,message-resources*,plug-in*)".
org.xml.sax.SAXParseException: The content of element type "struts- 
config" must match "(display-name?,description?,data-sources?,form- 
beans?,global-exceptions?,global-forwards?,action- 
mappings?,controller?,message-resources*,plug-in*)".
	at  
org 
.apache 
.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)

at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
	at  
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown  
Source)
	at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown  
Source)
	at  
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown  
Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl 
$FragmentContentDispatcher.dispatch(Unknown Source)
	at  
org 
.apache 
.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1745)
	at  
org 
.apache 
.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java: 
738)
	at  
org 
.apache 
.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:687)

at org.apache.struts.action.ActionServlet.init(ActionServlet.java:333)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
	at  
org 
.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java: 
1172)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java: 
992)
	at  
org 
.apache 
.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
	at  
org.apache.catalina.core.StandardContext.start(StandardContext.java: 
4371)
	at  
org.apache.catalina.core.StandardContext.reload(StandardContext.java: 
3099)
	at  
org 
.apache 
.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:404)
	at  
org 
.apache 
.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1309)
	at org.apache.catalina.core.ContainerBase 
$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
	at org.apache.catalina.core.ContainerBase 
$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
	at org.apache.catalina.core.ContainerBase 
$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
	at org.apache.catalina.core.ContainerBase 
$ContainerBackgroundProcessor.run(ContainerBase.java:1590)

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

It would appear that log4j is causing some different parsing tools to  
be loaded when it is present.

Here are the jars in WEB-INF/lib which I believe are x-related:

jaxen-1.1-beta-7.jar
jaxen-full.jar
jaxp-api.jar
sax.jar
saxpath.jar
xalan.jar
xerces-2.6.2.jar
xercesImpl.jar
xml-apis.jar

Has anyone any thoughts on what might be happening here?

Thanks in advance,
Ken


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



Re: Retrieve User Role

2009-01-08 Thread Ben Tomlinson
Perfect.  Thanks.

On Thu, Jan 8, 2009 at 5:40 PM, Alan Chaney  wrote:
> Hi Ben
>
> You can get it from the request. In JSP you can access the request implict
> object to get the value of the HttpServletRequest#getRemoteUser() method ...
>
> "Returns the login of the user making this request, if the user has been
> authenticated, or null if the user has not been authenticated."
>
> (quote from j2ee docs for HttpServletRequest)
>
> The exact syntax to use depends upon whether or not you are using EL.
> If you are using tags..
> <% String username = request.getRemoteUser() %>
>
> and in EL you can use the 'pageContext'. Try:
>
> ${pageContext.request.remoteUser}   /// I think... you may need to check.
>
> and use as you see fit...
>
> Alan
>
>
> Ben Tomlinson wrote:
>>
>> I have set up login security for some of the pages in my website.  I
>> have a JDBCRealm setup and working correctly.  But now I want to
>> change the layout of my pages (all jsp pages) according to the user
>> that is logged in.  How do I retrieve information about the user that
>> is actually logged in?  Mainly I want the user role or the user name
>> but I can't seem to get it from the session.  Any help would be
>> appreciated.
>>
>> Ben
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>>
>> !DSPAM:49667e4a164556657853550!
>>
>
> -
> 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: Retrieve User Role

2009-01-08 Thread Alan Chaney

Hi Ben

You can get it from the request. In JSP you can access the request 
implict object to get the value of the 
HttpServletRequest#getRemoteUser() method ...


"Returns the login of the user making this request, if the user has been 
authenticated, or null if the user has not been authenticated."


(quote from j2ee docs for HttpServletRequest)

The exact syntax to use depends upon whether or not you are using EL.
If you are using tags..
<% String username = request.getRemoteUser() %>

and in EL you can use the 'pageContext'. Try:

${pageContext.request.remoteUser}   /// I think... you may need to check.

and use as you see fit...

Alan


Ben Tomlinson wrote:

I have set up login security for some of the pages in my website.  I
have a JDBCRealm setup and working correctly.  But now I want to
change the layout of my pages (all jsp pages) according to the user
that is logged in.  How do I retrieve information about the user that
is actually logged in?  Mainly I want the user role or the user name
but I can't seem to get it from the session.  Any help would be
appreciated.

Ben

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



!DSPAM:49667e4a164556657853550!



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



Retrieve User Role

2009-01-08 Thread Ben Tomlinson
I have set up login security for some of the pages in my website.  I
have a JDBCRealm setup and working correctly.  But now I want to
change the layout of my pages (all jsp pages) according to the user
that is logged in.  How do I retrieve information about the user that
is actually logged in?  Mainly I want the user role or the user name
but I can't seem to get it from the session.  Any help would be
appreciated.

Ben

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



Re: File upload fails

2009-01-08 Thread Alan Chaney



javacle wrote:
The file is about 30Mbytes 
.. I get the same error uploading from the office on the same LAN as the

server.

Ok - not likely to be a problem with the remote connection, then.

What do you see in your browser when the upload fails? Have you got any 
browser debugging - if you are using Firefox you can easily add the 
'LiveHttpHeaders' plugin which I find very useful.


What happens inside your application following the upload? Is there a 
significant period of processing in the same thread as the servlet 
doGet? If so, its possible that your connection is timing out.


As you can simulate the problem in your office, what happens if you 
DON'T restart tomcat after you get the connection issue? If you just 
leave it for a little while can you then upload again?





Browser is (I think) always MSIE 6 .. but maybe sometimes Mozilla .. that's
something to check.
I will look into wireshark. 


Having a monitor on the connection will be useful. You should be able to 
install wireshark from your distro. I assume that as you are using MSIE 
then your dev. system is a PC? I develop on linux and don't know of any

particular network monitor to recommend.

HTH

Alan






Alan Chaney wrote:

How big is the file?

"Connection reset" is commonly caused by the the client dropping the 
connection. This could be because of connectivity problems - for 
example, issues with the clients ISP.


I have had problems with specific browsers over this as well (our site 
has dozens of large mpeg and jpeg uploads each day). The worst culprit 
proved to be Safari 3 on a Mac. Is the upload done with SSL?


I doubt that restarting the server makes any difference one way or the 
other. Why not get the client to test with a non-urgent file and a 
non-urgent time  when you have a chance to fault-find? Also, you may 
want to watch the upload with something like wireshark to see exactly 
what is happening and when.


Regards

Alan Chaney


javacle wrote:

We have a customer who uploads a file on a daily basis.
Usually it works, but about once every two weeks it fails with this error
in
the log :
org.apache.commons.fileupload.FileUploadException: Processing of
multipart/form-data request failed. Connection reset
After restarting tomcat, sometimes three times, it eventually works.
Whether the restarting is significant or just the passage of time that
clears some other fault I dont know .. there is always a panic to get it
working

The customer is on the other side of the continent, but today she
emailed
the file to me and I had the same error trying to upload her file from
the
office the first time (i.e. same building as server). So that would seem
to
eliminate long-distance network latency/timeout as a factor.

Nothing I am aware of has changed since the last time it worked,
however
something may have changed in the network, or on the server, without
being
noticed.

Any advice would be appreciated

tomcat 5.5, jre 1.4.2, Red Hat Enterprise Linux ES release 4 (Nahant)
Kernel
2.6.9-5.ELsmp on an i686

-
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: File upload fails

2009-01-08 Thread javacle

The file is about 30Mbytes 
.. I get the same error uploading from the office on the same LAN as the
server.
Browser is (I think) always MSIE 6 .. but maybe sometimes Mozilla .. that's
something to check.
I will look into wireshark. 



Alan Chaney wrote:
> 
> How big is the file?
> 
> "Connection reset" is commonly caused by the the client dropping the 
> connection. This could be because of connectivity problems - for 
> example, issues with the clients ISP.
> 
> I have had problems with specific browsers over this as well (our site 
> has dozens of large mpeg and jpeg uploads each day). The worst culprit 
> proved to be Safari 3 on a Mac. Is the upload done with SSL?
> 
> I doubt that restarting the server makes any difference one way or the 
> other. Why not get the client to test with a non-urgent file and a 
> non-urgent time  when you have a chance to fault-find? Also, you may 
> want to watch the upload with something like wireshark to see exactly 
> what is happening and when.
> 
> Regards
> 
> Alan Chaney
> 
> 
> javacle wrote:
>> We have a customer who uploads a file on a daily basis.
>> Usually it works, but about once every two weeks it fails with this error
>> in
>> the log :
>> org.apache.commons.fileupload.FileUploadException: Processing of
>> multipart/form-data request failed. Connection reset
>> After restarting tomcat, sometimes three times, it eventually works.
>> Whether the restarting is significant or just the passage of time that
>> clears some other fault I dont know .. there is always a panic to get it
>> working
>> 
>> The customer is on the other side of the continent, but today she
>> emailed
>> the file to me and I had the same error trying to upload her file from
>> the
>> office the first time (i.e. same building as server). So that would seem
>> to
>> eliminate long-distance network latency/timeout as a factor.
>> 
>> Nothing I am aware of has changed since the last time it worked,
>> however
>> something may have changed in the network, or on the server, without
>> being
>> noticed.
>> 
>> Any advice would be appreciated
>> 
>> tomcat 5.5, jre 1.4.2, Red Hat Enterprise Linux ES release 4 (Nahant)
>> Kernel
>> 2.6.9-5.ELsmp on an i686
> 
> -
> 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/File-upload-fails-tp21360958p21361472.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: File upload fails

2009-01-08 Thread Alan Chaney

How big is the file?

"Connection reset" is commonly caused by the the client dropping the 
connection. This could be because of connectivity problems - for 
example, issues with the clients ISP.


I have had problems with specific browsers over this as well (our site 
has dozens of large mpeg and jpeg uploads each day). The worst culprit 
proved to be Safari 3 on a Mac. Is the upload done with SSL?


I doubt that restarting the server makes any difference one way or the 
other. Why not get the client to test with a non-urgent file and a 
non-urgent time  when you have a chance to fault-find? Also, you may 
want to watch the upload with something like wireshark to see exactly 
what is happening and when.


Regards

Alan Chaney


javacle wrote:

We have a customer who uploads a file on a daily basis.
Usually it works, but about once every two weeks it fails with this error in
the log :
org.apache.commons.fileupload.FileUploadException: Processing of
multipart/form-data request failed. Connection reset
After restarting tomcat, sometimes three times, it eventually works.
Whether the restarting is significant or just the passage of time that
clears some other fault I dont know .. there is always a panic to get it
working

The customer is on the other side of the continent, but today she emailed
the file to me and I had the same error trying to upload her file from the
office the first time (i.e. same building as server). So that would seem to
eliminate long-distance network latency/timeout as a factor.

Nothing I am aware of has changed since the last time it worked, however
something may have changed in the network, or on the server, without being
noticed.

Any advice would be appreciated

tomcat 5.5, jre 1.4.2, Red Hat Enterprise Linux ES release 4 (Nahant) Kernel
2.6.9-5.ELsmp on an i686


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



File upload fails

2009-01-08 Thread javacle

We have a customer who uploads a file on a daily basis.
Usually it works, but about once every two weeks it fails with this error in
the log :
org.apache.commons.fileupload.FileUploadException: Processing of
multipart/form-data request failed. Connection reset
After restarting tomcat, sometimes three times, it eventually works.
Whether the restarting is significant or just the passage of time that
clears some other fault I dont know .. there is always a panic to get it
working

The customer is on the other side of the continent, but today she emailed
the file to me and I had the same error trying to upload her file from the
office the first time (i.e. same building as server). So that would seem to
eliminate long-distance network latency/timeout as a factor.

Nothing I am aware of has changed since the last time it worked, however
something may have changed in the network, or on the server, without being
noticed.

Any advice would be appreciated

tomcat 5.5, jre 1.4.2, Red Hat Enterprise Linux ES release 4 (Nahant) Kernel
2.6.9-5.ELsmp on an i686
-- 
View this message in context: 
http://www.nabble.com/File-upload-fails-tp21360958p21360958.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: Pros and cons of readonly UserDatabase (tomcat-users.xml)

2009-01-08 Thread Richard Eggert
The MemoryUserDatabaseMBean will write to tomcat-users.xml if its
"save" method is invoked via JMX.


Rich


On Thu, Jan 8, 2009 at 5:11 AM, Kees Jan Koster  wrote:
> Dear Petr,
>
>> any comment on this subject? The question is related to OpenSolaris
>> package
>> (*) where we have all files owned by root and tomcat is executed with
>> dedicated user credentials.
>>
>> Currently tomcat-user.xml and conf directory is owned by tomcat user but
>> it
>> makes some noise in our package auditing.
>>
>> The question is what is limitation of setting user database as readonly
>> (in
>> server.xml) for Tomcat 6.0.18 and having tomcat-user.xml and conf
>> directory
>> owned by root.
>
>
> Does tomcat-users.xml ever have to be written from Tomcat? I routinely run
> with tomcat-users.xml as read-only and it is no problem for me. I don't
> actually use that mechanism at all.
> --
> Kees Jan
>
> http://java-monitor.com/forum/
> kjkos...@kjkoster.org
> 06-51838192
>
> Human beings make life so interesting. Do you know that in a universe so
> full of wonders,
> they have managed to invent boredom. Quite astonishing... -- Terry Pratchett
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>



-- 
Rich

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



WARNING: Error sending end packet - ajp

2009-01-08 Thread Jim Goodspeed
Hi,

I am getting the following WARNING message in my catalina.out file.  I am
currently running Apache 2.2.10, Tomcat 6.0.16 and Sun's JDK 1.6.0_07.  I
can't tell if this is causing a problem or not.  Thanks in advance for the
help.


Jan 8, 2009 1:40:10 PM org.apache.jk.core.MsgContext action
WARNING: Error sending end packet
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:531)
at
org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:121)
at org.apache.jk.core.MsgContext.action(MsgContext.java:304)
at org.apache.coyote.Response.action(Response.java:183)
at org.apache.coyote.Response.finish(Response.java:305)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:195)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:619)


My AJP configuration is the following in my server.xml file:



Apache is load balancing two tomcat servers with the following
configuration:

ProxyRequests Off
ProxyPreserveHost On


Order deny,allow
Allow from all


ProxyPass /lexmaint !


BalancerMember ajp://server1:8009 route=app1-a loadfactor=5
BalancerMember ajp://server2:8009 route=app1-b loadfactor=5



ProxyPass balancer://app1/ stickysession=JSESSIONID



Re: unique identification in access log

2009-01-08 Thread David Knox
Check the code in org.apache.catalina.valves.RequestDumperValve

-- knoxy
 
On Thursday, January 08, 2009, at 07:51AM, "Josh Pollara" 
 wrote:
>Hi,
>
> 
>
>I'm trying to mimic mod_unique functionality from apache into tomcat. I
>would like to have a unique string printed out in my access log for each
>request tomcat serves. I thought maybe I could do this with "%S User
>Session ID" from org.apache.catalina.valves.AccessLogValve but that
>comes up as null in the access log when enabled.
>
> 
>
>Any ideas?
>
> 
>
>-josh
>
>

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



Re: Tomcat 6 does not start in a cluster. It simply hangs... Any Idea..

2009-01-08 Thread Filip Hanik - Dev Lists
Could you take more than one thread dump, take 3, wait 5 seconds between 
each.
As you can see, the startup thread is still executing your application 
code com.valleyoak.util.IVosTableInfo, this is the thread that starts up 
tomcat


Filip

main thread - the one starting tomcat

"main" prio=6 tid=0x01dc1c00 nid=0x15cc in Object.wait() 
[0x01f4d000..0x01f4fc70]


java.lang.Thread.State: RUNNABLE
at com.valleyoak.util.IVosTableInfo.findColumnTables(IVosTableInfo.java:161)
at com.valleyoak.db.IVosStorable.findColumnTables(IVosStorable.java:1245)
at com.valleyoak.model.Payment.(Payment.java:136)
at 
com.valleyoak.model.ContextListener.contextInitialized(ContextListener.java:107)
at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
- locked <0x41f4f390> (a org.apache.catalina.core.StandardContext)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)

- locked <0x41eef8b8> (a java.util.HashMap)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at 
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
at 
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)

at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)


One of the cluster threads have received the session state data from the 
other node and is deserializing it


"pool-2-thread-1" prio=6 tid=0x01dc5c00 nid=0xf00 in 
Object.wait() [0x777c000..0x0777fae0]

java.lang.Thread.State: RUNNABLE
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.valleyoak.util.IVosTableInfo.class$(IVosTableInfo.java:504)
at com.valleyoak.util.IVosTableInfo.loadTables(IVosTableInfo.java:522)
at com.valleyoak.util.IVosTableInfo.(IVosTableInfo.java:53)
at com.valleyoak.db.IVosStorable.findColumnTables(IVosStorable.java:1245)
at com.valleyoak.model.User.(User.java:71)
at java.io.ObjectStreamClass.hasStaticInitializer(Native Method)
at java.io.ObjectStreamClass.computeDefaultSUID(ObjectStreamClass.java:1696)
at java.io.ObjectStreamClass.access$100(ObjectStreamClass.java:52)
at java.io.ObjectStreamClass$1.run(ObjectStreamClass.java:205)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.getSerialVersionUID(ObjectStreamClass.java:202)
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:558)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)



jsandhu2204 wrote:

I have created stack trace when servers hangs.  Please see attached.  I would
appreciate if you can help me with this.
If I put  flag in the web.xml of the application. Tomcat6
does not start sometimes.  It simply hangs.

http://www.nabble.com/file/p21347289/CheatSheet-ltr1vs02-Tomcat6-hangs-if-put-distributeable-tag.rtf
CheatSheet-ltr1vs02-Tomcat6-hangs-if-put-distributeable-tag.rtf 


http://www.nabble.com/file/p21347289/CheatSheet-Tomcat6-hangs-if-put-distributeable-tag.rtf
CheatSheet-Tomcat6-hangs-if-put-distributeable-tag.rtf 


Filip Hanik - Dev Lists wrote:
  
When this happens, simply take a thread dump, and we can see  why it is 
hanging


Unix:
kill -3 
jstack -l 

Windows
Ctrl+Break in the console
jstack -l 

Filip

jsandhu2204 wrote:


Problem1 :  While starting tomcat6, sometimes it starts other times it
simply
hangs on the following message: 
INFO: Manager [localhost#/ivos]; session state send at 12/12/08 12:34 AM
received in 110 ms. 
Tomcat Log: 


INFO: Register manager /ivos to cluster element Engine with name Catalina
Dec 12, 2008 12:34:53 AM org.apache.catalina.ha.session.DeltaManager
start 


INFO: Starting clustering manager at /ivos Dec 12, 2008 12:34:53 AM
org.apache.catalina.ha.session.DeltaManager getAllClusterSessions 


WARNING: Manager [localhost#/ivos], requesting session state from
org.apache.catalina.tribes.membership.MemberImpl[tcp://{10, 88, 8,
28}:4002,{10, 88, 8, 28},4002, alive=123501,id={27 -68 111 -64 -49 -117
68
38 -98 -27 -49 39 -22 6 -88 -38 }, payload={}, command={}, domain={}, ].
This operation will timeout if no session state has been received within
60
seconds. 


Dec 12, 2008 12:34:53 AM org.apache.catalina.ha.session.DeltaManager
waitForSendAllSessions 


INFO: Manager [localhost#/ivos]; session state send at 12/12/08 12:34 AM
received in 110 ms. 

  
  

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






  



-
To unsubscribe, e-

Re: Problem with mod_jk installation

2009-01-08 Thread Rainer Jung

On 05.01.2009 13:09, samlin wrote:

Hi

I am using
CentOS release 5.2 (Final)
jdk1.5.0_16
httpd-2.2.3-11.el5_2.centos.4
tomcat-5.5.27

I tried compiling mod_jk.so
I used tomcat-connectors-1.2.27-src.tar.gz
resultant mod_jk.so was copied to /etc/httpd/modules/ directory

-workers.properties
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=server2.utvi.com
worker.worker1.port=8009
-mod_jk.conf
LoadModulejk_module  modules/mod_jk.so


If /etc/httpd is not your ServerRoot, you need to use the full path to 
the file in LoadModule.



JkWorkersFile /etc/httpd/conf/workers.properties
JkShmFile /var/log/httpd/mod_jk.shm
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevelinfo
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkMount /testapp worker1
JkMount /testapp/*.jsp worker1
JkMount /testapp/* worker1


If your request will be served by a VirtualHost, you need to put the 
JkMount into the VirtualHost.


You didn't tell us, what does not work (e.g. what is your test case, 
which behaviour do you exoect and which behaviour do you get instead).


Regards,

Rainer

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



Re: Single WAR to update multiple contexts

2009-01-08 Thread Sean W

Using a single webapp sounds like a nice idea, and hopefully feasible, I will
look into this more since I think that solution would be the most efficient.
However, the reason why this would be difficult is:

I am using Apache Wicket's WicketServlet, which is mapped to a single Wicket
Application class. The Application class initializes many in-memory
variables that depend on which database it is initialized with. Recall the
database loaded depends on the context name.

I could try to create multiple WicketServlets within a single web-app, but I
rather avoid hard-coding the "list of 200 sites" into the WAR. Ideally using
the 1 web-app method I'd like to create a filter that will make:

"/ctx1/wicket/homepage" construct the wicket application using a config file
called ctx1 and 
"/ctx2/wicket/homepage" construct the wicket application using a config file
called ctx2 (if it exists) etc...

That way I'd only have to add/remove config files that contain database
connection info to add/remove "sites".

I will try to see if I can bend the functionality of WicketServlet to do
this. I'm not sure I can easily. Thanks!



Alan Chaney wrote:
> 
> Wouldn't it be easier to have ONE webapp and determine the database 
> from, for example, the URL its invoked with?
> 
> Its a little difficult to know exactly how you are doing things but 
> instead of having /ctx1 /ctx2 /ctx3 and mapping each one to ctx1.war
> why not have a filter in your setup which determines that its invoked 
> with /ctx1 and passes a parameter to the actual servlet which selects 
> the database you require? You could have one web app as ROOT and do it
> that way.
> 
> Maybe you could explain further why you need 200 separate versions where 
> the only difference is the name of the database?
> 

-- 
View this message in context: 
http://www.nabble.com/Single-WAR-to-update-multiple-contexts-tp21338593p21353649.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



unique identification in access log

2009-01-08 Thread Josh Pollara
Hi,

 

I'm trying to mimic mod_unique functionality from apache into tomcat. I
would like to have a unique string printed out in my access log for each
request tomcat serves. I thought maybe I could do this with "%S User
Session ID" from org.apache.catalina.valves.AccessLogValve but that
comes up as null in the access log when enabled.

 

Any ideas?

 

-josh



Re: Tomcat 6, APR, native wrapper and shutdown-port

2009-01-08 Thread Markus Schönhaber
Gregor Schneider:

> I'm running Tomcat using the APR and the native wrapper jsvc so that
> Tomcat runs on privileged port 80. Could somebody please be so kind to
> explain to me why there's no port 8005 listening on localhost?

That's the way it's intended to be when you start Tomcat via jsvc. If
you start the same Tomcat installation with the shell scripts, you'll
see Tomcat listening on port 8005.

Regards
  mks

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



Re: Pros and cons of readonly UserDatabase (tomcat-users.xml)

2009-01-08 Thread Kees Jan Koster

Dear Petr,

any comment on this subject? The question is related to OpenSolaris  
package

(*) where we have all files owned by root and tomcat is executed with
dedicated user credentials.

Currently tomcat-user.xml and conf directory is owned by tomcat user  
but it

makes some noise in our package auditing.

The question is what is limitation of setting user database as  
readonly (in
server.xml) for Tomcat 6.0.18 and having tomcat-user.xml and conf  
directory

owned by root.



Does tomcat-users.xml ever have to be written from Tomcat? I routinely  
run with tomcat-users.xml as read-only and it is no problem for me. I  
don't actually use that mechanism at all.

--
Kees Jan

http://java-monitor.com/forum/
kjkos...@kjkoster.org
06-51838192

Human beings make life so interesting. Do you know that in a universe  
so full of wonders,
they have managed to invent boredom. Quite astonishing... -- Terry  
Pratchett



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



Re: Tomcat not responding to https

2009-01-08 Thread Konstantin Kolinko
2009/1/8 Binu Mohan :
> Hi,
>
>I have an Apache Tomcat installation on a Windows Server 2003 machine. I 
> have configured Tomcat to work with SSL by following the instructions given 
> in the documentation (using the java ketytool utility).
>
>However, the configuration works fine on my development machine (XP 
> desktop), but it is not working on the server. When try and access the Tomcat 
> homepage from the server using https://localhost:8443/ it waits for a long 
> time and times out. If I try and access the site using 
> http://localhost:8443/, the Tomcat server displays the home page where it 
> should have displayed some unprintable characters (as I have accessed using 
> http).
>
>The same keystore and server configuration file are working fine on my 
> development machine. Any idea what could be causing the https requests to 
> time out and the http requests to the secure port 8443 to display the actual 
> page and not the encrypted response?
>
>Everything works as expected on the development machine
>
> Thanks & Regards,
> Binu
>
> This e-mail and any files transmitted with it are for the sole use of the 
> intended recipient(s) and may contain confidential and privileged 
> information. If you are not the intended recipient, please contact the sender 
> by reply e-mail and destroy all copies of the original message.  Any 
> unauthorised review, use, disclosure, dissemination, forwarding, printing or 
> copying of this email or any action taken in reliance on this e-mail is 
> strictly prohibited and may be unlawful.
>

1. What, exactly, Tomcat and Java version are you running on the
server and on dev. PC?
2. Aren't there any clues in the log files? Some are explained in the
"Troubleshooting" section of the guide:
http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html

Best regards,
Konstantin Kolinko

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



Pros and cons of readonly UserDatabase (tomcat-users.xml)

2009-01-08 Thread Petr Sumbera

Hi all,

any comment on this subject? The question is related to OpenSolaris package
(*) where we have all files owned by root and tomcat is executed with
dedicated user credentials.

Currently tomcat-user.xml and conf directory is owned by tomcat user but it
makes some noise in our package auditing.

The question is what is limitation of setting user database as readonly (in
server.xml) for Tomcat 6.0.18 and having tomcat-user.xml and conf directory
owned by root.

Thanks,

Petr
-- 
View this message in context: 
http://www.nabble.com/Pros-and-cons-of-readonly-UserDatabase-%28tomcat-users.xml%29-tp21348882p21348882.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 not responding to https

2009-01-08 Thread Mark Thomas
> From: Binu Mohan [mailto:binu.mo...@indecommglobal.com]
>
> If I try and access the site using
> http://localhost:8443/, the Tomcat server displays the home page where
> it should have displayed some unprintable characters (as I have accessed
> using http).

That is usually a sign that your configuration isn't correct. Post the
relevant conenctor element from server.xml so we can review it.

Mark



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



Tomcat 6, APR, native wrapper and shutdown-port

2009-01-08 Thread Gregor Schneider
Hi there,

I know, asking a lot of questions furing the past few days, here's one more:

I've installed Tomcat 6 at Debian Etch, using Sun's JDK 1.6.

Everything is working fine, however, one thing is puzzling me.

In server.xml I have the following entry:



So I was expecting an open port 8005 listening on localhost.

However, when I do a "netstat -lnp", I do not see this port:

= [ snip ] ==

tom...@compass:/usr/local/tomcat/conf$ netstat -lnp
(No info could be read for "-p": geteuid()=8080 but you should be root.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address   Foreign Address
State   PID/Program name
tcp0  0 127.0.0.1:3306  0.0.0.0:*   LISTEN -
tcp0  0 127.0.0.1:9102  0.0.0.0:*   LISTEN -
tcp0  0 0.0.0.0:21  0.0.0.0:*   LISTEN -
tcp0  0 127.0.0.1:250.0.0.0:*   LISTEN -
tcp6   0  0 :::80   :::*LISTEN -
tcp6   0  0 :::22   :::*LISTEN -
udp0  0 0.0.0.0:161 0.0.0.0:*  -
udp0  0 xx.xx.xxx.xxx:123   0.0.0.0:*  -
udp0  0 127.0.0.1:123   0.0.0.0:*  -
udp0  0 0.0.0.0:123 0.0.0.0:*  -
udp6   0  0 ::xxx::xxx:123 :::*   -
udp6   0  0 ::1:123 :::*   -
udp6   0  0 :::123  :::*   -
Active UNIX domain sockets (only servers)
Proto RefCnt Flags   Type   State I-Node PID/Program
namePath
unix  2  [ ACC ] STREAM LISTENING 3994 -
/var/run/acpid.socket
unix  2  [ ACC ] STREAM LISTENING 6230 -
/var/run/nscd/socket
unix  2  [ ACC ] STREAM LISTENING 11472-
/var/run/mysqld/mysqld.sock

= [ snap ] ==

I'm running Tomcat using the APR and the native wrapper jsvc so that
Tomcat runs on privileged port 80. Could somebody please be so kind to
explain to me why there's no port 8005 listening on localhost?

TIA

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: Tomcat 6 and log4j

2009-01-08 Thread Gregor Schneider
Hi Mark,


On Thu, Jan 8, 2009 at 1:43 AM, Mark Thomas  wrote:
>
> It is in bin/extras on all the mirrors.
>

ok, that was what I was missing.

> The logging page coudl do with updating with that information and a browse
> option on the downoad page woudl help find it. I'll add those changes to my
> todo list.

good idea.

Maybe one more thing:

I'm not really new to Ant, however, I couldn't figure out how to set
the proxy in the Ant-build-script for extras.xml.
I guess one has to create / use a build.properties and there define
the proxy, since within the build-script $proxy and it's attributes
are partly referenced.

So I just "patched" my proxy-config in extras.xml, but that's not the
recommended procedure.

Since I believe most Tomcat-useres are behind a proxy, it might be a
good idea specifying a sample proxy-entry in extras.xml so that people
get an example of the proxy-definition.

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: mod_headers and .htaccess for P3P policy

2009-01-08 Thread Sergio Arrighi

Hi to everyone,

First... thanks for the reply! You're so kind!
Yesterday after few hours of panic, I've solved my problem in a really 
simple and straightforward way.


I've simply added this line code in the root page of my hosted app:

response.addHeader("P3P", "When I had to deal with p3p policy then I simply put a directory 
called "w3c" in my webapps and dropped in a "p3p.xml" and 
"policy.xml". Afterwards my webapp on a different url in tomcat could 
be opened in an iframe by our partners IIS served ASP application.


w3c/p3p.xml
w3c/policy.xml

Is this what you are looking for?

Regards,
Dave

On Jan 7, 2009, at 7:49 AM, Sergio Arrighi wrote:


Hello to everyone,

I'm using apache 6 on a Windows server machine.
I'm hosting a webapplication which is used in a third party web site 
included in an IFRAME.
I've an issue with IE6 an IE7 about session replication. I've read on 
the internet that this issue is dued to P3P policies and that it's 
sufficient to add a clause to the header like this:



Header set P3P "policyref=\"/w3c/p3p.xml\", CP=\"NOI DSP COR NID CUR 
ADM DEV OUR BUS\""

# OR THIS, SIMPLER
Header set P3P "policyref=\"/w3c/p3p.xml\""


I've read on the internet that this is possible using .htaccess file 
in the webapp directory.

I've tried with no success.
Could someone please explain this procedure to me??

Thanks a lot

Sergio Arrighi

--
*I.M.I.N. Holding s.r.l.*
Sergio Arrighi
sergio.arri...@iminholding.com 
Cell. 3455805121

Vicolo Molino, 2
21052 Busto Arsizio
Varese
Tel. +39 0331324679
Fax. +39 0331324678
www.iminholding.com


-
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





--
*I.M.I.N. Holding s.r.l.*
Sergio Arrighi
sergio.arri...@iminholding.com 
Cell. 3455805121

Vicolo Molino, 2
21052 Busto Arsizio
Varese
Tel. +39 0331324679
Fax. +39 0331324678
www.iminholding.com


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