Re: Problem with including JspC generated web.xml fragment

2005-01-17 Thread Andreas Schildbach
Tim Funk wrote:
I haven't read the docs for this so I am very surprised it wasn't 
there.  The source for JSPC is very easy to read. Anything that is a set 
method can be called via ant. With luck - I might find some time to 
update the docs for this one.
Actually the semantics is more unclear than the syntax to me. What 
exactly does addWebXmlMappings="true" mean? Add to the file specified in 
webXmlFragment? But in your example the file "generated_web.xml" isn't 
present at first, so there can't anything be added?

Regards,
Andreas

 validateXml="false"
 uriroot="${basedir}/${build.dir}"
 poolingEnabled="false"
 
webXmlFragment="${basedir}/${build.dir}/WEB-INF/generated_web.xml"
 addWebXmlMappings="true"
 outputDir="${basedir}/${jspc.base}"/>

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


mod_jk linking Apache_2.0.52 with Tomcat-5.5.6

2005-01-17 Thread Linda R
Hi,

I spent all day on this and looked at the Jakarta
documentation as well as this tomcat-user email
archive, but I can not figure this out.

The closest approximation I found was John Turner's
page for Apache 2.0.48 / Tomcat 4.1.29 / mod_jk for
Windows XP.

I'm using (don't laugh) Windows 98.

It automatically generates the mod_jk.conf in Tomcat
but then it doesn't work with JSPs - it only works
with servlets.  It works with the "jsp-examples"
folder, but not if the WEB-INF folder is removed, so I
think it's really using the servlets, not the JSPs. 
It sees nothing in the Tomcat root (webapps/Root)
directory.

If, in Apache's httpd.conf, I insert a paragraph


ServerName localhost
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /*.class ajp13


before the 

Include
"C:\jakarta-tomcat-5.5.6\conf\auto\mod_jk.conf"

line, then the JSPs work, but starting Apache gives
this message:

C:\Apache2\bin 20:04:27.61>apache
[Mon Jan 17 20:17:39 2005] [warn] VirtualHost
localhost:8080 overlaps with VirtualHost
localhost:8080, the first has precedence, perhaps you
need a NameVirtualHost directive

and then some things that would work with the
mod_jk.conf, such as jsp-servlets, a directory outside
the tomcat root directory, don't work.  It doesn't
seem to see the mod_jk.conf.  But this is the only way
I can figure out to get the JSP's or the Tomcat root
directory to work from Apache.

This is so confusing and the Jakarta documentation so
spotty, I'm wondering if it's worth it.

If anyone can clear up these subtleties for me, I
would appreciate it.

Thanks,

Linda



__ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

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



Alpha, Beeta releases--query

2005-01-17 Thread Rajaneesh
Hi,

  Had a basic question. In the opensource packages why do you have the
releases
named as alpha and beeta? Why not have gamma releases, theeta releases?

Regards
Rajaneesh

 --Curiosity kills--


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



Re: index.jsp: why don't modifications to it show up?

2005-01-17 Thread Sean M. Duncan
I ran into the same issue a while back and found that there is a
compiled version of the index.jsp in catalina-root.jar file in the /WEB-
INF/lib folder of the root web application.

Hope that helps.

-Sean

On Mon, 2005-01-17 at 20:58 -0800, Kai Utility wrote:
> Thanks for your excellent introduction to setting up Tomcat.
> I've thought of an addition you might want to include, namely, how to
> replace tomcat's index.jsp with one's own.  I'm doing a very limited web
> site and wish to expose it to the internet but I don't want the default
> tomcat startup page.  Unfortunately, I've found this to be a non-trivial
> task that I've spent all day on and still haven't solved.  Below follows
> an email I'm sending to tomcat-user@jakarta.apache.org:
> 
> 
> I have recently installed tomcat 5.5.4.
> I wish to use my own index.jsp in place of the out-of-the-box one.
> However, when I make changes to it they don't register.
> I.e. I'm making changes to
>$CATALINA_HOME/webapps/ROOT/index.jsp
> 
> I have searched this list for "index.jsp" and come up with some
> information but I haven't had success yet.  More on that presently. 
> This is some of what I've seen so far:
> 
> ---
> http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]&msgId=1735120
> 
> When using Tomcat 5.0.25 it seems that any change I make to
> ROOT/index.jsp does not show up in the
> browser (in Tomcat 4.xx this was easy to do).  I am sure this is some
> sort of caching problem so
> I've been looking for the compiled JSP in the work directory to delete
> it.  Very strange, but it
> doesn't seem like this JSP is compiled anywhere.
> 
> Does Tomcat 5.0 have some sort of memory resident or log caching that
> persists even after the
> server is restarted?
> 
> ---
> http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=150033
> 
> Check the webapp's WEB-INF/web.xml -- is said JSP precompiled?
> 
> If so, changing the file will (understandably) have no effect: the
> container checks its servlet mappings first, files (say, JSPs) second.
> 
> ---
> http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]&msgId=1735455
> 
> Good suggestion.  If the JSP is precompiled shouldn't I be able to go to
> the work directory and
> see index_jsp.class somewhere under a ROOT directory (like there is for
> other webapps)?  I guess
> one of my basic questions is that why don't I see a ROOT directory in
> the work directory?
> 
> ---
> http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]&msgId=1735458
> 
> You tell me -- how did you precompile?  
> 
> If you're placing classes directly in the "/work" dir, then, yes;
> if you're building class files and updating web.xml, then, no.
> 
> The former method of precompilation is Tomcat-specific and accounts for
> a JSP being updated.  The latter is for production deployments, in which
> case the JSPs should not change throughout the release lifetime.
> 
> The root context may be under "/work/_" in TC5, but don't quote me on
> that.
> 
> ---
> There were some other conversations on this topic but the above seemed
> the best.
> It seems that the last message above may be pertinent but I don't
> understand it.
> 
> I found two instances of index_jsp.class in my tomcat tree.
> I deleted both and nothing happened.
> 
> ---
> My setup:
> I'm running Tomcat 5.5.4 standalone (no apache).
> 
> $CATALINA_HOME/webapps/ROOT/WEB-INF/web.xml
> contains the following:
> 
> org.apache.jsp.index_jsp
> org.apache.jsp.index_jsp
> 
> 
> 
> org.apache.jsp.index_jsp
> /index.jsp
> 
> 
> $CATALINA_HOME/conf/web.xml
> contains the following (all standard, except I'm allowing the invoker
> servlet):
> 
> default
> 
> org.apache.catalina.servlets.DefaultServlet
> 
> debug
> 0
> 
> 
> listings
> false
> 
> 1
> 
> 
> 
> invoker
> 
>   org.apache.catalina.servlets.InvokerServlet
> 
> 
> debug
> 0
> 
> 2
> 
> 
> 
> default
> /
> 
> 
> 
> index.html
> index.htm
> index.jsp
> 


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



index.jsp: why don't modifications to it show up?

2005-01-17 Thread Kai Utility
Thanks for your excellent introduction to setting up Tomcat.
I've thought of an addition you might want to include, namely, how to
replace tomcat's index.jsp with one's own.  I'm doing a very limited web
site and wish to expose it to the internet but I don't want the default
tomcat startup page.  Unfortunately, I've found this to be a non-trivial
task that I've spent all day on and still haven't solved.  Below follows
an email I'm sending to tomcat-user@jakarta.apache.org:


I have recently installed tomcat 5.5.4.
I wish to use my own index.jsp in place of the out-of-the-box one.
However, when I make changes to it they don't register.
I.e. I'm making changes to
   $CATALINA_HOME/webapps/ROOT/index.jsp

I have searched this list for "index.jsp" and come up with some
information but I haven't had success yet.  More on that presently. 
This is some of what I've seen so far:

---
http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]&msgId=1735120

When using Tomcat 5.0.25 it seems that any change I make to
ROOT/index.jsp does not show up in the
browser (in Tomcat 4.xx this was easy to do).  I am sure this is some
sort of caching problem so
I've been looking for the compiled JSP in the work directory to delete
it.  Very strange, but it
doesn't seem like this JSP is compiled anywhere.

Does Tomcat 5.0 have some sort of memory resident or log caching that
persists even after the
server is restarted?

---
http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=150033

Check the webapp's WEB-INF/web.xml -- is said JSP precompiled?

If so, changing the file will (understandably) have no effect: the
container checks its servlet mappings first, files (say, JSPs) second.

---
http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]&msgId=1735455

Good suggestion.  If the JSP is precompiled shouldn't I be able to go to
the work directory and
see index_jsp.class somewhere under a ROOT directory (like there is for
other webapps)?  I guess
one of my basic questions is that why don't I see a ROOT directory in
the work directory?

---
http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]&msgId=1735458

You tell me -- how did you precompile?  

If you're placing classes directly in the "/work" dir, then, yes;
if you're building class files and updating web.xml, then, no.

The former method of precompilation is Tomcat-specific and accounts for
a JSP being updated.  The latter is for production deployments, in which
case the JSPs should not change throughout the release lifetime.

The root context may be under "/work/_" in TC5, but don't quote me on
that.

---
There were some other conversations on this topic but the above seemed
the best.
It seems that the last message above may be pertinent but I don't
understand it.

I found two instances of index_jsp.class in my tomcat tree.
I deleted both and nothing happened.

---
My setup:
I'm running Tomcat 5.5.4 standalone (no apache).

$CATALINA_HOME/webapps/ROOT/WEB-INF/web.xml
contains the following:

org.apache.jsp.index_jsp
org.apache.jsp.index_jsp



org.apache.jsp.index_jsp
/index.jsp


$CATALINA_HOME/conf/web.xml
contains the following (all standard, except I'm allowing the invoker
servlet):

default

org.apache.catalina.servlets.DefaultServlet

debug
0


listings
false

1



invoker

  org.apache.catalina.servlets.InvokerServlet


debug
0

2



default
/



index.html
index.htm
index.jsp

-- 
  Kai Utility
  [EMAIL PROTECTED]


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



Solved: Context.xml Resource difference between 5.0.x and 5.5.x?

2005-01-17 Thread TomK
Solved.Crazy but true.
 
When using the Oracle factory:
In a Tomcat 5.0 context file, the "url" parameter (name, not the value) must be 
lower case.  In a Tomcat 5.5 context file, the "url" parameter must be UPPER 
CASE. 
 
Works now. Thanks for the help.  Sorry for so many mails...
tk


Parsons Technical Services <[EMAIL PROTECTED]> wrote:
The docs say that the factory parameter is only needed for entries that 
Tomcat is not "aware" of. Since you had a special factory(in your old 5.0 
context) and not the standard one used by Tomcat you will need to have the 
factory element in place.

See:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/globalresources.html

Under Resource Definitions it says:
"You MUST also define any other needed parameters using attributes on the 
Resource element, to configure the object factory to be used (if not known 
to Tomcat already), and the properties used to configure that object 
factory."

And since Oracle does not use the standard factories that are built into 
Tomcat you will need the parameter for factory.

And I could be full of manure and sprouting daisies. But every now and then 
I get one right.


Doug



- Original Message - 
From: "Sean M. Duncan" 
To: 
Sent: Monday, January 17, 2005 8:45 PM
Subject: Re: Help: Context.xml Resource difference between 5.0.x and 5.5.x?


> On Mon, 2005-01-17 at 16:57 -0800, TomK wrote:
>> I'm having trouble moving my webapp from Tomcat 5.0 to 5.5. The 
>> dataSource in Context.xml seems to be the issue.
>>
>> According to the 'JNDI how-to' documentation for 5.0 and 5.5, it looks 
>> like the '' tag has been removed from the Context.xml and 
>> instead you can now supply arbitrary attributes to the tag 
>> itself.
>>
>> In 5.0, my Context.xml looked like this and it worked fine:
>> 
>> 
>> >> type="oracle.jdbc.pool.OracleDataSource" />
>> 
>> 

>> factory
>> oracle.jdbc.pool.OracleDataSourceFactory
>> 

>> 

>> driverClassName
>> oracle.jdbc.driver.OracleDriver
>> 

>> 

>> url
>> jdbc:oracle:thin:@xx:xx:xx
>> 

>> 

>> user
>> xx
>> 

>> 

>> password
>> xx
>> 

>> 
>> 
>>
>> ...note that oracle's factory requires "user", not "username".
>>
>>
>> Moving to 5.5, I changed it to:
>>
>> 
>> 
>> >> driverClassName="oracle.jdbc.driver.OracleDriver"
>> factory="oracle.jdbc.pool.OracleDataSourceFactory"
>> name="jdbc/db1"
>> password="xxx"
>> type="oracle.jdbc.pool.OracleDataSource"
>> url="jdbc:oracle:thin:@xx:xx:xx"
>> user="xx"/>
>> 
>>
>> ...this new Context.xml doesn't work. I get the following:
>> javax.naming.NamingException: Cannot create resource instance
>> at 
>> org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:132)
>> at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
>> at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
>>
>> any ideas? Almost seems as if the "factory" attribute of 
>> is not being used.
>>
>> thanks
>> tk_
>
>
> -
> 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: Help: Context.xml Resource difference between 5.0.x and 5.5.x?

2005-01-17 Thread Parsons Technical Services
The docs say that the factory parameter is only needed for entries that 
Tomcat is not "aware" of. Since you had a special factory(in your old 5.0 
context) and not the standard one used by Tomcat you will need to have the 
factory element in place.

See:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/globalresources.html
Under Resource Definitions it says:
"You MUST also define any other needed parameters using attributes on the 
Resource element, to configure the object factory to be used (if not known 
to Tomcat already), and the properties used to configure that object 
factory."

And since Oracle does not use the standard factories that are built into 
Tomcat you will need the parameter for factory.

And I could be full of manure and sprouting daisies. But every now and then 
I get one right.

Doug

- Original Message - 
From: "Sean M. Duncan" <[EMAIL PROTECTED]>
To: 
Sent: Monday, January 17, 2005 8:45 PM
Subject: Re: Help: Context.xml Resource difference between 5.0.x and 5.5.x?


On Mon, 2005-01-17 at 16:57 -0800, TomK wrote:
I'm having trouble moving my webapp from Tomcat 5.0 to 5.5.  The 
dataSource in Context.xml seems to be the issue.

According to the 'JNDI how-to' documentation for 5.0 and 5.5, it looks 
like the '' tag has been removed from the Context.xml and 
instead you can now supply arbitrary attributes to the  tag 
itself.

In 5.0, my Context.xml looked like this and it worked fine:


  
  

  factory
  oracle.jdbc.pool.OracleDataSourceFactory


  driverClassName
  oracle.jdbc.driver.OracleDriver


  url
  jdbc:oracle:thin:@xx:xx:xx


  user
  xx


  password
  xx

  

...note that oracle's factory requires "user", not "username".
Moving to 5.5, I changed it to:


  

...this new Context.xml doesn't work.  I get the following:
javax.naming.NamingException: Cannot create resource instance
 at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:132)
 at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:792)

any ideas?  Almost seems as if the "factory" attribute of  
is not being used.

thanks
tk_

-
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: Help: Context.xml Resource difference between 5.0.x and 5.5.x ?

2005-01-17 Thread Sean M. Duncan
On Mon, 2005-01-17 at 16:57 -0800, TomK wrote:
> I'm having trouble moving my webapp from Tomcat 5.0 to 5.5.  The dataSource 
> in Context.xml seems to be the issue.
>  
> According to the 'JNDI how-to' documentation for 5.0 and 5.5, it looks like 
> the '' tag has been removed from the Context.xml and instead 
> you can now supply arbitrary attributes to the  tag itself.
>  
> In 5.0, my Context.xml looked like this and it worked fine:
> 
> 
>  type="oracle.jdbc.pool.OracleDataSource" />
>   
> 
>   factory
>   oracle.jdbc.pool.OracleDataSourceFactory
> 
> 
>   driverClassName
>   oracle.jdbc.driver.OracleDriver
> 
> 
>   url
>   jdbc:oracle:thin:@xx:xx:xx
> 
> 
>   user
>   xx
> 
> 
>   password
>   xx
> 
>   
> 
>  
> ...note that oracle's factory requires "user", not "username".
> 
>  
> Moving to 5.5, I changed it to:
>  
> 
> 
>  driverClassName="oracle.jdbc.driver.OracleDriver" 
>   factory="oracle.jdbc.pool.OracleDataSourceFactory" 
>   name="jdbc/db1" 
>   password="xxx" 
>   type="oracle.jdbc.pool.OracleDataSource" 
>   url="jdbc:oracle:thin:@xx:xx:xx" 
>   user="xx"/>
> 
> 
> ...this new Context.xml doesn't work.  I get the following:
> javax.naming.NamingException: Cannot create resource instance
>  at 
> org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:132)
>  at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
>  at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
>  
> any ideas?  Almost seems as if the "factory" attribute of  is 
> not being used.
>  
> thanks
> tk_


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



Re: Java VM Monitor-Debug

2005-01-17 Thread Sean M. Duncan
You need a profiler.  I would suggest JProfiler for development
monitoring.  It's far too intrusive to use on a production system
though.

On Mon, 2005-01-17 at 19:37 -0500, K. Mike Bradley wrote:
> I have a need to look inside a running Java VM for a Tomcat app.
> We are having problems with an app on every server and can't figure it out.
> 
> I have a kernel mode debugger I can use for a Windows app but this is
> useless here of course.
> What kinds of third party products let you see inside a Java VM?
> 
> I need to see processes and threads and execution times and stack and heap
> space and whatever else is unique to Java that I need to see.
> I mean that I need a real solid diagnostic tool.
> 
> I see that J2SE 5 has this monitor API and SNMP as well but I don't think I
> can get it in our app.
> 
> Is there any third party tools out there that are real solid??
> 
> Thanks.
> 
> 
> 
> -
> 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]



Help: Context.xml Resource difference between 5.0.x and 5.5.x ?

2005-01-17 Thread TomK
I'm having trouble moving my webapp from Tomcat 5.0 to 5.5.  The dataSource in 
Context.xml seems to be the issue.
 
According to the 'JNDI how-to' documentation for 5.0 and 5.5, it looks like the 
'' tag has been removed from the Context.xml and instead you 
can now supply arbitrary attributes to the  tag itself.
 
In 5.0, my Context.xml looked like this and it worked fine:


  
  

  factory
  oracle.jdbc.pool.OracleDataSourceFactory


  driverClassName
  oracle.jdbc.driver.OracleDriver


  url
  jdbc:oracle:thin:@xx:xx:xx


  user
  xx


  password
  xx

  

 
...note that oracle's factory requires "user", not "username".

 
Moving to 5.5, I changed it to:
 


  


...this new Context.xml doesn't work.  I get the following:
javax.naming.NamingException: Cannot create resource instance
 at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:132)
 at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
 
any ideas?  Almost seems as if the "factory" attribute of  is not 
being used.
 
thanks
tk_


Java command line args

2005-01-17 Thread K. Mike Bradley
Can anyone elaborate what these switches mean to java.exe?
I know some of them.


Java.exe
 -serverUse server jvm.dll in a folder called
server??
 -Xbatch?
 -Xms64mMinimum memory
 -Xmx512m   Maximum memory
 -XX:MaxPermSize=128m   ?
 -Xminf0.3  ?
 -Xmaxf0.3  ?
 -DJAVA_COMPCMD=STACKTRACE  ?
 -Dsun.java2d.noddraw=true  ?
 -XX:NewRatio=10?
 -XX:MaxNewSize=64m ?
 
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactory
ImplXML parser to use other than the default???
 
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBu
ilderFactoryImplanother XML parser???
 -Dcatalina.base=webserver  This I know
 -Dcatalina.home=webserver  and this too
 -Doverride.db.lock ?


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



Re: Servlet static variable not accessible from init() ??

2005-01-17 Thread QM
On Mon, Jan 17, 2005 at 05:41:48PM -0600, Jonathan Wilson wrote:
: Thanks for responding.

Not a problem.  You're quite welcome.


: (Note to self: weird behaviour == restart IDE)

You've stumbled onto the primary reason I'm not a fan of IDE/container
integration.  =)  Too much weirdness.  I suppose that makes me very
old-school.


: By "store in application scope" you mean: 
: getServletContext().setAttribute(string, object) right??

Correct!

: This is then accessible via 
: (object)getServletContext().getAttribute(string)

Ditto.


: had static fields set they would still be set and accessible via 
: objectclassname.public static string object.getSetting()

Once you fetch the object from the ServletContext, it's like any other
object.  You downcast it to the proper type and go to work.

What makes the ServletContext just a little better than a singleton
(which is another way of making an object globally accessible) is that
there's now loose coupling between the object's class and its access:
client code (other objects) use the ServletContext as the single point
of contact.  If the type of object changes, client code doesn't have to
know...

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Java VM Monitor-Debug

2005-01-17 Thread K. Mike Bradley
I have a need to look inside a running Java VM for a Tomcat app.
We are having problems with an app on every server and can't figure it out.

I have a kernel mode debugger I can use for a Windows app but this is
useless here of course.
What kinds of third party products let you see inside a Java VM?

I need to see processes and threads and execution times and stack and heap
space and whatever else is unique to Java that I need to see.
I mean that I need a real solid diagnostic tool.

I see that J2SE 5 has this monitor API and SNMP as well but I don't think I
can get it in our app.

Is there any third party tools out there that are real solid??

Thanks.



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



Re: A Platform for Highly Concurrent Services

2005-01-17 Thread John Smith
 The idea of a 'staged event-driven architecture' could certainly sound
'interesting' to some people not bussy enough, but all I read were jingles
and christmas is over ;-)

 Your benchmanrks on
http://www.eecs.harvard.edu/~mdw/talks/seda-sosp01-talk.pdf

 Might be pretty much flatten out when you offer all the features and
compatible stuff that apache does

 Also you can simply code around this idea or what I read from what is says
to me. What tells you, for example, the OS itslef with enough RAM is not
caching common and recurrent 'events' in memory anyway?

 These stats might be pretty contrived in that sense: 
 ._ "Existing OS designs do not provide graceful management of load" . . .
 ._ "Adopt a structured approach to event-driven concurrency" . . .

 IMHO, these ideas belong more in an application server. Probably you will
find more adepts among the Geronimo project. Good news is that they have
design Geronimo with JMX in mind, so maybe plugging in these ideas will be
pretty easy

> Hi,
> I actually contribute to the development of Sandstorm, a Staged
> Event-Driven Architecture (SEDA) based high-performance platform for
> services http://www.eecs.harvard.edu/~mdw/proj/seda/
>
> Our platform is like an operating system for services; it manage
> ressource dynamically and offer optimal performance.
>
> By exemple, we have done a http server prototype that is much more
> performant than the Apache server!
>
> We are actually developping many interesting features and I would be
> happy if some developpers would like to contribute to the project.
> Please, contact me if you are interested.
>
> Best regards,
> -Jean


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



Tomcat 4.1.24, Classloader problems

2005-01-17 Thread James Milks
Hi all,
Having a weird problem that is driving me nuts.

In the past week, every time I update a supporting class (Not a servlet
or JSP) and refresh my page, I get all kinds of null pointer exceptions
and must log out and back into my application or restart Tomcat. This is
a pain in development. FYI - I do have the app set to reload=true.

I looked into the stdout.log file and noticed the following messages:
-
TimeOut
WebAppClassLoader:Lifecycle Error: CL Stopped.
-
Sometimes it appears several dozen times in a row, almost like some sort
of loop is causing the output. A quick restart and everything is ok
again...for a while anyway.

I've not seen this before with Tomcat 4 or 5. 

Any help appreciated.

JW





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



Re: [Newbie] Failed access to servlet via URL mapping (context setting problem?)

2005-01-17 Thread Geoffrey Charters
Still no success.
This is what I have:
$CATALINA_HOME/webapps/hi/WEB-INF/classes/hi.class
$CATALINA_HOME/webapps/hi/WEB-INF/web.xml

http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee  
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
version="2.4">

Hello, World Application

This is a simple web application with a source code organization
based on the recommendations of the Application Developer's  
Guide.



HelloServlet
hi


HelloServlet
/h*


$CATALINA_HOME/webapps/hi/META-INF/context.xml



I've also tried it with the context.xml file renamed as hi.xml and  
placed in $CATALINA_HOME/conf/Catalina/localhost.

When I use http://localhost:8080/hi, I get a tomcat generated page with  
a blank directory for "/".

On Jan 17, 2005, at 6:35 PM, Parsons Technical Services wrote:

I didn't do any setting up, other than to install the compatibility
patch as directed.  It is my understanding that this acts as a bridge
between the "new" V5.5 tomcat architecture, and the old 1.4 JDK.  From
the success of the trial servlets, the installation seems to be
working, and I just suspect that I have failed to configure something
properly.

Ok. Just wanted to be sure as this has been the issue on several posts  
lately.

Now for your problem. There are two (or more) ways that you can deploy  
an application. One is by manual file and folder creation and the  
other is by WAR files. Either way there is a directory structure that  
needs to be followed.

From a recent post:
Quote"
Hi,
I think it would be good practice to require your developers to create
war file for you.
http://java.sun.com/blueprints/guidelines/ 
designing_enterprise_applications_2e/technologies/ 
technologies3.html#1043856

Anyway, there is some links that might be useful
http://java.sun.com/j2se/1.4.2/docs/tooldocs/tools.html#basic
look jar-tool, war file is same format that war file.
I think you should read also servlet spefication specks
http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html
And maybe it would be worth of use tools like ant
http://ant.apache.org/
- Jukka -
" Unquote
This should get you the information on the structure you need to set  
up. From there you need to create a context.xml file that will solve  
your problem. In 5.5 you do not use the path field unless you put the  
context in the server.xml.

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
gives you several locations to place the context files. If you are not  
using WAR files, then use the "appname".xml

per the above page place it in the  
$CATALINA_HOME/conf/[enginename]/[hostname]/ directory
The path is then taken from the name of the xml file.
OR
context.xml and place it in /META-INF/context.xml inside the  
application files  and the path will be based on the docBase.

If you look there now you will find some files for the built in apps  
(I think) I do not run 5.5 but 5.0 and there are some changes as to  
what was included.

Unless you want it to be the default app, that's in last weeks  
archives.

Doug
-
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: Servlet static variable not accessible from init() ??

2005-01-17 Thread Jonathan Wilson
Thanks for responding. I modified the init() method of the servlet to 
redo everything that was being done in the contextInitialized() method 
to workaround the problem. The Listener was getting fired. A while after 
that NetBeans 'ran out of memory' so I restarted it. Now, after 
commenting out the workaround, I am unable to duplicate this problem. 
cblog is always set in the init() method now (like I was expecting). 
I'll leave the workaround code commented out just to see if my problem 
returns later. (Note to self: weird behaviour == restart IDE)

By "store in application scope" you mean: 
getServletContext().setAttribute(string, object) right??
This is then accessible via 
(object)getServletContext().getAttribute(string) and/or if the object 
had static fields set they would still be set and accessible via 
objectclassname.public static string object.getSetting()

Thanks again for responding,
   JW
QM wrote:
On Mon, Jan 17, 2005 at 04:08:15PM -0600, Jonathan Wilson wrote:
: I'm setting a servlets private static variable from within itself  via 
: the contextInitialized(SCE) method but it's not accessible from the 
: init() method once that get's called...I would have thought the static 
: part would make that variable accessible to all thread of the servlet 
: that was started...or is something else going on? Any help is appreciated.

I didn't look all that closely for the bug itself, but this line caught
my ele:
: public class controller extends HttpServlet implements 
: ServletContextListener {

Any reason you're putting both in the same class?  You could have one
ContextListener class instantiate a variable and store it in Application
scope; then, the servlet could retrieve it in its init() method.  (Be
sure to use the init( ServletConfig ) overload in that case.)
Are you sure the ContextListener is being fired? (i.e. that it's been
properly registered?)
Another question: I don't have the JavaDoc in front of me, but does
ContextListener (or any of its parent classes) have an init() method?
-QM
 

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


Re: Service Runner question

2005-01-17 Thread Parsons Technical Services
I do not run Tomcat on Windows. So with that I am making a couple of 
assumptions. If Tomcat is registered as a service, it should be listed in 
the services found under manage on a right click of My Computer. From there 
you can set the service to be manual, automatic or disabled. By setting it 
to manual, you can return there and start it from a right click any time. Or 
you can disable it there and start it from the command line. I also think if 
it is set to manual you will be able to start and stop it with the icons. 
There are others on the list that can correct me here if I am wrong.

So:
Set the service to manual.
Use the start/stop links.

Doug

- Original Message - 
From: "Rhino" <[EMAIL PROTECTED]>
To: "tomcat-user" 
Sent: Monday, January 17, 2005 6:15 PM
Subject: Service Runner question


I am running Tomcat 5.0.28 on my Windows XP machine. When I run a program
called Security Task Manager, which is a more powerful version of the
standard Windows Task Manager, it says that a Windows Process named 
'Service
Runner' is using 28.3 MB of my memory. The file name is
e:\Tomcat-5.0.28\bin\tomcat5.exe.

Can anyone tell me what the consequences are if I "Quarantine" it, i.e. if 
I
stop it from launching itself automatically every time I boot up the
computer? I'm trying to understand how it will impact my testing with 
Tomcat
and my deployment of servlets to Tomcat from Eclipse 3.0.1 via Sysdeo. I'm
guessing it will keep me from doing any of those things.

If that is correct, what is the proper method to enable those things when 
I
need to do them, short of making Service Runner a TSR again?

The truth of the matter is that I can go weeks without running Tomcat so I
really don't need it to be a TSR. However, I don't want to shoot myself in
the foot and force myself to reboot every time I need Tomcat. Can anyone
advise me on the best strategy for handling this?
Rhino
---
rhino1 AT sympatico DOT ca
"There are two ways of constructing a software design. One way is to make 
it
so simple that there are obviously no deficiencies. And the other way is 
to
make it so complicated that there are no obvious deficiencies." - C.A.R.
Hoare


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.0 - Release Date: 17/01/2005
-
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: Website downloading old file

2005-01-17 Thread Parsons Technical Services
Size is also a consideration. Were the two files the same size? Was test1 
smaller?

With ISP proxies, it is a crap shot at how they have them configured.
Test theory:
Upload three files. One smaller, one same size and one large than file.bin.
Download each.
Change each.
Redownload each and check for changes.
Note: You may wish to repeat this test in the event the ISP proxy expires 
the cached item while you are testing. This may also be what happened to the 
test file. Some systems flush the cache at an interval and some do it on 
file age.

Doug
- Original Message - 
From: "Paul Taylor" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Monday, January 17, 2005 2:30 PM
Subject: Re: Website downloading old file


Umm inconclusive
asp worked ok, i then created a text file called test1.bin downloaded it, 
edited and tried it again and it downloaded the new one correctly as well 
(this is without the ?var=bogus).

Ben Souther wrote:
Now, for kicks, try with a file with an '.asp' extension.
Your ISP's proxy server may have a list of extensions that don't get
cached.  This would explain why your dynamic JSPs are working but the
static files are being cached.
On Mon, 2005-01-17 at 13:47, Paul Taylor wrote:
OK I think you are onto something here,
the original file was called file.bin, new file replacing it also called 
file.bin and renamed to file2.bin

When I use the ?var=bogus the correct file is returned, but when I don't 
specify a parameter for file.bin it still returns the older file.

http://domain/context/file.bin  INCORRECT OLD 
VERSION
http://domain/context/file.bin?var=bogusOKNEW VERSION
http://domain/context/file2.bin?var=bogus  OK NEW VERSION

Ben Souther wrote:

Try requesting the file with a bogus querystring variable
http://domain/context/file.txt?bogus=var
See if the unique URL gets you the right file.
On Mon, 2005-01-17 at 12:43, Paul Taylor wrote:

Can you expand on this please, btw if I change any part of the web 
application itself such as a jsp the results are imediate.
Two ther bits of info which maybe relevent.
1. The host is based in Canada and hence has time set to Candian time 
which is earlier than UK time where Im downloading to.
2. The file Im trying to download is a .bin (Linux) file.

The problem is also happening on Internet Explorer.
Parsons Technical Services wrote:

Sounds like your ISP may have a proxy setup. Usually two different 
browsers don't know about each other.

Doug
- Original Message - From: "Paul Taylor" 
<[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Monday, January 17, 2005 12:26 PM
Subject: Re: Website downloading old file



I think it is a browser problem because I got a friend to download
from his computer and he received the correct file. Im using Firefox

and still get the same problem.
Ben Souther wrote:

Also, in the interest of not overlooking the obvious... Did you 
verify that the FTP write actually worked and that you didn't
accidentally ADD another file with a slightly different name?


On Mon, 2005-01-17 at 09:56, Parsons Technical Services wrote:

File permissions may be part of your problem.
What OS is Tomcat running on?
As for the showing the file after deleting it from the server, did 
you do a restart of Tomcat after deleting the file? I remember 
something on the list awhile back similar to this.

Doug
- Original Message - From: "Paul Taylor" 
<[EMAIL PROTECTED]>
To: 
Sent: Monday, January 17, 2005 7:42 AM
Subject: Website downloading old file



Puzzled.
I have a Tomcat 5 application, associated with it a file that can 
be downloaded from the website, which is in the root directory of 
the context. (So if the context is called myapp the file is in 
myapp).

Everything was fine but then I realised that there was a problem 
with the file so I ftped a new file to replace it.
But when I try to download the file from the website it still 
refers to the earlier (larger) file.
This still happens even though I have:
shutdown tomcat,
restarted tomcat,
deleted tomcat work directory,
clerared out my browser cache
used a different browser.

It even still allows the file downloads if I delete the file from 
the server, how can this be ?

-
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]


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



-
To unsubscribe, e-mail: [EMAIL PR

Service Runner question

2005-01-17 Thread Rhino
I am running Tomcat 5.0.28 on my Windows XP machine. When I run a program
called Security Task Manager, which is a more powerful version of the
standard Windows Task Manager, it says that a Windows Process named 'Service
Runner' is using 28.3 MB of my memory. The file name is
e:\Tomcat-5.0.28\bin\tomcat5.exe.

Can anyone tell me what the consequences are if I "Quarantine" it, i.e. if I
stop it from launching itself automatically every time I boot up the
computer? I'm trying to understand how it will impact my testing with Tomcat
and my deployment of servlets to Tomcat from Eclipse 3.0.1 via Sysdeo. I'm
guessing it will keep me from doing any of those things.

If that is correct, what is the proper method to enable those things when I
need to do them, short of making Service Runner a TSR again?

The truth of the matter is that I can go weeks without running Tomcat so I
really don't need it to be a TSR. However, I don't want to shoot myself in
the foot and force myself to reboot every time I need Tomcat. Can anyone
advise me on the best strategy for handling this?


Rhino
---
rhino1 AT sympatico DOT ca
"There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
make it so complicated that there are no obvious deficiencies." - C.A.R.
Hoare



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.0 - Release Date: 17/01/2005


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



Re: Question about JNDI resources

2005-01-17 Thread Tim Funk
You should be able to store a reference to the Datasource and that should be 
all you need.

Its probably not done that way in the examples since static variables are 
frowned upon. JNDI lookups are usually almost as faster a Hash lookup. So the 
speed is fairly negligible.

-Tim
Alan Deikman wrote:
I'm just learning this stuff, but having good success so far.  In my
SQL-backed bean I use a JDBCResource as per the documentation:
protected static Connection getConnection() {
   //System.out.println("User.getConnection Attempting to get
connection");
   try {
   Context initContext = new InitialContext();
   Context envContext  =
(Context)initContext.lookup("java:/comp/env");
   DataSource ds = (DataSource) envContext.lookup("jdbc/");
   Connection conn = ds.getConnection();
   return conn;
   } catch (NamingException ne) {
   System.out.println("User.getConnection caught Naming
exception");
   System.out.println(ne.toString());
   } catch (SQLException sqle) {
   System.out.println("User.getConnection caught SQL exception");
   System.out.println(sqle.toString());
   }
This works, way cool.  My question is do I need to look up two new
Context objects and a new DataSource each time I get a connection?  Or
can I just store initContext, envContext, and ds in static variables and
load them just once for all instances of the class?

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


Re: Problem with including JspC generated web.xml fragment

2005-01-17 Thread Tim Funk
I haven't read the docs for this so I am very surprised it wasn't there.  The 
source for JSPC is very easy to read. Anything that is a set method can be 
called via ant. With luck - I might find some time to update the docs for 
this one.

-Tim
Andreas Schildbach wrote:
Tim Funk wrote:
Odd, I do not have this problem.
Make sure you are building to a scratchpad. This means your web.xml is 
copied to a new location before you precompile. Then JSPC can edit it 
in place and you no not lose any of your changes.

To get around the relative pathing issue - prefix your build with 
${basedir}. For example:

 validateXml="false"
 uriroot="${basedir}/${build.dir}"
 poolingEnabled="false"
 
webXmlFragment="${basedir}/${build.dir}/WEB-INF/generated_web.xml"
 addWebXmlMappings="true"
 outputDir="${basedir}/${jspc.base}"/>

JspC can acually edit web.xml? Where is this documented? I can't find 
any documentation of the jasper2 task except the old outdated jspc task 
(including all the options/attributes) that is included with Ant.

Given that I have the whole web application in a directory called 
webapp, whats the complete jasper2 command to transfor it into a webapp 
with compiled jsps?

Regards,
Andreas
-
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: Servlet static variable not accessible from init() ??

2005-01-17 Thread QM
On Mon, Jan 17, 2005 at 04:08:15PM -0600, Jonathan Wilson wrote:
: I'm setting a servlets private static variable from within itself  via 
: the contextInitialized(SCE) method but it's not accessible from the 
: init() method once that get's called...I would have thought the static 
: part would make that variable accessible to all thread of the servlet 
: that was started...or is something else going on? Any help is appreciated.

I didn't look all that closely for the bug itself, but this line caught
my ele:

: public class controller extends HttpServlet implements 
: ServletContextListener {

Any reason you're putting both in the same class?  You could have one
ContextListener class instantiate a variable and store it in Application
scope; then, the servlet could retrieve it in its init() method.  (Be
sure to use the init( ServletConfig ) overload in that case.)

Are you sure the ContextListener is being fired? (i.e. that it's been
properly registered?)

Another question: I don't have the JavaDoc in front of me, but does
ContextListener (or any of its parent classes) have an init() method?

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: performance/scalability impact of many webapps in one container

2005-01-17 Thread Remy Maucherat
On Mon, 17 Jan 2005 15:02:28 -0700, Joel McGraw <[EMAIL PROTECTED]> wrote:
> For reasons beyond my control, a web application
> (apache/Tomcat/PostgreSQL) that I support will need to be partitioned
> into one context per customer (to support one database per customer).
> I'm wondering:
> 
> 1. What the performance implications are (if any) of having up to 300
> contexts in one container?

With Tomcat 5.x, it's ok, it will just use more memory. With 4.x, it's
bad (one background thread per context = 300 background threads).

> 2. Are there any scalability issues of which I should be aware?

- You might have tons of sessions, so increase the VM's memory
- And the usual: one application doing bad things could take the whole
server down, which will be a lot more noticeable for users

-- 
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x

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



Re: performance/scalability impact of many webapps in one container

2005-01-17 Thread QM
On Mon, Jan 17, 2005 at 03:02:28PM -0700, Joel McGraw wrote:
: For reasons beyond my control, a web application
: (apache/Tomcat/PostgreSQL) that I support will need to be partitioned
: into one context per customer (to support one database per customer).

Do you really need one context per customer, or just one datasource
definition per customer?  If you can share, what's the reasoning behind
this?


: 1. What the performance implications are (if any) of having up to 300
: contexts in one container?

Depends mostly on your hardware (memory, CPU, network bandwidth per
host), attitude towards fault-tolerance, etc.

I've been in situations where clients needed to get just a few apps into
the same container, and that created all sorts of headaches: scheduled
downtime (app A and app B need to coordinate); unscheduled downtime (one
rogue app impacts the entire container; one app's bad JNI call takes out
the entire JVM); version skew (one group wants JDK 1.5, the other is
bound to 1.3 or 1.4); and so on.

You'd do yourself a favor to separate the apps into separate machines as
well as separate JVMs.  If a machine goes down, do you want 10 customers
on the phone or 300? ;)


: 2. Are there any scalability issues of which I should be aware?

Same as the first part of my answer to question #1. -that, and
maintenance: will the app itself be the same code, same version, just
installed 300 times?


-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: [Tomcat 5.0] sharing session and authentication

2005-01-17 Thread QM
On Mon, Jan 17, 2005 at 09:28:49PM +0100, Omar Adobati wrote:
: > If the two resources are not part of the same webapp, then no, this
: > isn't possible (read: not possible using standard J2EE session scoping).

: There is a way, maybe playing with context, to do what i need?


If both sites/webapps run in the same Tomcat container, look into
the SingleSingOn Valve (that may be a typo, watch out).  That's
Tomcat-specific, though, and it forces you to put both apps in the same
JVM.

Otherwise, you're outside of the scope of the servlet spec.  Look into
writing your own such framework or finding some third-party (free or
otherwise) implementation.

The former would require a fair amount of thought and design if it's
going to be robust.  (Sharing auth info is already a sizable task;
sharing session-like data is another challenge.)  Ask yourself going in
whether it's even worth the work.

For the latter, I haven't seen any such free/open-source products, so
you may end up paying for a commercial app.

-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Servlet static variable not accessible from init() ??

2005-01-17 Thread Jonathan Wilson
I'm setting a servlets private static variable from within itself  via 
the contextInitialized(SCE) method but it's not accessible from the 
init() method once that get's called...I would have thought the static 
part would make that variable accessible to all thread of the servlet 
that was started...or is something else going on? Any help is appreciated.

public class controller extends HttpServlet implements 
ServletContextListener {
   private static Logger cblog = null;

   public void init()
   {
   System.out.println("cblog="+cblog);
   }
   public void contextInitialized(ServletContextEvent sce) {
  cblog = Logger.getLogger("cb");
  System.out.println("cblog="+cblog);
   }

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


performance/scalability impact of many webapps in one container

2005-01-17 Thread Joel McGraw
For reasons beyond my control, a web application
(apache/Tomcat/PostgreSQL) that I support will need to be partitioned
into one context per customer (to support one database per customer).
I'm wondering:

1. What the performance implications are (if any) of having up to 300
contexts in one container?

2. Are there any scalability issues of which I should be aware?

TIA,

-Joel

-- CONFIDENTIALITY NOTICE --

This message is intended for the sole use of the individual and entity to whom 
it is addressed, and may contain information that is privileged, confidential 
and exempt from disclosure under applicable law. If you are not the intended 
addressee, nor authorized to receive for the intended addressee, you are hereby 
notified that you may not use, copy, disclose or distribute to anyone the 
message or any information contained in the message. If you have received this 
message in error, please immediately advise the sender by reply email, and 
delete the message. Thank you.

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



isapi jsp rdirector problem - help!

2005-01-17 Thread John MccLain

I am using the apache isapi_redirector2.sll to cause IIS to redirect .jsp
requests to a running Tomcat instance.
When I setit up, I get it to work on my machine, but on another machine -
setting it up with the same steps - it does not work. All configurations
look identical. What would cause an isapi filter to not work?? Tomcat is
running, (I get a page at http://localhost:8081), iis is running (i get the
iis main page at http://localhost and http://qa-2000), I have installed
isapi_redirector2.dll into a virtual dir (jakarta) under my default webapp,
have entered the appropriate registry entries to register the redirector,
have created the workers.properties file and put it into tomcat/conf, along
with a default jk2.properties file, have added the filter  to the 'ISAPI
filters' IIS porperty menu. It does NOT redirect. Is there a tutorial or
instructional page out there somewhere???

Tomat 5.0.28
IIS 5.0

John McClain
Senior Software Engineer
TCS Healthcare
[EMAIL PROTECTED]
(530)886-1700x235
"Before you criticize someone, walk a mile in their shoes.
That way, you'll be a mile from them, and you'll have their shoes."


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



Tomcat 5.5.4 and log4j problem

2005-01-17 Thread Yuval Zantkeren
Hi,

We try to use log4j with Tomcat 5.5.4 on Windows 2003 server and we have 
problems with the rename of the files on rollover.
We try to use DailyRollingFileAppender  and also RollingFileAppender  but both 
with no luck.
Every time the files need to roll we get Log4j:ERROR Failed to rename and the 
files name.

It is very important to us because it logs all of our operation and transaction 
in our website.

I will appreciate any kind of help,

Regards,

Yuval

Re: Tomcat 4 doesn't start http service on Linux?

2005-01-17 Thread Sean M. Duncan
My first suggestion would be to set up Apache httpd as the load balancer
using mod_jk.  This will give you much more accurate node availability
detection.  This solution also provides much more flexibility when it
comes to using the session tracking API (session affinity, session
replication or both).

If you are running a "stateless" application or are forced to use BigIP
there is a less than ideal node detection scheme available.

I believe BigIP has the capability of pluggable node detection schemes.
You could set up a low overhead resource within your application context
or the root context. BigIP could then run an HTTP Get against that
resource periodically to ensure that the application is still available
on that node.

I'm sure someone could come up with a better pluggable node detection
scheme, but I haven't really given it to much thought since BigIP is
overkill for most situations and there is a scalable, robust and
infinitely cheaper solution available via mod_jk.

On Mon, 2005-01-17 at 11:52 -0600, Stephen Charles Huey wrote:
> We just installed Tomcat 4 on 2 Red Hat servers, and we have a BigIP
> load balancer in front of them.  In troubleshooting an issue, the guy
> working with our BigIP said that when he was running Apache on either of
> the Linux servers, the load balancer could tell that the http service
> was running, but when Tomcat was running, it didn't know what to check
> for on a service level, so in the end, they had to set it up to just do
> a TCP check to see if the port was open.  
> 
> He says this isn't ideal since the port being open doesn't mean the
> service is up (meaning Tomcat).  He thinks that Tomcat should start up
> the http service (I guess he means httpd) when it starts--that maybe I
> just need to look around in Tomcat's configuration for the place to set
> this, but I'm not so sure that this is the case.  
> 
> In a nutshell:  is Tomcat supposed to start up the http service or
> something similar to what BigIP is looking for from Apache?  
> 
> Thanks...
> 
> -
> 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: [Tomcat 5.0] sharing session and authentication

2005-01-17 Thread Omar Adobati
the scenario is the last u said. 
There is a way, maybe playing with context, to do what i need?


On Mon, 17 Jan 2005 14:24:09 -0600, QM <[EMAIL PROTECTED]> wrote:
> On Mon, Jan 17, 2005 at 08:45:20PM +0100, Omar Adobati wrote:
> : I would like to know if there is a way to share authentication
> : informations and session informations too betwen a page and another
> : one thet is into a iframe.
> : The authentication is done usiing the tomcat capabilities
> : (form-authentication method)
> 
> If I understand your question, this has nothing to do with iframe vs no
> frames, etc: if both resources (URLs) are part of your webapp, then both
> will have access to the same session information (though not the same
> request-scope or page-scope information).
> 
> If the two resources are not part of the same webapp, then no, this
> isn't possible (read: not possible using standard J2EE session scoping).
> 
> -QM
> 
> --
> 
> software  -- http://www.brandxdev.net
> tech news -- http://www.RoarNetworX.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Adobati Omar
[EMAIL PROTECTED]

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



Re: [OT] A Platform for Highly Concurrent Services

2005-01-17 Thread QM
On Mon, Jan 17, 2005 at 03:05:00PM -0500, Jean Morissette wrote:
: I actually contribute to the development of Sandstorm, a Staged 
: Event-Driven Architecture (SEDA) based high-performance platform for 
: services http://www.eecs.harvard.edu/~mdw/proj/seda/

Hello,

It's considered a list courtesy to mark messages as "off-topic"
(prepend the subject with "[OT]") if it has little or no relation to
Tomcat.

I've updated your subject accordingly.
-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: [Tomcat 5.0] sharing session and authentication

2005-01-17 Thread QM
On Mon, Jan 17, 2005 at 08:45:20PM +0100, Omar Adobati wrote:
: I would like to know if there is a way to share authentication
: informations and session informations too betwen a page and another
: one thet is into a iframe.
: The authentication is done usiing the tomcat capabilities
: (form-authentication method)

If I understand your question, this has nothing to do with iframe vs no
frames, etc: if both resources (URLs) are part of your webapp, then both
will have access to the same session information (though not the same
request-scope or page-scope information).

If the two resources are not part of the same webapp, then no, this
isn't possible (read: not possible using standard J2EE session scoping).


-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: Tomcat 4 doesn't start http service on Linux?

2005-01-17 Thread QM
On Mon, Jan 17, 2005 at 11:52:14AM -0600, Stephen Charles Huey wrote:
: working with our BigIP said that when he was running Apache on either of
: the Linux servers, the load balancer could tell that the http service
: was running, but when Tomcat was running, it didn't know what to check
: for on a service level, so in the end, they had to set it up to just do
: a TCP check to see if the port was open.  

IIRC BigIP and other load balancers confirm a service (application) is
available by periodically making a service-specific request and confirm
the response.  You're running a Tomcat webapp, hence such a
"service-specific request" would be a URL call.

The short version, then, would be to setup a resource -- it
doesn't even have to be a full servlet or JSP, even a plain-text file
containing "I'm Alive" will do -- and put it in a location accessible
via URL.  If the BigIP is able to fetch the document and it finds "I'm
Alive" in it, it flags your application/service as alive and moves on.

If you want to get fancy, make the resource a status page and have BigIP
confirm it sees "OK" in the right spots.


: He says this isn't ideal since the port being open doesn't mean the
: service is up (meaning Tomcat).

This is true: Tomcat can respond to TCP/IP connections on that port, but
that doesn't mean your app is working as expected.


: He thinks that Tomcat should start up
: the http service (I guess he means httpd) when it starts--that maybe I
: just need to look around in Tomcat's configuration for the place to set
: this, but I'm not so sure that this is the case.  

This doesn't realy make sense...  Are you using Tomcat on its own, or do
you have Apache in front of it?  In the former case, you've enabled the
HTTP connector, and in turn what I described above should solve the
problem.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: apache2 + mod_jk + tomcat5.5.4 help

2005-01-17 Thread Sean M. Duncan
Try leaving the className parameter off.  I new versions of Tomcat use
the CoyoteConnector for AJP communication.

The minProcessor and maxProcessor attributes have been deprecated.  Use
maxThreads, minSpareThreads and maxSpareThreads instead.

On Mon, 2005-01-17 at 14:16 -0500, Trung Nguyen wrote:
> Hello,
> 
> I'm trying to configure mod_jk with tomcat 5.5.4, but I'm kinda stuck.  I
> did it with tomcat 4.1.30 with no problem.  How do you configure in
> server.xml to make it talk to apache2 through AJP13?  In tomcat4 I did
> something like this:
> 
>  port="8009" minProcessors="5" maxProcessors="75"
> enableLookups="false" acceptCount="10" debug="0"/>
> 
> It doesn't work with tomcat 5.5.4.  Please help!!!
> 
> Thanks  
> 
> -
> 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]



A Platform for Highly Concurrent Services

2005-01-17 Thread Jean Morissette
Hi,
I actually contribute to the development of Sandstorm, a Staged 
Event-Driven Architecture (SEDA) based high-performance platform for 
services http://www.eecs.harvard.edu/~mdw/proj/seda/

Our platform is like an operating system for services; it manage 
ressource dynamically and offer optimal performance.

By exemple, we have done a http server prototype that is much more 
performant than the Apache server!

We are actually developping many interesting features and I would be 
happy if some developpers would like to contribute to the project. 
Please, contact me if you are interested.

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


Programmatically add ClassLoader for Embedded tomcat

2005-01-17 Thread Iwan Vosloo
Hi there,

Assuming I have programmatic access to tomcat only (I run am Embedded tomcat), 
how can I either:
a) append more paths to search for classes in an existing ClassLoader; or
b) create and add my own custom Loader or ClassLoader in the chain?

Thanks
-Iwan Vosloo

Powered by Tiscali - http://www.tiscali.co.za



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

[Tomcat 5.0] sharing session and authentication

2005-01-17 Thread Omar Adobati
Good Morning,

I would like to know if there is a way to share authentication
informations and session informations too betwen a page and another
one thet is into a iframe.
The authentication is done usiing the tomcat capabilities
(form-authentication method)

-- 
Adobati Omar
[EMAIL PROTECTED]

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



Re: Re: Tomcat 4.1/java 1.4.1.02/winxp/Download a xml file from a server

2005-01-17 Thread Ramien E. Rosillo G.


Hi, I already did that...But still doesnÂt work.Probably the key is in the configuration of the IIS wich I'm using to redirect, I set up the MIME types in the MIME mappings on the IIS, any idea?When I'm not using IIS the system is working fine, the tomcat recognize the xml file format without a problem.Thanks for the answers.RR.-
<[EMAIL PROTECTED]>Re: Tomcat 4.1/java 1.4.1.02/winxp/Download a xml file from a server>("Content-Disposition",
> "attachment;filename=\"" + nombreBorrador+"\"");

I think the end result is supposed to be:
"attachment;filename=filename.ext"

without the quotes around the filename.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Walla! Mail - get your free 1G mail today-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Long running requests and timeouts?

2005-01-17 Thread Frank W. Zammetti
Ok Andrzej, sorry I couldn't be of any real help.  I see what I 
suggested wouldn't apply in your situation, I was just taking a guess 
anyway.  And certainly I understand the pressure of deadlines :)

Perhaps my approach might help someone else that's just lurking, but 
good luck in solving your problem.  I too will be watching to see what 
your solution is, just out of curiosity.

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Andrzej Jan Taramina wrote:
Frank:

I don't know your usage pattern, but especially if there could be a 
number of such requests coming in at once, you are tieing up server 
resources this way.  You also start running into situations like you 
mention with timeouts (I'm actually surprised the browser itself didn't 
time out after a few minutes).  It also doesn't give a very good 
appearance to the user... it seems like the system has just frozen, 
which it actually hasn't.

These requests are not going to be called by users through a browser, since 
they are "Web Services/REST" types of requests.  The only time they might get 
called through a browser is for testing purposes, in which case the tester 
knows that they will be very long running and that's not at issue.

The timeout seems to be affecting scripted invocations of the request as well 
(using the commons-http library), so it doesn't seem to be a browser timeout 
issue as far as I can tell.


If it's feasible, I think you may save yourself some trouble by 
rearchitecting this rather than trying to solve this problem.  You can 
do something as simple as this...

Does that all make sense?  I don't know if your in a position to 
rearchitect what your doing, but if you are, I very much suggest doing 
so.  Hope this helps!

This does make sense, except for the user part, since users will never access 
the URL's involved directly.

Furthermore, these long running tasks will be called by a scheduler, off 
hours, and typically there will be very few such requests a day (maybe 2 or 3 
max).  The requests are really single overnight batch processing runs.

However, deadlines preclude rearchitecting the solution to make it 
asynchronous as you suggest (it's currently synchronous) in the short term.  

Hence my looking for a way to easily fix the timeout issue that causes the 
response to be truncated when Tomcat services a long running request.

Thanks for the inputmost appreciated.
Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com



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


RE: Long running requests and timeouts?

2005-01-17 Thread Ben Souther
>These requests are not going to be called by users through a browser,
>since they are "Web Services/REST" types of requests.  The only time
>they might get called through a browser is for testing purposes, in
>which case the tester knows that they will be very long running and
>that's not at issue.

I got into this conversation late so forgive me if this has already been
covered but have you considered putting a webservice engine on both ends
and sending some kind of call-back from the called process when it's
done?















On Mon, 2005-01-17 at 14:21, Jiang, Peiyun wrote:
> I have the same problem. If you find a solution, please post and email me.
> What I found out with my application is that when tomcat runs low on memory,
> it will start to behave erratically. For example: scheduled job won't run;
> running processes seem to terminate/timeout... I don't know exactly what's
> happening, but enough memory usually keeps these problems away...
> 
> Peiyun 
> 
> -Original Message-
> From: Andrzej Jan Taramina [mailto:[EMAIL PROTECTED]
> Sent: January 17, 2005 1:22 PM
> To: Tomcat Users List
> Cc: [EMAIL PROTECTED]
> Subject: Re: Long running requests and timeouts?
> 
> 
> Frank:
> 
> > I don't know your usage pattern, but especially if there could be a 
> > number of such requests coming in at once, you are tieing up server 
> > resources this way.  You also start running into situations like you 
> > mention with timeouts (I'm actually surprised the browser itself didn't 
> > time out after a few minutes).  It also doesn't give a very good 
> > appearance to the user... it seems like the system has just frozen, 
> > which it actually hasn't.
> 
> These requests are not going to be called by users through a browser, since 
> they are "Web Services/REST" types of requests.  The only time they might
> get 
> called through a browser is for testing purposes, in which case the tester 
> knows that they will be very long running and that's not at issue.
> 
> The timeout seems to be affecting scripted invocations of the request as
> well 
> (using the commons-http library), so it doesn't seem to be a browser timeout
> 
> issue as far as I can tell.
> 
> > If it's feasible, I think you may save yourself some trouble by 
> > rearchitecting this rather than trying to solve this problem.  You can 
> > do something as simple as this...
> 
> > Does that all make sense?  I don't know if your in a position to 
> > rearchitect what your doing, but if you are, I very much suggest doing 
> > so.  Hope this helps!
> 
> This does make sense, except for the user part, since users will never
> access 
> the URL's involved directly.
> 
> Furthermore, these long running tasks will be called by a scheduler, off 
> hours, and typically there will be very few such requests a day (maybe 2 or
> 3 
> max).  The requests are really single overnight batch processing runs.
> 
> However, deadlines preclude rearchitecting the solution to make it 
> asynchronous as you suggest (it's currently synchronous) in the short term.
> 
> 
> Hence my looking for a way to easily fix the timeout issue that causes the 
> response to be truncated when Tomcat services a long running request.
> 
> Thanks for the inputmost appreciated.
> 
> Andrzej Jan Taramina
> Chaeron Corporation: Enterprise System Solutions
> http://www.chaeron.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]
> 
> 


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



Re: Website downloading old file

2005-01-17 Thread Paul Taylor
Umm inconclusive
asp worked ok, i then created a text file called test1.bin downloaded 
it, edited and tried it again and it downloaded the new one correctly as 
well (this is without the ?var=bogus).

Ben Souther wrote:
Now, for kicks, try with a file with an '.asp' extension.
Your ISP's proxy server may have a list of extensions that don't get
cached.  This would explain why your dynamic JSPs are working but the
static files are being cached.
On Mon, 2005-01-17 at 13:47, Paul Taylor wrote:
 

OK I think you are onto something here,
the original file was called file.bin, new file replacing it also called 
file.bin and renamed to file2.bin

When I use the ?var=bogus the correct file is returned, but when I don't 
specify a parameter for file.bin it still returns the older file.

http://domain/context/file.bin  INCORRECT OLD 
VERSION
http://domain/context/file.bin?var=bogusOKNEW VERSION
http://domain/context/file2.bin?var=bogus  OK NEW VERSION

Ben Souther wrote:
   

Try requesting the file with a bogus querystring variable
http://domain/context/file.txt?bogus=var
See if the unique URL gets you the right file.
On Mon, 2005-01-17 at 12:43, Paul Taylor wrote:
 

Can you expand on this please, btw if I change any part of the web 
application itself such as a jsp the results are imediate.
Two ther bits of info which maybe relevent.
1. The host is based in Canada and hence has time set to Candian time 
which is earlier than UK time where Im downloading to.
2. The file Im trying to download is a .bin (Linux) file.

The problem is also happening on Internet Explorer.
Parsons Technical Services wrote:
  

   

Sounds like your ISP may have a proxy setup. Usually two different 
browsers don't know about each other.

Doug
- Original Message - From: "Paul Taylor" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Monday, January 17, 2005 12:26 PM
Subject: Re: Website downloading old file


 

I think it is a browser problem because I got a friend to download 
   

from his computer and he received the correct file. Im using Firefox 
 

and still get the same problem.
Ben Souther wrote:
  

   

Also, in the interest of not overlooking the obvious... Did you 
verify that the FTP write actually worked and that you didn't
accidentally ADD another file with a slightly different name?


On Mon, 2005-01-17 at 09:56, Parsons Technical Services wrote:


 

File permissions may be part of your problem.
What OS is Tomcat running on?
As for the showing the file after deleting it from the server, did 
you do a restart of Tomcat after deleting the file? I remember 
something on the list awhile back similar to this.

Doug
- Original Message - From: "Paul Taylor" 
<[EMAIL PROTECTED]>
To: 
Sent: Monday, January 17, 2005 7:42 AM
Subject: Website downloading old file


  

   

Puzzled.
I have a Tomcat 5 application, associated with it a file that can 
be downloaded from the website, which is in the root directory of 
the context. (So if the context is called myapp the file is in 
myapp).

Everything was fine but then I realised that there was a problem 
with the file so I ftped a new file to replace it.
But when I try to download the file from the website it still 
refers to the earlier (larger) file.
This still happens even though I have:
shutdown tomcat,
restarted tomcat,
deleted tomcat work directory,
clerared out my browser cache
used a different browser.

It even still allows the file downloads if I delete the file from 
the server, how can this be ?

-
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]



 

-
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]
   


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


-

RE: Long running requests and timeouts?

2005-01-17 Thread Jiang, Peiyun
I have the same problem. If you find a solution, please post and email me.
What I found out with my application is that when tomcat runs low on memory,
it will start to behave erratically. For example: scheduled job won't run;
running processes seem to terminate/timeout... I don't know exactly what's
happening, but enough memory usually keeps these problems away...

Peiyun 

-Original Message-
From: Andrzej Jan Taramina [mailto:[EMAIL PROTECTED]
Sent: January 17, 2005 1:22 PM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: Long running requests and timeouts?


Frank:

> I don't know your usage pattern, but especially if there could be a 
> number of such requests coming in at once, you are tieing up server 
> resources this way.  You also start running into situations like you 
> mention with timeouts (I'm actually surprised the browser itself didn't 
> time out after a few minutes).  It also doesn't give a very good 
> appearance to the user... it seems like the system has just frozen, 
> which it actually hasn't.

These requests are not going to be called by users through a browser, since 
they are "Web Services/REST" types of requests.  The only time they might
get 
called through a browser is for testing purposes, in which case the tester 
knows that they will be very long running and that's not at issue.

The timeout seems to be affecting scripted invocations of the request as
well 
(using the commons-http library), so it doesn't seem to be a browser timeout

issue as far as I can tell.

> If it's feasible, I think you may save yourself some trouble by 
> rearchitecting this rather than trying to solve this problem.  You can 
> do something as simple as this...

> Does that all make sense?  I don't know if your in a position to 
> rearchitect what your doing, but if you are, I very much suggest doing 
> so.  Hope this helps!

This does make sense, except for the user part, since users will never
access 
the URL's involved directly.

Furthermore, these long running tasks will be called by a scheduler, off 
hours, and typically there will be very few such requests a day (maybe 2 or
3 
max).  The requests are really single overnight batch processing runs.

However, deadlines preclude rearchitecting the solution to make it 
asynchronous as you suggest (it's currently synchronous) in the short term.


Hence my looking for a way to easily fix the timeout issue that causes the 
response to be truncated when Tomcat services a long running request.

Thanks for the inputmost appreciated.

Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.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]



apache2 + mod_jk + tomcat5.5.4 help

2005-01-17 Thread Trung Nguyen
Hello,

I'm trying to configure mod_jk with tomcat 5.5.4, but I'm kinda stuck.  I
did it with tomcat 4.1.30 with no problem.  How do you configure in
server.xml to make it talk to apache2 through AJP13?  In tomcat4 I did
something like this:



It doesn't work with tomcat 5.5.4.  Please help!!!

Thanks  

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



Re: TOMCAT + HttpURLConnection

2005-01-17 Thread Mark Thomas
Karthik N S wrote:
** 

*Hi*
*Apologies*
** 

*I would like to use the  'HttpURLConnection' API to POST  
'start/stop/reload'   to   Tomcat  Manager URL*

*'http://192.168.10.64:8080/manager/html/start?path=/XYZ' , *
* So can I Code this and  Do I need the Proxy Authorization to **do the 
same.*

*Please  send Some Code Snippets regarding the same.*
Have a look at the Ant tasks for use with the manager: 
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ant/


** 

*Thx in Advance*
**
*WITH WARM REGARDS
HAVE A NICE DAY
[ N.S.KARTHIK]*

-
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: Website downloading old file

2005-01-17 Thread Ben Souther
Now, for kicks, try with a file with an '.asp' extension.
Your ISP's proxy server may have a list of extensions that don't get
cached.  This would explain why your dynamic JSPs are working but the
static files are being cached.


On Mon, 2005-01-17 at 13:47, Paul Taylor wrote:
> OK I think you are onto something here,
> 
> the original file was called file.bin, new file replacing it also called 
> file.bin and renamed to file2.bin
> 
> When I use the ?var=bogus the correct file is returned, but when I don't 
> specify a parameter for file.bin it still returns the older file.
> 
> http://domain/context/file.bin  INCORRECT OLD 
> VERSION
> http://domain/context/file.bin?var=bogusOKNEW VERSION
> http://domain/context/file2.bin?var=bogus  OK NEW VERSION
> 
> 
> Ben Souther wrote:
> 
> >Try requesting the file with a bogus querystring variable
> >
> >http://domain/context/file.txt?bogus=var
> >
> >See if the unique URL gets you the right file.
> >
> >
> >On Mon, 2005-01-17 at 12:43, Paul Taylor wrote:
> >  
> >
> >>Can you expand on this please, btw if I change any part of the web 
> >>application itself such as a jsp the results are imediate.
> >>Two ther bits of info which maybe relevent.
> >>1. The host is based in Canada and hence has time set to Candian time 
> >>which is earlier than UK time where Im downloading to.
> >>2. The file Im trying to download is a .bin (Linux) file.
> >>
> >>The problem is also happening on Internet Explorer.
> >>
> >>
> >>Parsons Technical Services wrote:
> >>
> >>
> >>
> >>>Sounds like your ISP may have a proxy setup. Usually two different 
> >>>browsers don't know about each other.
> >>>
> >>>Doug
> >>>
> >>>- Original Message - From: "Paul Taylor" <[EMAIL PROTECTED]>
> >>>To: "Tomcat Users List" 
> >>>Sent: Monday, January 17, 2005 12:26 PM
> >>>Subject: Re: Website downloading old file
> >>>
> >>>
> >>>  
> >>>
> I think it is a browser problem because I got a friend to download 
> from his computer and he received the correct file. Im using Firefox 
> and still get the same problem.
> 
> Ben Souther wrote:
> 
> 
> 
> >Also, in the interest of not overlooking the obvious... Did you 
> >verify that the FTP write actually worked and that you didn't
> >accidentally ADD another file with a slightly different name?
> >
> >
> >
> >On Mon, 2005-01-17 at 09:56, Parsons Technical Services wrote:
> >
> >  
> >
> >>File permissions may be part of your problem.
> >>
> >>What OS is Tomcat running on?
> >>
> >>As for the showing the file after deleting it from the server, did 
> >>you do a restart of Tomcat after deleting the file? I remember 
> >>something on the list awhile back similar to this.
> >>
> >>Doug
> >>
> >>- Original Message - From: "Paul Taylor" 
> >><[EMAIL PROTECTED]>
> >>To: 
> >>Sent: Monday, January 17, 2005 7:42 AM
> >>Subject: Website downloading old file
> >>
> >>
> >>
> >>
> >>
> >>>Puzzled.
> >>>
> >>>I have a Tomcat 5 application, associated with it a file that can 
> >>>be downloaded from the website, which is in the root directory of 
> >>>the context. (So if the context is called myapp the file is in 
> >>>myapp).
> >>>
> >>>Everything was fine but then I realised that there was a problem 
> >>>with the file so I ftped a new file to replace it.
> >>>But when I try to download the file from the website it still 
> >>>refers to the earlier (larger) file.
> >>>This still happens even though I have:
> >>>shutdown tomcat,
> >>>restarted tomcat,
> >>>deleted tomcat work directory,
> >>>clerared out my browser cache
> >>>used a different browser.
> >>>
> >>>It even still allows the file downloads if I delete the file from 
> >>>the server, how can this be ?
> >>>
> >>>-
> >>>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]
> >
> >
> >
> >  
> >
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> >>>
> >>>  
> >>>
> >>-

Re: Website downloading old file

2005-01-17 Thread Paul Taylor
OK I think you are onto something here,
the original file was called file.bin, new file replacing it also called 
file.bin and renamed to file2.bin

When I use the ?var=bogus the correct file is returned, but when I don't 
specify a parameter for file.bin it still returns the older file.

http://domain/context/file.bin  INCORRECT OLD 
VERSION
http://domain/context/file.bin?var=bogusOKNEW VERSION
http://domain/context/file2.bin?var=bogus  OK NEW VERSION

Ben Souther wrote:
Try requesting the file with a bogus querystring variable
http://domain/context/file.txt?bogus=var
See if the unique URL gets you the right file.
On Mon, 2005-01-17 at 12:43, Paul Taylor wrote:
 

Can you expand on this please, btw if I change any part of the web 
application itself such as a jsp the results are imediate.
Two ther bits of info which maybe relevent.
1. The host is based in Canada and hence has time set to Candian time 
which is earlier than UK time where Im downloading to.
2. The file Im trying to download is a .bin (Linux) file.

The problem is also happening on Internet Explorer.
Parsons Technical Services wrote:
   

Sounds like your ISP may have a proxy setup. Usually two different 
browsers don't know about each other.

Doug
- Original Message - From: "Paul Taylor" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Monday, January 17, 2005 12:26 PM
Subject: Re: Website downloading old file
 

I think it is a browser problem because I got a friend to download 
from his computer and he received the correct file. Im using Firefox 
and still get the same problem.

Ben Souther wrote:
   

Also, in the interest of not overlooking the obvious... Did you 
verify that the FTP write actually worked and that you didn't
accidentally ADD another file with a slightly different name?


On Mon, 2005-01-17 at 09:56, Parsons Technical Services wrote:
 

File permissions may be part of your problem.
What OS is Tomcat running on?
As for the showing the file after deleting it from the server, did 
you do a restart of Tomcat after deleting the file? I remember 
something on the list awhile back similar to this.

Doug
- Original Message - From: "Paul Taylor" 
<[EMAIL PROTECTED]>
To: 
Sent: Monday, January 17, 2005 7:42 AM
Subject: Website downloading old file


   

Puzzled.
I have a Tomcat 5 application, associated with it a file that can 
be downloaded from the website, which is in the root directory of 
the context. (So if the context is called myapp the file is in 
myapp).

Everything was fine but then I realised that there was a problem 
with the file so I ftped a new file to replace it.
But when I try to download the file from the website it still 
refers to the earlier (larger) file.
This still happens even though I have:
shutdown tomcat,
restarted tomcat,
deleted tomcat work directory,
clerared out my browser cache
used a different browser.

It even still allows the file downloads if I delete the file from 
the server, how can this be ?

-
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]

 

-
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]


Re: precompilation trouble

2005-01-17 Thread Tim Funk
Oops, my bad. Forget newInstance() being called. But the line:
Class bean = ctxt.getClassLoader().loadClass(klass);
I believe does force my previous static statements to hold true.
-Tim
Marcus Beyer wrote:
Tim Funk schrieb:
Ahh. Here is your issue:
if (beanName == null) {
try {
Class bean = ctxt.getClassLoader().loadClass(klass);
int modifiers = bean.getModifiers();
if (!Modifier.isPublic(modifiers) ||
Modifier.isInterface(modifiers) ||
Modifier.isAbstract(modifiers)) {
throw new Exception("Invalid bean class modifier");
}
// Check that there is a 0 arg constructor
bean.getConstructor(new Class[] {});
generateNew = true;
} catch (Exception e) {
// Cannot instantiate the specified class
if (ctxt.getOptions().getErrorOnUseBeanInvalidClassAttribute()) {
err.jspError(n, "jsp.error.invalid.bean", klass);
}
}
}
At compile time - jasper is checking that the default constructor of a 
bean may be invoked. By invoking the constructor at compile time - the 
class is loaded by the JVM. This will in turn cause the JVM to call 
any static initializers. (In which you have)

Hmm, were is that code is an invokation of a constructor? As far as I 
can see Jasper just checks if a zero argument constructor exists.

And why does Jasper instantiate beans? Just to check if it is possible 
to instantiate them, or does Jasper do something with the beans?

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


Re: precompilation trouble

2005-01-17 Thread Marcus Beyer
Tim Funk schrieb:
Ahh. Here is your issue:
if (beanName == null) {
try {
Class bean = ctxt.getClassLoader().loadClass(klass);
int modifiers = bean.getModifiers();
if (!Modifier.isPublic(modifiers) ||
Modifier.isInterface(modifiers) ||
Modifier.isAbstract(modifiers)) {
throw new Exception("Invalid bean class modifier");
}
// Check that there is a 0 arg constructor
bean.getConstructor(new Class[] {});
generateNew = true;
} catch (Exception e) {
// Cannot instantiate the specified class
if (ctxt.getOptions().getErrorOnUseBeanInvalidClassAttribute()) {
err.jspError(n, "jsp.error.invalid.bean", klass);
}
}
}
At compile time - jasper is checking that the default constructor of a 
bean may be invoked. By invoking the constructor at compile time - the 
class is loaded by the JVM. This will in turn cause the JVM to call any 
static initializers. (In which you have)
Hmm, were is that code is an invokation of a constructor? As far as I 
can see Jasper just checks if a zero argument constructor exists.

And why does Jasper instantiate beans? Just to check if it is possible 
to instantiate them, or does Jasper do something with the beans?

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


Question about JNDI resources

2005-01-17 Thread Alan Deikman
I'm just learning this stuff, but having good success so far.  In my
SQL-backed bean I use a JDBCResource as per the documentation:
protected static Connection getConnection() {
   //System.out.println("User.getConnection Attempting to get
connection");
   try {
   Context initContext = new InitialContext();
   Context envContext  =
(Context)initContext.lookup("java:/comp/env");
   DataSource ds = (DataSource) envContext.lookup("jdbc/");
   Connection conn = ds.getConnection();
   return conn;
   } catch (NamingException ne) {
   System.out.println("User.getConnection caught Naming
exception");
   System.out.println(ne.toString());
   } catch (SQLException sqle) {
   System.out.println("User.getConnection caught SQL exception");
   System.out.println(sqle.toString());
   }
This works, way cool.  My question is do I need to look up two new
Context objects and a new DataSource each time I get a connection?  Or
can I just store initContext, envContext, and ds in static variables and
load them just once for all instances of the class?
If that works, why don't the examples do it that way?
Alan Deikman
ZNYX Networks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: karjera@m-1.lt

2005-01-17 Thread Tomcat Newbie
Someone, throw them out. It is an auto-responder. I know.

Ed

On Mon, 2005-01-17 at 09:50 -0800, Dakota Jack wrote:
> Is anyone else getting personal responses from this address after
> every submission to tomcat-user?
> 
> Jack


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



question on session info in manager webapp

2005-01-17 Thread Stephen Charles Huey
When I go to /manager/html and then click on the session count for one
of my webapps, it displays this:

OK - Session information for application at context path /testwebapp
Default maximum session inactive interval 30 minutes
120 - <130 minutes:4 sessions

If the default timeout is set to 30 minutes, why does it say 120 - <130
minutes?  When I look at other examples online where the default timeout
is set to 30 minutes, the 3rd line on those examples says 30 - <40
minutes.  So what does this mean?  That 4 sessions have been created in
the last couple of hours?  Why does it show it for a whole 2 hours
instead of just for the last half hour or whatever?  

Thanks,
Stephen

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



RE: Still having OutOfMemory Problems (Tomcat 4.1.31)

2005-01-17 Thread Larry Isaacs
The "-DX" problem applies to the "-DXX" arguments too.

Larry

> -Original Message-
> From: David Johnson [mailto:[EMAIL PROTECTED] 
> Sent: Monday, January 17, 2005 1:16 PM
> To: Tomcat Users List
> Subject: Re: Still having OutOfMemory Problems (Tomcat 4.1.31)
> 
> I think that was the problem My new batch file is 
> 
> #
> 
> @SET JAVA_HOME=C:\j2sdk_1_4_0_2
> @SET TOMCAT_HOME=C:\Tomcat4.1
> @SET TOMCAT_JVM="%JAVA_HOME%\jre\bin\client\jvm.dll"
> @SET 
> TOMCAT_CLASSPATH=%TOMCAT_HOME%\bin\bootstrap.jar;%TOMCAT_HOME%
> \common\lib\servlet.jar
> @SET TOMCAT_ENDORSED=%TOMCAT_HOME%\common\endorsed
> @SET TOMCAT_LOG=%TOMCAT_HOME%\logs\stdout.log
> @SET TOMCAT_ERR_LOG=%TOMCAT_HOME%\logs\stderr.log
> 
> %TOMCAT_HOME%\bin\tomcat.exe -install "Apache Tomcat 4.1.31"
> %TOMCAT_JVM% -Djava.class.path=%TOMCAT_CLASSPATH% -Xms64m -Xmx512m 
> -DXX:+PrintTenuringDistribution -DXX:+PrintGCDetails -Xverbosegc
> -Djava.endorsed.dirs=%TOMCAT_ENDORSED% -Dcatalina.home=%TOMCAT_HOME%
> -start org.apache.catalina.startup.BootstrapService -params start
> -stop org.apache.catalina.startup.BootstrapService -params stop -out
> %TOMCAT_LOG% -err %TOMCAT_ERR_LOG%
> 
> 
> 
> On Mon, 17 Jan 2005 13:08:05 -0500, David Johnson 
> <[EMAIL PROTECTED]> wrote:
> > I'll give it a try. thanks!
> > 
> > 
> > On Mon, 17 Jan 2005 13:07:26 -0500, Larry Isaacs 
> <[EMAIL PROTECTED]> wrote:
> > > David,
> > >
> > > "-D" defines System properties, "-X" defines vendor 
> specific JVM options.
> > > Thus, "-DXms128M" is incorrect.  It should be just 
> "-Xms128M".  Same for
> > > the other "-DX" arguments.
> > >
> > > Cheers,
> > > Larry
> > >
> > > > -Original Message-
> > > > From: David Johnson [mailto:[EMAIL PROTECTED]
> > > > Sent: Monday, January 17, 2005 12:52 PM
> > > > To: Tomcat Users List
> > > > Subject: Still having OutOfMemory Problems (Tomcat 4.1.31)
> > > >
> > > > HI all.
> > > >
> > > > Well I'm still getting my out of memory problem fairly 
> consistently
> > > > (again) using Tomcat 4.1.31 with my Struts application.
> > > >
> > > > When I look st the memory usage, it says tomcat is 
> using about 110k of
> > > > memory for the VM, but that's just looking at the task manager.
> > > >
> > > > Tomcat is installed as a service using a bat file 
> (follows). Note the
> > > > -Xms128M and -Xmx512M options are set...if doesnt seem 
> to matter what
> > > > I set these options toeven if I set them to 32m/64m!
> > > >
> > > > How can I tell if tomcat is REALLY using those 
> settings? It doesnt
> > > > seem to be
> > > >
> > > > Thanks
> > > >
> > > > -
> > > > install.bat:
> > > >
> > > > @SET JAVA_HOME=C:\j2sdk_1_4_0_2
> > > > @SET TOMCAT_HOME=C:\Tomcat4.1
> > > > @SET TOMCAT_JVM="%JAVA_HOME%\jre\bin\client\jvm.dll"
> > > > @SET
> > > > TOMCAT_CLASSPATH=%TOMCAT_HOME%\bin\bootstrap.jar;%TOMCAT_HOME%
> > > > \common\lib\servlet.jar
> > > > @SET TOMCAT_ENDORSED=%TOMCAT_HOME%\common\endorsed
> > > > @SET TOMCAT_LOG=%TOMCAT_HOME%\logs\stdout.log
> > > > @SET TOMCAT_ERR_LOG=%TOMCAT_HOME%\logs\stderr.log
> > > >
> > > > %TOMCAT_HOME%\bin\tomcat.exe -install "Apache Tomcat 4.1.31"
> > > > %TOMCAT_JVM% -Djava.class.path=%TOMCAT_CLASSPATH% 
> -DXms128M -DXmx512M
> > > > -DXX:+PrintTenuringDistribution -DXX:+PrintGCDetails -Xverbosegc
> > > > -Djava.endorsed.dirs=%TOMCAT_ENDORSED% 
> -Dcatalina.home=%TOMCAT_HOME%
> > > > -start org.apache.catalina.startup.BootstrapService 
> -params start
> > > > -stop org.apache.catalina.startup.BootstrapService 
> -params stop -out
> > > > %TOMCAT_LOG% -err %TOMCAT_ERR_LOG%
> > > >
> > > > 
> -
> > > > 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]



Re: Long running requests and timeouts?

2005-01-17 Thread Andrzej Jan Taramina
Frank:

> I don't know your usage pattern, but especially if there could be a 
> number of such requests coming in at once, you are tieing up server 
> resources this way.  You also start running into situations like you 
> mention with timeouts (I'm actually surprised the browser itself didn't 
> time out after a few minutes).  It also doesn't give a very good 
> appearance to the user... it seems like the system has just frozen, 
> which it actually hasn't.

These requests are not going to be called by users through a browser, since 
they are "Web Services/REST" types of requests.  The only time they might get 
called through a browser is for testing purposes, in which case the tester 
knows that they will be very long running and that's not at issue.

The timeout seems to be affecting scripted invocations of the request as well 
(using the commons-http library), so it doesn't seem to be a browser timeout 
issue as far as I can tell.

> If it's feasible, I think you may save yourself some trouble by 
> rearchitecting this rather than trying to solve this problem.  You can 
> do something as simple as this...

> Does that all make sense?  I don't know if your in a position to 
> rearchitect what your doing, but if you are, I very much suggest doing 
> so.  Hope this helps!

This does make sense, except for the user part, since users will never access 
the URL's involved directly.

Furthermore, these long running tasks will be called by a scheduler, off 
hours, and typically there will be very few such requests a day (maybe 2 or 3 
max).  The requests are really single overnight batch processing runs.

However, deadlines preclude rearchitecting the solution to make it 
asynchronous as you suggest (it's currently synchronous) in the short term.  

Hence my looking for a way to easily fix the timeout issue that causes the 
response to be truncated when Tomcat services a long running request.

Thanks for the inputmost appreciated.

Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


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



Re: Problem with including JspC generated web.xml fragment

2005-01-17 Thread Andreas Schildbach
Tim Funk wrote:
Odd, I do not have this problem.
Make sure you are building to a scratchpad. This means your web.xml is 
copied to a new location before you precompile. Then JSPC can edit it in 
place and you no not lose any of your changes.

To get around the relative pathing issue - prefix your build with 
${basedir}. For example:

 validateXml="false"
 uriroot="${basedir}/${build.dir}"
 poolingEnabled="false"
 webXmlFragment="${basedir}/${build.dir}/WEB-INF/generated_web.xml"
 addWebXmlMappings="true"
 outputDir="${basedir}/${jspc.base}"/>
JspC can acually edit web.xml? Where is this documented? I can't find 
any documentation of the jasper2 task except the old outdated jspc task 
(including all the options/attributes) that is included with Ant.

Given that I have the whole web application in a directory called 
webapp, whats the complete jasper2 command to transfor it into a webapp 
with compiled jsps?

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


Re: Still having OutOfMemory Problems (Tomcat 4.1.31)

2005-01-17 Thread David Johnson
I think that was the problem My new batch file is 

#

@SET JAVA_HOME=C:\j2sdk_1_4_0_2
@SET TOMCAT_HOME=C:\Tomcat4.1
@SET TOMCAT_JVM="%JAVA_HOME%\jre\bin\client\jvm.dll"
@SET 
TOMCAT_CLASSPATH=%TOMCAT_HOME%\bin\bootstrap.jar;%TOMCAT_HOME%\common\lib\servlet.jar
@SET TOMCAT_ENDORSED=%TOMCAT_HOME%\common\endorsed
@SET TOMCAT_LOG=%TOMCAT_HOME%\logs\stdout.log
@SET TOMCAT_ERR_LOG=%TOMCAT_HOME%\logs\stderr.log

%TOMCAT_HOME%\bin\tomcat.exe -install "Apache Tomcat 4.1.31"
%TOMCAT_JVM% -Djava.class.path=%TOMCAT_CLASSPATH% -Xms64m -Xmx512m 
-DXX:+PrintTenuringDistribution -DXX:+PrintGCDetails -Xverbosegc
-Djava.endorsed.dirs=%TOMCAT_ENDORSED% -Dcatalina.home=%TOMCAT_HOME%
-start org.apache.catalina.startup.BootstrapService -params start
-stop org.apache.catalina.startup.BootstrapService -params stop -out
%TOMCAT_LOG% -err %TOMCAT_ERR_LOG%



On Mon, 17 Jan 2005 13:08:05 -0500, David Johnson <[EMAIL PROTECTED]> wrote:
> I'll give it a try. thanks!
> 
> 
> On Mon, 17 Jan 2005 13:07:26 -0500, Larry Isaacs <[EMAIL PROTECTED]> wrote:
> > David,
> >
> > "-D" defines System properties, "-X" defines vendor specific JVM options.
> > Thus, "-DXms128M" is incorrect.  It should be just "-Xms128M".  Same for
> > the other "-DX" arguments.
> >
> > Cheers,
> > Larry
> >
> > > -Original Message-
> > > From: David Johnson [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, January 17, 2005 12:52 PM
> > > To: Tomcat Users List
> > > Subject: Still having OutOfMemory Problems (Tomcat 4.1.31)
> > >
> > > HI all.
> > >
> > > Well I'm still getting my out of memory problem fairly consistently
> > > (again) using Tomcat 4.1.31 with my Struts application.
> > >
> > > When I look st the memory usage, it says tomcat is using about 110k of
> > > memory for the VM, but that's just looking at the task manager.
> > >
> > > Tomcat is installed as a service using a bat file (follows). Note the
> > > -Xms128M and -Xmx512M options are set...if doesnt seem to matter what
> > > I set these options toeven if I set them to 32m/64m!
> > >
> > > How can I tell if tomcat is REALLY using those settings? It doesnt
> > > seem to be
> > >
> > > Thanks
> > >
> > > -
> > > install.bat:
> > >
> > > @SET JAVA_HOME=C:\j2sdk_1_4_0_2
> > > @SET TOMCAT_HOME=C:\Tomcat4.1
> > > @SET TOMCAT_JVM="%JAVA_HOME%\jre\bin\client\jvm.dll"
> > > @SET
> > > TOMCAT_CLASSPATH=%TOMCAT_HOME%\bin\bootstrap.jar;%TOMCAT_HOME%
> > > \common\lib\servlet.jar
> > > @SET TOMCAT_ENDORSED=%TOMCAT_HOME%\common\endorsed
> > > @SET TOMCAT_LOG=%TOMCAT_HOME%\logs\stdout.log
> > > @SET TOMCAT_ERR_LOG=%TOMCAT_HOME%\logs\stderr.log
> > >
> > > %TOMCAT_HOME%\bin\tomcat.exe -install "Apache Tomcat 4.1.31"
> > > %TOMCAT_JVM% -Djava.class.path=%TOMCAT_CLASSPATH% -DXms128M -DXmx512M
> > > -DXX:+PrintTenuringDistribution -DXX:+PrintGCDetails -Xverbosegc
> > > -Djava.endorsed.dirs=%TOMCAT_ENDORSED% -Dcatalina.home=%TOMCAT_HOME%
> > > -start org.apache.catalina.startup.BootstrapService -params start
> > > -stop org.apache.catalina.startup.BootstrapService -params stop -out
> > > %TOMCAT_LOG% -err %TOMCAT_ERR_LOG%
> > >
> > > -
> > > 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: Website downloading old file

2005-01-17 Thread Paul Taylor
What is going on ?
I moved the file to a new filename and edited the jsp to point to the 
renamed file. Tried to download it and it downloaded as the correct size.
I then mnoved it back to the oldfilename and changed the jsp back to 
point to original filename and once again it downloads the old larger 
file which no longer exists !
Paul Taylor wrote:

Can you expand on this please, btw if I change any part of the web 
application itself such as a jsp the results are imediate.
Two ther bits of info which maybe relevent.
1. The host is based in Canada and hence has time set to Candian time 
which is earlier than UK time where Im downloading to.
2. The file Im trying to download is a .bin (Linux) file.

The problem is also happening on Internet Explorer.
Parsons Technical Services wrote:
Sounds like your ISP may have a proxy setup. Usually two different 
browsers don't know about each other.

Doug
- Original Message - From: "Paul Taylor" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Monday, January 17, 2005 12:26 PM
Subject: Re: Website downloading old file

I think it is a browser problem because I got a friend to download 
from his computer and he received the correct file. Im using Firefox 
and still get the same problem.

Ben Souther wrote:
Also, in the interest of not overlooking the obvious... Did you 
verify that the FTP write actually worked and that you didn't
accidentally ADD another file with a slightly different name?


On Mon, 2005-01-17 at 09:56, Parsons Technical Services wrote:
File permissions may be part of your problem.
What OS is Tomcat running on?
As for the showing the file after deleting it from the server, did 
you do a restart of Tomcat after deleting the file? I remember 
something on the list awhile back similar to this.

Doug
- Original Message - From: "Paul Taylor" 
<[EMAIL PROTECTED]>
To: 
Sent: Monday, January 17, 2005 7:42 AM
Subject: Website downloading old file


Puzzled.
I have a Tomcat 5 application, associated with it a file that can 
be downloaded from the website, which is in the root directory of 
the context. (So if the context is called myapp the file is in 
myapp).

Everything was fine but then I realised that there was a problem 
with the file so I ftped a new file to replace it.
But when I try to download the file from the website it still 
refers to the earlier (larger) file.
This still happens even though I have:
shutdown tomcat,
restarted tomcat,
deleted tomcat work directory,
clerared out my browser cache
used a different browser.

It even still allows the file downloads if I delete the file from 
the server, how can this be ?

- 

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]


-
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]


RE: Still having OutOfMemory Problems (Tomcat 4.1.31)

2005-01-17 Thread Larry Isaacs
David,

"-D" defines System properties, "-X" defines vendor specific JVM options.
Thus, "-DXms128M" is incorrect.  It should be just "-Xms128M".  Same for
the other "-DX" arguments.

Cheers,
Larry 

> -Original Message-
> From: David Johnson [mailto:[EMAIL PROTECTED] 
> Sent: Monday, January 17, 2005 12:52 PM
> To: Tomcat Users List
> Subject: Still having OutOfMemory Problems (Tomcat 4.1.31)
> 
> HI all.
> 
> Well I'm still getting my out of memory problem fairly consistently
> (again) using Tomcat 4.1.31 with my Struts application.
> 
> When I look st the memory usage, it says tomcat is using about 110k of
> memory for the VM, but that's just looking at the task manager.
> 
> Tomcat is installed as a service using a bat file (follows). Note the
> -Xms128M and -Xmx512M options are set...if doesnt seem to matter what
> I set these options toeven if I set them to 32m/64m!
> 
> How can I tell if tomcat is REALLY using those settings? It doesnt
> seem to be
> 
> Thanks
> 
> -
> install.bat:
> 
> @SET JAVA_HOME=C:\j2sdk_1_4_0_2
> @SET TOMCAT_HOME=C:\Tomcat4.1
> @SET TOMCAT_JVM="%JAVA_HOME%\jre\bin\client\jvm.dll"
> @SET 
> TOMCAT_CLASSPATH=%TOMCAT_HOME%\bin\bootstrap.jar;%TOMCAT_HOME%
> \common\lib\servlet.jar
> @SET TOMCAT_ENDORSED=%TOMCAT_HOME%\common\endorsed
> @SET TOMCAT_LOG=%TOMCAT_HOME%\logs\stdout.log
> @SET TOMCAT_ERR_LOG=%TOMCAT_HOME%\logs\stderr.log
> 
> %TOMCAT_HOME%\bin\tomcat.exe -install "Apache Tomcat 4.1.31"
> %TOMCAT_JVM% -Djava.class.path=%TOMCAT_CLASSPATH% -DXms128M -DXmx512M 
> -DXX:+PrintTenuringDistribution -DXX:+PrintGCDetails -Xverbosegc
> -Djava.endorsed.dirs=%TOMCAT_ENDORSED% -Dcatalina.home=%TOMCAT_HOME%
> -start org.apache.catalina.startup.BootstrapService -params start
> -stop org.apache.catalina.startup.BootstrapService -params stop -out
> %TOMCAT_LOG% -err %TOMCAT_ERR_LOG%
> 
> -
> 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: Still having OutOfMemory Problems (Tomcat 4.1.31)

2005-01-17 Thread reynir
you should try using small m like -Xmx512m <- this one.
hope it helps
-reynir
David Johnson wrote:
HI all.
Well I'm still getting my out of memory problem fairly consistently
(again) using Tomcat 4.1.31 with my Struts application.
When I look st the memory usage, it says tomcat is using about 110k of
memory for the VM, but that's just looking at the task manager.
Tomcat is installed as a service using a bat file (follows). Note the
-Xms128M and -Xmx512M options are set...if doesnt seem to matter what
I set these options toeven if I set them to 32m/64m!
How can I tell if tomcat is REALLY using those settings? It doesnt
seem to be
Thanks
-
install.bat:
@SET JAVA_HOME=C:\j2sdk_1_4_0_2
@SET TOMCAT_HOME=C:\Tomcat4.1
@SET TOMCAT_JVM="%JAVA_HOME%\jre\bin\client\jvm.dll"
@SET 
TOMCAT_CLASSPATH=%TOMCAT_HOME%\bin\bootstrap.jar;%TOMCAT_HOME%\common\lib\servlet.jar
@SET TOMCAT_ENDORSED=%TOMCAT_HOME%\common\endorsed
@SET TOMCAT_LOG=%TOMCAT_HOME%\logs\stdout.log
@SET TOMCAT_ERR_LOG=%TOMCAT_HOME%\logs\stderr.log
%TOMCAT_HOME%\bin\tomcat.exe -install "Apache Tomcat 4.1.31"
%TOMCAT_JVM% -Djava.class.path=%TOMCAT_CLASSPATH% -DXms128M -DXmx512M 
-DXX:+PrintTenuringDistribution -DXX:+PrintGCDetails -Xverbosegc
-Djava.endorsed.dirs=%TOMCAT_ENDORSED% -Dcatalina.home=%TOMCAT_HOME%
-start org.apache.catalina.startup.BootstrapService -params start
-stop org.apache.catalina.startup.BootstrapService -params stop -out
%TOMCAT_LOG% -err %TOMCAT_ERR_LOG%

-
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: Tomcat 4.1.31 Out of Memory Follow up

2005-01-17 Thread David Johnson
Note: This is the bat file I'm using to install...

#Other Options to use
# -DXX:+PrintTenuringDistribution -DXX:+PrintGCDetails -Xverbosegc
# -DXms128M

@SET JAVA_HOME=C:\j2sdk_1_4_0_2
@SET TOMCAT_HOME=C:\Tomcat4.1
@SET TOMCAT_JVM="%JAVA_HOME%\jre\bin\client\jvm.dll"
@SET 
TOMCAT_CLASSPATH=%TOMCAT_HOME%\bin\bootstrap.jar;%TOMCAT_HOME%\common\lib\servlet.jar
@SET TOMCAT_ENDORSED=%TOMCAT_HOME%\common\endorsed
@SET TOMCAT_LOG=%TOMCAT_HOME%\logs\stdout.log
@SET TOMCAT_ERR_LOG=%TOMCAT_HOME%\logs\stderr.log

%TOMCAT_HOME%\bin\tomcat.exe -install "Apache Tomcat 4.1.31"
%TOMCAT_JVM% -Djava.class.path=%TOMCAT_CLASSPATH% -DXms64M -DXmx512M 
-DXX:+PrintTenuringDistribution -DXX:+PrintGCDetails -Xverbosegc
-Djava.endorsed.dirs=%TOMCAT_ENDORSED% -Dcatalina.home=%TOMCAT_HOME%
-start org.apache.catalina.startup.BootstrapService -params start
-stop org.apache.catalina.startup.BootstrapService -params stop -out
%TOMCAT_LOG% -err %TOMCAT_ERR_LOG%



On Mon, 17 Jan 2005 13:05:02 -0500, David Johnson <[EMAIL PROTECTED]> wrote:
> Hi again
> 
> I've searched through the registry as well, and at
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat
> 4.1.31\Parameters it DOES show the -Xmx=512M and -Xms=128M that are
> set in my installService.bat.
> 
> It does not, however seem to be actually USING that much memory.
> 
> Is there a way to easily verify how much it's using?
>

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



RE: Still having OutOfMemory Problems (Tomcat 4.1.31)

2005-01-17 Thread David Vandaele
Try printing out this:
Runtime.getRuntime().freeMemory():
Runtime.getRuntime().maxMemory();

Check out the API if you want to know the exact meaning of these methods, but 
they are pretty obvious I think.
Now print these somewhere you know you'll get before the OutOfMemError occurs, 
or some place like the service() method or something.

David

-Original Message-
From: David Johnson [mailto:[EMAIL PROTECTED]
Sent: maandag 17 januari 2005 18:52
To: Tomcat Users List
Subject: Still having OutOfMemory Problems (Tomcat 4.1.31)


HI all.

Well I'm still getting my out of memory problem fairly consistently
(again) using Tomcat 4.1.31 with my Struts application.

When I look st the memory usage, it says tomcat is using about 110k of
memory for the VM, but that's just looking at the task manager.

Tomcat is installed as a service using a bat file (follows). Note the
-Xms128M and -Xmx512M options are set...if doesnt seem to matter what
I set these options toeven if I set them to 32m/64m!

How can I tell if tomcat is REALLY using those settings? It doesnt
seem to be

Thanks

-
install.bat:

@SET JAVA_HOME=C:\j2sdk_1_4_0_2
@SET TOMCAT_HOME=C:\Tomcat4.1
@SET TOMCAT_JVM="%JAVA_HOME%\jre\bin\client\jvm.dll"
@SET 
TOMCAT_CLASSPATH=%TOMCAT_HOME%\bin\bootstrap.jar;%TOMCAT_HOME%\common\lib\servlet.jar
@SET TOMCAT_ENDORSED=%TOMCAT_HOME%\common\endorsed
@SET TOMCAT_LOG=%TOMCAT_HOME%\logs\stdout.log
@SET TOMCAT_ERR_LOG=%TOMCAT_HOME%\logs\stderr.log

%TOMCAT_HOME%\bin\tomcat.exe -install "Apache Tomcat 4.1.31"
%TOMCAT_JVM% -Djava.class.path=%TOMCAT_CLASSPATH% -DXms128M -DXmx512M 
-DXX:+PrintTenuringDistribution -DXX:+PrintGCDetails -Xverbosegc
-Djava.endorsed.dirs=%TOMCAT_ENDORSED% -Dcatalina.home=%TOMCAT_HOME%
-start org.apache.catalina.startup.BootstrapService -params start
-stop org.apache.catalina.startup.BootstrapService -params stop -out
%TOMCAT_LOG% -err %TOMCAT_ERR_LOG%

-
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]



Tomcat 4.1.31 Out of Memory Follow up

2005-01-17 Thread David Johnson
Hi again

I've searched through the registry as well, and at
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat
4.1.31\Parameters it DOES show the -Xmx=512M and -Xms=128M that are
set in my installService.bat.

It does not, however seem to be actually USING that much memory.

Is there a way to easily verify how much it's using?

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



Re: Tomcat5 java.lang.OutOfMemoryError

2005-01-17 Thread David Johnson
Can you post a link to the archives?


On Tue, 11 Jan 2005 16:31:40 -0800 (PST), Ryan Stewart <[EMAIL PROTECTED]> 
wrote:
> I posted a how-to on this just yesterday I think. Try the archives. It's 
> typically a good idea to check there before you post.
> 
> -Original Message-
> From: "SARMIENTO Claudia COGA"<[EMAIL PROTECTED]>
> To: "'Tomcat Users List'"
> Date: Mon Jan 10 10:49:20 PST 2005
> Subject: Tomcat5  java.lang.OutOfMemoryError
> 
> >Hello all:
> >I have problems with memory in Tomcat, this happen when the servlet try to
> >forward the result jsp only if the result is too big (a set of rows in a
> >period date)
> >Th bean doesn't have problems, but the servlet yes, so i think i need to
> >change my configuration to set more memory at startup. (Actually is the
> >default)
> >
> >I work in Tomcat 5.0.25 under W2000 with tomcat as a service, i read that i
> >have to re-install tomcat
> >(http://marc.theaimsgroup.com/?l=tomcat-user&m=104331482014538&w=2) the
> >notes is for tomcat 4, is the same for tomcat 5.0?
> >
> >Thanks!
> >Claudia
> >
> >PD:
> >
> >This is the exactly error:
> >
> >2005-01-10 11:26:42 StandardWrapperValve[invoker]: Servlet.service() para
> >servlet invoker lanzó excepción
> >java.lang.OutOfMemoryError
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> ___
> Check-out GO.com
> GO get your free GO E-Mail account with expanded storage of 6 MB!
> http://mail.go.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]



Tomcat 4 doesn't start http service on Linux?

2005-01-17 Thread Stephen Charles Huey
We just installed Tomcat 4 on 2 Red Hat servers, and we have a BigIP
load balancer in front of them.  In troubleshooting an issue, the guy
working with our BigIP said that when he was running Apache on either of
the Linux servers, the load balancer could tell that the http service
was running, but when Tomcat was running, it didn't know what to check
for on a service level, so in the end, they had to set it up to just do
a TCP check to see if the port was open.  

He says this isn't ideal since the port being open doesn't mean the
service is up (meaning Tomcat).  He thinks that Tomcat should start up
the http service (I guess he means httpd) when it starts--that maybe I
just need to look around in Tomcat's configuration for the place to set
this, but I'm not so sure that this is the case.  

In a nutshell:  is Tomcat supposed to start up the http service or
something similar to what BigIP is looking for from Apache?  

Thanks...

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



Still having OutOfMemory Problems (Tomcat 4.1.31)

2005-01-17 Thread David Johnson
HI all.

Well I'm still getting my out of memory problem fairly consistently
(again) using Tomcat 4.1.31 with my Struts application.

When I look st the memory usage, it says tomcat is using about 110k of
memory for the VM, but that's just looking at the task manager.

Tomcat is installed as a service using a bat file (follows). Note the
-Xms128M and -Xmx512M options are set...if doesnt seem to matter what
I set these options toeven if I set them to 32m/64m!

How can I tell if tomcat is REALLY using those settings? It doesnt
seem to be

Thanks

-
install.bat:

@SET JAVA_HOME=C:\j2sdk_1_4_0_2
@SET TOMCAT_HOME=C:\Tomcat4.1
@SET TOMCAT_JVM="%JAVA_HOME%\jre\bin\client\jvm.dll"
@SET 
TOMCAT_CLASSPATH=%TOMCAT_HOME%\bin\bootstrap.jar;%TOMCAT_HOME%\common\lib\servlet.jar
@SET TOMCAT_ENDORSED=%TOMCAT_HOME%\common\endorsed
@SET TOMCAT_LOG=%TOMCAT_HOME%\logs\stdout.log
@SET TOMCAT_ERR_LOG=%TOMCAT_HOME%\logs\stderr.log

%TOMCAT_HOME%\bin\tomcat.exe -install "Apache Tomcat 4.1.31"
%TOMCAT_JVM% -Djava.class.path=%TOMCAT_CLASSPATH% -DXms128M -DXmx512M 
-DXX:+PrintTenuringDistribution -DXX:+PrintGCDetails -Xverbosegc
-Djava.endorsed.dirs=%TOMCAT_ENDORSED% -Dcatalina.home=%TOMCAT_HOME%
-start org.apache.catalina.startup.BootstrapService -params start
-stop org.apache.catalina.startup.BootstrapService -params stop -out
%TOMCAT_LOG% -err %TOMCAT_ERR_LOG%

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



karjera@m-1.lt

2005-01-17 Thread Dakota Jack
Is anyone else getting personal responses from this address after
every submission to tomcat-user?

Jack

-- 
--

"You can lead a horse to water but you cannot make it float on its back."

~Dakota Jack~

"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

---

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."

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



Re: Website downloading old file

2005-01-17 Thread Dakota Jack
Clear your browser cache.

Jack


On Mon, 17 Jan 2005 17:26:41 +, Paul Taylor <[EMAIL PROTECTED]> wrote:
> I think it is a browser problem because I got a friend to download from
> his computer and he received the correct file. Im using Firefox and
> still get the same problem.
> 
> Ben Souther wrote:
> 
> >Also, in the interest of not overlooking the obvious...
> >Did you verify that the FTP write actually worked and that you didn't
> >accidentally ADD another file with a slightly different name?
> >
> >
> >
> >
> >On Mon, 2005-01-17 at 09:56, Parsons Technical Services wrote:
> >
> >
> >>File permissions may be part of your problem.
> >>
> >>What OS is Tomcat running on?
> >>
> >>As for the showing the file after deleting it from the server, did you do a
> >>restart of Tomcat after deleting the file? I remember something on the list
> >>awhile back similar to this.
> >>
> >>Doug
> >>
> >>- Original Message -
> >>From: "Paul Taylor" <[EMAIL PROTECTED]>
> >>To: 
> >>Sent: Monday, January 17, 2005 7:42 AM
> >>Subject: Website downloading old file
> >>
> >>
> >>
> >>
> >>>Puzzled.
> >>>
> >>>I have a Tomcat 5 application, associated with it a file that can be
> >>>downloaded from the website, which is in the root directory of the
> >>>context. (So if the context is called myapp the file is in myapp).
> >>>
> >>>Everything was fine but then I realised that there was a problem with the
> >>>file so I ftped a new file to replace it.
> >>>But when I try to download the file from the website it still refers to
> >>>the earlier (larger) file.
> >>>This still happens even though I have:
> >>>shutdown tomcat,
> >>>restarted tomcat,
> >>>deleted tomcat work directory,
> >>>clerared out my browser cache
> >>>used a different browser.
> >>>
> >>>It even still allows the file downloads if I delete the file from the
> >>>server, how can this be ?
> >>>
> >>>-
> >>>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]
> >
> >
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
--

"You can lead a horse to water but you cannot make it float on its back."

~Dakota Jack~

"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

---

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."

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



Re: Website downloading old file

2005-01-17 Thread Paul Taylor
Can you expand on this please, btw if I change any part of the web 
application itself such as a jsp the results are imediate.
Two ther bits of info which maybe relevent.
1. The host is based in Canada and hence has time set to Candian time 
which is earlier than UK time where Im downloading to.
2. The file Im trying to download is a .bin (Linux) file.

The problem is also happening on Internet Explorer.
Parsons Technical Services wrote:
Sounds like your ISP may have a proxy setup. Usually two different 
browsers don't know about each other.

Doug
- Original Message - From: "Paul Taylor" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Monday, January 17, 2005 12:26 PM
Subject: Re: Website downloading old file

I think it is a browser problem because I got a friend to download 
from his computer and he received the correct file. Im using Firefox 
and still get the same problem.

Ben Souther wrote:
Also, in the interest of not overlooking the obvious... Did you 
verify that the FTP write actually worked and that you didn't
accidentally ADD another file with a slightly different name?


On Mon, 2005-01-17 at 09:56, Parsons Technical Services wrote:
File permissions may be part of your problem.
What OS is Tomcat running on?
As for the showing the file after deleting it from the server, did 
you do a restart of Tomcat after deleting the file? I remember 
something on the list awhile back similar to this.

Doug
- Original Message - From: "Paul Taylor" 
<[EMAIL PROTECTED]>
To: 
Sent: Monday, January 17, 2005 7:42 AM
Subject: Website downloading old file


Puzzled.
I have a Tomcat 5 application, associated with it a file that can 
be downloaded from the website, which is in the root directory of 
the context. (So if the context is called myapp the file is in 
myapp).

Everything was fine but then I realised that there was a problem 
with the file so I ftped a new file to replace it.
But when I try to download the file from the website it still 
refers to the earlier (larger) file.
This still happens even though I have:
shutdown tomcat,
restarted tomcat,
deleted tomcat work directory,
clerared out my browser cache
used a different browser.

It even still allows the file downloads if I delete the file from 
the server, how can this be ?

-
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]


-
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]


Developing a large project using Tomcat, please help me

2005-01-17 Thread GPezzini
Hi,
we are developing a large java project using Tomcat.
On the same project works several persons and the project counts
serveral thousand of classes.

The project has (in few words) three big places:
- standard: the place in which are placed all the classes (not jar but
classes)
- patches: the places in which are places the bug-fixes of standard classes
- work in progress: the place in which a developer develop his own
modification to a standard class

Each developer has its own Tomcat.

Now, imagine that
- in standard classes is there a class named: helpme.class
- this class has been bug-fixed and in  patches is there the same class
- a developer is working on its own local copy of this class and he has
  places it in his own work-in-progress folder

Is possible using Tomcat to manage a situation like that?
In other word, If I develop using j2SE standard, to obtaint what i want,  I
simply set my CLASSPATH
env variable in this way;

set
CLASSPATH=x:\MyWorkInProgress\classes;x:\AllPatches\classes;x:\Standard\classes


And java default classpath ensure me that it loads helpme.class first
looking in WowkInProgress,
than, if not found, in AllPatches, than, if not found in standard

Is it possible during Tomcat runtime to have something like that (possibly
WITHOUT using jar)

Thank you very much in advance.


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



Re: Website downloading old file

2005-01-17 Thread Parsons Technical Services
Sounds like your ISP may have a proxy setup. Usually two different browsers 
don't know about each other.

Doug
- Original Message - 
From: "Paul Taylor" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Monday, January 17, 2005 12:26 PM
Subject: Re: Website downloading old file


I think it is a browser problem because I got a friend to download from his 
computer and he received the correct file. Im using Firefox and still get 
the same problem.

Ben Souther wrote:
Also, in the interest of not overlooking the obvious... Did you verify 
that the FTP write actually worked and that you didn't
accidentally ADD another file with a slightly different name?


On Mon, 2005-01-17 at 09:56, Parsons Technical Services wrote:
File permissions may be part of your problem.
What OS is Tomcat running on?
As for the showing the file after deleting it from the server, did you do 
a restart of Tomcat after deleting the file? I remember something on the 
list awhile back similar to this.

Doug
- Original Message - 
From: "Paul Taylor" <[EMAIL PROTECTED]>
To: 
Sent: Monday, January 17, 2005 7:42 AM
Subject: Website downloading old file


Puzzled.
I have a Tomcat 5 application, associated with it a file that can be 
downloaded from the website, which is in the root directory of the 
context. (So if the context is called myapp the file is in myapp).

Everything was fine but then I realised that there was a problem with 
the file so I ftped a new file to replace it.
But when I try to download the file from the website it still refers to 
the earlier (larger) file.
This still happens even though I have:
shutdown tomcat,
restarted tomcat,
deleted tomcat work directory,
clerared out my browser cache
used a different browser.

It even still allows the file downloads if I delete the file from the 
server, how can this be ?

-
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]


-
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: Website downloading old file

2005-01-17 Thread Paul Taylor
I think it is a browser problem because I got a friend to download from 
his computer and he received the correct file. Im using Firefox and 
still get the same problem.

Ben Souther wrote:
Also, in the interest of not overlooking the obvious... 
Did you verify that the FTP write actually worked and that you didn't
accidentally ADD another file with a slightly different name?


On Mon, 2005-01-17 at 09:56, Parsons Technical Services wrote:
 

File permissions may be part of your problem.
What OS is Tomcat running on?
As for the showing the file after deleting it from the server, did you do a 
restart of Tomcat after deleting the file? I remember something on the list 
awhile back similar to this.

Doug
- Original Message - 
From: "Paul Taylor" <[EMAIL PROTECTED]>
To: 
Sent: Monday, January 17, 2005 7:42 AM
Subject: Website downloading old file

   

Puzzled.
I have a Tomcat 5 application, associated with it a file that can be 
downloaded from the website, which is in the root directory of the 
context. (So if the context is called myapp the file is in myapp).

Everything was fine but then I realised that there was a problem with the 
file so I ftped a new file to replace it.
But when I try to download the file from the website it still refers to 
the earlier (larger) file.
This still happens even though I have:
shutdown tomcat,
restarted tomcat,
deleted tomcat work directory,
clerared out my browser cache
used a different browser.

It even still allows the file downloads if I delete the file from the 
server, how can this be ?

-
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]
 


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


Re: multiple ips, multiple ssl certificates and port forwarding

2005-01-17 Thread Parsons Technical Services
Tomcat needs the name of the keystore to be .keystore
No it doesn't. The name (and path) is arbitrary, which is why
there *is* a keystoreFile attribute.
As I said before, I haven't done this myself.
I have, and none of my installations use ".keystore" as the file
name...

That is why I made the statement. Thanks for correcting me on that. Now I 
know.

Doug 


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


Re: multiple ips, multiple ssl certificates and port forwarding

2005-01-17 Thread Hassan Schroeder
[EMAIL PROTECTED] wrote:
the keystore syntax is correct, as it works with one keytore ... the 
problem arises when there are multiple virtual hosts, it takes always 
one of them, but not the corresponding
I'm puzzled by two aspects of your setup:
1) why don't you just assign the proper ports in the Connectors
   instead of redirecting through iptables?
2) what's the point of the multiple Services?
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Re: multiple ips, multiple ssl certificates and port forwarding

2005-01-17 Thread Hassan Schroeder
Parsons Technical Services wrote:
unfortunately this does not seem to solve the problem ... but results 
in the following error (as the given keystore cannot be used)

java.io.FileNotFoundException: /home/essence/.keystore (No such file 
or directory)
First, the give server.xml showed the keystore file (originally)
as "/home/essence/essence/KEYS/c.keystore" which doesn't match the
reported error above -- check for typos.
Tomcat needs the name of the keystore to be .keystore  
No it doesn't. The name (and path) is arbitrary, which is why
there *is* a keystoreFile attribute.
As I said before, I haven't done this myself.
I have, and none of my installations use ".keystore" as the file
name...
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Re: multiple ips, multiple ssl certificates and port forwarding

2005-01-17 Thread rk
the keystore syntax is correct, as it works with one keytore ... the 
problem arises when there are multiple virtual hosts, it takes always one 
of them, but not the corresponding

At 17:30 17.01.2005, you wrote:
unfortunately this does not seem to solve the problem ... but results in 
the following error (as the given keystore cannot be used)

Jan 17, 2005 4:59:29 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-62.116.64.7-8080
Jan 17, 2005 4:59:29 PM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.io.FileNotFoundException: /home/essence/.keystore (No such file or 
directory)
Tomcat needs the name of the keystore to be .keystore   You have it as a. 
b.  c.   The keystore file is for the path and not the name (as I 
understand the docs). So setup all the keystores with the default name but 
in dir a, b and c.

keystoreFile="/home/essence/essence/KEYS/c/.keystore"
or maybe
keystoreFile="/home/essence/essence/c/KEYS/.keystore"
As I said before, I haven't done this myself.
Doug

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
di randolph kepplinger, mba
[EMAIL PROTECTED] / 0676-844899-800
metamagix - better online solutions
favoritenstrasse 19 / 1040 wien / +43.1.9902804
buero: hackengasse 27 / 1150 wien / +43.1.9902804
http://www.metamagix.net
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: <> in web.xml

2005-01-17 Thread Roberto Cosenza
Sure!
Mark wrote:
will getInitParameter(...) translate < to < ?
--- Peter Crowther <[EMAIL PROTECTED]> wrote:
 


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


Re: <> in web.xml

2005-01-17 Thread Tim Funk
You can use CDATA. For example:

 

-Tim
Mark wrote:
Hi there,
I need to set '<' and '>' characters in  field of web.xml
Is there any standard way of setting up and reading those type of
characters in web.xml file?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: <> in web.xml

2005-01-17 Thread Mark
will getInitParameter(...) translate < to < ?

--- Peter Crowther <[EMAIL PROTECTED]> wrote:

> > From: Mark [mailto:[EMAIL PROTECTED] 
> > I need to set '<' and '>' characters in  field of
> web.xml
> > Is there any standard way of setting up and reading those type of
> > characters in web.xml file?
> 
> As in all HTML and XML files, < and > are the character
> entities
> that represent < and > respectively.  This is a standard feature of
> XML.
> 
>   - Peter
> 
>
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


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



Re: Problem with including JspC generated web.xml fragment

2005-01-17 Thread Tim Funk
Odd, I do not have this problem.
Make sure you are building to a scratchpad. This means your web.xml is copied 
to a new location before you precompile. Then JSPC can edit it in place and 
you no not lose any of your changes.

To get around the relative pathing issue - prefix your build with ${basedir}. 
For example:

 validateXml="false"
 uriroot="${basedir}/${build.dir}"
 poolingEnabled="false"
 webXmlFragment="${basedir}/${build.dir}/WEB-INF/generated_web.xml"
 addWebXmlMappings="true"
 outputDir="${basedir}/${jspc.base}"/>

-Tim
Andreas Schildbach wrote:
Hello everyone,
I've got a bit of a problem precompiling JSPs for Tomcat 5.0. To be 
exact, the problem is the web.xml fragment that is generated by JspC 
containing the servlet and servlet-mapping elements.

That fragment has to be included in the web.xml file somehow. Of course, 
I don't want to do this manually after each precompile. What's the best 
way to include the fragment automatically?

If I use the XML entity inclusion mechanism, I run into some problems. 
First, if I enter statements into my original web.xml, the XML parser 
also wants to include when JspC tries to open the file (at this point 
obviously the generated file is not yet present). The second problem is 
that the path of the included file seems to be relative to the current 
directory - not relative to the including XML file.

What are the alternatives?
Personally, I'd prefer to use a transparent process. First, the web-app 
is assembled using no precompilation. It should be fully functional at 
this point (for development and testing), which means that there can't 
be any tokens or inclusion instructions in web.xml. In a second step, 
the web-application should be transformed to an application with all 
JSPs precompiled, with all descriptor modifications that are needed. It 
would be perfect if in this state the application would still be fully 
independant of Tomcat.

Any help, any thoughts? Thanks a lot!
Regards,
Andreas
-
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: <> in web.xml

2005-01-17 Thread Peter Crowther
> From: Mark [mailto:[EMAIL PROTECTED] 
> I need to set '<' and '>' characters in  field of web.xml
> Is there any standard way of setting up and reading those type of
> characters in web.xml file?

As in all HTML and XML files, < and > are the character entities
that represent < and > respectively.  This is a standard feature of XML.

- Peter

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



Re: multiple ips, multiple ssl certificates and port forwarding

2005-01-17 Thread Parsons Technical Services
unfortunately this does not seem to solve the problem ... but results in 
the following error (as the given keystore cannot be used)

Jan 17, 2005 4:59:29 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-62.116.64.7-8080
Jan 17, 2005 4:59:29 PM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.io.FileNotFoundException: /home/essence/.keystore (No such file or 
directory)

Tomcat needs the name of the keystore to be .keystore   You have it as a. 
b.  c.   The keystore file is for the path and not the name (as I understand 
the docs). So setup all the keystores with the default name but in dir a, b 
and c.

keystoreFile="/home/essence/essence/KEYS/c/.keystore"
or maybe
keystoreFile="/home/essence/essence/c/KEYS/.keystore"
As I said before, I haven't done this myself.
Doug

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


<> in web.xml

2005-01-17 Thread Mark
Hi there,

I need to set '<' and '>' characters in  field of web.xml
Is there any standard way of setting up and reading those type of
characters in web.xml file?

Thanks,
Mark.



__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

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



Where / How to place app config file without overwriting during deploy

2005-01-17 Thread Jonathan Wilson
My current upgrade procedures are to shutdown tomcat 3.x, move the 
current version of my webapp directory somewhere else, recreate the 
/webapp directory, then un-jar the war file created by NetBeans. After 
doing this I then have to modify the WEB-INF/app.config file with 
customer-specific information. The code is identical, just configuration 
items change. If the customer has changed their app.config then I have 
to roll those changes into the new app.config file. Also, I have to copy 
the log files out of the old version into the new versions' /logs 
directory and modify the stock log4j.properties to point to their 
desired directory. Also, I can't always have access to the server to do 
this so I've written a procedure to explain this to another.

Is there a way to store customer configuration info(app.config, 
log4j.properties) outside of the app and have the app still know how to 
find it?

There must be a better way - nothing in the Tomcat Application 
Developers Guide that covers this.

Thanks in advance,
JW
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Problem with including JspC generated web.xml fragment

2005-01-17 Thread Andreas Schildbach
Hello everyone,
I've got a bit of a problem precompiling JSPs for Tomcat 5.0. To be 
exact, the problem is the web.xml fragment that is generated by JspC 
containing the servlet and servlet-mapping elements.

That fragment has to be included in the web.xml file somehow. Of course, 
I don't want to do this manually after each precompile. What's the best 
way to include the fragment automatically?

If I use the XML entity inclusion mechanism, I run into some problems. 
First, if I enter statements into my original web.xml, the XML parser 
also wants to include when JspC tries to open the file (at this point 
obviously the generated file is not yet present). The second problem is 
that the path of the included file seems to be relative to the current 
directory - not relative to the including XML file.

What are the alternatives?
Personally, I'd prefer to use a transparent process. First, the web-app 
is assembled using no precompilation. It should be fully functional at 
this point (for development and testing), which means that there can't 
be any tokens or inclusion instructions in web.xml. In a second step, 
the web-application should be transformed to an application with all 
JSPs precompiled, with all descriptor modifications that are needed. It 
would be perfect if in this state the application would still be fully 
independant of Tomcat.

Any help, any thoughts? Thanks a lot!
Regards,
Andreas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AW: Long running requests and timeouts?

2005-01-17 Thread Bernhard Slominski
Hi Andrzej,

one possible workaround is compress the output, so the response is
compressed with zip compresseion and your response gets shorter.
You need a response filter for that, if this is an option an you need more
details let me know.

Cheers

Bernhard

-Ursprüngliche Nachricht-
Von: Andrzej Jan Taramina [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 17. Januar 2005 16:25
An: tomcat-user@jakarta.apache.org
Betreff: Long running requests and timeouts?


I have a situation where some requests that get sent to Tomcat are very long

running (basically batch operations).  I've been testing with a request that

takes just over 7 minutes to process and returns and XML document as a 
response.

The problem I'm having is that the response gets truncated.  It's always 
truncated at a consistent spot (3207 characters for some reason, that's what

Firefox reports).

Shorter running requests don't truncate anything, regardless of how long the

response might be.

I'm running Tomcat 5.0.28 and my Connector in the Tomcat server.xml file 
looks like:



Is the connectionTimeout value the one that might be contributing to this 
behaviour?

Are there any other timeout settings that might affect this?

Thanks!

Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.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: web.xml parsing error SEVERE

2005-01-17 Thread Francois JEANMOUGIN


> java.lang.ClassNotFoundException: org.apache.catalina.Container

Ouch! Are you sure your tomcat installtion is OK? You could have a version
mismatch (between TC4 and TC5) or a jar found at two places or any other
reason why tomcat can't find this class. This is not an XML issue, this is a
class loading problem.

François.

Décharge / Disclaimer

Ce message et toutes les pièces jointes (ci-après le "message") sont 
confidentiels et établis à l'intention exclusive des destinataires. Toute 
utilisation ou diffusion non autorisée est interdite. Tout message électronique 
étant susceptible d'altération, 123Multimédia et ses filiales déclinent toute 
responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié.

This message and any attachments (the "message") are confidential and intended 
solely for the addressees. Any unauthorised use or dissemination is prohibited. 
E-mails are susceptible to alteration. Therefore neither 123Multimédia nor any 
of its subsidiaries or affiliates shall be liable for the message if altered, 
changed or falsified.


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



Re: Long running requests and timeouts?

2005-01-17 Thread Frank W. Zammetti
I can't answer your specific question, but the scenario you describe 
raises a red flag with me in general...

When you potentially have such long-running requests, it's usual a Bad 
Idea(tm) to just allow them to run like this as part of a request.  I 
think it's fair to say that most people would say you should be taking 
some sort of queueing or multithread approach, coupled with polling.

I don't know your usage pattern, but especially if there could be a 
number of such requests coming in at once, you are tieing up server 
resources this way.  You also start running into situations like you 
mention with timeouts (I'm actually surprised the browser itself didn't 
time out after a few minutes).  It also doesn't give a very good 
appearance to the user... it seems like the system has just frozen, 
which it actually hasn't.

If it's feasible, I think you may save yourself some trouble by 
rearchitecting this rather than trying to solve this problem.  You can 
do something as simple as this...

(1) Have a class with two static HashMaps.  One HashMap we'll call 
THREADS and it will store a reference to an object (more on this in a 
second), keyed by userID... In the other that we'll call STATUS you will 
store a Boolean, also keyed by userID.
(2) When one of these long-running requests comes in, spawn a thread to 
handle the XML generation, and put a reference to the thread in that 
THREADS HashMap for the userID your servicing (might want to use 
sessionID instead, it's up to you)... In the STATUS HashMap, store a 
false Boolean (false means the request hasn't completed yet).
(3) Return a "Plase Wait" page to the user.  Use a simple JavaScript 
timeout to call a status checking function every few seconds that checks 
the value of the Boolean.  If false, just return that Please Wait page 
again.
(4) When the thread completes, it should set that Boolean to true for 
that userID.
(5) When the status checking function finds True, it should (a) get the 
reference to the thread from the THREADS HashMap, (b) get the XML from 
the thread (just store it in a class-level variable and expose it with a 
getter), (b) set some value in the thread object that indicates the 
thread should die, (c) return the XML to the browser.

Does that all make sense?  I don't know if your in a position to 
rearchitect what your doing, but if you are, I very much suggest doing 
so.  Hope this helps!

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Andrzej Jan Taramina wrote:
I have a situation where some requests that get sent to Tomcat are very long 
running (basically batch operations).  I've been testing with a request that 
takes just over 7 minutes to process and returns and XML document as a 
response.

The problem I'm having is that the response gets truncated.  It's always 
truncated at a consistent spot (3207 characters for some reason, that's what 
Firefox reports).

Shorter running requests don't truncate anything, regardless of how long the 
response might be.

I'm running Tomcat 5.0.28 and my Connector in the Tomcat server.xml file 
looks like:


	maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
	enableLookups="false" redirectPort="8443" acceptCount="100"
	debug="0" connectionTimeout="2" 
 	disableUploadTimeout="true" />

Is the connectionTimeout value the one that might be contributing to this 
behaviour?

Are there any other timeout settings that might affect this?
Thanks!
Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.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: multiple ips, multiple ssl certificates and port forwarding

2005-01-17 Thread rk
unfortunately this does not seem to solve the problem ... but results in 
the following error (as the given keystore cannot be used)

Jan 17, 2005 4:59:29 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-62.116.64.7-8080
Jan 17, 2005 4:59:29 PM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.io.FileNotFoundException: /home/essence/.keystore (No such file or 
directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:106)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:276)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:220)
at 
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE14SocketFactory.java:143)
at 
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:109)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:98)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:261)
at 
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:137)
at 
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1238)
at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:532)
at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2199)
at org.apache.catalina.startup.Catalina.start(Catalina.java:462)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
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:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Catalina.start: LifecycleException:  Protocol handler initialization 
failed: java.io.FileNotFoundException: /home/essence/.ke
ystore (No such file or directory)
LifecycleException:  Protocol handler initialization failed: 
java.io.FileNotFoundException: /home/essence/.keystore (No such
file or directory)
at 
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1240)
at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:532)
at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2199)
at org.apache.catalina.startup.Catalina.start(Catalina.java:462)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
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:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Catalina.stop: LifecycleException:  This server has not yet been started
LifecycleException:  This server has not yet been started

At 16:35 17.01.2005, you wrote:
I think you have an error in your server.xml. The path to the keystore and 
other SSL fields are in the Factory element instead of the connector element.



   port="8443" minProcessors="5" maxProcessors="30"
   address="100.100.100.3"
   enableLookups="true"
   acceptCount="30" debug="0" scheme="https" secure="true"
   useURIValidationHack="false" disableUploadTimeout="true">
  
   keystoreFile="/home/essence/essence/KEYS/c.keystore"
   keystorePass="xxx"
   clientAuth="false" protocol="TLS" />


Should read:


   port="8443" minProcessors="5" maxProcessors="30"
   address="100.100.100.3"
   enableLookups="true"
   acceptCount="30" debug="0" scheme="https" secure="true"
   useURIValidationHack="false" disableUploadTimeout="true">
   keystoreFile="/home/essence/essence/KEYS/c.keystore"
   keystorePass="xxx"
   clientAuth="false" protocol="TLS" 


Doug
-
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: precompilation trouble

2005-01-17 Thread Tim Funk
Ahh. Here is your issue:
if (beanName == null) {
try {
Class bean = ctxt.getClassLoader().loadClass(klass);
int modifiers = bean.getModifiers();
if (!Modifier.isPublic(modifiers) ||
Modifier.isInterface(modifiers) ||
Modifier.isAbstract(modifiers)) {
throw new Exception("Invalid bean class modifier");
}
// Check that there is a 0 arg constructor
bean.getConstructor(new Class[] {});
generateNew = true;
} catch (Exception e) {
// Cannot instantiate the specified class
if (ctxt.getOptions().getErrorOnUseBeanInvalidClassAttribute()) {
err.jspError(n, "jsp.error.invalid.bean", klass);
}
}
}
At compile time - jasper is checking that the default constructor of a bean 
may be invoked. By invoking the constructor at compile time - the class is 
loaded by the JVM. This will in turn cause the JVM to call any static 
initializers. (In which you have)

-Tim
Marcus Beyer wrote:
Tim Funk schrieb:
There here, but your 1st post was a on a Friday afternoon. And the 
errors were not very clear. Stack traces and a better description is 
probably in order.

I see :-)
=== description ===
I am using the ant script I found on page
. The 
relevant software I use is Tomcat 5.0.26 (the one that comes with JBoss 
3.2.5) and JSF 1.1_01 reference implementation (the latest release).

BTW: Is there a way to let Tomcat do the job of JSP compilation on 
deployment? I mean without the need of visiting each page manually?

=== stack trace ===
  [jasper2] SCHWERWIEGEND: java.lang.NullPointerException
  [jasper2] java.lang.RuntimeException: java.lang.NullPointerException
  [jasper2] at MyHelper.getManagedBean(ManagedBeanHelper.java:43)
  [jasper2] at MyBean.loadValues(DomainListBean.java:93)
  [jasper2] at MyBean.(DomainListBean.java:47)
  [jasper2] at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  [jasper2] at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) 

  [jasper2] at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) 

  [jasper2] at 
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
  [jasper2] at java.lang.Class.newInstance0(Class.java:308)
  [jasper2] at java.lang.Class.newInstance(Class.java:261)
  [jasper2] at 
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1212) 

  [jasper2] at 
org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
  [jasper2] at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
  [jasper2] at 
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
  [jasper2] at 
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
  [jasper2] at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
  [jasper2] at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
  [jasper2] at 
org.apache.jasper.compiler.Generator.generate(Generator.java:3261)
  [jasper2] at 
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
  [jasper2] at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
  [jasper2] at org.apache.jasper.JspC.processFile(JspC.java:776)
  [jasper2] at org.apache.jasper.JspC.execute(JspC.java:905)
  [jasper2] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  [jasper2] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

  [jasper2] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 

  [jasper2] at java.lang.reflect.Method.invoke(Method.java:324)
  [jasper2] at 
org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:124)
  [jasper2] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
  [jasper2] at org.apache.tools.ant.Task.perform(Task.java:364)
  [jasper2] at org.apache.tools.ant.Target.execute(Target.java:301)
  [jasper2] at org.apache.tools.ant.Target.performTasks(Target.java:328)
  [jasper2] at 
org.apache.tools.ant.Project.executeTarget(Project.java:1215)
  [jasper2] at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:379) 

  [jasper2] at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:135) 

  [jasper2] Caused by: java.lang.NullPointerException
  [jasper2] at MyHelper.getManagedBean(ManagedBeanHelper.java:36)
  [jasper2] ... 32 more
thanx!
Marcus
-
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: web.xml parsing error SEVERE

2005-01-17 Thread Carlos Martins
One more thing you might want to consider: The web app was working fine until 
the server admin did an upgrade on the cpanel app that's what started this 
all...



-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: segunda-feira, 17 de Janeiro de 2005 15:38
To: Tomcat Users List
Subject: RE: web.xml parsing error SEVERE

personally it looks ok to me ;) probably a character out of place. i would try 
this ..

1) run it through an XML validator
2) gradually remove elements and see when the error goes away. start with the 
servlet mappings and servlets and continue ...

A.

> -Original Message-
> From: Carlos Martins [mailto:[EMAIL PROTECTED]
> Sent: 17 January 2005 15:31
> To: tomcat-user@jakarta.apache.org
> Subject: web.xml parsing error SEVERE
> 
> 
> Dear subscribers,
> 
> I am having a strange problem starting tomcat.
> Catalina.out says I have an error at the closing tag 
> 
> Any clue on what the problem might be?
> 
> Your comments will be most appreciated.
> 
> Sincerely yours
> Carlos
> 
> The error reads as follows:
> Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 949 ms Jan 17, 2005 12:01:28 PM
> org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Jan 17, 2005 12:01:28 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Jan 17, 2005
> 12:01:28 PM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.ContextConfig
> defaultConfig
> INFO: No default web.xml
> Jan 17, 2005 12:01:28 PM org.apache.commons.digester.Digester 
> endElement
> SEVERE: End event threw exception
> java.lang.ClassNotFoundException: org.apache.catalina.Container
>   at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC
> lassLoader
> .java:1340)
>   at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC
> lassLoader
> .java:1189)
>   at
> org.apache.commons.digester.SetNextRule.end(SetNextRule.java:243)
>   at org.apache.commons.digester.Rule.end(Rule.java:276)
>   at
> org.apache.commons.digester.Digester.endElement(Digester.java:1058)
>   at
> org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
>   at
> org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(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.XMLDocumentFragmentScannerImpl.scanEndE
> lement(Unk
> nown Source)
>   at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragment
> ContentDis
> patcher.dispatch(Unknown Source)
>   at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocu
> ment(Unkno
> wn 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:1548)
>   at
> org.apache.catalina.startup.ContextConfig.applicationConfig(Co
> ntextConfi
> g.java:263)
>   at
> org.apache.catalina.startup.ContextConfig.start(ContextConfig.
> java:624)
>   at
> org.apache.catalina.startup.ContextConfig.lifecycleEvent(Conte
> xtConfig.j
> ava:216)
>   at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
> ifecycleSu
> pport.java:119)
>   at
> org.apache.catalina.core.StandardContext.start(StandardContext
> .java:4290
> )
>   at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
>   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.j
> ava:2313)
>   at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.jav
> a:39)
>   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessor
> Impl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:324)
>   at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
>   at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
> Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.ContextConfig
> applicationConfig
> SEVERE: Parse error in appli

RE: web.xml parsing error SEVERE

2005-01-17 Thread Allistair Crossley
personally it looks ok to me ;) probably a character out of place. i would try 
this ..

1) run it through an XML validator
2) gradually remove elements and see when the error goes away. start with the 
servlet mappings and servlets and continue ...

A.

> -Original Message-
> From: Carlos Martins [mailto:[EMAIL PROTECTED]
> Sent: 17 January 2005 15:31
> To: tomcat-user@jakarta.apache.org
> Subject: web.xml parsing error SEVERE
> 
> 
> Dear subscribers,
> 
> I am having a strange problem starting tomcat.
> Catalina.out says I have an error at the closing tag 
> 
> Any clue on what the problem might be?
> 
> Your comments will be most appreciated.
> 
> Sincerely yours
> Carlos
> 
> The error reads as follows:
> Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 949 ms Jan 17, 2005 12:01:28 PM
> org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Jan 17, 2005 12:01:28 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Jan 17, 2005
> 12:01:28 PM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.ContextConfig
> defaultConfig
> INFO: No default web.xml
> Jan 17, 2005 12:01:28 PM org.apache.commons.digester.Digester 
> endElement
> SEVERE: End event threw exception
> java.lang.ClassNotFoundException: org.apache.catalina.Container
>   at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC
> lassLoader
> .java:1340)
>   at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC
> lassLoader
> .java:1189)
>   at
> org.apache.commons.digester.SetNextRule.end(SetNextRule.java:243)
>   at org.apache.commons.digester.Rule.end(Rule.java:276)
>   at
> org.apache.commons.digester.Digester.endElement(Digester.java:1058)
>   at
> org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
>   at
> org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(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.XMLDocumentFragmentScannerImpl.scanEndE
> lement(Unk
> nown Source)
>   at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragment
> ContentDis
> patcher.dispatch(Unknown Source)
>   at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocu
> ment(Unkno
> wn 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:1548)
>   at
> org.apache.catalina.startup.ContextConfig.applicationConfig(Co
> ntextConfi
> g.java:263)
>   at
> org.apache.catalina.startup.ContextConfig.start(ContextConfig.
> java:624)
>   at
> org.apache.catalina.startup.ContextConfig.lifecycleEvent(Conte
> xtConfig.j
> ava:216)
>   at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
> ifecycleSu
> pport.java:119)
>   at
> org.apache.catalina.core.StandardContext.start(StandardContext
> .java:4290
> )
>   at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
>   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.j
> ava:2313)
>   at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.jav
> a:39)
>   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessor
> Impl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:324)
>   at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
>   at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
> Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.ContextConfig
> applicationConfig
> SEVERE: Parse error in application web.xml
> java.lang.ClassNotFoundException: org.apache.catalina.Container
>   at
> org.apache.commons.digester.Digester.createSAXException(Digest
> er.java:25
> 40)
>   at
> org.apache.commons.digester.Digester.createSAXException(Digest
> er.java:25
> 66)
>   at
> org.apache.commons.digester.Digester.endElement(Digester.java:1061)
>   at

Re: multiple ips, multiple ssl certificates and port forwarding

2005-01-17 Thread Parsons Technical Services
I think you have an error in your server.xml. The path to the keystore and 
other SSL fields are in the Factory element instead of the connector 
element.



   port="8443" minProcessors="5" maxProcessors="30"
   address="100.100.100.3"
   enableLookups="true"
   acceptCount="30" debug="0" scheme="https" secure="true"
   useURIValidationHack="false" disableUploadTimeout="true">
  
   keystoreFile="/home/essence/essence/KEYS/c.keystore"
   keystorePass="xxx"
   clientAuth="false" protocol="TLS" />



Should read:


   port="8443" minProcessors="5" maxProcessors="30"
   address="100.100.100.3"
   enableLookups="true"
   acceptCount="30" debug="0" scheme="https" secure="true"
   useURIValidationHack="false" disableUploadTimeout="true">
   keystoreFile="/home/essence/essence/KEYS/c.keystore"
   keystorePass="xxx"
   clientAuth="false" protocol="TLS" 


Doug 


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


web.xml parsing error SEVERE

2005-01-17 Thread Carlos Martins
Dear subscribers,

I am having a strange problem starting tomcat.
Catalina.out says I have an error at the closing tag 

Any clue on what the problem might be?

Your comments will be most appreciated.

Sincerely yours
Carlos

The error reads as follows:
Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 949 ms Jan 17, 2005 12:01:28 PM
org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 17, 2005 12:01:28 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Jan 17, 2005
12:01:28 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.ContextConfig
defaultConfig
INFO: No default web.xml
Jan 17, 2005 12:01:28 PM org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.Container
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1340)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1189)
at
org.apache.commons.digester.SetNextRule.end(SetNextRule.java:243)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(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.XMLDocumentFragmentScannerImpl.scanEndElement(Unk
nown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn 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:1548)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfi
g.java:263)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:624)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j
ava:216)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:119)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4290
)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
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(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Jan 17, 2005 12:01:28 PM org.apache.catalina.startup.ContextConfig
applicationConfig
SEVERE: Parse error in application web.xml
java.lang.ClassNotFoundException: org.apache.catalina.Container
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:25
40)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:25
66)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1061)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(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.XMLDocumentFragmentScannerImpl.scanEndElement(Unk
nown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apa

Re: precompilation trouble

2005-01-17 Thread Marcus Beyer
Marcus Beyer schrieb:
=== description ===
I am using the ant script I found on page
. 
Sorry, I mean this one:

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


Long running requests and timeouts?

2005-01-17 Thread Andrzej Jan Taramina
I have a situation where some requests that get sent to Tomcat are very long 
running (basically batch operations).  I've been testing with a request that 
takes just over 7 minutes to process and returns and XML document as a 
response.

The problem I'm having is that the response gets truncated.  It's always 
truncated at a consistent spot (3207 characters for some reason, that's what 
Firefox reports).

Shorter running requests don't truncate anything, regardless of how long the 
response might be.

I'm running Tomcat 5.0.28 and my Connector in the Tomcat server.xml file 
looks like:



Is the connectionTimeout value the one that might be contributing to this 
behaviour?

Are there any other timeout settings that might affect this?

Thanks!

Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


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



Re: precompilation trouble

2005-01-17 Thread Marcus Beyer
Tim Funk schrieb:
There here, but your 1st post was a on a Friday afternoon. And the 
errors were not very clear. Stack traces and a better description is 
probably in order.
I see :-)
=== description ===
I am using the ant script I found on page
. The 
relevant software I use is Tomcat 5.0.26 (the one that comes with JBoss 
3.2.5) and JSF 1.1_01 reference implementation (the latest release).

BTW: Is there a way to let Tomcat do the job of JSP compilation on 
deployment? I mean without the need of visiting each page manually?

=== stack trace ===
  [jasper2] SCHWERWIEGEND: java.lang.NullPointerException
  [jasper2] java.lang.RuntimeException: java.lang.NullPointerException
  [jasper2] at MyHelper.getManagedBean(ManagedBeanHelper.java:43)
  [jasper2] at MyBean.loadValues(DomainListBean.java:93)
  [jasper2] at MyBean.(DomainListBean.java:47)
  [jasper2] at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  [jasper2] at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
  [jasper2] at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
  [jasper2] at 
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
  [jasper2] at java.lang.Class.newInstance0(Class.java:308)
  [jasper2] at java.lang.Class.newInstance(Class.java:261)
  [jasper2] at 
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1212)
  [jasper2] at 
org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
  [jasper2] at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
  [jasper2] at 
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
  [jasper2] at 
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
  [jasper2] at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
  [jasper2] at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
  [jasper2] at 
org.apache.jasper.compiler.Generator.generate(Generator.java:3261)
  [jasper2] at 
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
  [jasper2] at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
  [jasper2] at org.apache.jasper.JspC.processFile(JspC.java:776)
  [jasper2] at org.apache.jasper.JspC.execute(JspC.java:905)
  [jasper2] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  [jasper2] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  [jasper2] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  [jasper2] at java.lang.reflect.Method.invoke(Method.java:324)
  [jasper2] at 
org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:124)
  [jasper2] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
  [jasper2] at org.apache.tools.ant.Task.perform(Task.java:364)
  [jasper2] at org.apache.tools.ant.Target.execute(Target.java:301)
  [jasper2] at org.apache.tools.ant.Target.performTasks(Target.java:328)
  [jasper2] at 
org.apache.tools.ant.Project.executeTarget(Project.java:1215)
  [jasper2] at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:379)
  [jasper2] at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:135)
  [jasper2] Caused by: java.lang.NullPointerException
  [jasper2] at MyHelper.getManagedBean(ManagedBeanHelper.java:36)
  [jasper2] ... 32 more

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


Re: Charater limit in servlet names

2005-01-17 Thread QM
On Mon, Jan 17, 2005 at 08:30:44PM +0530, Akhthar Parvez. K wrote:
: I am wondering to know if there is any limit in maximum number of characters 
: in a servlet name. The problem is, I have a servlet called "test" which was 
: working fine. I just changed the servlet name to "testingpruposetest" and 
: it's not working. I again changed the name to "testing" and the servlet is 
: working fine now.

Problems like this are much easier to resolve when we can all see your
web.xml.  =)

Sounds like a typo.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: Charater limit in servlet names

2005-01-17 Thread Allistair Crossley
hi, 

this will be something else like a servlet-mapping problem, don't forget you 
change the servlet-name in both the servlet definintion and the servlet-mapping 
also.

A.

> -Original Message-
> From: Akhthar Parvez. K [mailto:[EMAIL PROTECTED]
> Sent: 17 January 2005 15:01
> To: Tomcat Users List
> Subject: Charater limit in servlet names
> 
> 
> Hi All,
> 
> I am wondering to know if there is any limit in maximum 
> number of characters 
> in a servlet name. The problem is, I have a servlet called 
> "test" which was 
> working fine. I just changed the servlet name to 
> "testingpruposetest" and 
> it's not working. I again changed the name to "testing" and 
> the servlet is 
> working fine now.
> 
> Please note that I faced the problem when I changed the 
> servlet name...not the 
> URL name or class name. I did not touch on them.
> 
> -- 
> With Regards,
> 
> Akhthar Parvez.K
> System Administrator
> Carmatec IT Solutions Pvt Ltd.
> 1st Block, Koramangala,
> Bangalore
> -
> NOTHING IS IMPOSSIBLE
> Because Impossible itself says
> I'M POSSIBLE
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



Re: Charater limit in servlet names

2005-01-17 Thread birendar . waldiya
Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  1   2   >