StandardManager EOFException

2005-08-17 Thread Edouard Dalla-Costa
Hello,

I am using Tomcat 5.0.28 which have always run fine but today I stopped 
tomcat to update my anti-virus and since that update, I am having the 
following error during tomcat starting:

17 août 2005 12:55:14 org.apache.catalina.session.StandardManager doLoad

GRAVE: IOException lors du chargement des sessions persistantes: 
java.io.EOFException

java.io.EOFException

at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)

at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)

at java.io.ObjectInputStream.readStreamHeader(Unknown Source)

at java.io.ObjectInputStream.init(Unknown Source)

at org.apache.catalina.util.CustomObjectInputStream.init(
CustomObjectInputStream.java:56)

at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java
:384)

at org.apache.catalina.session.StandardManager.load(StandardManager.java
:343)

at org.apache.catalina.session.StandardManager.start(StandardManager.java
:657)

at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:499)

at org.apache.catalina.startup.ContextConfig.managerConfig(
ContextConfig.java:315)

at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:635)

at org.apache.catalina.startup.ContextConfig.lifecycleEvent(
ContextConfig.java:216)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
LifecycleSupport.java:119)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4290)

at org.apache.catalina.core.ContainerBase.addChildInternal(
ContainerBase.java:823)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)

at org.apache.catalina.core.StandardHostDeployer.addChild(
StandardHostDeployer.java:903)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java
:216)

at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)

at org.apache.commons.digester.Rule.end(Rule.java:276)

at org.apache.commons.digester.Digester.endElement(Digester.java:1058)

at org.apache.catalina.util.CatalinaDigester.endElement(
CatalinaDigester.java:76)

at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.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:1567)

at org.apache.catalina.core.StandardHostDeployer.install(
StandardHostDeployer.java:488)

at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)

at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
:483)

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

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)

at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:349)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
LifecycleSupport.java:119)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)

at org.apache.catalina.core.StandardService.start(StandardService.java:480)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)

at org.apache.catalina.startup.Catalina.start(Catalina.java:556)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)

17 août 2005 12:55:14 org.apache.catalina.session.StandardManager start

GRAVE: Exception au chargement des sessions depuis le stockage persistant 
(persistent storage)

java.io.EOFException

at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)

at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)

at java.io.ObjectInputStream.readStreamHeader(Unknown Source)

at 

Kill running thread before tomcat stop

2005-04-04 Thread Edouard Dalla-Costa
Hello,

I am using tomcat 5.0.30 which is working well. However I encountered
a problem when I want to stop it. When I stop Tomcat, it calls the
destroy method which is supposed to kill all my running threads but it
goes to fast. So I was wondering if there was a proper way to make
tomcat waiting until all my threads are down??

Thanx by advance

Edouard

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



OutOfMemory

2005-03-01 Thread Edouard Dalla-Costa
Hello,

I have some OUtOfMemory exception with my tomcat and I was wondering
how could I increase the amount of memory allocate to Tomcat. Right
now it is running the default amount of memory which is 64 MB and it
is not enought.

Thanx by advance
Edouard

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Contrary of load-on-startup

2005-01-10 Thread Edouard Dalla-Costa
Hi,

I was wondering if there is a balise for the web.xml like
load-on-startup but calling a class before shutdown???
Thx in advance

Edouard

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: servlet problem

2004-11-03 Thread Edouard Dalla-Costa
It is pretty easy, you just have to do 2 things:

First in the server.xml file, if you want to use another directory,
like myDirectory (at root of C or under linux /myDirectory), you have
to add this line at the end of the document logger .../ and /host:

Context path=/unitellie docBase=C:\myDirectory debug=3
privileged=true reloadable=true /

And Secondly, don't forget to create all the classical hierarchy of
subfolder in this directory, like C:\myDirectory\WEB-INF\classes and
C:\myDirectoryWEB-INF\lib. Then put your servlet.class in the class
directory and create your web.xml file that you have to put in the
WEB-INF folder. And it should be working.

I hope it would help you
Good luck
Doud

On Wed, 3 Nov 2004 00:50:30 -0800 (PST), JAY BHAGATWALA
[EMAIL PROTECTED] wrote:
 hello...all..
 i am new to tomcat and having trouble running servlet
 in tomcat.
 problem is as follows :
 
 i have developed one servlet program, if i put the
 program into the
 webapps\servlets-example\web-inf\classes then it works
 fine,
 
 but if i put the program in another directory like
 webapps\demo\web-inf\classes then it gives error that
 requested resource is not available.
 
  i am using tomcat 5.0, i have also tried to configure
 web.xml and server.xml files but i do not get success.
 
 plz, help me out as soon as possible... any type of
 suggestions, helps are welcomed...
 
 thanks,
 jay
 
 __
 Do you Yahoo!?
 Check out the new Yahoo! Front Page.
 www.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SSL on tomcat breaks file download

2004-11-02 Thread Edouard Dalla-Costa
hey,

it is simply an header problem. I encountered the same problem few
month except that I am using servlet and not JSP file. But I think it
should be exactly the same. Tomcat by default set Cache-Control and
Pragma to no-cache. So you have to force those to to cache. I had to
add those two line to my servlet:

response.setHeader( Cache-Control, cache );
response.setHeader( Pragma,cache );

I hope it will help you

Doud

On Tue, 02 Nov 2004 17:32:21 +, Jon Wingfield
[EMAIL PROTECTED] wrote:
 Archives:
 http://marc.theaimsgroup.com/?l=tomcat-userm=109818070801385w=2
 http://marc.theaimsgroup.com/?l=tomcat-userm=105966032518910w=2
 
 Jon
 
 
 
 Dobson Paul L Contr OO-ALC/LGFBR wrote:
 
 
 
  I created a JSP web application that allows user to dynamically generate
  and download excel files using POI/HSSF. I use the following lines to
  store the excel file in my application directory under a directory
  titled xlsreports:
 
 
 
  nextXLSName =  MiscUtil.getNextXLSName(); //gets the next file name by
  querying the database.
 
  report.writeFile(WebappPrefs.getRptPath(session.getServletContext()) +
  nextXLSName);
 
 
 
 
 
  The above lines seem to work because I find the generated file in the
  correct folder with the correct time stamp of when I tested the JSP.
 
 
 
  I then use the following line of code to send the user the file:
 
 
 
  jsp:forward page=%= \xlsreports/\ + nextXLSName % /
 
 
 
 
 
  This has always worked flawlessly until I implemented SSL on Tomcat.
  Now, IE tells me that the requested site is either unavailable or cannot
  be found.
 
 
 
  Any ideas why implementing SSL would break this or how to fix it?
  Thanks a million in advance.
 
 
 
  --Paul
 
 
 
 
 
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Lib directory

2004-10-28 Thread Edouard Dalla-Costa
Hello,

I am developping a web application using several servlets. And I was
wondering how could I add sub-directory in the lib directory of my
webapp. I need something like 20 jar files and without organization,
it is a big mess.
I just don't know how to make tomcat know that I am using
sub-directory in the lib directory.

Thanx
Doud

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Fw: Internet Explorer Bug under SSL Connection

2004-10-19 Thread Edouard Dalla-Costa
Thank you very much for the information. However, I also had to to
change Cache-Control value (no-cache = cache) too.
Anyway thank you for your answer


On Mon, 18 Oct 2004 15:03:10 +0100, Jon Wingfield
[EMAIL PROTECTED] wrote:
 Tomcat adds (or at least did in the 4.1 branch) certain response
 headers, directives to clients and proxy caches to not cache the data,
 when it is to serve something within a security-constraint. (log
 examples at end of post)
 
 [It seems that] When IE downloads something with a mime-type it thinks
 it can handle (probably via a plug-in) it caches the data and then
 passes it over to the plug-in. With SSL and the Pragma header set to
 no-cache this seems to fail with the error message described in the
 original post.
 
 Our entire site is SSL also and we've seen this error (and our hack
 resolves it) for csv, excel, pdf files. Downloading with the
 content-type set to application/octet-stream doesn't trigger the error
 in our experience (we also provide this option on the download pages but
 users generally want to see the data directly).
 
 Jon
 
 Examples from my 4.1.29 logs when the RequestDumperValve is commented in:
 
 Response for index.jsp (inside security-constraint):
 authType=null
 contentLength=-1
 contentType=null
 cookie=JSESSIONID=EB28F372EF5D5FC5C2908C57766010BA; domain=null; path=/
 header=Pragma=No-cache
 header=Cache-Control=no-cache
 header=Expires=Thu, 01 Jan 1970 00:00:00 GMT
 header=Set-Cookie=JSESSIONID=EB28F372EF5D5FC5C2908C57766010BA; Path=/
 header=Location=http://localhost:8080/login.jsp;jsessionid=EB28F372EF5D5FC5C2908C57766010BA
 message=null
 remoteUser=null
 status=302
 
 Response for bgdot.gif (outside security-constraint):
 authType=null
 contentLength=77
 contentType=image/gif;charset=ISO-8859-1
 header=Server=IMP/4.0.20
 header=ETag=W/77-109810668
 header=Last-Modified=Mon, 18 Oct 2004 13:38:00 GMT
 message=null
 remoteUser=null
 status=200
 
 
 
 David Wall wrote:
 
  Our web site is entirely SSL.  Most users have IE.  Our application is used
  to securely transfer and digitally sign attached files that must be
  downloaded.  Yet, we've never seen this problem.  Who is putting in the
  Pragma header in the response in the first place that you have to change
  it this way?  And why does the Pragma setting have the negative effect
  described?
 
  Thanks,
  David
 
  - Original Message -
  From: Jon Wingfield [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Friday, October 15, 2004 9:57 AM
  Subject: Re: Internet Explorer Bug under SSL Connection
 
 
 
 Yep. This comes up every so often on the list.
 
 Whenever IE downloads content we change the Pragma response header to be
 public instead of no-cache:
 
 String userAgent = request.getHeader(user-agent);
 if (response.containsHeader(Pragma)
   userAgent!=null
   userAgent.toUpperCase().indexOf(MSIE)-1) {
  response.setHeader(Pragma, public);
 }
 
 
 HTH,
 
 Jon
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Internet Explorer Bug under SSL Connection

2004-10-15 Thread Edouard Dalla-Costa
Hi,

I am using a servlet that open an excel file from an output stream
which is working very well. However, I want to use it under SSL
connection which looks to be quite easy. I made the change in tomcat
and it is working very well. However when I try to open my excel file
using Internet Explorer under SSL connection, I am having a strange
error:

impossible to open: https://myURL

I am using exactley the same URL with non SSL connection and it is
working fine. But the funniest thing is that it is really well working
using FireFox or Opera explorer.
It makes me crazy. So if somebody as already see encounter this
problem or know what to do. PLEASE HELP ME

Thank you very Much

regards
Edouard

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IndexOutOfBound Exception?

2004-10-14 Thread Edouard Dalla-Costa
hello,

I am sorry but I can't help you with your problem. However, I would
like to know if you succeed to make tomcat 5 work with JBuilder. I am
trying to do it but JBuilder still try to use a tomcat 4 class which
create error. So if you could help me I will appriciate.
Thank you

Regards

Doud


On Thu, 14 Oct 2004 08:37:35 +0200, Bjørn T Johansen [EMAIL PROTECTED] wrote:
 I'm not sure it this is the right place but I'm trying
 I have a problem. I am trying to use Crystal Report to show reports in my webapp 
 using
 Tomcat 5. This work's ok when I run the webapp inside JBuilder but when I move the 
 project
 to a standalone Tomcat server, I get the following error:
 
 13 Oct 2004 13:13:18 [http-8083-Processor5] ERROR
 com.crystaldecisions.reports.reportengineinterface - Exception occured while 
 processing
 getTotaller request
 java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  at java.util.ArrayList.RangeCheck(ArrayList.java:507)
  at java.util.ArrayList.get(ArrayList.java:324)
  at com.crystaldecisions.reports.totaller.c.aw.if(Unknown Source)
  at com.crystaldecisions.reports.totaller.c.n$d.byte(Unknown Source)
  at com.crystaldecisions.reports.totaller.c.n.do(Unknown Source)
  at com.crystaldecisions.reports.totaller.c.y.init(Unknown Source)
  at com.crystaldecisions.reports.totaller.c.ak.a(Unknown Source)
  at com.crystaldecisions.reports.totaller.c.c.a(Unknown Source)
  at com.crystaldecisions.reports.dataengine.ap.case(Unknown Source)
  at com.crystaldecisions.reports.dataengine.a0.a(Unknown Source)
  at 
 com.crystaldecisions.reports.formatter.formatter.objectformatter.bf.if(Unknown
 Source)
  at com.crystaldecisions.reports.formatter.formatter.d.j.do(Unknown Source)
  at 
 com.crystaldecisions.reports.reportengineinterface.Engine.getGroupTree(Unknown
 Source)
  at
 com.crystaldecisions.reports.reportengineinterface.JPEReportSource.getTotaller(Unknown
  Source)
  at com.crystaldecisions.report.web.viewer.ReportAgent.else(Unknown Source)
  at com.crystaldecisions.report.web.viewer.CrystalReportViewer.goto(Unknown 
 Source)
  at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)
  at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown 
 Source)
  at
 com.crystaldecisions.report.web.viewer.taglib.ServerControlTag.doEndTag(Unknown 
 Source)
  at
 com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.doEndTag(Unknown
  Source)
  at
 org.apache.jsp.showReport_jsp._jspx_meth_crviewer_viewer_0(showReport_jsp.java:128)
  at org.apache.jsp.showReport_jsp._jspService(showReport_jsp.java:78)
  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
  at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
  at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
  at
 org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
  at
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
  at
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
  at 
 org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
  at
 org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
  at 
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
  at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
  at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
  at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
  at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
  at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 

Tomcat 5 with JBuilder X

2004-10-13 Thread Edouard Dalla-Costa
Hello,

I am trying to make tomcat 5 working with JBuilder to make possible
the debug of my web application. However, I don't find anyway to make
it wirk. I found a solution on the borland website, but it still does
not work.
So I was wondering if somebody succeed, If you can help me I would apreciate.
Thank you by advance

Doud

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SSL connection

2004-10-11 Thread Edouard Dalla-Costa
Hi,

I have a question of configuration. I am trying to use SSL
connection with tomcat 5.0.28. But it does not work, I am having a
FileNotFound exception when I am adding the className
SSLServerSocketFactory to the server.xml file. If I don't add the
className variable, the Secure connection looks to be working using
internet explorer but not with Firefox or Opera navigator.

Thank you very much

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]