Re: Long running requests and timeouts...resolved...

2005-01-26 Thread Andrzej Jan Taramina
Just FYI to those that were following this thread, this was a Cocoon (2.1.5) 
issue that caused this, not Tomcat.

Turns out that the Cocoon 2.1.5 ResourceReader sets some response headers 
willy nilly. 

If you have another component that uses a resolver to access a pipeline that 
uses the reader (eg. using the cocoon: pseudo protocol, in our case it was a 
custom PDF concatenation serializer that called out to a sub-pipeline to get 
a separator page pdf), then the reader sets the Content-Length http reponse 
header in the original response object.  If the originating 
component/pipeline generates output that is longer than what the reader 
grabbed, then it gets truncated.  Not sure why Cocoon doesn't create a new 
response object when you try to resolve a local "cocoon:/" resource, but it 
doesn't.

Creating a customized ResourceReader with all response header setting 
commented out resolved the issue for me.

Andrzej


> 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.  It always sends back exactly 3207 characters
> in the response body and this is consistent using Firefox or a commons-
> httpClient based script.
> 
> 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" 
> disableUploadTimeout="true"
>  tcpNoDelay="true"
> connectionLinger="-1"
> connectionTimeout="600"
> connectionUploadTimeout="600"
> keepAlive="true"
> maxKeepAliveRequests="-1"
>  serverSocketTimeout="0"/>
> 
> I've tried all sorts of timeout values in the aboveincluding zero values,
> but the behaviour is consistent. Long running invocations truncate the
> response body to 3207 characters.  I've also tried changing the client side
> timeout values, but again, to no avail.
> 
> I'm kinda stumped as to what might cause this, especially given the very
> consistent response body length that is always returned.  Almost seems like
> some strange buffering issue that is timer-related.
> 
> Any ideas?


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]



Long running requests and timeouts?

2005-01-25 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.  It always sends back exactly 3207 characters 
in the response body and this is consistent using Firefox or a commons-
httpClient based script.

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:



I've tried all sorts of timeout values in the aboveincluding zero values, 
but the behaviour is consistent. Long running invocations truncate the 
response body to 3207 characters.  I've also tried changing the client side 
timeout values, but again, to no avail.

I'm kinda stumped as to what might cause this, especially given the very 
consistent response body length that is always returned.  Almost seems like 
some strange buffering issue that is timer-related.

Any ideas?
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: How to run servlet for every 30 minutes in Tomcat 4.1.30

2005-01-19 Thread Andrzej Jan Taramina
> Will be the the RUN-AT-paramter evaluated by Tomcat 5.0x or by anybody else?

Use an external scheduler like Quartz or Flux.


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



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]



Long running requests and timeouts?

2005-01-13 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]



JK2: mapping urls from Apache to Tomcat

2004-10-25 Thread Andrzej Jan Taramina
Still hoping for some enlightenment on this

Douglas WF Acheson has said late last year:

> # Define the Manager proxy that comes with Tomcat
> [uri:/tomcat/manager/*]
> context=/manager
> info=Manager prefix mapping
> 
> But, after frustrating attempts I cannot seem to get it correct.  I have
> search the mail archives and a few people have asked similar questions, but I
> have not see any replies.  Hope someone can help me ...

I'm trying to do the same thing. I want Apache/JK2 to trap a specific URI 
(tomcat/manager/* in this example), but to map it to something else (eg. 
"manager") before it sends the request on to Tomcat through the JK 
connection.

The context parameter shown above in workers2.properties does not do this, in 
fact, who knows what it does. I agree with Doug that the JK2 docs are 
abysmal. 

Anyone figured out a way to do such URI mapping using JK2?  Is it even 
possible?

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]



Tomcat -> Apache with JK2: mapping urls...

2004-10-08 Thread Andrzej Jan Taramina
Douglas WF Acheson has said late last year:

> # Define the Manager proxy that comes with Tomcat
> [uri:/tomcat/manager/*]
> context=/manager
> info=Manager prefix mapping
> 
> But, after frustrating attempts I cannot seem to get it correct.  I have
> search the mail archives and a few people have asked similar questions, but I
> have not see any replies.  Hope someone can help me ...

I'm trying to do the same thing. I want Apache/JK2 to trap a specific URI 
(tomcat/manager/* in this example), but to map it to something else (eg. 
"manager") before it sends the request on to Tomcat through the JK 
connection.

The context parameter shown above in workers2.properties does not do this, in 
fact, who knows what it does. I agree with Doug that the JK2 docs are 
abysmal. 

Anyone figured out a way to do such URI mapping using JK2?  Is it even 
possible?

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]



Tomcat 5.0.18 with connector to IIS?

2004-02-06 Thread Andrzej Jan Taramina
Has anyone got Tomcat 5.0.18 front-ended with IIS using a connector?

If so, which connector/version are you using.  Any config info and hints on 
how to set this up (the docs on connectors are pretty confusing sometimes) 
would be very much appreciated.

Please copy responses to [EMAIL PROTECTED] if you could.

Many 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: Help with JK2 and Apache 2.0.47

2003-09-09 Thread Andrzej Jan Taramina
Jeremy:

> I'm finding the documentation out on the apache site to be a little slim
> on JK2.  Especially in terms of building the .so/.dll file.  Is this
> code production ready?  I'm running an apache (2.0.47) installation and
> a tomcat (4.1.27) installation on a windows 2000 server machine,
> communicating over JK.  Recently I noticed (after looking in my
> modjk.log file) that I was receiving the following error with JK:

That is exactly the setup that I am running, and I haven't had any troubles 
with JK2 at all.  You do need to have the right version of the JK2 dll 
though.

I'll email you the version of the mod_jk2.so file that I am using in a 
private email.  Maybe that will help.


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]



TC 4.1.18 + Apache 2.0.44 + JK2 2.0.43...

2003-01-23 Thread Andrzej Jan Taramina
Just installed Apache 2.0.44 on my Windoze server box.

The combo of TC 4.1.18 + Apache 2.0.44 + JK2 2.0.43 seems to be working 
just fine.

FYI to those that might want to try it.

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


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




mod_jk2-2.0.43.so with Apache 2.0.44?

2003-01-22 Thread Andrzej Jan Taramina
Anyone know if the current mod_jk2-2.0.43.so module will work with the 
recently posted Apache Apache 2.0.44 release?

Thanks!

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


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




Re: Jndi.properties file

2003-01-14 Thread Andrzej Jan Taramina
> when i deploy the war  to Tomcat,  and want to get my entity bean I can't
> find the Contex where my entity bean is.

I ran into the same problem with JBoss and Tomcat running in separate 
JVM's.

> Where can i put my jndi.properties file. 
> Any ideas???

Yup.try something like this:

   Properties props = new Properties();

   props.load( servlet.getServletContext().getResourceAsStream( 
  "/WEB-INF/classes/jndi.properties" ) );

   InitialContext ctx = new InitialContext( props );

Put your jndi.properties file in the  specified subdirectory and then use the ctx 
as normal for an Entity Bean.

However, I must comment on your using an Entity bean as a remotely 
accessible component being accessed by a servlet or JSP.  For scalable 
systems, this is a poor design practice.  Best to "hide" the entity beans behind 
a service-oriented session bean facade.


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


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




mod_jk2 with Apache2 & JBoss/Tomcat 4.1.12 bundle?

2002-12-18 Thread Andrzej Jan Taramina
Has anyone managed to get the jk2 connector working with the bundled 
JBoss/Tomcat 4.1.12 release?

Any tricks/hints?  We're having trouble with it...

Thanks!

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


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




RE: Warp or Coyotte ? I'm so bad in my choice....

2002-12-16 Thread Andrzej Jan Taramina
> In my opinion, JK.  Definitely not WARP.

I would concur with John's recommendation.  JK seems to be more stable, 
more accepted and has more people working on it.  Warp has some fatal bugs 
in it on Windows platforms that make it unuseable, with no intention on the part 
of the developers to fix the bugs.


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


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




RE: Deleting multiple responses (was: Enough please!]

2002-12-10 Thread Andrzej Jan Taramina
> I have had to spend far too much time deleting
> the hundred or so reponses to this thread.

Change your subscription to digest mode.  End of problem.


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


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




Re: mod_webapp status

2002-12-04 Thread Andrzej Jan Taramina
[EMAIL PROTECTED]> Just a quickie - is mod_webapp supported? It seems a 
bit light on
> documentation on the Tomcat site, maybe I'm missing an obvious link?

IMNSHO, mod_webapp is dead.  The author(s) know of a serious bug on 
Windows platforms, but are totally unwilling to fix it, thus making mw useless 
on Windoze servers.  After wasting a lot of time trying to get mw working, I 
switched to jk2...which works like a charm.

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


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




RE: Tomcat with external JBoss (JNDI problems)...Workaround...

2002-11-25 Thread Andrzej Jan Taramina
I've come up with a workaround to the problem that Tomcat servlets can't seem to find 
the jndi.properties file and 
thus connect to an external JBoss server.

Hardcoding the properties works, but is ugly since then your code is tied to the 
specific location of the JBoss 
server.and thus requries code changes and a recompile to deploy elsewhere.

Michael's suggestion of putting the jndi info into the web.xml file would work, but 
has the disadvantage of being yet 
another detail that is not standard that deployers would have to look into.

My workaround let's you put your jndi.properties file into /WEB-INF/classes as you 
would expectand that's all you 
need do.  The code is quite simple:

Properties props = new Properties();

props.load( servlet.getServletContext().getResourceAsStream( 
"/WEB-INF/classes/jndi.properties" ) );

InitialContext  ctx = new InitialContext( props );

All it requires is that you have a reference to the servlet so you can do the 
getServletContext() call.  That was a bit of 
a PITA for me...since the jmx-console code did not pass this into the class that 
needed the JNDI context...but that 
was pretty easily fixed.

I still think it should read the jndi.properties file without this workaround!

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


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




RE: Tomcat with external JBoss (JNDI problems)...Workaround...

2002-11-22 Thread Andrzej Jan Taramina
I've come up with a workaround to the problem that Tomcat servlets can't seem to find 
the jndi.properties file and 
thus connect to an external JBoss server.

Hardcoding the properties works, but is ugly since then your code is tied to the 
specific location of the JBoss 
server.and thus requries code changes and a recompile to deploy elsewhere.

Michael's suggestion of putting the jndi info into the web.xml file would work, but 
has the disadvantage of being yet 
another detail that is not standard that deployers would have to look into.

My workaround let's you put your jndi.properties file into /WEB-INF/classes as you 
would expectand that's all you 
need do.  The code is quite simple:

Properties props = new Properties();
props.load( servlet.getServletContext().getResourceAsStream( 
"/WEB-INF/classes/jndi.properties" ) );
InitialContext  ctx = new InitialContext( props );

All it requires is that you have a reference to the servlet so you can do the 
getServletContext() call.  That was a bit of 
a PITA for me...since the jmx-console code did not pass this into the class that 
needed the JNDI context...but that 
was pretty easily fixed.

I still think it should read the jndi.properties file without this workaround!

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


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




RE: Tomcat with external JBoss (JNDI problems)...

2002-11-22 Thread Andrzej Jan Taramina
> I ran into the same problem and decided to address this by making all of
> the parameters JNDI environment variables and configuring those params in
> my web.xml file.  I can easily change the configuration by commenting out
> or changing the environment entries in my web.xml file.  Eventually, I
> want to run with the integrated JBoss and Tomcat solution, but I had some
> problems with them running together and decided to run them separately and
> use this configuration until I can get the integrated solution running
> correctly.

I'm looking at a similar approach...but instead I want to manually read the 
jndi.properties file and then use it to build the properties object passed to the 
InitialContext constructor.
Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


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




RE: Tomcat with external JBoss (JNDI problems)...

2002-11-22 Thread Andrzej Jan Taramina
> Copy %JBOSS_HOME%/client/[jboss-client.jar,jboss-common-client.jar,
> jbosssx-client.jar, jnp-client.jar, jboss-j2ee.jar, and log4j.jar] to
> %CATALINA_HOME%/shared/lib.  

Doesn't work.it still does not pick up my JBoss-specific jndi.properties file.  
I've got that file in the WEB-INF/classes and the shared/classes directories...to 
no avail.

> This works for me:
> 
> // Try to find each of these individual parameters 
> // and construct the properties
> // object appropriately
> java.util.Properties p = new java.util.Properties();
> 
> p.put(InitialContext.INITIAL_CONTEXT_FACTORY,
>   "org.jnp.interfaces.NamingContextFactory");
> p.put(InitialContext.URL_PKG_PREFIXES,
> "org.jboss.naming:org.jnp.interfaces");
> p.put(InitialContext.PROVIDER_URL,"yourservername");
> InitialContext context = new InitialContext(p);
> 
> 
> After that you can do your EJB lookup's with that context.

That works for me too Michaelhas for some time now.  The issue I have with 
it is that I don't want to hard-code the JBoss server URL's and such into my 
code, since then the servlet can't be deployed by others with different setups 
without a code change and a recompile.

What I am trying to figure out is how to just do a:

   InitialContext context = new InitialContext();

call...without the hardcoded properties object....and have it pick up the 
properties from the jndi.properties file...like it's supposed to.

Thanks!


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


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




Tomcat with external JBoss (JNDI problems)...

2002-11-22 Thread Andrzej Jan Taramina
I've got Tomcat 4.1.12 and JBoss 3.0.4 running on separate machines/VMs.

I've put a jndi.properties file pointing to the JBoss JNDI server in my WEB-
INF/classes directorybut my servlet does not pick it up for some 
reasonand just grabs Tomcats JNDI instance instead.

Anyone know how to set this up so my servlet can get an IntialContext that 
points to the JBoss server (that is, so that it finds the jndi.properties file)?

Thanks!


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


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




Servlet InitialContect (jndi.properties) pointing to external JBoss JNDI?

2002-11-21 Thread Andrzej Jan Taramina
I've got Tomcat 4.1.12 and JBoss 3.0.4 running on separate machines/VMs.

I've put a jndi.properties file pointing to the JBoss JNDI server in my WEB-
INF/classes directorybut my servlet does not pick it up for some 
reasonand just grabs Tomcats JNDI instance instead.

Anyone know how to set this up so my servlet can get an IntialContext that 
points to the JBoss server (that is, find the jndi.properties file)?

Thanks!


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


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




Re: mod_webapp

2002-03-29 Thread Andrzej Jan Taramina

> Searching the jakarta site is like trying to find a needle in a haystack.  
> Does anyone have the url for an already built mod_webapp for windows 
> machines?

Far as I know, the current code for mod_webapp on a windows platform still have a 
critical bug that causes it to block when sending binary (eg. image) data between 
Apache and Tomcat.  Just FYI 


...Andrzej

Chaeron Corporation
http://www.chaeron.com



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Apache & Tomcat as Service on Win2k

2002-03-07 Thread Andrzej Jan Taramina

> I am having severe difficulties getting Apache (1.3) + Tomcat 4.0.3 to run
> as services together on either Win2k or WinXP.

> How can I ensure Apache starts running later?

You will have to go into the Win Registry and find the key 
HKLM/System/CurrentControlSet/Services.  Then locate the Apache service 
entry.and change it so that it has a dependency on the Tomcat service.  

To figure out how to format a dependency entry, just mimic another service 
that has a dependency.  Basically you add a key DependOnService (check out 
the RasMan service if you have RAS installed).

I believe this will take care of the order in which the services are started for 
you at boot time.

Caveat:  Edit the Windows Registry at your OWN RISK.  I will not be 
responsible for any damage you might do to your windows system by mucking 
about incorrectly.
Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Warp Connector still broken in 4.0.3 on Win platforms...

2002-03-03 Thread Andrzej Jan Taramina

Just an FYI...I installed Tomcat 4.0.3 and the Warp Connector (mod_webapp) 
still dies when trying to transmit binary (eg. gif images) data between Tomcat 
and Apache 1.3.23 on a Windows box.

Rebuilt the connector from latest snapshot (Sunday)...same problem.

Sure wish someone would look at this.

This is a posted bug:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6621


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


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Nice Tomcat+apache beginner site

2002-02-28 Thread Andrzej Jan Taramina

> when i try http://localhost/examples/, it correctly gives me a directory
> listing generated by the Tomcat server, but when I try to go to any of the
> subdirectories (eg http://localhost/examples/servlets/), I see a 302
> response in my Apache access log and the request eventually fails.
> 
> Any ideas?

You running on a windows platform?  If so, there is an outstanding bug that 
causes binary transfers between Tomcat and Apache to block (this includes 
transmission of images like .gifs).

Bug and details are posted at:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6621

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


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Installing Tomcat 4.0.2 & JBoss 2.4.4?

2002-02-24 Thread Andrzej Jan Taramina

Is it possible to install JBoss and Tomcat separately, yet have them co-located 
in the same Vm?  (ie. have JBoss start up Tomcat)

I know you can do this with the combined release from jboss.orgbut is there 
any documentation on how to integrate the two if installing from two separate 
packages (one for JBoss and one for Tomcat)?  The problem with the 
combined release is that it does not yet include 4.0.2 of Tomcat.

Thanks!


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


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Tomcat Icons?

2002-02-24 Thread Andrzej Jan Taramina

Anyone know of a place I can find 32x32 icons for Tomcat (and JBoss, 
Apache, etc.) so I can set up convenient shortcuts to start/stop/manage the 
servers?

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


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: web connectors

2002-02-19 Thread Andrzej Jan Taramina

Remy:

> the new connector are available only for linux where can i find buil
> mod_webapp for windows Thanks in advance Remy

You'll probably have to do what I've been doing...download the source 
(snapshot, release zip or CVS) and build it yourself (it's not that hard if you 
have MS Visual-C installed and ANT).

However, as of a few days ago, under Windows the mod_webapp connector 
still had a bug trying to transmit binary data (eg. images) between Tomcat 
4.0.2 and Apache(1.3.23).


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


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




warp binary image bug with TC4.02 & A1.3.23 under Windows?

2002-02-15 Thread Andrzej Jan Taramina

Has anyone else experienced a problem using the latest mod_webapp Warp 
connector on a Windows 2K platform when trying to transmit images (binary 
files) between Tomcat 4.0.2 and Apache 1.3.23?

Still hoping to get this resolved

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


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: tomcat 4 + apache 1.3 + WarpConnection

2002-02-13 Thread Andrzej Jan Taramina

Frank said:

> I'm also stuck in this information warp.  I've tried the documented 
> solutions as well as those proposed here and and I still can't access
> examples

Yup.and 4.0.2 seems to have broken debug tracing to a log file as well.  I 
have not managed to find any combo of config settings (with host entries, 
without) that will dump debugging info from the Warp connector.

And yes, I've rebuilt the warp java classes with debug turned on, debug="4" on 
all Connectors, Hosts and verbosity="4" on the log file entry.

4.0.2 was rushed out the door IMNSHO and never should have been called a 
final release.

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


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




More info on mod_webapp problems....

2002-02-11 Thread Andrzej Jan Taramina

For some reason, Tomcat 4.02 doesn't always return a proper response 
header when it receives a GET request for an image across the Apache Warp 
(mod_webapp) connection under Windoze.

If you try to access the sample Tomcat page:  /examples/jsp/index.html

There are three images that GET's are issued for.

Here is what a correct response looked like (using the RequestDumper Valve):

authType=null
contentLength=1231
contentType=image/gif
header=Last-Modified=Sun, 10 Feb 2002 16:09:24 GMT
 2002-02-11 20:25:15 
header=ETag="1231-1013357364000" 
message=OK
remoteUser=null
status=200

However the next image returns the following incorrect response:

authType=null
contentLength=-1
contentType=null
message=Not Modified
remoteUser=null
status=304

Very strange.  I'm trying to dig further into why this is happening...but with the 
new Released 4.0.2 Tomcat I am having a devil of a time trying to turn debug 
logging on for the Warp connection.  I've recompiled the Java sources with the 
debug flag = true, and set the debug level in all the Connectors and such to 4, 
and logging verbosity to 4 as well.  But still no output to the log file. 

I suspect someone broke something in the final 4.0.2 release, since this used 
to work only a few days go.

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


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Image handling mod_webapp problem

2002-02-08 Thread Andrzej Jan Taramina

> That was a known bug eith TC 4.01.  It was fixed a few weeks ago, you should
> try a more recent version of Tomcat, such as 4.02 beta2 or even a recent 
> daily snapshot.

Nope.  Still doesn't work.

I'm running on Win2K Server(SP2).  I grabbed the latest dev snapshot of 
Tomcat 4.0.2 (Feb 8th).  Grabbed the latest sources for mod_webapp from the 
CVS tree and rebuilt libapr, mod_webapp and the warp.jar file.  Still running 
the latest release build 1.3.23 of Apache.

Still does the same thingTomcat runs fine, Apache runs fine.  But if I try to 
access an html file through the warp connection (mod_webapp) I block on one 
of the image files referenced in the tomcat examples html.

This bug has NOT been fixed yet, at least not that I can determine.  

Any ideas?

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


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: Strange mod_webapp problem with Tomcat 4.01 & Apache 1.3.23...

2002-02-08 Thread Andrzej Jan Taramina

> That was a known bug eith TC 4.01.  It was fixed a few weeks ago, you should
> try a more recent version of Tomcat, such as 4.02 beta2 or even a recent 
> daily snapshot.

I tried 4.02 beta2, and the same problem still exists in that release (Under 
windoze)images are not handled correctly across the warp connection (and 
lock up the connection).

I guess it was fixed shortly after 4.02beta2 was packaged up.  I might just wait 
for beta3, not sure I want to do a whole build of Tomcat from a daily snapshot.

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


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Addendum: Strange mod_webapp problem with Tomcat 4.01 & Apache 1.3.23...

2002-02-07 Thread Andrzej Jan Taramina

I wonder if this is one of those classic end of line translation problems (akin to 
the use of binmode in Perl on Windows systems), and somewhere in the 
datastream from Tomcat to Apache to my browser, eol translation might be the 
cause of this problem?

A

---

I've hit a very strange problem with mod_webapp linking Tomcat 4.01 & 
Apache 1.3.23 running under Win2K...I've configured everything correctly 
(according to all the docs), and built the latest mod_webapp 1.1.0. 

When I access any of the Tomcat examples directly through Tomcat (listening 
on port 8081), all works like a charm, so I know Tomcat is fine. 

When I access my web sites and perl scripts through Apache (port 8080) all 
works fine as well, so I know Apache is running fine. 

Here's the funny situationrunning the JSP's or Servlets through Apache (and 
the mod_webapp warp connector) works fineso long as they don't try to 
display the example gif images (only three of them, and small ones at that).  
Processing blocks when I try to get the images back (browser says 1 image 
downloaded, and that it is "sending request to server", obviously to get the 
next image). 

If I try to go to http://server:8080/examples/jsp/index.html (through Apache), it 
shows the html, but then blocks on getting the images.  Usually on the second 
image. 

I can get each image (again through Apache, across the Warp connection) fine 
as so:  http://pagan:8080/examples/images/code.gif   

Seems the problem is somehow related to getting multiple images.  If I change 
the examples/index.html file to only reference a single image, the problem 
goes away. 

Anyone else seen this kind of behaviour?  Is it windows specific?  

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


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Strange mod_webapp problem with Tomcat 4.01 & Apache 1.3.23...

2002-02-07 Thread Andrzej Jan Taramina

I've hit a very strange problem with mod_webapp linking Tomcat 4.01 & 
Apache 1.3.23 running under Win2K...I've configured everything correctly 
(according to all the docs), and built the latest mod_webapp 1.1.0.

When I access any of the Tomcat examples directly through Tomcat (listening 
on port 8081), all works like a charm, so I know Tomcat is fine.

When I access my web sites and perl scripts through Apache (port 8080) all 
works fine as well, so I know Apache is running fine.

Here's the funny situationrunning the JSP's or Servlets through Apache (and 
the mod_webapp warp connector) works fineso long as they don't try to 
display the example gif images (only three of them, and small ones at that).  
Processing blocks when I try to get the images back (browser says 1 image 
downloaded, and that it is "sending request to server", obviously to get the 
next image).

If I try to go to http://server:8080/examples/jsp/index.html (through Apache), it 
shows the html, but then blocks on getting the images.  Usually on the second 
image.

I can get each image (again through Apache, across the Warp connection) fine 
as so:  http://pagan:8080/examples/images/code.gif   

Seems the problem is somehow related to getting multiple images.  If I change 
the examples/index.html file to only reference a single image, the problem 
goes away.

Anyone else seen this kind of behaviour?  Is it windows specific?  

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


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>