jakarta-commons/daemon necessary for build?

2004-07-09 Thread Joel
Just built TC 5. I had to clear out \usr\share\java from an earlier
attempt when I had java 1.5 beta installed, but then it flew.

One thing worries me: 

---
D:\Program_Files\apache\jakarta-tomcat-5.0.25-srcant
Buildfile: build.xml

check.source:

check.source.depends:

get.source:

get.source.depends:

checkout.depends:
  [cvs] Caught exception: CreateProcess: cvs -d:pserver:[EMAIL 
PROTECTED]:/home/cvspublic -q -z3 checkout -P jakarta-commons/LICENSE error=2
  [cvs] Caught exception: CreateProcess: cvs -d:pserver:[EMAIL 
PROTECTED]:/home/cvspublic -q -z3 checkout -P jakarta-commons/daemon error=2

build:

...
---

I imagine it really doesn't need jakarta-commons/LICENSE. 

But what about jakarta-commons/daemon ? 

Is that exception on the cvs task going to come back to haunt me?

-- 
Joel [EMAIL PROTECTED]


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



RE: How to start a web app?

2004-07-09 Thread David . Pawson
 

-Original Message-
From: QM 
Long story short:  Tomcat does not search the webapps 
directory recursively for webapps; it loads contexts that 
are immediate children of the webapps directory.

Essential information.

I do wish someone would make that explicit in the tomcat documentation.


regards DaveP.


** snip here **

-- 
DISCLAIMER: 

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged. If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system. 

RNIB endeavours to ensure that emails and any attachments generated by 
its staff are free from viruses or other contaminants. However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments. 

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent 
those of RNIB. 

RNIB Registered Charity Number: 226227 

Website: http://www.rnib.org.uk 

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



RE: I've officially decided that JSTL is one of the worst things to ever happen to mankind

2004-07-09 Thread David . Pawson
Would you guys take this conversation off the list please?
Its heavy enough without your personal comments.

regards DaveP


** snip here **

-- 
DISCLAIMER: 

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged. If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system. 

RNIB endeavours to ensure that emails and any attachments generated by 
its staff are free from viruses or other contaminants. However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments. 

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent 
those of RNIB. 

RNIB Registered Charity Number: 226227 

Website: http://www.rnib.org.uk 

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



RE: getting Tomcat 5.0 to serve static content

2004-07-09 Thread David . Pawson
 

-Original Message-
From: Matthew Hixson 
I'm using Tomcat 5.0.26 with JBoss 3.2.4.  I'm attempting 
to upgrade from Tomcat 4.1.something that was included with 
JBoss 3.2.3.  I cannot figure out how to configure a 
context so that Tomcat will serve files from a specific 
directory.  The directory contains images and should be 
accessible outside of any specific webapp.  The files are 
stored in /usr/local/watermarks and the URLs to them need 
to look like http://mymachine.com/watermarks/bar.jpg.
   Context path=/watermarks docBase=/usr/local/watermarks/
   I've read all the docs I could find on the Apache Tomcat 
site and used Google to find examples and I cannot find 
anything that tells me how to do this.  In the previous 
version of Tomcat I had put the above Context element 
into 
/usr/local/jboss/server/default/deploy/jbossweb-tomcat41.sar
/META-INF/
jboss-service.xml.  But in Tomcat 5.0 it looks like that 
has moved to jbossweb-tomcat50.sar/server.xml. 

If you read the docs enough times it suggests that the Context element
should be an anyName.xml, in {catalina.home}/conf/host/

Where it hides, just the Context element in an xml file per app.
(I found it useful to name the file after the app)

HTH DaveP

** snip here **


-- 
DISCLAIMER: 

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged. If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system. 

RNIB endeavours to ensure that emails and any attachments generated by 
its staff are free from viruses or other contaminants. However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments. 

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent 
those of RNIB. 

RNIB Registered Charity Number: 226227 

Website: http://www.rnib.org.uk 

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



Re: I've officially bored of your stupid blah blahs

2004-07-09 Thread Kunthar
Guys,
Everyday nearly 120 new mail drops to this list. Should we have to
listen your important blah blahs??? Why i should define bunch of filters 
at all.
Is there any moderator watches this???
Stop this and continue this lovely discussion from your private mails 
please...
Shame on you cause i have to remind you that where a hell you are...
If you agree please do not response by writing some other crap, response 
by showing your silence...

Gokhan


Ivan Jouikov wrote:
What the hell are you talking about?   I am all for java.  Java is my #1 language.
 

Oh for crying out loud Ivan!  You challanged my assertion that Java is the
number one language asking for the source of the stats and I give them
to you but you just go on whining.  Please take your trolling somewhere
else.  Get A LIFE.  and as to C++?
   

My trolling?  I don't even know what that means.  And I do have a life.
 

Huge file sizes
 

I wonder what compiler, and linking options are you using?  I do not have
a problem with my executables being huge at all.  Then again, I don't
use frameworks that are inefficeint hogs.  Sounds like the programmer.
   

Huge file sizes was said about C++ COMPARATIVELY to C.  Any program in C++ 
will be much bigger than exactly same program in C.
 

100% guaranteed memory leaks
 

Sounds like the programmer.  My code doesn't have memory leaks!  Then
again, I know how to write disciplined code, something that quick and
dirty programmers can't understand.  I also know how to use tools that
track memory leaks.
   

	Looks like you've never written a 600MB program.  

 

And lo The Heavenly Father doth rest.  And whilst He rest, His hand
accidentally brushed the keyboard and somehow keyed in the following code.
Troller ivan = new Troller();
ivan.setIrrational(true);
ivan.setOverEmotional(true);
ivan.setLife(null);
ivan.setClue(null);
ivan.setThinkingStyle(Psychosis.THINKING_STYLE_BLACK_AND_WHITE);
ivan.setDailyRoutine(new Runnable() {
   public void run() {
   while(ivan.awake()) {
   Forum target = web.surfForUnsuspectingVictims();
   if(target != null) {
   Iterator i = target.getMessages();
   while(i.hasNext()) {
   ForumPosting intelligentPosting = (Posting) i.next();
   intelligentPosting.read();
   ForumPostingReplyFactory replyFactory =
ivan.getPsychoticReponseGenerator();
   Reply reply = replyFactory.createResponse();
   while(reply.makesSense()) {
   reply.rant();
   reply.bitch();
   reply.whine();
   reply.moan();
   reply.saySomethingIrrational();
   }
   target.post(reply);
   ivan.setIQ(ivan.getIQ() - 1);
   }
   }
   }
   ivan.slapSelf(Slap.HARD);
   throw new IdiotTrollerException();
   }
});
ivan.run();
   

Hahahah :)  That was a good one.  You telling me to get a life and you have 
time to do that?  BTW
 

   Iterator i = target.getMessages();
   while(i.hasNext()) {
   

I really like how 1.5 has the for( Element e : collection ) loop.   Don't you 
agree?
 

-Original Message-
From: Ivan Jouikov [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 06, 2004 9:29 PM
To: 'Tomcat Users List'
Subject: RE: I've officially decided that JSTL is one of the worstthingsto
ever happen
Ok let's settle this argument simple.
Tonight, I'll ask my Christian Science friend to talk to Jesus, and ask
him the following:
Jesus, if EL really DOES decrease performance significantly, and should
not be used at all, please give me absolutely NO sign.  However, if EL is
a great thing and should be used by everyone, please give me a sign.
I'll report to you in the morning and let you know what was God's opinion
on that.
   

-Original Message-
From: SANTOS, DANIEL (SBCSI) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 06, 2004 4:02 PM
To: Tomcat Users List
Subject: RE: I've officially decided that JSTL is one of the
 

worstthingsto
   

ever happen
 

If this is the case then I ask you why Java has been the number one
programming language for 4 years now?
 

Source of this statistic?
   

I assumed that this was fairly common knowledge.  I remember when it
surpassed C++ in Febuary of 2000 (I thought at the time in development
hours).  Having been a Java programmer since 1997, this was a pretty big
deal for me.  I even remembered the month/year it happened (which made
 

it
   

easire for me to find this report).  So here is the original report, a
Bloor Research study from Febuary of 2000.  It even has a cute little
graph that plots the various languages-- http://www.bloor-
research.com/research_library.php?pid=282
Now that I look back at it I see that this is when the *demand* for java
skills surpassed that of C++ skills.  It looks 

Re: Integrating Tomcat and IIS

2004-07-09 Thread Tom Burke
Success in the end. Thanks to those who offered advice.

I have to say that I'm not too clear why it's working now but wasn't
before. There are a few differences in the configuration - eg, at which
level in IIS the filter is installed; the 'name' of the filter; changes
to jk2.properties - but none of these on its own seemed to make a
difference. Hopefully I can spend some time today stepping back one
difference at a time until I find what breaks it, then I'll mail that
finding to the list.

Tom Burke

- Original Message - 
From: Tom Burke [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 07, 2004 2:41 PM
Subject: Integrating Tomcat and IIS


 I sent a long email to the list on Tuesday asking for help with
problems
 I'm having intergating Tomcat with IIS. Sadly, there were no replies.
My
 email was rather long - lots of examples, config file extracts, etc -
so
 maybe recipients found it hard to digest.

 So I'll recast it as a shorter request: is there anyone on the list
who
 has succeeded in integrating Tomcat (4 or 5) with IIS (5 or 6)? If so,
 are there any tips you can pass on? Any problems you experienced and
 overcame? And if anyone else has had problems and *not* been able to
 overcome them, what were they?

 Incidentally, I was following this set of instructions:

https://www.rit.edu/~ack5504/tomcat-iis6-howto/narantugs-sengee-guide.html

 Tom Burke


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



Trouble running Tomcat using Sun's JDK1.4.2_05

2004-07-09 Thread Peter Guyatt
Hi There,

Has anyone come across this problem. All Iam am doing is starting tomcat
and then attempting to use my web app.

The exception I am getting is as follows:

Exception report

message

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

exception

org.apache.jasper.JasperException: Error allocating a servlet instance
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
54)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
at java.lang.Thread.run(Thread.java:534)


root cause

javax.servlet.ServletException: Error allocating a servlet instance
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:672)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:653)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)
at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:430)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:42)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok

Re: How to start a web app?

2004-07-09 Thread Kannan Raghu
Hey Dave,

I have one problem  Action Class

i will tell u the clean scenario.. It is related with the session
validation and invalidation in the same page..

1)  i am logging into the site and retrieved my trip details...  
2)  and i started Initial Search with the same user name and
password...coz it maintains my session..
3)  i went upto 3 steps... (ex: Review Trip page).  there it should
ask only the continue button.. i am getting it. and i logged out from
that session
4)  and in the same screen i started my initial search again..
5)  when i get into the review trip page it should ask for two
options.. one is login option and another on is continue option..
hence i logged out from the first session..

6)  But i am getting only the continue option...  when i looked into
application.log file,  it is given me the same session id and same
JSessionId...

Please tell me how can i come over this problem

here is the code change i have made to validate and invalidate the session:---

  private void validateSession( HttpServletRequest request,
HttpServletResponse response,
SessionManager sessionManager )
  throws ActionSessionException
  {
HttpSession httpSession = request.getSession();
Session sessionToken = getSession( request );

if ( isDebugEnabled() )
{
  logDebug( AbstractTpAction::validateSession( )--,
Found session token. Will try to validate it );
}

//TODO: will be replaced by 'DONT_CREATE_TP_SESSION'.
if ( sessionToken.getTpSession().getLastKnownState() ==
TpSessionState.TPNOTAVAILABLE  !isTPUsed )
{
createSession( request, response, sessionManager );
return;
}

if ( !isTPUsed )
{
  return;
}


// Copy the current session ID from cookie for any of the 888 applications
// if this isn't the first time they've validated the session.
// Their session IDs change everytime they go to the 888 home page and
// if we try to validate the new vs. old, it fails.
/*   
TpPdbResponse tpPdbResponse = null;
TpDataManager tpDataManager;
tpDataManager = (TpDataManager) lookupComponent(  TpDataManager.ROLE );



try
{
tpDataManager.retrievePDB( getSession ( request ), cookie_uid);
tpDataManager.retrievePDB( getSession ( request ), sh_SID);
tpDataManager.retrievePDB( getSession ( request ), sh_login_list);
}
catch (ManagedComponentException ex)
{
logError(AbstractTpAction: error in retirevePDB, ex);
}
finally
{
getComponentManager().release (tpDataManager);
}

*/  

  
 
HttpDataManager httpDataManager = null;
TpDataManager tpDataManager = null;
httpDataManager = ( HttpDataManager ) lookupComponent(
HttpDataManager.ROLE );
httpDataManager.getPersistentValue(request, SID);


logDebug( Cookie Value -
,httpDataManager.getPersistentValue(request, SID));

if ( httpDataManager.getPersistentValue(request, SID) == null)
{
tpDataManager = ( TpDataManager ) lookupComponent( TpDataManager.ROLE 
);
try
{
TpResponse tpResponse = tpDataManager.invalidateSession(
getSession(request) );
httpSession.invalidate();
createSession( request, response, sessionManager ); 

sessionToken = getSession( request );

request.setAttribute( FIRST_REQUEST, FIRST_REQUEST );
return; 
}catch ( ManagedComponentException ex )
{
  logError( AbstractTpAction: error in invalidation tpSession 
, ex );
}
finally
{
  getComponentManager().release( httpDataManager );
}   
}

if ( ValidateUtil.validateNotNull( sessionToken.getSessionId() ) 
sessionToken.getServiceTag().endsWith( PHONE ) )
{
  try
  {
String tpSessionId = httpDataManager.getPersistentValue( request,
 SID );
if ( ValidateUtil.validateNotNull( tpSessionId ) )
{
  sessionToken.getTpSession().setSessionId( tpSessionId );
}
  }
  finally
  {
getComponentManager().release( httpDataManager );
  }
}




 /*
if ( ValidateUtil.validateNotNull( sessionToken.getSessionId() ) 
sessionToken.getServiceTag().endsWith( PHONE ) )
{
  HttpDataManager httpDataManager = null;
  try
  {
httpDataManager = ( HttpDataManager ) lookupComponent(
HttpDataManager.ROLE );
String tpSessionId = httpDataManager.getPersistentValue( request,
   

Re: jakarta-commons/daemon necessary for build?

2004-07-09 Thread Joel
Don't you just like it when people talk to themselves.

On Fri, 09 Jul 2004 15:05:04 +0900, I wrote

 Just built TC 5. I had to clear out \usr\share\java from an earlier
 attempt when I had java 1.5 beta installed, but then it flew.
 
 One thing worries me: 
 
 ---
 D:\Program_Files\apache\jakarta-tomcat-5.0.25-srcant
 Buildfile: build.xml
 
 check.source:
 
 check.source.depends:
 
 get.source:
 
 get.source.depends:
 
 checkout.depends:
   [cvs] Caught exception: CreateProcess: cvs -d:pserver:[EMAIL 
 PROTECTED]:/home/cvspublic -q -z3 checkout -P jakarta-commons/LICENSE error=2
   [cvs] Caught exception: CreateProcess: cvs -d:pserver:[EMAIL 
 PROTECTED]:/home/cvspublic -q -z3 checkout -P jakarta-commons/daemon error=2

Okay, I found the jakarta-commons/daemon project and now I understand.

To actually use this TC5 I just built, I'm gonna need either MSVC or
cygwin to make procrun.

Okay, fine. That's why the instructions for building are under the
section for developers. I'm not offended. sniff/

;-P

-- 
Joel [EMAIL PROTECTED]


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



Re: Trouble running Tomcat using Sun's JDK1.4.2_05

2004-07-09 Thread Kannan Raghu
go ahead check ur xml files...  if there is any problem in xml files u
will get this sort of org.apache.jasper.JasperException...

like, u would have missed some tags or context path etc..

Kannan





On Fri, 9 Jul 2004 08:15:22 +0100, Peter Guyatt
[EMAIL PROTECTED] wrote:
 Hi There,
 
Has anyone come across this problem. All Iam am doing is starting tomcat
 and then attempting to use my web app.
 
 The exception I am getting is as follows:
 
 Exception report
 
 message
 
 description The server encountered an internal error () that prevented it
 from fulfilling this request.
 
 exception
 
 org.apache.jasper.JasperException: Error allocating a servlet instance
at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
 54)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:247)
at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)
at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
 va:256)
at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:643)
at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
 va:191)
at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:643)
at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
 )
at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:643)
at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
 java:171)
at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:641)
at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
 )
at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:641)
at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
 :174)
at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:643)
at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
 ction(Http11Protocol.java:392)
at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
 a:619)
at java.lang.Thread.run(Thread.java:534)
 
 root cause
 
 javax.servlet.ServletException: Error allocating a servlet instance
at
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:672)
at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
 java:653)
at
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
 er.java:432)
at
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
 .java:356)
at
 org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:430)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:42)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
 10)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
 

AW: see Tomcat deployed applications throw JMX

2004-07-09 Thread Younes El Moumen
I've Tried first to implements the ContainerServlet and use 
deployed.findDeployedApplications() but I found out in a Forum that using JMX is 
better and easier. Now I'm trying find how. Is there any examples?

-Ursprüngliche Nachricht-
Von: Younes El Moumen 
Gesendet: Mittwoch, 7. Juli 2004 17:20
An: [EMAIL PROTECTED]
Betreff: see Tomcat deployed applications throw JMX


I want to see deployed applications on Tomcat thwrow JMX. Can anybody help
me?


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: getting Tomcat 5.0 to serve static content

2004-07-09 Thread Dennis Dai
I'm not familiar with JBoss stuff but I think to make a context work, 
you'll need the WEB-INF dir and the associated web.xml ...

On 7/8/2004 10:23 PM, Matthew Hixson wrote:
I'm using Tomcat 5.0.26 with JBoss 3.2.4.  I'm attempting to upgrade  
from Tomcat 4.1.something that was included with JBoss 3.2.3.  I cannot  
figure out how to configure a context so that Tomcat will serve files  
from a specific directory.  The directory contains images and should be  
accessible outside of any specific webapp.  The files are stored in  
/usr/local/watermarks and the URLs to them need to look like  
http://mymachine.com/watermarks/bar.jpg.
   Context path=/watermarks docBase=/usr/local/watermarks/
   I've read all the docs I could find on the Apache Tomcat site and  
used Google to find examples and I cannot find anything that tells me  
how to do this.  In the previous version of Tomcat I had put the above  
Context element into  
/usr/local/jboss/server/default/deploy/jbossweb-tomcat41.sar/META-INF/ 
jboss-service.xml.  But in Tomcat 5.0 it looks like that has moved to  
jbossweb-tomcat50.sar/server.xml.  When adding the Context element to  
my server.xml I get a 404 and a description that says: The requested  
resource (/watermarks/bar.jpg) is not available.
   Anyone know how I can get this to work?
   Thanks,
 -M@


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


will ROOT (/) context, folder hello interfere with context (hello) ?

2004-07-09 Thread Ivan Jouikov










Something just popped in my
mind.



If you have a ROOT context
which has a folder named hello,



And you have a context named
hello



When you request localhost:8080/hello/



Which one are you gonna get? The ROOT context or the
hello context? I will try this
out tomorrow, but I wonder how tomcat handles this?












 
  
  Best Regards,
  
  Ivan V. Jouikov
  (206) 228-6670
  
  
 













---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
 

  


RE: I've officially bored of your stupid blah blahs

2004-07-09 Thread Ivan Jouikov
That conversation ended about 2 days ago, I dont know why are you bringing this up 
now...

 -Original Message-
 From: Kunthar [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 08, 2004 11:58 PM
 To: Tomcat Users List
 Subject: Re: I've officially bored of your stupid blah blahs
 
 Guys,
 
 Everyday nearly 120 new mail drops to this list. Should we have to
 listen your important blah blahs??? Why i should define bunch of filters
 at all.
 Is there any moderator watches this???
 Stop this and continue this lovely discussion from your private mails
 please...
 Shame on you cause i have to remind you that where a hell you are...
 If you agree please do not response by writing some other crap, response
 by showing your silence...
 
 Gokhan
 
 
 
 
 
 Ivan Jouikov wrote:
 
 What the hell are you talking about?   I am all for java.  Java is my #1
 language.
 
 
 
 
 Oh for crying out loud Ivan!  You challanged my assertion that Java is
 the
 number one language asking for the source of the stats and I give them
 to you but you just go on whining.  Please take your trolling somewhere
 else.  Get A LIFE.  and as to C++?
 
 
  My trolling?  I don't even know what that means.  And I do have a
 life.
 
 
 
 Huge file sizes
 
 
 I wonder what compiler, and linking options are you using?  I do not
 have
 a problem with my executables being huge at all.  Then again, I don't
 use frameworks that are inefficeint hogs.  Sounds like the programmer.
 
 
 
  Huge file sizes was said about C++ COMPARATIVELY to C.  Any program
 in C++ will be much bigger than exactly same program in C.
 
 
 
 100% guaranteed memory leaks
 
 
 Sounds like the programmer.  My code doesn't have memory leaks!  Then
 again, I know how to write disciplined code, something that quick and
 dirty programmers can't understand.  I also know how to use tools that
 track memory leaks.
 
 
 
  Looks like you've never written a 600MB program.
 
 
 
 And lo The Heavenly Father doth rest.  And whilst He rest, His hand
 accidentally brushed the keyboard and somehow keyed in the following
 code.
 
 Troller ivan = new Troller();
 ivan.setIrrational(true);
 ivan.setOverEmotional(true);
 ivan.setLife(null);
 ivan.setClue(null);
 ivan.setThinkingStyle(Psychosis.THINKING_STYLE_BLACK_AND_WHITE);
 
 ivan.setDailyRoutine(new Runnable() {
 public void run() {
 while(ivan.awake()) {
 Forum target = web.surfForUnsuspectingVictims();
 if(target != null) {
 Iterator i = target.getMessages();
 while(i.hasNext()) {
 ForumPosting intelligentPosting = (Posting)
 i.next();
 intelligentPosting.read();
 ForumPostingReplyFactory replyFactory =
 ivan.getPsychoticReponseGenerator();
 Reply reply = replyFactory.createResponse();
 while(reply.makesSense()) {
 reply.rant();
 reply.bitch();
 reply.whine();
 reply.moan();
 reply.saySomethingIrrational();
 }
 target.post(reply);
 ivan.setIQ(ivan.getIQ() - 1);
 }
 }
 }
 ivan.slapSelf(Slap.HARD);
 throw new IdiotTrollerException();
 }
 });
 
 ivan.run();
 
 
 
 
  Hahahah :)  That was a good one.  You telling me to get a life and
 you have time to do that?  BTW
 
 
 
 Iterator i = target.getMessages();
 while(i.hasNext()) {
 
 
 
 I really like how 1.5 has the for( Element e : collection ) loop.   Don't
 you agree?
 
 
 
 -Original Message-
 From: Ivan Jouikov [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 06, 2004 9:29 PM
 To: 'Tomcat Users List'
 Subject: RE: I've officially decided that JSTL is one of the
 worstthingsto
 ever happen
 
 
 Ok let's settle this argument simple.
 
 Tonight, I'll ask my Christian Science friend to talk to Jesus, and ask
 him the following:
 
 Jesus, if EL really DOES decrease performance significantly, and should
 not be used at all, please give me absolutely NO sign.  However, if EL
 is
 a great thing and should be used by everyone, please give me a sign.
 
 I'll report to you in the morning and let you know what was God's
 opinion
 on that.
 
 
 
 -Original Message-
 From: SANTOS, DANIEL (SBCSI) [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 06, 2004 4:02 PM
 To: Tomcat Users List
 Subject: RE: I've officially decided that JSTL is one of the
 
 
 worstthingsto
 
 
 ever happen
 
 
 
 If this is the case then I ask you why Java has been the number one
 programming language for 4 years now?
 
 
   Source of this statistic?
 
 
 
 I assumed that this was fairly common knowledge.  I remember when it
 surpassed C++ in Febuary of 2000 (I thought at the time in development
 hours).  Having been a Java programmer since 1997, this was a pretty
 big
 

Garbage Collector

2004-07-09 Thread Freddy Villalba Arias
Hi everybody,

 

What's the best / simplest way to implement a garbage collector that
starts running as soon as the web application (Tomcat) is up?

 

In my particular case, this garbage collector cleans certain records
meeting a certain criteria. The idea is quite simple: every n seconds,
the GC performs the corresponding query and deletes the records returned
by it.

 

I remember Weblogic having something like startup-classes that would be
exactly what I'm needing. Is there something similar in Tomcat? If not,
what would be the best / simplest way to implement this? I've thought
about a few options but none of them seem clean / efficient enough for
me...

 

Let me hear those thoughts!

 

Thanks in advance,

Freddy.


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

RE: Trouble running Tomcat using Sun's JDK1.4.2_05

2004-07-09 Thread Peter Guyatt
Hi There,

Thanks for the reply, what I dont understand is why it woudl work with
1.4.2_04, the only thing that has changed is the JDK.

No config changes have been made.

Thanks

Pete

-Original Message-
From: Kannan Raghu [mailto:[EMAIL PROTECTED]
Sent: 09 July 2004 08:40
To: Tomcat Users List
Subject: Re: Trouble running Tomcat using Sun's JDK1.4.2_05


go ahead check ur xml files...  if there is any problem in xml files u
will get this sort of org.apache.jasper.JasperException...

like, u would have missed some tags or context path etc..

Kannan





On Fri, 9 Jul 2004 08:15:22 +0100, Peter Guyatt
[EMAIL PROTECTED] wrote:
 Hi There,

Has anyone come across this problem. All Iam am doing is starting
tomcat
 and then attempting to use my web app.

 The exception I am getting is as follows:

 Exception report

 message

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

 exception

 org.apache.jasper.JasperException: Error allocating a servlet instance
at

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
 54)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:247)
at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)
at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
 va:256)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:643)
at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
 va:191)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:643)
at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
 )
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:643)
at

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
 java:171)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:641)
at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
 )
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:641)
at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
 :174)
at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:643)
at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
 ction(Http11Protocol.java:392)
at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
 a:619)
at java.lang.Thread.run(Thread.java:534)

 root cause

 javax.servlet.ServletException: Error allocating a servlet instance
at

org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:672)
at

org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
 java:653)
at

org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
 er.java:432)
at

org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
 .java:356)
at

org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:430)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:42)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at


Re: Garbage Collector

2004-07-09 Thread simon colston
Freddy Villalba Arias wrote:
What's the best / simplest way to implement a garbage collector that
starts running as soon as the web application (Tomcat) is up?
I think this calls for a ServletContextListener.  Start your reaper 
thread in contextInitialized and kill it in contextDestroyed.

http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContextListener.html
Cheers,
--
simon colston
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Trouble running Tomcat using Sun's JDK1.4.2_05

2004-07-09 Thread Kannan Raghu
No Problem Pete...

Kannan

On Fri, 9 Jul 2004 09:20:05 +0100, Peter Guyatt
[EMAIL PROTECTED] wrote:
 Hi There,
 
Thanks for the reply, what I dont understand is why it woudl work with
 1.4.2_04, the only thing that has changed is the JDK.
 
 No config changes have been made.
 
 Thanks
 
 Pete
 
 
 
 -Original Message-
 From: Kannan Raghu [mailto:[EMAIL PROTECTED]
 Sent: 09 July 2004 08:40
 To: Tomcat Users List
 Subject: Re: Trouble running Tomcat using Sun's JDK1.4.2_05
 
 go ahead check ur xml files...  if there is any problem in xml files u
 will get this sort of org.apache.jasper.JasperException...
 
 like, u would have missed some tags or context path etc..
 
 Kannan
 
 On Fri, 9 Jul 2004 08:15:22 +0100, Peter Guyatt
 [EMAIL PROTECTED] wrote:
  Hi There,
 
 Has anyone come across this problem. All Iam am doing is starting
 tomcat
  and then attempting to use my web app.
 
  The exception I am getting is as follows:
 
  Exception report
 
  message
 
  description The server encountered an internal error () that prevented it
  from fulfilling this request.
 
  exception
 
  org.apache.jasper.JasperException: Error allocating a servlet instance
 at
 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
  54)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
  FilterChain.java:247)
 at
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
  ain.java:193)
 at
 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
  va:256)
 at
 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
  eNext(StandardPipeline.java:643)
 at
 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
  va:191)
 at
 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
  eNext(StandardPipeline.java:643)
 at
 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
  org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
 at
 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
  )
 at
 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
  eNext(StandardPipeline.java:643)
 at
 
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
  java:171)
 at
 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
  eNext(StandardPipeline.java:641)
 at
 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
  )
 at
 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
  eNext(StandardPipeline.java:641)
 at
 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
  :174)
 at
 
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
  eNext(StandardPipeline.java:643)
 at
 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
 at
 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
  ction(Http11Protocol.java:392)
 at
  org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
 at
 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
  a:619)
 at java.lang.Thread.run(Thread.java:534)
 
  root cause
 
  javax.servlet.ServletException: Error allocating a servlet instance
 at
 
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:672)
 at
 
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
  java:653)
 at
 
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
  er.java:432)
 at
 
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
  .java:356)
 at
 
 

RE: Garbage Collector

2004-07-09 Thread Freddy Villalba Arias
Whoa, it was so obvious I almost feel stupid!

Thanks, Simon!

-Mensaje original-
De: simon colston [mailto:[EMAIL PROTECTED] 
Enviado el: viernes, 09 de julio de 2004 11:07
Para: Tomcat Users List
Asunto: Re: Garbage Collector

Freddy Villalba Arias wrote:
 
 What's the best / simplest way to implement a garbage collector that
 starts running as soon as the web application (Tomcat) is up?

I think this calls for a ServletContextListener.  Start your reaper 
thread in contextInitialized and kill it in contextDestroyed.

http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletCo
ntextListener.html

Cheers,

-- 
simon colston


-
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 output gets mixed up for different requests

2004-07-09 Thread André Weidemann
Hi,
I searched the net and also the tomcat-list archives but couldn't find 
any help. That is what lead me here...

I'm quite new to Tomcat and Java. I'm using Tomcat 3.3.2 and Java 1.4.2 
under Linux.

I have the following problem:
I have an application that reads from a mysql database and an openldap 
sever. There are two classes for navigation and then my htmlgenerator 
class generates all the output while the ldap and mysql class retrieve 
all the information necessary.

My problem is that as soon as two clients are accessing the tomcat 
server simultaniously, the output is sometimes split up between the 
clients. In that case, one client lacks page content, which the other 
one will receive instead. So the first has too few lines on his page and 
the other one has additional lines that were not ment for him.

I know that it is quite hard to tell without the source code, but does 
anyone have a slight idea what could be the cause for this?

André.

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


RE: I've officially bored of your stupid blah blahs

2004-07-09 Thread Sternbergh, Cornell
The last emails I deleted on that conversation were from 8 and 9 July.  My calendar 
says that today's the 9th.

Have you been messing with the time-space continuum?

-Original Message-
From: Ivan Jouikov [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 09, 2004 04:38
To: 'Tomcat Users List'
Subject: RE: I've officially bored of your stupid blah blahs


That conversation ended about 2 days ago, I don't know why are you bringing this up 
now...

 -Original Message-
 From: Kunthar [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 08, 2004 11:58 PM
 To: Tomcat Users List
 Subject: Re: I've officially bored of your stupid blah blahs
 
 Guys,
 
 Everyday nearly 120 new mail drops to this list. Should we have to
 listen your important blah blahs??? Why i should define bunch of filters
 at all.
 Is there any moderator watches this???
 Stop this and continue this lovely discussion from your private mails
 please...
 Shame on you cause i have to remind you that where a hell you are...
 If you agree please do not response by writing some other crap, response
 by showing your silence...
 
 Gokhan
 
 
 
 
 
 Ivan Jouikov wrote:
 
 What the hell are you talking about?   I am all for java.  Java is my #1
 language.
 
 
 
 
 Oh for crying out loud Ivan!  You challanged my assertion that Java is
 the
 number one language asking for the source of the stats and I give them
 to you but you just go on whining.  Please take your trolling somewhere
 else.  Get A LIFE.  and as to C++?
 
 
  My trolling?  I don't even know what that means.  And I do have a
 life.
 
 
 
 Huge file sizes
 
 
 I wonder what compiler, and linking options are you using?  I do not
 have
 a problem with my executables being huge at all.  Then again, I don't
 use frameworks that are inefficeint hogs.  Sounds like the programmer.
 
 
 
  Huge file sizes was said about C++ COMPARATIVELY to C.  Any program
 in C++ will be much bigger than exactly same program in C.
 
 
 
 100% guaranteed memory leaks
 
 
 Sounds like the programmer.  My code doesn't have memory leaks!  Then
 again, I know how to write disciplined code, something that quick and
 dirty programmers can't understand.  I also know how to use tools that
 track memory leaks.
 
 
 
  Looks like you've never written a 600MB program.
 
 
 
 And lo The Heavenly Father doth rest.  And whilst He rest, His hand
 accidentally brushed the keyboard and somehow keyed in the following
 code.
 
 Troller ivan = new Troller();
 ivan.setIrrational(true);
 ivan.setOverEmotional(true);
 ivan.setLife(null);
 ivan.setClue(null);
 ivan.setThinkingStyle(Psychosis.THINKING_STYLE_BLACK_AND_WHITE);
 
 ivan.setDailyRoutine(new Runnable() {
 public void run() {
 while(ivan.awake()) {
 Forum target = web.surfForUnsuspectingVictims();
 if(target != null) {
 Iterator i = target.getMessages();
 while(i.hasNext()) {
 ForumPosting intelligentPosting = (Posting)
 i.next();
 intelligentPosting.read();
 ForumPostingReplyFactory replyFactory =
 ivan.getPsychoticReponseGenerator();
 Reply reply = replyFactory.createResponse();
 while(reply.makesSense()) {
 reply.rant();
 reply.bitch();
 reply.whine();
 reply.moan();
 reply.saySomethingIrrational();
 }
 target.post(reply);
 ivan.setIQ(ivan.getIQ() - 1);
 }
 }
 }
 ivan.slapSelf(Slap.HARD);
 throw new IdiotTrollerException();
 }
 });
 
 ivan.run();
 
 
 
 
  Hahahah :)  That was a good one.  You telling me to get a life and
 you have time to do that?  BTW
 
 
 
 Iterator i = target.getMessages();
 while(i.hasNext()) {
 
 
 
 I really like how 1.5 has the for( Element e : collection ) loop.   Don't
 you agree?
 
 
 
 -Original Message-
 From: Ivan Jouikov [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 06, 2004 9:29 PM
 To: 'Tomcat Users List'
 Subject: RE: I've officially decided that JSTL is one of the
 worstthingsto
 ever happen
 
 
 Ok let's settle this argument simple.
 
 Tonight, I'll ask my Christian Science friend to talk to Jesus, and ask
 him the following:
 
 Jesus, if EL really DOES decrease performance significantly, and should
 not be used at all, please give me absolutely NO sign.  However, if EL
 is
 a great thing and should be used by everyone, please give me a sign.
 
 I'll report to you in the morning and let you know what was God's
 opinion
 on that.
 
 
 
 -Original Message-
 From: SANTOS, DANIEL (SBCSI) [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 06, 2004 4:02 PM
 To: Tomcat Users List
 Subject: RE: I've officially decided that JSTL is one of the
 
 
 worstthingsto
 
 
 ever happen
 
 
 
 If 

JNDI / pooling

2004-07-09 Thread Viorel Dragomir
Hi,

I can't describe exactly the problem because I'm not familiar with all the terms... 
But the big picture is that I want to create a pool of ftp connections to work like a 
database connection and I want to get the connection from JNDI.


So far I extended BaseKeyedPoolableObjectFactory and StackKeyedObjectPool and it works 
fine like this:

FTPConnectionPool pool = new FTPConnectionPool();
String key = key;
try{
FTPClient ftp = pool.borrowClient(key);
if( ftp.sendNoOp() ){
System.out.println(OK);
}else{
System.out.println(NOPE);
}

pool.returnClient( key, ftp );
}catch(Exception ex){
ex.printStackTrace();
}

But I want to make it work from JNDI almost like a datasource
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup(java:comp/env/jdbc/backup);

Anyway I am completely lost if it can be done or not.
So far I get an exception when I try to start Tomcat:

GlobalResourcesLifecycleListener: Exception processing Global JNDI Resources
javax.naming.NamingException: Could not create resource factory instance, null
at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:146)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
at org.apache.naming.NamingContext.lookup(NamingContext.java:834)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
 

regards,
viorel

RE: JNDI / pooling

2004-07-09 Thread Ryan Lissack
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html

See the 'Adding Custom Resource Factories' section.

Ryan.

-Original Message-
From: Viorel Dragomir [mailto:[EMAIL PROTECTED]
Sent: 09 July 2004 13:12
To: Tomcat Users List
Subject: JNDI / pooling


Hi,

I can't describe exactly the problem because I'm not familiar with all the
terms... But the big picture is that I want to create a pool of ftp
connections to work like a database connection and I want to get the
connection from JNDI.


So far I extended BaseKeyedPoolableObjectFactory and StackKeyedObjectPool
and it works fine like this:

FTPConnectionPool pool = new FTPConnectionPool();
String key = key;
try{
FTPClient ftp = pool.borrowClient(key);
if( ftp.sendNoOp() ){
System.out.println(OK);
}else{
System.out.println(NOPE);
}

pool.returnClient( key, ftp );
}catch(Exception ex){
ex.printStackTrace();
}

But I want to make it work from JNDI almost like a datasource
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)
ctx.lookup(java:comp/env/jdbc/backup);

Anyway I am completely lost if it can be done or not.
So far I get an exception when I try to start Tomcat:

GlobalResourcesLifecycleListener: Exception processing Global JNDI Resources
javax.naming.NamingException: Could not create resource factory instance,
null
at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.
java:146)
at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
at org.apache.naming.NamingContext.lookup(NamingContext.java:834)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
 

regards,
viorel

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



flush buffer security manager

2004-07-09 Thread Mike Read
Hi

Appended is a simple servlet and the errors I get back to the browser.
The errors are produced the first time the servlet is called after
a Tomcat restart under security manager, subsequent calls to the servelt
and a restart with security manager run OK.

The error points to the  res.flushBuffer(); line.

Running Tomcat  4.1.30 under Linux

Any ideas what I'm doing wrong?

Mike


ERRORS
---

HTTP Status 500 -



type Exception report

message

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

exception

javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:536)


root cause

java.lang.NoClassDefFoundError: org/apache/coyote/http11/Http11Processor$1
at
org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1513)
at
org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:921)
at org.apache.coyote.Response.action(Response.java:224)
at
org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:605)
at org.apache.coyote.Response.doWrite(Response.java:586)
at
org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:405)
at
org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:436)
at
org.apache.coyote.tomcat4.OutputBuffer.doFlush(OutputBuffer.java:354)
at
org.apache.coyote.tomcat4.OutputBuffer.flush(OutputBuffer.java:336)
at
org.apache.coyote.tomcat4.CoyoteResponse.flushBuffer(CoyoteResponse.java:541)
at
org.apache.coyote.tomcat4.CoyoteResponseFacade.flushBuffer(CoyoteResponseFacade.java:225)
at Flush.doGet(Flush.java:13)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at

RE: Newbie question: Error 503 Service Temp. Unavailable

2004-07-09 Thread Birt, Jeffrey
I too am running Linux (Fedora 1).  Another chap posted after me having
similar problems with Windows (IIS).  I've confirmed that apache is
running as user apache which belongs to the group apache.  User tomcat
of the group tomcat owns the tomcat directory (and I'm running tomcat as
user tomcat).  I've added the apache group to the tomcat group (I think)
like this

#usermod -G apache,tomcat apache

I read through some more of the Tomcat 5 docs last night and I'll give
it another whack today.

Thanks,

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 


-Original Message-
From: Tim Wills [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 08, 2004 11:18 PM
To: Birt, Jeffrey
Cc: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable

I had the same Error 503 on Linux (not Windows) and found that was
caused by
Apache running as Nobody. Apache couldn't write to the socket because
the
owner was tomcat and Nobody was not a member of the group tomcat.

Check your apache error_log and see what it says. I have never run a
Windows
server so can't be more helpful.

Cheers

Tim




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



Re: Container managed security

2004-07-09 Thread QM
On Thu, Jul 08, 2004 at 11:19:39PM -0500, Steve Luzynski wrote:
: Using Tomcat 5.0.25 on Mac OS X (10.3.4 specifically). Trying to 
: implement container managed security.
: 
:  [snip: deployment descriptor]
:
: When I try to hit a url like 
: http://localhost:9006/IPBoss/add/add_network.html, which as near as I 
: can tell should trigger authentication, I just get the page I'm asking 
: for - no login.

Humor me -- is there an Apache server in front of Tomcat that's
intercepting the .html? 

(I hate to ask this) but did you restart Tomcat after making the web.xml
changes?

Otherwise, web.xml looks spec-compliant as far as I can tell.

-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: Problems migrating from 4.1.x to 5.0.25

2004-07-09 Thread QM
On Thu, Jul 08, 2004 at 09:58:35PM -0700, Dhruva B. Reddy wrote:
: I have deployed one of our (Struts 1.1 based) applications on 5.0.25
: (it currently runs on 4.1.27).  When I try to go to the default page, I
: get the stack trace below (displayed in the browser).  Can anyone tell
: me if there is anything obvious that I may be missing or should look
: for?
: 
: java.lang.NoSuchMethodError:
: 
javax.servlet.jsp.tagext.TagAttributeInfo.init(Ljava/lang/String;ZLjava/lang/String;ZZ)V

Silly question: did you recompile your app against the new JARs from
Tomcat 5?

-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 output gets mixed up for different requests

2004-07-09 Thread QM
On Fri, Jul 09, 2004 at 01:26:45PM +0200, Andr? Weidemann wrote:
: My problem is that as soon as two clients are accessing the tomcat 
: server simultaniously, the output is sometimes split up between the 
: clients. In that case, one client lacks page content, which the other 
: one will receive instead. So the first has too few lines on his page and 
: the other one has additional lines that were not ment for him.


Two clients' content getting mixed up with one another: sounds like
misuse of a shared variable, such as an instance variable inside the
servlet class, use of the servlet context for client data, etc.

-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: Problems migrating from 4.1.x to 5.0.25

2004-07-09 Thread CAGALLOM
no send email thank

-Mensaje original-
De: QM [mailto:[EMAIL PROTECTED]
Enviado el: Viernes 9 de Julio de 2004 08:13
Para: Tomcat Users List
Asunto: Re: Problems migrating from 4.1.x to 5.0.25


On Thu, Jul 08, 2004 at 09:58:35PM -0700, Dhruva B. Reddy wrote:
: I have deployed one of our (Struts 1.1 based) applications on 5.0.25
: (it currently runs on 4.1.27).  When I try to go to the default page, I
: get the stack trace below (displayed in the browser).  Can anyone tell
: me if there is anything obvious that I may be missing or should look
: for?
: 
: java.lang.NoSuchMethodError:
: 
javax.servlet.jsp.tagext.TagAttributeInfo.init(Ljava/lang/String;ZLjava/lang/String;ZZ)V

Silly question: did you recompile your app against the new JARs from
Tomcat 5?

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



AVISO LEGAL:

Esta información es privada y confidencial y está dirigida únicamente a su 
destinatario. Si usted no es el destinatario original de este mensaje y por este medio 
pudo acceder a dicha información por favor elimine el mensaje. La distribución o copia 
de este mensaje está estrictamente prohibida. Esta comunicación es sólo para 
propósitos de información y no debe ser considerada como propuesta, aceptación ni como 
una declaración de voluntad oficial de REPSOL YPF S.A. y/o subsidiarias y/o afiliadas. 
La transmisión de e-mails no garantiza que el correo electrónico sea seguro o libre de 
error. Por consiguiente, no manifestamos que esta información sea completa o precisa. 
Toda información está sujeta a alterarse sin previo aviso. 

This information is private and confidential and intended for the recipient only. If 
you are not the intended recipient of this message you are hereby notified that any 
review, dissemination, distribution or copying of this message is strictly prohibited. 
This communication is for information purposes only and shall not be regarded neither 
as a proposal, acceptance nor as a statement of will or official statement from REPSOL 
YPF S.A. and/or subsidiaries and/or affiliates. Email transmission cannot be 
guaranteed to be secure or error-free. Therefore, we do not represent that this 
information is complete or accurate and it should not be relied upon as such. All 
information is subject to change without notice.

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



RE: JNDI / pooling

2004-07-09 Thread Randall Svancara
Most ftp connections time out, so you would have to have an auto-reconnect feature 
right?  This sounds like a kewl idea.

-Original Message-
From: Ryan Lissack [mailto:[EMAIL PROTECTED]
Sent: Friday, July 09, 2004 6:30 AM
To: 'Tomcat Users List'
Subject: RE: JNDI / pooling


http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html

See the 'Adding Custom Resource Factories' section.

Ryan.

-Original Message-
From: Viorel Dragomir [mailto:[EMAIL PROTECTED]
Sent: 09 July 2004 13:12
To: Tomcat Users List
Subject: JNDI / pooling


Hi,

I can't describe exactly the problem because I'm not familiar with all the
terms... But the big picture is that I want to create a pool of ftp
connections to work like a database connection and I want to get the
connection from JNDI.


So far I extended BaseKeyedPoolableObjectFactory and StackKeyedObjectPool
and it works fine like this:

FTPConnectionPool pool = new FTPConnectionPool();
String key = key;
try{
FTPClient ftp = pool.borrowClient(key);
if( ftp.sendNoOp() ){
System.out.println(OK);
}else{
System.out.println(NOPE);
}

pool.returnClient( key, ftp );
}catch(Exception ex){
ex.printStackTrace();
}

But I want to make it work from JNDI almost like a datasource
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)
ctx.lookup(java:comp/env/jdbc/backup);

Anyway I am completely lost if it can be done or not.
So far I get an exception when I try to start Tomcat:

GlobalResourcesLifecycleListener: Exception processing Global JNDI Resources
javax.naming.NamingException: Could not create resource factory instance,
null
at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.
java:146)
at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
at org.apache.naming.NamingContext.lookup(NamingContext.java:834)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
 

regards,
viorel

-
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: Container managed security

2004-07-09 Thread Steve Luzynski
On Jul 9, 2004, at 8:11 AM, QM wrote:
On Thu, Jul 08, 2004 at 11:19:39PM -0500, Steve Luzynski wrote:
: Using Tomcat 5.0.25 on Mac OS X (10.3.4 specifically). Trying to
: implement container managed security.
:
:  [snip: deployment descriptor]
:
: When I try to hit a url like
: http://localhost:9006/IPBoss/add/add_network.html, which as near as I
: can tell should trigger authentication, I just get the page I'm 
asking
: for - no login.

Humor me -- is there an Apache server in front of Tomcat that's
intercepting the .html?
Nope, Tomcat is running an http connector directly on port 9006.
(I hate to ask this) but did you restart Tomcat after making the 
web.xml
changes?
Repeatedly. :)
Otherwise, web.xml looks spec-compliant as far as I can tell.
I thought so. Any other ideas? I'm stumped.
Thanks much,
Steve
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: will ROOT (/) context, folder hello interfere with context (hello) ?

2004-07-09 Thread Mike Curwen
You'd get the hello context. 
 
-Original Message-
From: Ivan Jouikov [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 09, 2004 3:37 AM
To: 'Tomcat Users List'
Subject: will ROOT (/) context, folder hello interfere with context
(hello) ?


 
Something just popped in my mind.
 
If you have a ROOT context which has a folder named hello,
 
And you have a context named hello
 
When you request localhost:8080/hello/
 
Which one are you gonna get?  The ROOT context or the hello context?  I
will try this out tomorrow, but I wonder how tomcat handles this?
 

  _  


Best Regards,

Ivan V. Jouikov
(206) 228-6670
 http://www.ablogic.net/ 
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004




RE: How to start a web app?

2004-07-09 Thread Mike Curwen
Wouldn't it be easier to assume (in all things, not just tomcat docs)
that unless 'recursion' is specifically mentioned, that a given process
is *not* recursive?
 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automat
ic%20Application%20Deployment

Where in the 3rd bullet do you get the idea that tomcat would search
recursively through the directory specified in 'appBase' ?


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 09, 2004 1:41 AM
 To: [EMAIL PROTECTED]
 Subject: RE: How to start a web app?
 
 
  
 
 -Original Message-
 From: QM 
 Long story short:  Tomcat does not search the webapps 
 directory recursively for webapps; it loads contexts that 
 are immediate children of the webapps directory.
 
 Essential information.
 
 I do wish someone would make that explicit in the tomcat 
 documentation.
 
 
 regards DaveP.
 
 
 ** snip here **
 
 -- 


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



question about dazzle with tomcat

2004-07-09 Thread Selmar
Hi,
I have a, probably very easy to solve, problem. I am at the moment 
trying to install dazzle on tomcat 5.0.25. i am reading the setting up 
a Ensembl DAS Server from www.ensembl.org/Docs/das_server_v1.2.pdf 
http://www.ensembl.org/Docs/das_server_v1.2.pdf. I am now on page 6 in 
the last part of step5. I read there if you get an error message or an 
empty page then check the servlet error log for the source of the 
problem. 98 % of the problems are related to errors in the configuration 
of the Dazzle webapp (i.e. In the dazzlecfg)

So i get an directory listing when i typ http://localhost:8080/das/; as 
url in the address bar. Do you know what i need to add or change in the 
dazzlecfg.xml?

With kind regards,
Selmar.
The current dazzlecfg.xml from my /usr/dazzle/dazzle-webapp-1.01 directory:
!--
Example configuration file for the Dazzle servlet.
Please check all paths and URIs before deploying this on
your own server.
Information of configuring and deploying Dazzle can
be found at:
http://www.biojava.org/dazzle/
Alternatively, questions can be mailed to:
Thomas Down [EMAIL PROTECTED]
--
dazzle xmlns=http://www.biojava.org/2000/dazzle;
!-- Test reference server --
datasource id=test 
jclass=org.biojava.servlets.dazzle.datasource.EmblDataSource

string name=name value=Test seqs /
string name=description value=Test set for promoter-finding software /
string name=version value=default /
string name=fileName value=test.embl /
string name=stylesheet value=test.style /
/datasource
!-- Test annotation server. Note that the mapMaster property must
be changed to match your reference server --
datasource id=tss 
jclass=org.biojava.servlets.dazzle.datasource.GFFAnnotationSource

string name=name value=TSS /
string name=description value=Transcription start sites /
string name=version value=default /
string name=fileName value=fickett-tss.gff /
boolean name=dotVersions value=true /
string name=mapMaster value=http://localhost:8080/das/test/; /
string name=stylesheet value=tss.style /
/datasource
/dazzle
directory listing of /usr/tomcat/jakarta-tomcat-5.0.25/webapps
balancer/ das/ das.war jsp-examples/ ROOT/ servlets-examples/ 
tomcat-docs/ webdav/


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


Re: How to start a web app?

2004-07-09 Thread Michael Labhard
Right.  So should we improve the documentation or improve all the readers of 
the documentation?  Let's see ...  Documentation, or all the readers of the 
those  docs ... Improve the docs, or all the readers of the docs ...  
Hmmm ...  What could the answer be?  Boy!  That's a tough one!


On Friday 09 July 2004 08:19 am, Mike Curwen wrote:
 Wouldn't it be easier to assume (in all things, not just tomcat docs)
 that unless 'recursion' is specifically mentioned, that a given process
 is *not* recursive?

 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automat
 ic%20Application%20Deployment

 Where in the 3rd bullet do you get the idea that tomcat would search
 recursively through the directory specified in 'appBase' ?

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Friday, July 09, 2004 1:41 AM
  To: [EMAIL PROTECTED]
  Subject: RE: How to start a web app?
 
 
 
 
  -Original Message-
  From: QM
  Long story short:  Tomcat does not search the webapps
  directory recursively for webapps; it loads contexts that
  are immediate children of the webapps directory.
 
  Essential information.
 
  I do wish someone would make that explicit in the tomcat
  documentation.
 
 
  regards DaveP.
 
 
  ** snip here **
 
  --

 -
 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: How to start a web app?

2004-07-09 Thread Mike Curwen
Michael, my email was specifically in reply to David.Pawson's. I thought
I'd point that out in case you took anything personally in my previous
email. I bother to point it out because you asked the same question
three times. Where I come from, that's ridicule by repetition, but I
could be mistaking your intent.

Sarcasm aside, it's an interesting thought process you must have gone
through to start off with  Right, and then proceed to point out how
it's wrong. 
 
The point I was attempting to make is that there is nothing wrong with
the docs, and that they are not missing Essential Information.  Unless
someone can tell me how the 3rd bullet on the docs I linked to allows a
person to infer recursion, I don't think the docs need changing. 

Perhaps it's the use of 'subdirectory'. If it was changed to read Any
directory within the Application Base directory, would that avoid this
miscomprehension? 

If not, then I come back to my first question of the previous email. In
your entire life as programmer, when is it appropriate to assume a
process is recursive, when it is not explicitly documented to be so? 


 -Original Message-
 From: Michael Labhard [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 09, 2004 10:29 AM
 To: Tomcat Users List
 Subject: Re: How to start a web app?
 
 
 Right.  So should we improve the documentation or improve all 
 the readers of 
 the documentation?  Let's see ...  Documentation, or all the 
 readers of the 
 those  docs ... Improve the docs, or all the readers of the docs ...  
 Hmmm ...  What could the answer be?  Boy!  That's a tough one!
 
 
 On Friday 09 July 2004 08:19 am, Mike Curwen wrote:
  Wouldn't it be easier to assume (in all things, not just 
 tomcat docs) 
  that unless 'recursion' is specifically mentioned, that a given 
  process is *not* recursive?
 
  
 http://jakarta.apache.org/tomcat/tomcat-4.1-
doc/config/host.html#Autom
  at
  ic%20Application%20Deployment
 
  Where in the 3rd bullet do you get the idea that tomcat 
 would search 
  recursively through the directory specified in 'appBase' ?
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
   Sent: Friday, July 09, 2004 1:41 AM
   To: [EMAIL PROTECTED]
   Subject: RE: How to start a web app?
  
  
  
  
   -Original Message-
   From: QM
   Long story short:  Tomcat does not search the webapps
   directory recursively for webapps; it loads contexts that
   are immediate children of the webapps directory.
  
   Essential information.
  
   I do wish someone would make that explicit in the tomcat 
   documentation.
  
  
   regards DaveP.
  
  
   ** snip here **
  
   --
 
  
 -
  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: getting Tomcat 5.0 to serve static content

2004-07-09 Thread Matthew Hixson
On Jul 8, 2004, at 11:56 PM, [EMAIL PROTECTED] wrote:

-Original Message-
From: Matthew Hixson
I'm using Tomcat 5.0.26 with JBoss 3.2.4.  I'm attempting
to upgrade from Tomcat 4.1.something that was included with
JBoss 3.2.3.  I cannot figure out how to configure a
context so that Tomcat will serve files from a specific
directory.  The directory contains images and should be
accessible outside of any specific webapp.  The files are
stored in /usr/local/watermarks and the URLs to them need
to look like http://mymachine.com/watermarks/bar.jpg.
   Context path=/watermarks docBase=/usr/local/watermarks/
   I've read all the docs I could find on the Apache Tomcat
site and used Google to find examples and I cannot find
anything that tells me how to do this.  In the previous
version of Tomcat I had put the above Context element
into
/usr/local/jboss/server/default/deploy/jbossweb-tomcat41.sar
/META-INF/
jboss-service.xml.  But in Tomcat 5.0 it looks like that
has moved to jbossweb-tomcat50.sar/server.xml.
If you read the docs enough times it suggests that the Context element
should be an anyName.xml, in {catalina.home}/conf/host/
Where it hides, just the Context element in an xml file per app.
(I found it useful to name the file after the app)
HTH DaveP
I did see that in the docs and tried it.  Still didn't work.  I don't 
know if I'm seeing strange behavior because of the way Tomcat is 
embedded in JBoss or what.
  -M@

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


tomcat 5.0.25 and SSL problem

2004-07-09 Thread Rob Guest
We are running Tomcat 5.0.25, AIX 5.2. We are having problems getting SSL 
to work. We can reach the default tomcat page when we use 8070 but not 
when we use the SSL port 8443.

We have the following connector's setup in our server.xml

Connector port=8070
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   debug=0 connectionTimeout=2
   algorithm=IbmX509
   disableUploadTimeout=true /


Connector className=org.apache.coyote.tomcat5.CoyoteConnector
   port=8443
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 debug=0 scheme=https secure=true
   keystorePass=changeit keystoretype=JKS 
Factory
  className=org.apache.coyote.tomcat5.CoyoteServerSocketFactory
  clientAuth=false protocol=SSL algorithm=IbmX509 /
/Connector

Connector port=8071
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 /

We are also getting the following error in the catalina.out when we 
startup Tomcat. The server starts up though so we are unsure if this is 
related to our problem or not.

INFO: Installing web application at context path /balancer from URL 
file:/br1/ho
me/weblsnr/tomcat-5.0.25/webapps/balancer
Jul 9, 2004 9:30:21 AM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Jul 9, 2004 9:30:21 AM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors

We are totally new to Tomcat so any help would be greatly appreciated.

Re: How to start a web app?

2004-07-09 Thread Michael Labhard
On Friday 09 July 2004 09:15 am, Mike Curwen wrote:
 The point I was attempting to make is that there is nothing wrong with
 the docs,

Yes, I know.  And the point that I am trying to make is that several readers 
of the documentation disagree with you on this point.  And that is, in my 
opinion, sufficient reason to conclude that there _is_, or at least may be, 
something wrong with the docs.

It's really pointless to argue that the docs are semantically correct.  It 
doesn't matter.  What matters is whether or not they helped the readers.  
That's all that matters.  If they did then they may be semantically gibberish 
and yet they are good.  If they did not then they are wrong, regardless of 
semantics.

As an aside.  The place to fix this problem with the docs, in my opinion, is 
in the error messages.  If the error messages told the user exactly what 
mistake it made then the problem with the docs would be irrelevant.  So, 
instead of Cannot access XXX it should say, I found a subdirectory of 
webapps of the correct name but it doesn't contain a WEB-INF directory so I 
cannot proceed.  Or, I found a subdir and a WEB-INF dir and a web.xml there 
but it doesn't have XXX in the YYY place.  Then no one would care about the 
semantics of the other documentation -- it would be redundantly obscure.

-- Michael

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



Re: Container managed security

2004-07-09 Thread Robert F. Hall
Have you tried adding http-method/ elements to  
web-resource-collection ?

   web-resource-collection
 http-methodHEAD/http-method
 http-methodGET/http-method
 http-methodPOST/http-method
 http-methodPUT/http-method
 http-methodDELETE/http-method
   /web-resource-collection
Steve Luzynski wrote:
On Jul 9, 2004, at 8:11 AM, QM wrote:
On Thu, Jul 08, 2004 at 11:19:39PM -0500, Steve Luzynski wrote:
: Using Tomcat 5.0.25 on Mac OS X (10.3.4 specifically). Trying to
: implement container managed security.
:
:  [snip: deployment descriptor]
:
: When I try to hit a url like
: http://localhost:9006/IPBoss/add/add_network.html, which as near as I
: can tell should trigger authentication, I just get the page I'm asking
: for - no login.
Humor me -- is there an Apache server in front of Tomcat that's
intercepting the .html?

Nope, Tomcat is running an http connector directly on port 9006.
(I hate to ask this) but did you restart Tomcat after making the web.xml
changes?

Repeatedly. :)
Otherwise, web.xml looks spec-compliant as far as I can tell.

I thought so. Any other ideas? I'm stumped.
Thanks much,
Steve
-
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: How to start a web app?

2004-07-09 Thread David Smith
What is it with the person to person discussions on a public forum these 
days.  Please take this off list and post something when the docs are 
updated.  Otherwise I don't want or need to read this.

--David
PS: Tomcat is an open source project -- write a correction and submit it 
if you feel one is necessary.

Michael Labhard wrote:
On Friday 09 July 2004 09:15 am, Mike Curwen wrote:
 

The point I was attempting to make is that there is nothing wrong with
the docs,
   

Yes, I know.  And the point that I am trying to make is that several readers 
of the documentation disagree with you on this point.  And that is, in my 
opinion, sufficient reason to conclude that there _is_, or at least may be, 
something wrong with the docs.

It's really pointless to argue that the docs are semantically correct.  It 
doesn't matter.  What matters is whether or not they helped the readers.  
That's all that matters.  If they did then they may be semantically gibberish 
and yet they are good.  If they did not then they are wrong, regardless of 
semantics.

As an aside.  The place to fix this problem with the docs, in my opinion, is 
in the error messages.  If the error messages told the user exactly what 
mistake it made then the problem with the docs would be irrelevant.  So, 
instead of Cannot access XXX it should say, I found a subdirectory of 
webapps of the correct name but it doesn't contain a WEB-INF directory so I 
cannot proceed.  Or, I found a subdir and a WEB-INF dir and a web.xml there 
but it doesn't have XXX in the YYY place.  Then no one would care about the 
semantics of the other documentation -- it would be redundantly obscure.

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


SEVERE: Error reading tld listeners java.lang.NullPointerException

2004-07-09 Thread Robert Hunt

Why does this happen during startup?

Jul 9, 2004 2:05:07 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-30041
Jul 9, 2004 2:05:07 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1328 ms
Jul 9, 2004 2:05:07 PM org.apache.catalina.core.StandardService start
INFO: Starting service JTProdSvc
Jul 9, 2004 2:05:07 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.25
Jul 9, 2004 2:05:08 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jul 9, 2004 2:05:09 PM org.apache.catalina.core.StandardContext start
SEVERE: Error reading tld listeners java.lang.NullPointerException
java.lang.NullPointerException
 at java.util.Arrays.sort(Unknown Source)
 at org.apache.naming.resources.FileDirContext.list(FileDirContext.java:885)
 at org.apache.naming.resources.FileDirContext.list(FileDirContext.java:306)
 at
org.apache.naming.resources.ProxyDirContext.list(ProxyDirContext.java:475)
 at
org.apache.catalina.startup.TldConfig.tldScanResourcePathsWebInf(TldConfig.j
ava:625)
 at
org.apache.catalina.startup.TldConfig.tldScanResourcePathsWebInf(TldConfig.j
ava:640)
 at
org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:59
4)
 at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:281)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4260)
 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:476)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2298)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)


Other than this exception, the server process starts fine and runs without
issue.  I'd like to get NO exceptions during startup, especially seemingly
spurious SEVERE ones.

Thanks.


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



JMX tools survey

2004-07-09 Thread Erik Earle
I'm just curious: what tools folks are using for monitoring / managing 
Tomcat through JMX?

_
MSN Life Events gives you the tips and tools to handle the turning points in 
your life. http://lifeevents.msn.com

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


The requested resource is unavailable

2004-07-09 Thread Matthew Hixson
Is there any way to get Tomcat to log _why_ the requested resource is  
unavailable?  I've turned the debug parameter up to 99 for my  
watermarks context and I'm still not seeing anything useful in the  
logfiles.
  Here's the output of grepping through server.xml for watermarks

2004-07-09 11:24:27,102 DEBUG [org.apache.catalina.core.ContainerBase]  
Add child StandardContext[/watermarks] StandardHost[localhost]
2004-07-09 11:24:27,904 DEBUG [tomcat.localhost./watermarks.Context]  
Starting tomcat.localhost./watermarks.Context
2004-07-09 11:24:27,906 DEBUG [tomcat.localhost./watermarks.Context]  
Registering  
j2eeType=WebModule,name=//localhost/ 
watermarks,J2EEApplication=none,J2EEServer=none for null
2004-07-09 11:24:28,020 DEBUG [tomcat.localhost./watermarks.Context]  
Configuring default Resources
2004-07-09 11:24:28,172 DEBUG [tomcat.localhost./watermarks.Context] No  
realm for this host jboss.web:type=Host,host=localhost,path=/watermarks
2004-07-09 11:24:28,174 DEBUG [tomcat.localhost./watermarks.Context]  
Configuring non-privileged default Loader
2004-07-09 11:24:28,544 DEBUG [tomcat.localhost./watermarks.Context]  
Processing standard container startup
2004-07-09 11:24:28,739 DEBUG [org.apache.catalina.loader.WebappLoader]  
Deploying class repositories to work directory  
/usr/local/jboss-3.2.4/server/default/work/jboss.web/localhost/ 
watermarks
2004-07-09 11:24:28,775 DEBUG [org.apache.catalina.valves.ValveBase]  
valve parent=,path=/watermarks,host=localhost  
jboss.web:j2eeType=WebModule,name=//localhost/ 
watermarks,J2EEApplication=none,J2EEServer=none
2004-07-09 11:24:28,778 DEBUG [org.apache.catalina.valves.ValveBase]  
valve objectname =  
jboss.web:type=Valve,name=StandardContextValve,path=/ 
watermarks,host=localhost
2004-07-09 11:24:28,980 DEBUG [org.apache.catalina.startup.TldConfig]  
Reusing tldCache  
/usr/local/jboss-3.2.4/server/default/work/jboss.web/localhost/ 
watermarks/tldCache.ser 0
2004-07-09 11:24:29,684 DEBUG [tomcat.localhost./watermarks.Context]  
Setting deployment descriptor public ID to '-//Sun Microsystems,  
Inc.//DTD Web Application 2.3//EN'
2004-07-09 11:24:29,845 DEBUG [org.apache.catalina.session.ManagerBase]  
Registering jboss.web:type=Manager,path=/watermarks,host=localhost
2004-07-09 11:24:29,877 DEBUG [tomcat.localhost./watermarks.Context]  
Posting standard context attributes
2004-07-09 11:24:29,879 DEBUG [tomcat.localhost./watermarks.Context]  
Configuring application event listeners
2004-07-09 11:24:29,880 DEBUG [tomcat.localhost./watermarks.Context]  
Sending application start events
2004-07-09 11:24:29,939 DEBUG [tomcat.localhost./watermarks.Context]  
Starting filters
2004-07-09 11:24:29,941 DEBUG [tomcat.localhost./watermarks.Context]  
Starting completed
2004-07-09 11:24:29,941 DEBUG [tomcat.localhost./watermarks.Context]  
Checking for  
jboss.web:j2eeType=WebModule,name=//localhost/ 
watermarks,J2EEApplication=none,J2EEServer=none
2004-07-09 11:25:06,436 DEBUG  
[org.apache.coyote.tomcat5.MapperListener] Register Context /watermarks
2004-07-09 11:25:07,010 DEBUG  
[org.apache.coyote.tomcat5.MapperListener] Register Context /watermarks

and when I hit the URL all I see logged is:
2004-07-09 11:36:23,905 DEBUG [org.apache.coyote.tomcat5.CoyoteAdapter]  
 Requested cookie session id is 45F2BFBEF5085AFAED6D633C5919FD4D

 Thanks for any help,
   -M@
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


getRemoteHost return IP address

2004-07-09 Thread Michael Tang
I am using Tomcat 4.0.6 and our customer ran into a weird and 
hard-to-reproduce problem. From the log, we see within one servlet, 
HttpServletRequest.getRemoteHost return host name (enableLookups=true in 
server.xml). However, during the running, one HttpProcessor thread suddenly 
switch to returning IP address instead of the hostname. Does anyone see 
similar problem before or have any suggestion?

thanks,
-Michael
_
MSN Life Events gives you the tips and tools to handle the turning points in 
your life. http://lifeevents.msn.com

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


RE: will ROOT (/) context, folder hello interfere with context (hello) ?

2004-07-09 Thread Ivan Jouikov
Then what about ROOT/hello ? How do you get to there?

 -Original Message-
 From: Mike Curwen [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 09, 2004 8:19 AM
 To: 'Tomcat Users List'
 Subject: RE: will ROOT (/) context, folder hello interfere with context
 (hello) ?
 
 You'd get the hello context.
 
 -Original Message-
 From: Ivan Jouikov [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 09, 2004 3:37 AM
 To: 'Tomcat Users List'
 Subject: will ROOT (/) context, folder hello interfere with context
 (hello) ?
 
 
 
 Something just popped in my mind.
 
 If you have a ROOT context which has a folder named hello,
 
 And you have a context named hello
 
 When you request localhost:8080/hello/
 
 Which one are you gonna get?  The ROOT context or the hello context?  I
 will try this out tomorrow, but I wonder how tomcat handles this?
 
 
   _
 
 
 Best Regards,
 
 Ivan V. Jouikov
 (206) 228-6670
  http://www.ablogic.net/
 
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
 
 
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
 


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



RE: will ROOT (/) context, folder hello interfere with context (hello) ?

2004-07-09 Thread Justin Ruthenbeck
It's genally a good idea to use the ROOT context as merely a redirection 
feature, _especially_ if you've got any possibility of naming conflicts 
(like you're suggesting).  By this, I mean make your ROOT context simply 
do a redirect (either an HTTP redirect or a JSP/Servlet redirect, 
depending on what you need to accomplish) to your real default web 
application.  It will eliminate problems like this -- naming and 
implementation/function should be independent.

As for your question, you can't practically get to ROOT/hello in the case 
you're describing.

justin
At 12:47 PM 7/9/2004, you wrote:
Then what about ROOT/hello ? How do you get to there?
 -Original Message-
 From: Mike Curwen [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 09, 2004 8:19 AM
 To: 'Tomcat Users List'
 Subject: RE: will ROOT (/) context, folder hello interfere with 
context
 (hello) ?

 You'd get the hello context.

 -Original Message-
 From: Ivan Jouikov [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 09, 2004 3:37 AM
 To: 'Tomcat Users List'
 Subject: will ROOT (/) context, folder hello interfere with context
 (hello) ?



 Something just popped in my mind.

 If you have a ROOT context which has a folder named hello,

 And you have a context named hello

 When you request localhost:8080/hello/

 Which one are you gonna get?  The ROOT context or the hello context?  I
 will try this out tomorrow, but I wonder how tomcat handles this?


   _


 Best Regards,

 Ivan V. Jouikov
 (206) 228-6670
  http://www.ablogic.net/


 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004



 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004

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

__
Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php
__
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Trouble running Tomcat using Sun's JDK1.4.2_05

2004-07-09 Thread Joseph Shraibman
Are you sure when you upgraded that you moved everything over, like jars 
in lib/endorsed, you java.policy, etc?

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


Re: Tomcat 5 Apache Authentication

2004-07-09 Thread Joseph Shraibman
[EMAIL PROTECTED] wrote:
Hmmm...so is there any workaround? For example, using an older version of the 
JK connector or some older combination of Tomcat/Apache and the JK connector?

Thanks,
Kevin
Not as far as I know.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


favicon question

2004-07-09 Thread Mufaddal Khumri
I have a webapp deployed under tomcat + apache.
I have a taglib in which i have the following:
out.print(link rel='shortcut icon' 
href='/mywebapp/images/favicon.ico' type='image/x-icon');

The favicon.ico is a 16 * 16 icon file.
The favicon shows up in Safari on the Mac , but not on netscape, or IE 
. On windows it does not show up in either IE or Netscape.

I have not put the favicon in the webservers root from where it can get 
it by default. As you can see I have it in mywebapp/images folder.

Does anybody know why this does not work? Or do browsers dont have 
support for this much ?

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


CGIServlet and CGI.pm upload feature

2004-07-09 Thread Brian T. Dittmer
Hey guys...I'm having some serious trouble using the file upload feature
in CGI.pm in conjunction with Tomcat 5.0.24.  When I try and upload the
file to my script for parsing the script hangs and prints nothing to the
browser (in other words it's the script is erring out).  Here's where
the plot thickens...when I try and upload a file with six or seven lines
of data it goes through fine.  When I try and upload any file 5k or so
the script hangs.  The file is just a standard text file with fields
delaminated by pipes ( | ).  Below is the error in the log file:

2004-07-09 15:53:15 StandardContext[/management]cgi: runCGI
(stderr):CGI.pm: Server closed socket during multipart read (client
aborted?).
2004-07-09 15:53:15 StandardContext[/management]cgi: runCGI: 1 lines
received on stderr


I've tried modifying the clientInputTimeout parameter in web.xml but to
no avail.  It still errors out no matter high I set it.  I've also tried
changing the timeout times in server.xml.  I'm not really sure what the
deal is.

Below is the exact form code I'm using to pass the form to the script:

FORM ACTION=cgi-bin/data_import.cgi METHOD=post
ENCTYPE=multipart/form-data
file: INPUT TYPE=file NAME=leadfile
P
INPUT TYPE=submit NAME=Submit VALUE=Submit Form
/FORM


Below is the exact perl code I'm using to grab the data:

$query = new CGI; 
$lead_file = $query-upload(leadfile);  
@lines = $lead_file;



As you can see I'm not doing anything weird or different
here...basically I'm just trying to get a text file to parse and insert
into a database.  The script works great being executed from a command
line or if you send up a few lines of text, but dies otherwise.  Any
help on this would be greatly appreciated...I haven't been able to find
any reference to this problem on the web.  Thanks a lot!



Brian Dittmer [EMAIL PROTECTED]
http://www.tracerdigital.com
(614) 795-0501


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



Re: Container managed security

2004-07-09 Thread Steve Luzynski
On Jul 9, 2004, at 12:40 PM, Robert F. Hall wrote:
Have you tried adding http-method/ elements to  
web-resource-collection ?

   web-resource-collection
 http-methodHEAD/http-method
 http-methodGET/http-method
 http-methodPOST/http-method
 http-methodPUT/http-method
 http-methodDELETE/http-method
   /web-resource-collection
No go there either, tried it with and without.
Is there some logging or debugging I can turn on? The stock logs aren't 
showing me anything other than just a normal access to the resources 
that I'm wanting to protect.

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


common lib for each virtualhost?

2004-07-09 Thread Emerson Cargnin
Is there a way to set a diferent common/lib to each virtualhost?
thanks
--
Emerson Cargnin
Analista de Sistemas - Gerente Regional - Tubarão
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Repost::Connection Timeout

2004-07-09 Thread Sameer Danthurthy
Hello,
  Iam working on high perf servlet that needs to return the response 
within few seconds and hence I want to emulate an non existant connection
rather than a delayed response i.e. the webserver break the tcp connection
rather than hold the client for delayed response from the servlet. I played
around
with the connection timeout parameter in server.xml as well as the timeout
directive in httpd.conf for apache without much success. Iam running the apps
on redhat 8 on intel platform. How should I approach such a thing?
Apache 2.0.47
tomcat 5.x
JK 2

Thanks
sameer


This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please notify
the sender immediately by e-mail if you have received this e-mail by
mistake and delete this e-mail from your system. E-mail transmission
cannot be guaranteed to be secure or error-free as information could
be intercepted, corrupted,lost, destroyed, arrive late or incomplete
or contain viruses. The sender therefore does not accept liability
for any errors or omissions in the contents of this message, which
arise as a result of e-mail transmission.


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



serving static content

2004-07-09 Thread Matthew Hixson
Does there exist a howto on serving static content with Tomcat?  Even 
better would be one that shows how to do this with Tomcat+JBoss.  
Searching Google seems to turn up lots of hits that say basically, Use 
Apache instead of Tomcat to serve static content.  I really need to 
get this working in Tomcat without Apache.
  Thanks,
-M@

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


RE: serving static content

2004-07-09 Thread Mike Curwen
Tomcat will serve static content, pretty much out of the box.  What is
the problem you're experiencing ?


 -Original Message-
 From: Matthew Hixson [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 09, 2004 3:27 PM
 To: Tomcat Users List
 Subject: serving static content
 
 
 Does there exist a howto on serving static content with Tomcat?  Even 
 better would be one that shows how to do this with Tomcat+JBoss.  
 Searching Google seems to turn up lots of hits that say 
 basically, Use 
 Apache instead of Tomcat to serve static content.  I really need to 
 get this working in Tomcat without Apache.
Thanks,
  -M@
 
 
 -
 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]



javax.management classloading

2004-07-09 Thread Jim Nash
Using tomcat 4.1, my web app packaged without JMX support classes (mx4j
in my case) does not seem to have access to Tomcat's javax.management
classes.  That is, when I remove MX4J jars from my war file and deploy
the war normally, when Tomcat's class loader loads the class within my
webapp that contains my JMX stuff, I get a NotCompliantMBeanException.  

 

I can copy Tomcat's mx4j jar files from server/lib to shared/lib and get
the proper behavior, but this seems a bit hackish.

 

Is there a way, and if so what is the right way, to gain access to
Tomcat's JMX MBean server (and to javax.* classes) used by tomcat
itself?  

 

Thx, Jim



Re: serving static content

2004-07-09 Thread Matthew Hixson
I'm trying to serve images from /usr/local/watermarks.  The URL should 
be http://mymachine.com/watermarks/.  I've tried adding a Context to 
server.xml, but every time I try to access 
http://mymachine.com/watermarks I get a 404 message:

The requested resource (/watermarks/) is not available.
This is with Tomcat 5.0.26 embedded in JBoss 3.2.4.  There are not any 
error messages in any logfiles.
  Thanks,
   -M@

On Jul 9, 2004, at 1:41 PM, Mike Curwen wrote:
Tomcat will serve static content, pretty much out of the box.  What 
is
the problem you're experiencing ?


-Original Message-
From: Matthew Hixson [mailto:[EMAIL PROTECTED]
Sent: Friday, July 09, 2004 3:27 PM
To: Tomcat Users List
Subject: serving static content
Does there exist a howto on serving static content with Tomcat?  Even
better would be one that shows how to do this with Tomcat+JBoss.
Searching Google seems to turn up lots of hits that say
basically, Use
Apache instead of Tomcat to serve static content.  I really need to
get this working in Tomcat without Apache.
   Thanks,
 -M@
-
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: serving static content

2004-07-09 Thread Jim Cox
What's your Context entry?


This e-mail and attachments, if any, may contain confidential and/or
proprietary information. Please be advised that the unauthorized use or
disclosure of the information is strictly prohibited. If you are not the
intended recipient, please notify the sender immediately by reply e-mail and
delete all copies of this message and attachments. Thank you. 

 

-Original Message-
From: Matthew Hixson [mailto:[EMAIL PROTECTED]
Sent: Fri 09 July 2004 4:54 pm
To: Tomcat Users List
Subject: Re: serving static content


I'm trying to serve images from /usr/local/watermarks.  The URL should 
be http://mymachine.com/watermarks/.  I've tried adding a Context to 
server.xml, but every time I try to access 
http://mymachine.com/watermarks I get a 404 message:

The requested resource (/watermarks/) is not available.

This is with Tomcat 5.0.26 embedded in JBoss 3.2.4.  There are not any 
error messages in any logfiles.
   Thanks,
-M@

On Jul 9, 2004, at 1:41 PM, Mike Curwen wrote:

 Tomcat will serve static content, pretty much out of the box.  What 
 is
 the problem you're experiencing ?


 -Original Message-
 From: Matthew Hixson [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 09, 2004 3:27 PM
 To: Tomcat Users List
 Subject: serving static content


 Does there exist a howto on serving static content with Tomcat?  Even
 better would be one that shows how to do this with Tomcat+JBoss.
 Searching Google seems to turn up lots of hits that say
 basically, Use
 Apache instead of Tomcat to serve static content.  I really need to
 get this working in Tomcat without Apache.
Thanks,
  -M@


 -
 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: serving static content

2004-07-09 Thread CAGALLOM
PLaese no send emailthank you

-Mensaje original-
De: Matthew Hixson [mailto:[EMAIL PROTECTED]
Enviado el: Viernes 9 de Julio de 2004 15:54
Para: Tomcat Users List
Asunto: Re: serving static content


I'm trying to serve images from /usr/local/watermarks.  The URL should 
be http://mymachine.com/watermarks/.  I've tried adding a Context to 
server.xml, but every time I try to access 
http://mymachine.com/watermarks I get a 404 message:

The requested resource (/watermarks/) is not available.

This is with Tomcat 5.0.26 embedded in JBoss 3.2.4.  There are not any 
error messages in any logfiles.
   Thanks,
-M@

On Jul 9, 2004, at 1:41 PM, Mike Curwen wrote:

 Tomcat will serve static content, pretty much out of the box.  What 
 is
 the problem you're experiencing ?


 -Original Message-
 From: Matthew Hixson [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 09, 2004 3:27 PM
 To: Tomcat Users List
 Subject: serving static content


 Does there exist a howto on serving static content with Tomcat?  Even
 better would be one that shows how to do this with Tomcat+JBoss.
 Searching Google seems to turn up lots of hits that say
 basically, Use
 Apache instead of Tomcat to serve static content.  I really need to
 get this working in Tomcat without Apache.
Thanks,
  -M@


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



AVISO LEGAL:

Esta información es privada y confidencial y está dirigida únicamente a su 
destinatario. Si usted no es el destinatario original de este mensaje y por este medio 
pudo acceder a dicha información por favor elimine el mensaje. La distribución o copia 
de este mensaje está estrictamente prohibida. Esta comunicación es sólo para 
propósitos de información y no debe ser considerada como propuesta, aceptación ni como 
una declaración de voluntad oficial de REPSOL YPF S.A. y/o subsidiarias y/o afiliadas. 
La transmisión de e-mails no garantiza que el correo electrónico sea seguro o libre de 
error. Por consiguiente, no manifestamos que esta información sea completa o precisa. 
Toda información está sujeta a alterarse sin previo aviso. 

This information is private and confidential and intended for the recipient only. If 
you are not the intended recipient of this message you are hereby notified that any 
review, dissemination, distribution or copying of this message is strictly prohibited. 
This communication is for information purposes only and shall not be regarded neither 
as a proposal, acceptance nor as a statement of will or official statement from REPSOL 
YPF S.A. and/or subsidiaries and/or affiliates. Email transmission cannot be 
guaranteed to be secure or error-free. Therefore, we do not represent that this 
information is complete or accurate and it should not be relied upon as such. All 
information is subject to change without notice.

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



Re: serving static content

2004-07-09 Thread Matthew Hixson
 Host name=localhost debug=99
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false
!-- ADD WATERMARKS DIRECTORY --
  Context path=/watermarks appBase=
 docBase=/usr/local/watermarks
 debug=99 reloadable=true
  /Context
  Valve className=org.apache.catalina.valves.AccessLogValve
   prefix=localhost_access_log. suffix=.log
   pattern=common directory=${jboss.server.home.dir}/log
   resolveHosts=false /
  /Host

On Jul 9, 2004, at 1:52 PM, Jim Cox wrote:
What's your Context entry?

This e-mail and attachments, if any, may contain confidential and/or
proprietary information. Please be advised that the unauthorized use or
disclosure of the information is strictly prohibited. If you are not 
the
intended recipient, please notify the sender immediately by reply 
e-mail and
delete all copies of this message and attachments. Thank you.


-Original Message-
From: Matthew Hixson [mailto:[EMAIL PROTECTED]
Sent: Fri 09 July 2004 4:54 pm
To: Tomcat Users List
Subject: Re: serving static content
I'm trying to serve images from /usr/local/watermarks.  The URL should
be http://mymachine.com/watermarks/.  I've tried adding a Context to
server.xml, but every time I try to access
http://mymachine.com/watermarks I get a 404 message:
The requested resource (/watermarks/) is not available.
This is with Tomcat 5.0.26 embedded in JBoss 3.2.4.  There are not any
error messages in any logfiles.
   Thanks,
-M@
On Jul 9, 2004, at 1:41 PM, Mike Curwen wrote:
Tomcat will serve static content, pretty much out of the box.  What
is
the problem you're experiencing ?

-Original Message-
From: Matthew Hixson [mailto:[EMAIL PROTECTED]
Sent: Friday, July 09, 2004 3:27 PM
To: Tomcat Users List
Subject: serving static content
Does there exist a howto on serving static content with Tomcat?  Even
better would be one that shows how to do this with Tomcat+JBoss.
Searching Google seems to turn up lots of hits that say
basically, Use
Apache instead of Tomcat to serve static content.  I really need to
get this working in Tomcat without Apache.
   Thanks,
 -M@
-
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: Apache miss handling jsp files

2004-07-09 Thread Andrew Boyer
I'm not sure if someone already responded, but you may want to check
httpd.conf, and ensure that index.jsp is added to the DirectoryIndex
parameter.

Andrew

 From: James Pohl [EMAIL PROTECTED]
 Subject: Apache miss handling jsp files
 
 I have tomcat 4 installed on a RedHat based server.
 
 I have aliases set up for a test domain.
 
 The site works fine when going to the test domain :8080, but when I try
 to go to the site without port :8080 the original tomcat page comes up.
 So it seems tomcat is working properly because the 8080 port answers
 correctly. So when apache answers it seems to ignore the DocumentRoot's
 index.jsp and serves the tomcat page.  If I go to a phpinfo.php page
 within the DocumentRoot apache will answer properly.
 
 Can someone shed some light as to what I'm missing in the server set
 up.


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



RE: serving static content

2004-07-09 Thread Mike Curwen
To unsubscribe, e-mail: [EMAIL PROTECTED] 

!



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 09, 2004 3:57 PM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: RE: serving static content
 
 
 PLaese no send emailthank you


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



RE: serving static content

2004-07-09 Thread Mike Curwen
Adding a context is not quite enough. It must be recognized as a web-app
also. Which means place an empty web.xml file in the WEB-INF directory.


 -Original Message-
 From: Matthew Hixson [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 09, 2004 3:54 PM
 To: Tomcat Users List
 Subject: Re: serving static content
 
 
 I'm trying to serve images from /usr/local/watermarks.  The 
 URL should 
 be http://mymachine.com/watermarks/.  I've tried adding a Context to 
 server.xml, but every time I try to access 
 http://mymachine.com/watermarks I get a 404 message:
 
 The requested resource (/watermarks/) is not available.
 
 This is with Tomcat 5.0.26 embedded in JBoss 3.2.4.  There 
 are not any 
 error messages in any logfiles.
Thanks,
 -M@
 
 On Jul 9, 2004, at 1:41 PM, Mike Curwen wrote:
 
  Tomcat will serve static content, pretty much out of the 
 box.  What
  is
  the problem you're experiencing ?
 
 
  -Original Message-
  From: Matthew Hixson [mailto:[EMAIL PROTECTED]
  Sent: Friday, July 09, 2004 3:27 PM
  To: Tomcat Users List
  Subject: serving static content
 
 
  Does there exist a howto on serving static content with 
 Tomcat?  Even 
  better would be one that shows how to do this with Tomcat+JBoss. 
  Searching Google seems to turn up lots of hits that say basically, 
  Use Apache instead of Tomcat to serve static content.  I really 
  need to get this working in Tomcat without Apache.
 Thanks,
   -M@
 
 
  
 -
  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: serving static content

2004-07-09 Thread Jim Cox
Not sure that you need it, but do you have a WEB-INF directory underneath
/usr/local/watermarks (i.e. /usr/local/watermarks/WEB-INF/)? If so, do you
have a web.xml file in there (even a skeletal one)?


This e-mail and attachments, if any, may contain confidential and/or
proprietary information. Please be advised that the unauthorized use or
disclosure of the information is strictly prohibited. If you are not the
intended recipient, please notify the sender immediately by reply e-mail and
delete all copies of this message and attachments. Thank you. 

 

-Original Message-
From: Matthew Hixson [mailto:[EMAIL PROTECTED]
Sent: Fri 09 July 2004 4:59 pm
To: Tomcat Users List
Subject: Re: serving static content


  Host name=localhost debug=99
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false

!-- ADD WATERMARKS DIRECTORY --
   Context path=/watermarks appBase=
  docBase=/usr/local/watermarks
  debug=99 reloadable=true
   /Context

   Valve className=org.apache.catalina.valves.AccessLogValve
prefix=localhost_access_log. suffix=.log
pattern=common directory=${jboss.server.home.dir}/log
resolveHosts=false /

   /Host



On Jul 9, 2004, at 1:52 PM, Jim Cox wrote:

 What's your Context entry?

 
 This e-mail and attachments, if any, may contain confidential and/or
 proprietary information. Please be advised that the unauthorized use or
 disclosure of the information is strictly prohibited. If you are not 
 the
 intended recipient, please notify the sender immediately by reply 
 e-mail and
 delete all copies of this message and attachments. Thank you.



 -Original Message-
 From: Matthew Hixson [mailto:[EMAIL PROTECTED]
 Sent: Fri 09 July 2004 4:54 pm
 To: Tomcat Users List
 Subject: Re: serving static content


 I'm trying to serve images from /usr/local/watermarks.  The URL should
 be http://mymachine.com/watermarks/.  I've tried adding a Context to
 server.xml, but every time I try to access
 http://mymachine.com/watermarks I get a 404 message:

 The requested resource (/watermarks/) is not available.

 This is with Tomcat 5.0.26 embedded in JBoss 3.2.4.  There are not any
 error messages in any logfiles.
Thanks,
 -M@

 On Jul 9, 2004, at 1:41 PM, Mike Curwen wrote:

 Tomcat will serve static content, pretty much out of the box.  What
 is
 the problem you're experiencing ?


 -Original Message-
 From: Matthew Hixson [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 09, 2004 3:27 PM
 To: Tomcat Users List
 Subject: serving static content


 Does there exist a howto on serving static content with Tomcat?  Even
 better would be one that shows how to do this with Tomcat+JBoss.
 Searching Google seems to turn up lots of hits that say
 basically, Use
 Apache instead of Tomcat to serve static content.  I really need to
 get this working in Tomcat without Apache.
Thanks,
  -M@


 -
 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: Tomcat 5.0 and JavaMail - solved? not quite

2004-07-09 Thread e-Denton Subscriber
My lookup still fails (stack trace at end of this email) with
JasperException:

   Context initContext = new InitialContext();
   Context envContext  = (Context) initContext.lookup (java:comp/env);
   Session mailSession = (Session) envContext.lookup (mail/Session);
// fails

Is anyone successfully using JavaMail with JNDI lookup on Tomcat 5.0.27 ?

Should I report it as a bug?

- Original Message - 
From: e-Denton Subscriber [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 9:10 AM
Subject: Re: Tomcat 5.0 and JavaMail - solved?


 You're right! Thanks! My Tomcat 5.0.25 common/lib/naming-factory.jar
doesn't
 contain a org.apache.naming.factory.MailSessionFactory I'll try your
 solution.

 Thanks to the other posters as well. (I did forget activation.jar, even
 though I hadn't hit that problem yet).

 - Original Message - 
 From: David Smith [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, July 08, 2004 8:34 AM
 Subject: Re: Tomcat 5.0 and JavaMail


  opinion
Don't get in the habit of putting jars in java_home/jre/lib/ext.
  Those jars get loaded before everything and ugly version conflicts among
  other problems show up.
  /opinion
 
  I have a different take on your problem.  Are you using Tomcat 5.0.25?
  If so, you may want to consider upgrading or just stealing
  common/lib/naming-factory.jar from a 5.0.24 version of Tomcat.
  org.apache.naming.factory.MailSessionFactory is missing from tomcat
  5.0.25.  See this message from the archives:
 
 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg128258.html
 
  --David
 
  Aris Javier wrote:
 
  you don't need to put activation.jar and mail.jar inside
  catalina_home\common\lib\ you need to put them inside
  java_home\jre\lib\ext...
  
  regards...
  aris
  
  -Original Message-
  From: Dale, Matt [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 07, 2004 11:23 PM
  To: Tomcat Users List; e-Denton Subscriber
  Subject: RE: Tomcat 5.0 and JavaMail
  
  
  
  I've found that you also need activation.jar for JavaMail, do you have
  this in common/lib too?
  
  Ta
  Matt
  
  -Original Message-
  From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
  Sent: 07 July 2004 15:49
  To: Tomcat Users List
  Subject: Tomcat 5.0 and JavaMail
  
  
  I had JavaMail working in Tomcat 4, but in Tomcat 5, I am having
  trouble. I know it's something simple, perhaps you can see the problem.
  Mail.jar is in Tomcat 5.0\common\lib.
  
  I am getting this error:
  
  javax.naming.NamingException: Cannot create resource instance:
  
  Using this context in Tomcat 5.0\conf\Catalina\localhost\e_Denton.xml
  
  Context displayName=Portal Application
   debug=5
   docBase=e-Denton
   path=/e-Denton
   reloadable=true
   useNaming=true
  
  Loader checkInterval=1 /
  
   Resource name=mail/Session auth=Container
  type=javax.mail.Session /  ResourceParams name=mail/Session
parameter
 namemail.smtp.host/name
 valuemars.webappcabaret.net/value
/parameter
   /ResourceParams
  ...
  
  And this web.xml:
  
  !-- JavaMail Resource --
   resource-ref
description
Resource reference to a factory for javax.mail.Session
preconfigured to connect to the appropriate SMTP server.
/description
res-ref-namemail/Session/res-ref-name
res-typejavax.mail.Session/res-type
res-authContainer/res-auth
   /resource-ref
  
  Accessed like this:
  
try
 {
 Context initContext = new InitialContext();
 Context envContext  = (Context) initContext.lookup(java:comp/env);
 Session session = (Session) envContext.lookup(mail/Session);
 }
catch (javax.naming.NamingException ne)

Nested Exception:
java.lang.reflect.InvocationTargetException




java.lang.reflect.InvocationTargetException 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.jasper.runtime.JspRuntimeLibrary.internalIntrospecthelper(JspRunt
imeLibrary.java:355) at
org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(JspRuntimeLibra
ry.java:306) at
org.apache.jsp.Test_005fJavaMail_jsp._jspService(Test_005fJavaMail_jsp.java:
81) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
24) at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at

Re: serving static content

2004-07-09 Thread Matthew Hixson
I actually did try this already.  I have a WEB-INF with a web.xml in  
it.  The entire web.xml is:

---
?xml version=1.0?
!DOCTYPE web-app PUBLIC
  -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
/web-app
---
I also made an empty lib directory beneath WEB-INF, but that didn't  
help matters.
  -M@

On Jul 9, 2004, at 1:58 PM, Jim Cox wrote:
Not sure that you need it, but do you have a WEB-INF directory  
underneath
/usr/local/watermarks (i.e. /usr/local/watermarks/WEB-INF/)? If so, do  
you
have a web.xml file in there (even a skeletal one)?


This e-mail and attachments, if any, may contain confidential and/or
proprietary information. Please be advised that the unauthorized use or
disclosure of the information is strictly prohibited. If you are not  
the
intended recipient, please notify the sender immediately by reply  
e-mail and
delete all copies of this message and attachments. Thank you.


-Original Message-
From: Matthew Hixson [mailto:[EMAIL PROTECTED]
Sent: Fri 09 July 2004 4:59 pm
To: Tomcat Users List
Subject: Re: serving static content
  Host name=localhost debug=99
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
!-- ADD WATERMARKS DIRECTORY --
   Context path=/watermarks appBase=
  docBase=/usr/local/watermarks
  debug=99 reloadable=true
   /Context
   Valve className=org.apache.catalina.valves.AccessLogValve
prefix=localhost_access_log. suffix=.log
pattern=common  
directory=${jboss.server.home.dir}/log
resolveHosts=false /

   /Host

On Jul 9, 2004, at 1:52 PM, Jim Cox wrote:
What's your Context entry?

This e-mail and attachments, if any, may contain confidential and/or
proprietary information. Please be advised that the unauthorized use  
or
disclosure of the information is strictly prohibited. If you are not
the
intended recipient, please notify the sender immediately by reply
e-mail and
delete all copies of this message and attachments. Thank you.


-Original Message-
From: Matthew Hixson [mailto:[EMAIL PROTECTED]
Sent: Fri 09 July 2004 4:54 pm
To: Tomcat Users List
Subject: Re: serving static content
I'm trying to serve images from /usr/local/watermarks.  The URL should
be http://mymachine.com/watermarks/.  I've tried adding a Context to
server.xml, but every time I try to access
http://mymachine.com/watermarks I get a 404 message:
The requested resource (/watermarks/) is not available.
This is with Tomcat 5.0.26 embedded in JBoss 3.2.4.  There are not any
error messages in any logfiles.
   Thanks,
-M@
On Jul 9, 2004, at 1:41 PM, Mike Curwen wrote:
Tomcat will serve static content, pretty much out of the box.  What
is
the problem you're experiencing ?

-Original Message-
From: Matthew Hixson [mailto:[EMAIL PROTECTED]
Sent: Friday, July 09, 2004 3:27 PM
To: Tomcat Users List
Subject: serving static content
Does there exist a howto on serving static content with Tomcat?   
Even
better would be one that shows how to do this with Tomcat+JBoss.
Searching Google seems to turn up lots of hits that say
basically, Use
Apache instead of Tomcat to serve static content.  I really need to
get this working in Tomcat without Apache.
   Thanks,
 -M@

 
-
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: serving static content

2004-07-09 Thread Jim Cox
I've had issues in the past with the generated webapp.xml files that
Tomcat generates under ${TOMCAT_ROOT}/conf/Catalina/server/, for which
stopping Tomcat, deleting the .xml file, and starting Tomcat seemed to fix.

In your case that file might be:
  /usr/local/tomcat/conf/Catalina/localhost/watermarks.xml



This e-mail and attachments, if any, may contain confidential and/or
proprietary information. Please be advised that the unauthorized use or
disclosure of the information is strictly prohibited. If you are not the
intended recipient, please notify the sender immediately by reply e-mail and
delete all copies of this message and attachments. Thank you. 

 

-Original Message-
From: Matthew Hixson [mailto:[EMAIL PROTECTED]
Sent: Fri 09 July 2004 5:09 pm
To: Tomcat Users List
Subject: Re: serving static content


I actually did try this already.  I have a WEB-INF with a web.xml in  
it.  The entire web.xml is:

---
?xml version=1.0?
!DOCTYPE web-app PUBLIC
   -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

/web-app
---

I also made an empty lib directory beneath WEB-INF, but that didn't  
help matters.
   -M@

On Jul 9, 2004, at 1:58 PM, Jim Cox wrote:

 Not sure that you need it, but do you have a WEB-INF directory  
 underneath
 /usr/local/watermarks (i.e. /usr/local/watermarks/WEB-INF/)? If so, do  
 you
 have a web.xml file in there (even a skeletal one)?

 
 This e-mail and attachments, if any, may contain confidential and/or
 proprietary information. Please be advised that the unauthorized use or
 disclosure of the information is strictly prohibited. If you are not  
 the
 intended recipient, please notify the sender immediately by reply  
 e-mail and
 delete all copies of this message and attachments. Thank you.



 -Original Message-
 From: Matthew Hixson [mailto:[EMAIL PROTECTED]
 Sent: Fri 09 July 2004 4:59 pm
 To: Tomcat Users List
 Subject: Re: serving static content


   Host name=localhost debug=99
 unpackWARs=true autoDeploy=true
 xmlValidation=false xmlNamespaceAware=false

 !-- ADD WATERMARKS DIRECTORY --
Context path=/watermarks appBase=
   docBase=/usr/local/watermarks
   debug=99 reloadable=true
/Context

Valve className=org.apache.catalina.valves.AccessLogValve
 prefix=localhost_access_log. suffix=.log
 pattern=common  
 directory=${jboss.server.home.dir}/log
 resolveHosts=false /

/Host



 On Jul 9, 2004, at 1:52 PM, Jim Cox wrote:

 What's your Context entry?

 
 This e-mail and attachments, if any, may contain confidential and/or
 proprietary information. Please be advised that the unauthorized use  
 or
 disclosure of the information is strictly prohibited. If you are not
 the
 intended recipient, please notify the sender immediately by reply
 e-mail and
 delete all copies of this message and attachments. Thank you.



 -Original Message-
 From: Matthew Hixson [mailto:[EMAIL PROTECTED]
 Sent: Fri 09 July 2004 4:54 pm
 To: Tomcat Users List
 Subject: Re: serving static content


 I'm trying to serve images from /usr/local/watermarks.  The URL should
 be http://mymachine.com/watermarks/.  I've tried adding a Context to
 server.xml, but every time I try to access
 http://mymachine.com/watermarks I get a 404 message:

 The requested resource (/watermarks/) is not available.

 This is with Tomcat 5.0.26 embedded in JBoss 3.2.4.  There are not any
 error messages in any logfiles.
Thanks,
 -M@

 On Jul 9, 2004, at 1:41 PM, Mike Curwen wrote:

 Tomcat will serve static content, pretty much out of the box.  What
 is
 the problem you're experiencing ?


 -Original Message-
 From: Matthew Hixson [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 09, 2004 3:27 PM
 To: Tomcat Users List
 Subject: serving static content


 Does there exist a howto on serving static content with Tomcat?   
 Even
 better would be one that shows how to do this with Tomcat+JBoss.
 Searching Google seems to turn up lots of hits that say
 basically, Use
 Apache instead of Tomcat to serve static content.  I really need to
 get this working in Tomcat without Apache.
Thanks,
  -M@


  
 -
 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 

RE: Newbie question: Error 503 Service Temp. Unavailable

2004-07-09 Thread Birt, Jeffrey
I finally got this working

I used the min configuration given in the jk docs of.

jk2.properties: 

# The default port is 8009 but you can use another one
# channelSocket.port=8019

workers2.properties: 

# Define the communication channel 
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp

And this works, which means my problem, is in trying to create the Unix
channel.  I don't know why the Unix channel config did not work, heck I
don't even know the difference between a Unix channel and socket
channel!



Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 


-Original Message-
From: Birt, Jeffrey [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 09, 2004 8:06 AM
To: Tim Wills
Cc: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable

I too am running Linux (Fedora 1).  Another chap posted after me having
similar problems with Windows (IIS).  I've confirmed that apache is
running as user apache which belongs to the group apache.  User tomcat
of the group tomcat owns the tomcat directory (and I'm running tomcat as
user tomcat).  I've added the apache group to the tomcat group (I think)
like this

#usermod -G apache,tomcat apache

I read through some more of the Tomcat 5 docs last night and I'll give
it another whack today.

Thanks,

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 


-Original Message-
From: Tim Wills [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 08, 2004 11:18 PM
To: Birt, Jeffrey
Cc: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable

I had the same Error 503 on Linux (not Windows) and found that was
caused by
Apache running as Nobody. Apache couldn't write to the socket because
the
owner was tomcat and Nobody was not a member of the group tomcat.

Check your apache error_log and see what it says. I have never run a
Windows
server so can't be more helpful.

Cheers

Tim




-
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: serving static content

2004-07-09 Thread Matthew Hixson
Under JBoss this file is  
/usr/local/jboss/server/default/conf/jboss.web/localhost/ 
watermarks.xml.  I've tried deleting that file and restarting, but it  
doesn't make a bit of difference.  The content of that file is:

?xml version='1.0' encoding='utf-8'?
Context debug=99 docBase=/usr/local/watermarks path=/watermarks  
reloadable=true
/Context

  -M@
On Jul 9, 2004, at 2:12 PM, Jim Cox wrote:
I've had issues in the past with the generated webapp.xml files that
Tomcat generates under ${TOMCAT_ROOT}/conf/Catalina/server/, for  
which
stopping Tomcat, deleting the .xml file, and starting Tomcat seemed to  
fix.

In your case that file might be:
  /usr/local/tomcat/conf/Catalina/localhost/watermarks.xml

This e-mail and attachments, if any, may contain confidential and/or
proprietary information. Please be advised that the unauthorized use or
disclosure of the information is strictly prohibited. If you are not  
the
intended recipient, please notify the sender immediately by reply  
e-mail and
delete all copies of this message and attachments. Thank you.


-Original Message-
From: Matthew Hixson [mailto:[EMAIL PROTECTED]
Sent: Fri 09 July 2004 5:09 pm
To: Tomcat Users List
Subject: Re: serving static content
I actually did try this already.  I have a WEB-INF with a web.xml in
it.  The entire web.xml is:
---
?xml version=1.0?
!DOCTYPE web-app PUBLIC
   -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
/web-app
---
I also made an empty lib directory beneath WEB-INF, but that didn't
help matters.
   -M@
On Jul 9, 2004, at 1:58 PM, Jim Cox wrote:
Not sure that you need it, but do you have a WEB-INF directory
underneath
/usr/local/watermarks (i.e. /usr/local/watermarks/WEB-INF/)? If so, do
you
have a web.xml file in there (even a skeletal one)?

This e-mail and attachments, if any, may contain confidential and/or
proprietary information. Please be advised that the unauthorized use  
or
disclosure of the information is strictly prohibited. If you are not
the
intended recipient, please notify the sender immediately by reply
e-mail and
delete all copies of this message and attachments. Thank you.


-Original Message-
From: Matthew Hixson [mailto:[EMAIL PROTECTED]
Sent: Fri 09 July 2004 4:59 pm
To: Tomcat Users List
Subject: Re: serving static content
  Host name=localhost debug=99
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
!-- ADD WATERMARKS DIRECTORY --
   Context path=/watermarks appBase=
  docBase=/usr/local/watermarks
  debug=99 reloadable=true
   /Context
   Valve className=org.apache.catalina.valves.AccessLogValve
prefix=localhost_access_log. suffix=.log
pattern=common
directory=${jboss.server.home.dir}/log
resolveHosts=false /
   /Host

On Jul 9, 2004, at 1:52 PM, Jim Cox wrote:
What's your Context entry?

This e-mail and attachments, if any, may contain confidential and/or
proprietary information. Please be advised that the unauthorized use
or
disclosure of the information is strictly prohibited. If you are not
the
intended recipient, please notify the sender immediately by reply
e-mail and
delete all copies of this message and attachments. Thank you.

-Original Message-
From: Matthew Hixson [mailto:[EMAIL PROTECTED]
Sent: Fri 09 July 2004 4:54 pm
To: Tomcat Users List
Subject: Re: serving static content
I'm trying to serve images from /usr/local/watermarks.  The URL  
should
be http://mymachine.com/watermarks/.  I've tried adding a Context to
server.xml, but every time I try to access
http://mymachine.com/watermarks I get a 404 message:

The requested resource (/watermarks/) is not available.
This is with Tomcat 5.0.26 embedded in JBoss 3.2.4.  There are not  
any
error messages in any logfiles.
   Thanks,
-M@

On Jul 9, 2004, at 1:41 PM, Mike Curwen wrote:
Tomcat will serve static content, pretty much out of the box.   
What
is
the problem you're experiencing ?


-Original Message-
From: Matthew Hixson [mailto:[EMAIL PROTECTED]
Sent: Friday, July 09, 2004 3:27 PM
To: Tomcat Users List
Subject: serving static content
Does there exist a howto on serving static content with Tomcat?
Even
better would be one that shows how to do this with Tomcat+JBoss.
Searching Google seems to turn up lots of hits that say
basically, Use
Apache instead of Tomcat to serve static content.  I really need  
to
get this working in Tomcat without Apache.
   Thanks,
 -M@

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



RE: serving static content

2004-07-09 Thread Mike Jackson
Have you tried making a symbolic link from /usr/local/watermarks to
$TOMCAT_HOME/webapps/watermarks?

The syntax would be:

ln -s /usr/local/watermarks $TOMCAT_HOME/webapps/watermarks

Also check the manager app, tomcat may not be recognizing things, in which
case you'd not see it in the manager.  Or it might be that tomcat, for
whatever reason, isn't starting the context.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]


 -Original Message-
 From: Matthew Hixson [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 09, 2004 2:48 PM
 To: Tomcat Users List
 Subject: Re: serving static content
 
 
 Under JBoss this file is 
 /usr/local/jboss/server/default/conf/jboss.web/localhost/ 
 watermarks.xml.  I've tried deleting that file and 
 restarting, but it  
 doesn't make a bit of difference.  The content of that file is:
 
 ?xml version='1.0' encoding='utf-8'?
 Context debug=99 docBase=/usr/local/watermarks 
 path=/watermarks  
 reloadable=true
 /Context
 
-M@
 
 On Jul 9, 2004, at 2:12 PM, Jim Cox wrote:
 
  I've had issues in the past with the generated webapp.xml 
 files that 
  Tomcat generates under ${TOMCAT_ROOT}/conf/Catalina/server/, for
  which
  stopping Tomcat, deleting the .xml file, and starting 
 Tomcat seemed to  
  fix.
 
  In your case that file might be:
/usr/local/tomcat/conf/Catalina/localhost/watermarks.xml
 
 
  
  This e-mail and attachments, if any, may contain 
 confidential and/or 
  proprietary information. Please be advised that the 
 unauthorized use 
  or disclosure of the information is strictly prohibited. If 
 you are not
  the
  intended recipient, please notify the sender immediately by reply  
  e-mail and
  delete all copies of this message and attachments. Thank you.
 
 
 
  -Original Message-
  From: Matthew Hixson [mailto:[EMAIL PROTECTED]
  Sent: Fri 09 July 2004 5:09 pm
  To: Tomcat Users List
  Subject: Re: serving static content
 
 
  I actually did try this already.  I have a WEB-INF with a 
 web.xml in 
  it.  The entire web.xml is:
 
  ---
  ?xml version=1.0?
  !DOCTYPE web-app PUBLIC
 -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
 
  web-app
 
  /web-app
  ---
 
  I also made an empty lib directory beneath WEB-INF, but that didn't 
  help matters.
 -M@
 
  On Jul 9, 2004, at 1:58 PM, Jim Cox wrote:
 
  Not sure that you need it, but do you have a WEB-INF directory 
  underneath /usr/local/watermarks (i.e. 
  /usr/local/watermarks/WEB-INF/)? If so, do you
  have a web.xml file in there (even a skeletal one)?
 
  
  This e-mail and attachments, if any, may contain 
 confidential and/or 
  proprietary information. Please be advised that the 
 unauthorized use
  or
  disclosure of the information is strictly prohibited. If 
 you are not
  the
  intended recipient, please notify the sender immediately by reply
  e-mail and
  delete all copies of this message and attachments. Thank you.
 
 
 
  -Original Message-
  From: Matthew Hixson [mailto:[EMAIL PROTECTED]
  Sent: Fri 09 July 2004 4:59 pm
  To: Tomcat Users List
  Subject: Re: serving static content
 
 
Host name=localhost debug=99
  unpackWARs=true autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false
 
  !-- ADD WATERMARKS DIRECTORY --
 Context path=/watermarks appBase=
docBase=/usr/local/watermarks
debug=99 reloadable=true
 /Context
 
 Valve className=org.apache.catalina.valves.AccessLogValve
  prefix=localhost_access_log. suffix=.log
  pattern=common 
  directory=${jboss.server.home.dir}/log
  resolveHosts=false /
 
 /Host
 
 
 
  On Jul 9, 2004, at 1:52 PM, Jim Cox wrote:
 
  What's your Context entry?
 
  
  This e-mail and attachments, if any, may contain 
 confidential and/or 
  proprietary information. Please be advised that the 
 unauthorized use 
  or disclosure of the information is strictly prohibited. 
 If you are 
  not the
  intended recipient, please notify the sender immediately by reply
  e-mail and
  delete all copies of this message and attachments. Thank you.
 
 
 
  -Original Message-
  From: Matthew Hixson [mailto:[EMAIL PROTECTED]
  Sent: Fri 09 July 2004 4:54 pm
  To: Tomcat Users List
  Subject: Re: serving static content
 
 
  I'm trying to serve images from /usr/local/watermarks.  The URL
  should
  be http://mymachine.com/watermarks/.  I've tried adding a 
 Context to
  server.xml, but every time I try to access
  http://mymachine.com/watermarks I get a 404 message:
 
  The requested resource (/watermarks/) is not available.
 
  This is with Tomcat 5.0.26 embedded in JBoss 3.2.4.  There are not
  any
  error messages in any 

Re: serving static content

2004-07-09 Thread Matthew Hixson
So, when I hit my machine without anything after the machine name in 
the URL I see a Welcome to JBoss page.  One line on this page has:

Tomcat status (full) (XML)
Clicking on the 'full' link gives me a page with the output below.  It 
looks like it does know about the watermarks context.  I still don't 
know why Tomcat is saying its unavailable though.
  -M@

JVM
 Free memory: 90.18 MB Total memory: 99.12 MB Max memory: 320.00 MB
jk-8009
 Max threads: 200 Min spare threads: 4 Max spare threads: 50 Current 
thread count: 4 Current thread busy: 1
 Max processing time: 0 ms Processing time: 0 s Request count: 0 Error 
count: 0 Bytes received: 0.00 MB Bytes sent: 0.00 MB

Stage
Time
B Sent
B Recv
Client
VHost
Request
P: Parse and prepare request S: Service F: Finishing R: Ready K: 
Keepalive

http-0.0.0.0-8080
 Max threads: 150 Min spare threads: 25 Max spare threads: 75 Current 
thread count: 25 Current thread busy: 2
 Max processing time: 1493 ms Processing time: 4 s Request count: 17 
Error count: 9 Bytes received: 0.00 MB Bytes sent: 0.03 MB

Stage
Time
B Sent
B Recv
Client
VHost
Request
S
97 ms
0 KB
0 KB
192.168.1.1
www.forfones.com.poindextrose.org
GET /status?full=true HTTP/1.1
R
?
?
?
?
?
?
R
?
?
?
?
?
?
P: Parse and prepare request S: Service F: Finishing R: Ready K: 
Keepalive

Application list
localhost/watermarks
localhost/
localhost/watermarks
 Startup time: 0 ms TLD scan time: 0 ms
localhost/
 Startup time: 46 ms TLD scan time: 0 ms
 Active sessions: 0 Session count: 0 Max active sessions: 0 Rejected 
session creations: 0 Expired sessions: 1 Processing time: 22 ms
 JSPs loaded: 0 JSPs reloaded: 0

default [ / ]
 Processing time: 0 s Max time: 126 ms Request count: 10 Error count: 7 
Load time: 143 ms Classloading time: 138 ms

Status Servlet [ /status ]
 Processing time: 1 s Max time: 796 ms Request count: 6 Error count: 0 
Load time: 515 ms Classloading time: 446 ms

jsp [ *.jsp , *.jspx ]
 Processing time: 0 s Max time: 0 ms Request count: 0 Error count: 0 
Load time: 375 ms Classloading time: 30 ms

On Jul 9, 2004, at 2:53 PM, Mike Jackson wrote:
Have you tried making a symbolic link from /usr/local/watermarks to
$TOMCAT_HOME/webapps/watermarks?
The syntax would be:
ln -s /usr/local/watermarks $TOMCAT_HOME/webapps/watermarks
Also check the manager app, tomcat may not be recognizing things, in 
which
case you'd not see it in the manager.  Or it might be that tomcat, for
whatever reason, isn't starting the context.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

-Original Message-
From: Matthew Hixson [mailto:[EMAIL PROTECTED]
Sent: Friday, July 09, 2004 2:48 PM
To: Tomcat Users List
Subject: Re: serving static content
Under JBoss this file is
/usr/local/jboss/server/default/conf/jboss.web/localhost/
watermarks.xml.  I've tried deleting that file and
restarting, but it
doesn't make a bit of difference.  The content of that file is:
?xml version='1.0' encoding='utf-8'?
Context debug=99 docBase=/usr/local/watermarks
path=/watermarks
reloadable=true
/Context
   -M@
On Jul 9, 2004, at 2:12 PM, Jim Cox wrote:
I've had issues in the past with the generated webapp.xml
files that
Tomcat generates under ${TOMCAT_ROOT}/conf/Catalina/server/, for
which
stopping Tomcat, deleting the .xml file, and starting
Tomcat seemed to
fix.
In your case that file might be:
  /usr/local/tomcat/conf/Catalina/localhost/watermarks.xml

This e-mail and attachments, if any, may contain
confidential and/or
proprietary information. Please be advised that the
unauthorized use
or disclosure of the information is strictly prohibited. If
you are not
the
intended recipient, please notify the sender immediately by reply
e-mail and
delete all copies of this message and attachments. Thank you.

-Original Message-
From: Matthew Hixson [mailto:[EMAIL PROTECTED]
Sent: Fri 09 July 2004 5:09 pm
To: Tomcat Users List
Subject: Re: serving static content
I actually did try this already.  I have a WEB-INF with a
web.xml in
it.  The entire web.xml is:
---
?xml version=1.0?
!DOCTYPE web-app PUBLIC
   -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
/web-app
---
I also made an empty lib directory beneath WEB-INF, but that didn't
help matters.
   -M@
On Jul 9, 2004, at 1:58 PM, Jim Cox wrote:
Not sure that you need it, but do you have a WEB-INF directory
underneath /usr/local/watermarks (i.e.
/usr/local/watermarks/WEB-INF/)? If so, do you
have a web.xml file in there (even a skeletal one)?

This e-mail and attachments, if any, may contain
confidential and/or
proprietary information. Please be advised that the
unauthorized use
or
disclosure of the information is strictly prohibited. If
you are not
the
intended recipient, please notify the sender immediately by reply
e-mail and
delete all copies of this message and 

Re: Container managed security

2004-07-09 Thread QM
On Fri, Jul 09, 2004 at 03:20:39PM -0500, Steve Luzynski wrote:
: Is there some logging or debugging I can turn on? The stock logs aren't 
: showing me anything other than just a normal access to the resources 
: that I'm wanting to protect.

Another silly question, then: what's the deployed webapp?
Is IPBoss a proper context, or is IPBoss the subdir of something
mapped to the root context?

Yes, I'm grasping  ;)

-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: favicon question

2004-07-09 Thread QM
On Fri, Jul 09, 2004 at 01:12:30PM -0700, Mufaddal Khumri wrote:
: out.print(link rel='shortcut icon' 
: href='/mywebapp/images/favicon.ico' type='image/x-icon');
: 
: The favicon shows up in Safari on the Mac , but not on netscape, or IE 
: . On windows it does not show up in either IE or Netscape.

1/ My understanding is that most browsers look for the URI /favicon.ico.
It (sort of) makes sense, since browsers don't distinguish between
different webapps: they just know, I go to this host.

2/ Please post new messages to the list, instead of just replying to old
ones.  

-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: getRemoteHost return IP address

2004-07-09 Thread QM
On Fri, Jul 09, 2004 at 06:49:51PM +, Michael Tang wrote:
: I am using Tomcat 4.0.6 and our customer ran into a weird and 
: hard-to-reproduce problem. From the log, we see within one servlet, 
: HttpServletRequest.getRemoteHost return host name (enableLookups=true in 
: server.xml). However, during the running, one HttpProcessor thread suddenly 
: switch to returning IP address instead of the hostname. Does anyone see 
: similar problem before or have any suggestion?

Is the macine otherwise (that is, outside of Tomcat) able to perform a
reverse lookup of the IP?  Because if the reverse lookup fails, Tomcat
will just log the IP.

Otherwise, if it's a true Tomcat bug, it's unlikely it will be fixed in
an official release: v4.0.x is now two revisions behind the current
version (5.0.x).

-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: serving static content

2004-07-09 Thread QM
On Fri, Jul 09, 2004 at 01:58:40PM -0700, Matthew Hixson wrote:
:  Host name=localhost debug=99
:unpackWARs=true autoDeploy=true
:xmlValidation=false xmlNamespaceAware=false
: 
:   Context path=/watermarks appBase=
:  docBase=/usr/local/watermarks
:  debug=99 reloadable=true
:   /Context


Please, humor me: what about

Host
{...same as above...}
appBase=/usr/local

Context
path=/watermarks
docBase=watermarks
debug=99
reloadable=true
/


and try the URL

http://localhost:{port}/watermarks

What happens then?

btw, Tomcat uses commons-logging (or is that log4j?) under the covers.
You can up the logging through the commons-logging config.  I forget the
specifics, but instructions are in the archives somewhere.

-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: serving static content

2004-07-09 Thread Matthew Hixson
Got it!  My colleague discovered this post:
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840204#3840204
I put the defaultWebXml attribute into the Context and pointed it to 
the stock global Tomcat web.xml file.  Now Tomcat thinks that 
/watermarks/ is a real webapp apparently and files are being served out 
of that directory.
  Thanks to everyone for the help and I hope someone else benefits from 
this thread someday.
  Cheers,
   -M@

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


Re: getRemoteHost return IP address

2004-07-09 Thread Michael Tang
It is not the problem with the tomcat log. It is our appliation log shows 
that that getRemoteHost returned an IP instead of host name. It shouldn't 
be a network problem because the call does return the host name for a period 
of time. But we are not sure what our web application does that trigger the 
call to return IP address afterwards.

-Michael

From: QM [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: getRemoteHost return IP address
Date: Fri, 9 Jul 2004 17:59:17 -0500
On Fri, Jul 09, 2004 at 06:49:51PM +, Michael Tang wrote:
: I am using Tomcat 4.0.6 and our customer ran into a weird and
: hard-to-reproduce problem. From the log, we see within one servlet,
: HttpServletRequest.getRemoteHost return host name (enableLookups=true 
in
: server.xml). However, during the running, one HttpProcessor thread 
suddenly
: switch to returning IP address instead of the hostname. Does anyone see
: similar problem before or have any suggestion?

Is the macine otherwise (that is, outside of Tomcat) able to perform a
reverse lookup of the IP?  Because if the reverse lookup fails, Tomcat
will just log the IP.
Otherwise, if it's a true Tomcat bug, it's unlikely it will be fixed in
an official release: v4.0.x is now two revisions behind the current
version (5.0.x).
-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]
_
MSN Life Events gives you the tips and tools to handle the turning points in 
your life. http://lifeevents.msn.com

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


RE: favicon question

2004-07-09 Thread Erik Earle
You could map a servlet to /favicon.ico that serves different icons based on 
a cookie value that is set per context (with a custom Valve if you like)  
:oP



Original Message Follows
From: Mufaddal Khumri [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: favicon question
Date: Fri, 9 Jul 2004 13:12:30 -0700
I have a webapp deployed under tomcat + apache.
I have a taglib in which i have the following:
out.print(link rel='shortcut icon' href='/mywebapp/images/favicon.ico' 
type='image/x-icon');

The favicon.ico is a 16 * 16 icon file.
The favicon shows up in Safari on the Mac , but not on netscape, or IE . On 
windows it does not show up in either IE or Netscape.

I have not put the favicon in the webservers root from where it can get it 
by default. As you can see I have it in mywebapp/images folder.

Does anybody know why this does not work? Or do browsers dont have support 
for this much ?

Regards.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

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


Tomcat works for localhost, but won't work for the local intranet..

2004-07-09 Thread Ivan Jouikov








I am running tomcat 5.0.27 on
Linux RH 9.0, and I have a little problem.



I am using jsvc to launch
Tomcat standalone as Tomcat5 user. Everything
seems to work fine, when I connect to localhost or 127.0.0.1 from that same
computer.



However, if I try to connect
to Tomcat from my local intranet, I get Page Cannot be Displayed
after a long wait.



If I try to ping that
computer, everything works just fine:
ping 192.168.0.33.. If I try to run MySQL client for that
computer, everything works fine But if
I type in my browser



http://192.168.0.33/



I get page not found. Oh yeah, my Tomcat is set up to work
standalone, and the only connector that it has is an HTTP connector on port 80.



Does anyone know what could be
wrong?














 
  
  Best Regards,
  
  Ivan V. Jouikov
  (206) 228-6670
  
  
 













---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
 

  


RE: Tomcat works for localhost, but won't work for the local intranet..

2004-07-09 Thread Ivan Jouikov
Also, if I try to run startup.sh instead of Tomcat5.sh (jsvc script), I get the same 
problem: localhost is working, but if I try to connect from another computer  I get 
Page cannot be displayed
 
   _  

From: Ivan Jouikov [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 09, 2004 5:19 PM
To: 'Tomcat Users List'
Subject: Tomcat works for localhost, but won't work for the local intranet..
 
I am running tomcat 5.0.27 on Linux RH 9.0, and I have a little problem.
 
I am using jsvc to launch Tomcat standalone as Tomcat5 user.  Everything seems to work 
fine, when I connect to localhost or 127.0.0.1 from that same computer.
 
However, if I try to connect to Tomcat from my local intranet, I get Page Cannot be 
Displayed after a long wait.
 
If I try to ping that computer, everything works just fine:  ping 192.168.0.33..  If I 
try to run MySQL client for that computer, everything works fine  But if I type in 
my browser
 
HYPERLINK http://192.168.0.33/http://192.168.0.33/
 
I get page not found.  Oh yeah, my Tomcat is set up to work standalone, and the only 
connector that it has is an HTTP connector on port 80.
 
Does anyone know what could be wrong?
 
 
   _  


Best Regards,

Ivan V. Jouikov
(206) 228-6670
HYPERLINK http://www.ablogic.net/;
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
 


Re: Tomcat works for localhost, but won't work for the local intranet..

2004-07-09 Thread Robert F. Hall
Ivan, do you have a firewall in place on the linux box? If so, is port 
80 open?

-Robert
Ivan Jouikov wrote:
I am running tomcat 5.0.27 on Linux RH 9.0, and I have a little problem.
 

I am using jsvc to launch Tomcat standalone as Tomcat5 user.  
Everything seems to work fine, when I connect to localhost or 
127.0.0.1 from that same computer.

 

However, if I try to connect to Tomcat from my local intranet, I get 
Page Cannot be Displayed after a long wait.

 

If I try to ping that computer, everything works just fine:  ping 
192.168.0.33..  If I try to run MySQL client for that computer, 
everything works fine  But if I type in my browser

 

http://192.168.0.33/
 

I get page not found.  Oh yeah, my Tomcat is set up to work 
standalone, and the only connector that it has is an HTTP connector on 
port 80.

 

Does anyone know what could be wrong?
 

 


Best Regards,
Ivan V. Jouikov
(206) 228-6670
http://www.ablogic.net/
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004


Re: Tomcat works for localhost, but won't work for the local intranet..

2004-07-09 Thread Dennis Dai
RedHat's defualt firewall rules?
On 7/9/2004 5:18 PM, Ivan Jouikov wrote:
I am running tomcat 5.0.27 on Linux RH 9.0, and I have a little problem.
 

I am using jsvc to launch Tomcat standalone as Tomcat5 user.  Everything 
seems to work fine, when I connect to localhost or 127.0.0.1 from that 
same computer.

 

However, if I try to connect to Tomcat from my local intranet, I get 
Page Cannot be Displayed after a long wait.

 

If I try to ping that computer, everything works just fine:  ping 
192.168.0.33..  If I try to run MySQL client for that computer, 
everything works fine  But if I type in my browser

 

http://192.168.0.33/
 

I get page not found.  Oh yeah, my Tomcat is set up to work standalone, 
and the only connector that it has is an HTTP connector on port 80.

 

Does anyone know what could be wrong?
 

 


Best Regards,
Ivan V. Jouikov
(206) 228-6670
http://www.ablogic.net/
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004

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


RE: Tomcat works for localhost, but won't work for the local intranet..

2004-07-09 Thread Ivan Jouikov
I am pretty sure I don't because about 4 months ago I had no problem using tomcat from 
this computer...

Although I do remember screweing around with iptables.  Lemme see what's up in there, 
maybe that could be the problem...

 -Original Message-
 From: Robert F. Hall [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 09, 2004 5:25 PM
 To: Tomcat Users List
 Subject: Re: Tomcat works for localhost, but won't work for the local
 intranet..
 
 Ivan, do you have a firewall in place on the linux box? If so, is port
 80 open?
 
 -Robert
 
 Ivan Jouikov wrote:
 
  I am running tomcat 5.0.27 on Linux RH 9.0, and I have a little problem.
 
 
 
  I am using jsvc to launch Tomcat standalone as Tomcat5 user.
  Everything seems to work fine, when I connect to localhost or
  127.0.0.1 from that same computer.
 
 
 
  However, if I try to connect to Tomcat from my local intranet, I get
  Page Cannot be Displayed after a long wait.
 
 
 
  If I try to ping that computer, everything works just fine:  ping
  192.168.0.33..  If I try to run MySQL client for that computer,
  everything works fine  But if I type in my browser
 
 
 
  http://192.168.0.33/
 
 
 
  I get page not found.  Oh yeah, my Tomcat is set up to work
  standalone, and the only connector that it has is an HTTP connector on
  port 80.
 
 
 
  Does anyone know what could be wrong?
 
 
 
 
 
  
 
  Best Regards,
 
  Ivan V. Jouikov
  (206) 228-6670
  http://www.ablogic.net/
 
 
 
 
  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
 
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
 


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



RE: Tomcat works for localhost, but won't work for the local intranet..

2004-07-09 Thread Ivan Jouikov
Here are the contents of my /etc/sysconfig/iptables:

# Firewall configuration written by lokkit
 # Manual customization of this file is not recommended.
 # Note: ifup-post will punch the current nameservers through the 
# firewall; such entries will *not* be listed here.
 *filter 
:INPUT ACCEPT [0:0] 
:FORWARD ACCEPT [0:0] 
:OUTPUT ACCEPT [0:0] 
:RH-Lokkit-0-50-INPUT - [0:0]
 -A INPUT -j RH-Lokkit-0-50-INPUT 
-A FORWARD -j RH-Lokkit-0-50-INPUT 
-A RH-Lokkit-0-50-INPUT -i lo -j ACCEPT 
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 0:1023 --syn -j REJECT 
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 2049 --syn -j REJECT 
-A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 0:1023 -j REJECT 
-A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 2049 -j REJECT 
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 6000:6009 --syn -j REJECT 
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 7100 --syn -j REJECT 
COMMIT

I am not that good with iptables, but it seems to me that the line 

-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 0:1023 --syn -j REJECT

Blocks all ports from 0 to 1023 for TCP/IP...  I don't recall putting that there, but 
is that what it really does?  And if it is, how can I make it so that port 80 is 
available?

 -Original Message-
 From: Dennis Dai [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 09, 2004 5:24 PM
 To: Tomcat Users List
 Subject: Re: Tomcat works for localhost, but won't work for the local
 intranet..
 
 RedHat's defualt firewall rules?
 
 On 7/9/2004 5:18 PM, Ivan Jouikov wrote:
 
  I am running tomcat 5.0.27 on Linux RH 9.0, and I have a little problem.
 
 
 
  I am using jsvc to launch Tomcat standalone as Tomcat5 user.  Everything
  seems to work fine, when I connect to localhost or 127.0.0.1 from that
  same computer.
 
 
 
  However, if I try to connect to Tomcat from my local intranet, I get
  Page Cannot be Displayed after a long wait.
 
 
 
  If I try to ping that computer, everything works just fine:  ping
  192.168.0.33..  If I try to run MySQL client for that computer,
  everything works fine  But if I type in my browser
 
 
 
  http://192.168.0.33/
 
 
 
  I get page not found.  Oh yeah, my Tomcat is set up to work standalone,
  and the only connector that it has is an HTTP connector on port 80.
 
 
 
  Does anyone know what could be wrong?
 
 
 
 
 
  
 
  Best Regards,
 
  Ivan V. Jouikov
  (206) 228-6670
  http://www.ablogic.net/
 
 
 
 
  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
 


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



Re: Tomcat works for localhost, but won't work for the local intranet..

2004-07-09 Thread Dennis Dai
On 7/9/2004 5:45 PM, Ivan Jouikov wrote:
 ...
I am not that good with iptables, but it seems to me that the line 

-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 0:1023 --syn -j REJECT
Blocks all ports from 0 to 1023 for TCP/IP...  I don't recall putting that there, but 
is that what it really does?  And if it is, how can I make it so that port 80 is 
available?
Just add an ACCEPT line above it:
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 80 --syn -j ACCEPT
then reload the rule (/etc/init.d/iptables restart).
Dennis
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat works for localhost, but won't work for the local intranet..

2004-07-09 Thread Robert F. Hall
Have you run lokkit to see how it displays this info?
# Firewall configuration written by lokkit
# Manual customization of this file is not recommended.
Ivan Jouikov wrote:
Here are the contents of my /etc/sysconfig/iptables:
# Firewall configuration written by lokkit
# Manual customization of this file is not recommended.
# Note: ifup-post will punch the current nameservers through the 
# firewall; such entries will *not* be listed here.
*filter 
:INPUT ACCEPT [0:0] 
:FORWARD ACCEPT [0:0] 
:OUTPUT ACCEPT [0:0] 
:RH-Lokkit-0-50-INPUT - [0:0]
-A INPUT -j RH-Lokkit-0-50-INPUT 
-A FORWARD -j RH-Lokkit-0-50-INPUT 
-A RH-Lokkit-0-50-INPUT -i lo -j ACCEPT 
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 0:1023 --syn -j REJECT 
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 2049 --syn -j REJECT 
-A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 0:1023 -j REJECT 
-A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 2049 -j REJECT 
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 6000:6009 --syn -j REJECT 
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 7100 --syn -j REJECT 
COMMIT

I am not that good with iptables, but it seems to me that the line 

-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 0:1023 --syn -j REJECT
Blocks all ports from 0 to 1023 for TCP/IP...  I don't recall putting that there, but 
is that what it really does?  And if it is, how can I make it so that port 80 is 
available?
 

-Original Message-
From: Dennis Dai [mailto:[EMAIL PROTECTED]
Sent: Friday, July 09, 2004 5:24 PM
To: Tomcat Users List
Subject: Re: Tomcat works for localhost, but won't work for the local
intranet..
RedHat's defualt firewall rules?
On 7/9/2004 5:18 PM, Ivan Jouikov wrote:
   

I am running tomcat 5.0.27 on Linux RH 9.0, and I have a little problem.

I am using jsvc to launch Tomcat standalone as Tomcat5 user.  Everything
seems to work fine, when I connect to localhost or 127.0.0.1 from that
same computer.

However, if I try to connect to Tomcat from my local intranet, I get
Page Cannot be Displayed after a long wait.

If I try to ping that computer, everything works just fine:  ping
192.168.0.33..  If I try to run MySQL client for that computer,
everything works fine  But if I type in my browser

http://192.168.0.33/

I get page not found.  Oh yeah, my Tomcat is set up to work standalone,
and the only connector that it has is an HTTP connector on port 80.

Does anyone know what could be wrong?



Best Regards,
Ivan V. Jouikov
(206) 228-6670
http://www.ablogic.net/

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
   

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004

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



RE: Tomcat works for localhost, but won't work for the local intranet..

2004-07-09 Thread Ivan Jouikov
Weee it does work!  Thanks!

So I was right on the assumption that that entry block all ports below 1023 from 
accessing my computer?

Im gonna go read some info about iptables :)

 -Original Message-
 From: Dennis Dai [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 09, 2004 5:57 PM
 To: Tomcat Users List
 Subject: Re: Tomcat works for localhost, but won't work for the local
 intranet..
 
 On 7/9/2004 5:45 PM, Ivan Jouikov wrote:
   ...
 
  I am not that good with iptables, but it seems to me that the line
 
  -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 0:1023 --syn -j REJECT
 
  Blocks all ports from 0 to 1023 for TCP/IP...  I don't recall putting
 that there, but is that what it really does?  And if it is, how can I make
 it so that port 80 is available?
 
 
 Just add an ACCEPT line above it:
 
 -A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 80 --syn -j ACCEPT
 
 then reload the rule (/etc/init.d/iptables restart).
 
 
 Dennis
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004
 


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



RE: Tomcat works for localhost, but won't work for the local intranet..

2004-07-09 Thread Birt, Jeffrey
Redhat also comes with a handy gui called Security Level (or something)
to administer the firewall.

Jeff Birt

-Original Message-
From: Robert F. Hall [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 09, 2004 7:25 PM
To: Tomcat Users List
Subject: Re: Tomcat works for localhost, but won't work for the local
intranet..

Ivan, do you have a firewall in place on the linux box? If so, is port 
80 open?

-Robert

Ivan Jouikov wrote:

 I am running tomcat 5.0.27 on Linux RH 9.0, and I have a little
problem.

  

 I am using jsvc to launch Tomcat standalone as Tomcat5 user.  
 Everything seems to work fine, when I connect to localhost or 
 127.0.0.1 from that same computer.

  

 However, if I try to connect to Tomcat from my local intranet, I get 
 Page Cannot be Displayed after a long wait.

  

 If I try to ping that computer, everything works just fine:  ping 
 192.168.0.33..  If I try to run MySQL client for that computer, 
 everything works fine...  But if I type in my browser

  

 http://192.168.0.33/

  

 I get page not found.  Oh yeah, my Tomcat is set up to work 
 standalone, and the only connector that it has is an HTTP connector on

 port 80.

  

 Does anyone know what could be wrong?

  

  




 Best Regards,

 Ivan V. Jouikov
 (206) 228-6670
 http://www.ablogic.net/

  


 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004



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



Re: Container managed security

2004-07-09 Thread Steve Luzynski
On Jul 9, 2004, at 5:52 PM, QM wrote:
On Fri, Jul 09, 2004 at 03:20:39PM -0500, Steve Luzynski wrote:
: Is there some logging or debugging I can turn on? The stock logs 
aren't
: showing me anything other than just a normal access to the resources
: that I'm wanting to protect.

Another silly question, then: what's the deployed webapp?
Is IPBoss a proper context, or is IPBoss the subdir of something
mapped to the root context?
It's a context.
Does it matter that there are no actual servlets in the web.xml file 
yet? I'm in the process of switching away from Struts to a different 
framework and decided this was a good time to move to container managed 
security since I destroyed the entire view anyway. :) So because of 
that there is no servlet mapping yet, I'm just trying to get Tomcat to 
properly access control some static HTML right now.

(I'm grasping too...)
Thanks,
Steve
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: tomcat output gets mixed up for different requests

2004-07-09 Thread Bill Barker
Are you using Tomcat standalone or mod_jk(2)?  Which Connector are you
using? There was a bug a long while back where mod_jk (and possibly mod_jk2)
would cause something like this if you were accessing the site through a
proxy server.

André Weidemann [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,
 I searched the net and also the tomcat-list archives but couldn't find
 any help. That is what lead me here...

 I'm quite new to Tomcat and Java. I'm using Tomcat 3.3.2 and Java 1.4.2
 under Linux.

 I have the following problem:

 I have an application that reads from a mysql database and an openldap
 sever. There are two classes for navigation and then my htmlgenerator
 class generates all the output while the ldap and mysql class retrieve
 all the information necessary.

 My problem is that as soon as two clients are accessing the tomcat
 server simultaniously, the output is sometimes split up between the
 clients. In that case, one client lacks page content, which the other
 one will receive instead. So the first has too few lines on his page and
 the other one has additional lines that were not ment for him.

 I know that it is quite hard to tell without the source code, but does
 anyone have a slight idea what could be the cause for this?

 André.




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



Re: jakarta-commons/daemon necessary for build?

2004-07-09 Thread Bill Barker

Joel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Don't you just like it when people talk to themselves.

 On Fri, 09 Jul 2004 15:05:04 +0900, I wrote

  Just built TC 5. I had to clear out \usr\share\java from an earlier
  attempt when I had java 1.5 beta installed, but then it flew.
 
  One thing worries me:
 
  ---
  D:\Program_Files\apache\jakarta-tomcat-5.0.25-srcant
  Buildfile: build.xml
 
  check.source:
 
  check.source.depends:
 
  get.source:
 
  get.source.depends:
 
  checkout.depends:
[cvs] Caught exception: CreateProcess:
cvs -d:pserver:[EMAIL PROTECTED]:/home/cvspublic -q -z3 checkout -P
jakarta-commons/LICENSE error=2
[cvs] Caught exception: CreateProcess:
cvs -d:pserver:[EMAIL PROTECTED]:/home/cvspublic -q -z3 checkout -P
jakarta-commons/daemon error=2

 Okay, I found the jakarta-commons/daemon project and now I understand.

 To actually use this TC5 I just built, I'm gonna need either MSVC or
 cygwin to make procrun.

 Okay, fine. That's why the instructions for building are under the
 section for developers. I'm not offended. sniff/


The docs for procrun are also a bit out of date :(.  You should only need
any C compiler for Windows and the MS-SDK to build it.  However, I've only
ever used MSVC myself.

 ;-P

 -- 
 Joel [EMAIL PROTECTED]




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



Re: Container managed security

2004-07-09 Thread Bill Barker

Steve Luzynski [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 On Jul 9, 2004, at 12:40 PM, Robert F. Hall wrote:

  Have you tried adding http-method/ elements to
  web-resource-collection ?
 
 web-resource-collection
   http-methodHEAD/http-method
   http-methodGET/http-method
   http-methodPOST/http-method
   http-methodPUT/http-method
   http-methodDELETE/http-method
 /web-resource-collection

 No go there either, tried it with and without.

 Is there some logging or debugging I can turn on? The stock logs aren't
 showing me anything other than just a normal access to the resources
 that I'm wanting to protect.


You could try setting debug=10 on your Context and/or Realm element.
That should tell you in pretty good detail what Tomcat is trying to do with
the request.

 Thanks,
 Steve




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