tomcat-replication.jar with 4.1.18

2003-03-19 Thread Dennis Muhlestein
We deployed your latest version of tomcat-replication and are thus far
pleased with the results.  

Two minor issues:

1) Using the manager application to restart the context does not restart
the InMemorySessionManager all the way.  An exception is thrown stating
that the port is already taken. (using stop then start works as
expected).

2) Under load, when box B leaves the cluster, the boxes A and C
start to throw a whole bunch of ConnectionRefused Exceptions. 
Eventually, boxes A and C removed B from their list and the exceptions
stop.  I haven't been able to determine if the excess logging that
occured with the exceptions before the node was detected down negatively
affect the remaining boxes in the cluster or not.  This is with
debug=1 in the Manager config (server.xml).

Thanks for you work
-Dennis


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



Re: Security RISK !

2002-10-22 Thread Dennis Muhlestein
One issue I am aware of, but may not apply, is that apache I think has a
setting that can autofill in file extensions for you.  If you put the
files in the same folder you may want to check for that.

If you map *.jsp to go to tomcat, index.jsp goes to tomcat.  But if you
type in /index apache, under that circumstance, would show the source of
the jsp. 

There is also an issue with tomcat 4.0.4 and before if you type in the
default servlet with the jsp name as an extension, it'll show the
source.  That is with or without apache though.

-Dennis

On Tue, 2002-10-22 at 10:23, Sigurður Bjarnason wrote:
 
 Hi all
 
 I am using apache 1.3 and tomcat 4.0.4 together
 
 I use apache to serve all the static content, witch I have a special directory for 
and Tomcat serve all the jsp and servlet stuff..
 
 The question is.. is there any security risk if I Have the Apache DocumentRoot 
pointing straight to the webapps folder ?!
 ¨
 Best Regards
 Siggi
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
 


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




tomcat 4.1.12 issue

2002-10-10 Thread Dennis Muhlestein

I thought I'd upgrade my tomcat to 4.1.12 from 4.0.x.

I'm using struts 1.1b2, j2skd1.4.1, various linux distributions.

I only had issue.  I have one page that conditionally includes another
page.  With tomcat 4.0.x I've never had a problem.  When I upgraded, the
compiler could not compile that page.  Both pages have lots of struts tags in them.
I got many exceptions:

2002-10-10 05:25:01 Error compiling file:
/legacystamps/app/jakarta-tomcat-4.1.12-LE-jdk14/work/Standalone/legacystamps/_/WEB-INF/pages/search/results_jsp.java
 [javac] Compiling 1 source file
[javac]
/legacystamps/app/jakarta-tomcat-4.1.12-LE-jdk14/work/Standalone/legacystamps/_/WEB-INF/pages/search/results_jsp.java:103:108:103:184:
 Error: The method javax.servlet.jsp.tagext.Tag get(java.lang.Class $1) throws 
javax.servlet.jsp.JspException; can throw the checked exception 
javax/servlet/jsp/JspException, so its invocation must be enclosed in a try 
statement that catches the exception, or else this method must be declared to throw 
the exception.

...This printed over an over about different line numbers.


Anyone have a similar experience?  Is it just the conditional include?
ie.. is this bad?..

% if (...) { %@include file=...%% } %

Thanks for any input.
Dennis

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




Re: passing authentication credentials from apache to tomcat 4.1.12?

2002-10-04 Thread Dennis Muhlestein

set tomcatAuthentication=false in your ajp connector xml.
Then it should recognize the apache authorized user.

Worked for us.

-Dennis


On Fri, 2002-10-04 at 12:36, Paul Tomsic wrote:
 Has anyone does this successfully?
 
 I am able to successfully have Apache authenticate
 against a AuthDB file (configured w/ the mod_auth_db)
 and I'm able to have Tomcat handle *.jsp files
 successfully, but when I try to
 
 request.getRemoteUser()
 
 It gives me a NULL
 
 any thoughts on this?  Is there some type of setup
 that I'm missing?
 
 
 
 
 __
 Do you Yahoo!?
 New DSL Internet Access from SBC  Yahoo!
 http://sbc.yahoo.com
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




Re: tomcat 4.1.10 error in opening zip file, cannot start, help?

2002-09-26 Thread Dennis Muhlestein

I had the same problem because I had a jar file that was actually a
symlink to a jar file.  Problem was the target of the sym link was
deleted.

On Thu, 2002-09-26 at 12:49, Paul Tomsic wrote:
 When I try to start tomcat, 
 the start looks like it worked, but it doesn't.
 In the catalina.out file I'm getting:
 
 (thoughts?)
 
 
 java.util.zip.ZipException: error in opening zip file
 at java.util.zip.ZipFile.open(Native Method)
 at
 java.util.zip.ZipFile.init(ZipFile.java:112)
 at
 java.util.jar.JarFile.init(JarFile.java:117)
 at
 java.util.jar.JarFile.init(JarFile.java:55)
 at
 org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(
 StandardClassLoader.java:1082)
 at
 org.apache.catalina.loader.StandardClassLoader.init(StandardClassLo
 ader.java:200)
 at
 org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(Clas
 sLoaderFactory.java:202)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:140)
 Bootstrap: Class loader creation threw exception
 java.lang.IllegalArgumentException:
 addRepositoryInternal: java.util.zip.ZipExce
 ption: error in opening zip file
 at
 org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(
 StandardClassLoader.java:1110)
 at
 org.apache.catalina.loader.StandardClassLoader.init(StandardClassLo
 ader.java:200)
 at
 org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(Clas
 sLoaderFactory.java:202)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:140)
 
 
 __
 Do you Yahoo!?
 New DSL Internet Access from SBC  Yahoo!
 http://sbc.yahoo.com
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




Re: DBCP pool always increasing

2002-09-25 Thread Dennis Muhlestein

I was under the impression also that the BasicDataSourceFactory is a
default.

On Wed, 2002-09-25 at 04:46, Glenn Nielsen wrote:
 Your config isn't configured to use DBCP.  It is missing the following:
 
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
 
 That is why none of the DBCP features were working.
 
 Glenn
 
 Amitabh Dubey wrote:
  This is what my final working server.xml file looks like
  
  Resource name=SQLServerDS scope=Shareable type=javax.sql.DataSource/
  ResourceParams name=SQLServerDS
parameter
  nameurl/name
  
  valuejdbc:microsoft:sqlserver://dnas07:1113;DatabaseName=NorthWind/value
/parameter
parameter
  namevalidationQuery/name
  value/value
/parameter
parameter
  namemaxIdle/name
  value3/value
/parameter
parameter
  namemaxActive/name
  value5/value
/parameter
parameter
  namedriverClassName/name
  valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
/parameter
parameter
  namemaxWait/name
  value6000/value
/parameter
parameter
  nameremoveAbandoned/name
  valuetrue/value
/parameter
parameter
  nameuser/name
  valuesa/value
/parameter
parameter
  nameremoveAbandonedTimeout/name
  value5/value
/parameter
parameter
  namepassword/name
  valuesa/value
/parameter
  /ResourceParams
  
  And this was my test program
  
  
  try {
  
  // assumes jndi.properties has been configured appropriately
  Context initCtx = new InitialContext();
  Context envCtx = (Context) initCtx.lookup(java:comp/env);
  
  // Get a Connection
  DataSource ds = (DataSource) envCtx.lookup(jndiName);
  Connection con = null;
  Statement st = null;
  
  ResultSet res = null;
  
  ResultSetMetaData meta = null;
  
  try
  {
  
  con = ds.getConnection();
  
  st = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
 ResultSet.CONCUR_READ_ONLY);
  
  res = st.executeQuery(sql);
  
  meta = res.getMetaData();
  int cols = meta.getColumnCount();
  // since this is a scrollable ResultSet,
  // do something a little strange...
  while (!res.isLast()) {
  res.next();
  for (int i=1; i=cols; i++) {
  Object val = res.getObject(i);
  System.out.print(\t + meta.getColumnLabel(i) + : );
  System.out.print(val == null ?   : val.toString());
  }
  System.out.print(\n);
  }
  }
  catch (SQLException sqle)
  {
  sqle.printStackTrace();
  }
  finally
  {
  // PoolMan closes ResultSets and Statements whenever
  // Connections are closed, no need for it here
  
  if (null != res)
  {
  try
  {
  res.close();
  }
  catch(SQLException e)
  {
  }
  }
  
  if (null != st)
  {
  try
  {
  st.close();
  }
  catch(SQLException e)
  {
  }
  }
  
  if (con != null)
  {
  try
  {
  con.close();
  }
  catch (SQLException sqle2)
  {
  }
  }
  }
  
  } catch (javax.naming.NameNotFoundException nne) {
  System.out.println(ERROR: No DataSource is registered under the name 
  +
 jndiName + , please check your poolman.props  +
  and deployment tool.\n);
  return nne.getMessage();
  } catch (javax.naming.NamingException nex) {
  System.out.println(ERROR: JNDI Exception Occurred. Is your JNDI
  resource available?\n);
 

DBCP w/ SQL Server

2002-09-24 Thread Dennis Muhlestein

I'm not sure what we have applies.  We use a tds implemenation that is
not provided by microsoft for the jdbc driver (www.inetsoftware.de). 
All I've done is copy/paste the example config for dbcp and replace the
driver name/username/url etc with my own info and it all works good.


On Mon, 2002-09-23 at 21:52, Amitabh Dubey wrote:
 If you have a snippet of the server.xml file that uses DBCP, please could
 you post it here. Although I think i got DBCP to work with SQLServer,
 pooling was not being used. The reason i say this is because, i had set my
 maxActive to 7 and my pool kept growing.
 
 I would really appreciate it if you could post your server.xml here.
 
 Thanks
 Amitabh
 
 -Original Message-
 From: Dennis Muhlestein [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 23, 2002 3:33 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Poolman Configuration
 
 
 We use DBCP with SQL Server and haven't had a single problem.  Am I
 missing something or are you?
 
 -Dennis
 
 On Mon, 2002-09-23 at 12:11, Amitabh Dubey wrote:
  DBCP does not work well with SQL Server, so i was told. I guess i will
 have
  to look into some commercial product then. Any suggestions?
 
  Thank you
  Amitabh
 
  -Original Message-
  From: Rick Fincher [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 23, 2002 1:06 PM
  To: Tomcat Users List; [EMAIL PROTECTED]
  Subject: Re: Poolman Configuration
 
 
  Is anybody still developing Poolman?  I heard the original developer
 retired
  it.  If you are just starting out you might want to use another connection
  pooling package like DBCP in the Jakarta Commons project, so you don't get
  locked into a defunct product.
 
  This is from the web site listed on SourceForge as Poolman's home page
  (www.codestudio.com):
 
  PoolMan is no longer available or supported through this site. It did
  exceedingly well during its lifetime, and I appreciate the important role
 it
  played in so many distributed applications over the past three years. If
 you
  are looking for connection and object pooling mechanisms, they can now be
  found in application servers such as JRun, Tomcat and the Jakarta Project,
  and other J2EE products and servers.
 
  -PS Neville
 
 
  Rick
 
  - Original Message -
 
   Does anyone have poolman successfully configured. If so, please could
 you
   post your poolman.xml. If you have used it with SQL Server, then that
  would
   be perfect.
  
   Thanks
   Amitabh
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




tomcat 4.1.12

2002-09-24 Thread Dennis Muhlestein


After using 4.1.10 for a bit, I see a few issues.  I think, ok we can
wait for a few fixes.  Things worked ok though.

So now I download 4.1.12.  Shouldn't the server.xml file from 4.1.10 be
pretty much compatible with 4.1.12?  I tried that to start with but
can't get the web app to recognize servlets.

I then tried starting from scratch with the original 4.1.12 server.xml. 
Same problem.  I can see all my jsps fine but any servlet request gives
error 404 not found.

Any suggestions?  I didn't change anthing but the tomcat version.

Thanks
Dennis

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




getRemoteUser()

2002-09-24 Thread Dennis Muhlestein

I was under the impression that getRemoteUser() was fixed as of 4.1.11. 
I've upgraded to 4.1.12 but still no luck.  It always returns null.  We
use apache/ssl with mod_jk.  

Any suggestions?
Thanks
Dennis



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




Re: getRemoteUser()

2002-09-24 Thread Dennis Muhlestein

I'm still using the older ajp connector because I haven't had time to
upgrade the apache side of things.  Does the same apply to that
connector?  I'll fiddle with it.

Thanks for the input.
Dennis

My xml:
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/



On Tue, 2002-09-24 at 13:00, Jacob Kjome wrote:
 Hello Dennis,
 
 Did you add tomcatAuthentication=false to the Coyote ajp3 connector?
 
 here's what mine looks like:
 
 !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8009 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=2
useURIValidationHack=false tomcatAuthentication=false
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
 
 
 Jake
 
 Tuesday, September 24, 2002, 1:59:14 PM, you wrote:
 
 DM I was under the impression that getRemoteUser() was fixed as of 4.1.11. 
 DM I've upgraded to 4.1.12 but still no luck.  It always returns null.  We
 DM use apache/ssl with mod_jk.  
 
 DM Any suggestions?
 DM Thanks
 DM Dennis
 
 
 
 DM --
 DM To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 DM For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 
 -- 
 Best regards,
  Jacobmailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




Re: getRemoteUser()

2002-09-24 Thread Dennis Muhlestein

Just to answer this for anyone else interested.
Yes, the tomcatAuthentication in the older ajp connector worked as well.

All good, thanks for the input.
-Dennis

On Tue, 2002-09-24 at 13:09, Dennis Muhlestein wrote:
 I'm still using the older ajp connector because I haven't had time to
 upgrade the apache side of things.  Does the same apply to that
 connector?  I'll fiddle with it.
 
 Thanks for the input.
 Dennis
 
 My xml:
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/
 
 
 
 On Tue, 2002-09-24 at 13:00, Jacob Kjome wrote:
  Hello Dennis,
  
  Did you add tomcatAuthentication=false to the Coyote ajp3 connector?
  
  here's what mine looks like:
  
  !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
  Connector className=org.apache.coyote.tomcat4.CoyoteConnector
 port=8009 minProcessors=5 maxProcessors=75
 enableLookups=true redirectPort=8443
 acceptCount=10 debug=0 connectionTimeout=2
 useURIValidationHack=false tomcatAuthentication=false
 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
  
  
  Jake
  
  Tuesday, September 24, 2002, 1:59:14 PM, you wrote:
  
  DM I was under the impression that getRemoteUser() was fixed as of 4.1.11. 
  DM I've upgraded to 4.1.12 but still no luck.  It always returns null.  We
  DM use apache/ssl with mod_jk.  
  
  DM Any suggestions?
  DM Thanks
  DM Dennis
  
  
  
  DM --
  DM To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
  DM For additional commands, e-mail: mailto:[EMAIL PROTECTED]
  
  
  
  -- 
  Best regards,
   Jacobmailto:[EMAIL PROTECTED]
  
  
  --
  To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: mailto:[EMAIL PROTECTED]
  
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




RE: Poolman Configuration

2002-09-23 Thread Dennis Muhlestein

We use DBCP with SQL Server and haven't had a single problem.  Am I
missing something or are you?

-Dennis

On Mon, 2002-09-23 at 12:11, Amitabh Dubey wrote:
 DBCP does not work well with SQL Server, so i was told. I guess i will have
 to look into some commercial product then. Any suggestions?
 
 Thank you
 Amitabh
 
 -Original Message-
 From: Rick Fincher [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 23, 2002 1:06 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: Re: Poolman Configuration
 
 
 Is anybody still developing Poolman?  I heard the original developer retired
 it.  If you are just starting out you might want to use another connection
 pooling package like DBCP in the Jakarta Commons project, so you don't get
 locked into a defunct product.
 
 This is from the web site listed on SourceForge as Poolman's home page
 (www.codestudio.com):
 
 PoolMan is no longer available or supported through this site. It did
 exceedingly well during its lifetime, and I appreciate the important role it
 played in so many distributed applications over the past three years. If you
 are looking for connection and object pooling mechanisms, they can now be
 found in application servers such as JRun, Tomcat and the Jakarta Project,
 and other J2EE products and servers.
 
 -PS Neville
 
 
 Rick
 
 - Original Message -
 
  Does anyone have poolman successfully configured. If so, please could you
  post your poolman.xml. If you have used it with SQL Server, then that
 would
  be perfect.
 
  Thanks
  Amitabh
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




RunTimeException Read of HTTP Request POST parameters failed...

2002-09-18 Thread Dennis Muhlestein

Anyone have any idea why this happens.  It only happens occasionally. 
It always happens when I call request.getParameter ( ... );  It happens
on a form POST but not always the same one.  

Any input appreciated.
-Dennis


java.lang.RuntimeException: Read of HTTP Request POST parameters failed:
read  content length
at
org.apache.catalina.connector.HttpRequestBase.parseParameters(HttpRequestBase.java:68  
  at 
org.apache.catalina.connector.HttpRequestBase.getParameter(HttpRequestBase.java:718)
at
org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:171)


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




Re: RunTimeException Read of HTTP Request POST parameters failed...

2002-09-18 Thread Dennis Muhlestein

To add information, I am using tomcat 4.1.10.  We use mod_jk ajp13 with
apache.  I searched through the archives a bit and found references to
possible bugs and possible solutions but no-one seemed to post a
solution.  Any suggestions?

-Dennis


On Wed, 2002-09-18 at 09:51, Dennis Muhlestein wrote:
 Anyone have any idea why this happens.  It only happens occasionally. 
 It always happens when I call request.getParameter ( ... );  It happens
 on a form POST but not always the same one.  
 
 Any input appreciated.
 -Dennis
 
 
 java.lang.RuntimeException: Read of HTTP Request POST parameters failed:
 read  content length
 at
 
org.apache.catalina.connector.HttpRequestBase.parseParameters(HttpRequestBase.java:68 
   at 
org.apache.catalina.connector.HttpRequestBase.getParameter(HttpRequestBase.java:718)
 at
 org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:171)
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




AJP13 connector question.

2002-09-17 Thread Dennis Muhlestein


What does this mean?  We get it fairly often during prime time on our
website.  We are using tomcat 4.1.10.  I haven't seen the end result on
the browser side when this happens.

2002-09-16 22:53:01 Ajp13Processor[8009][35] process: invoke
java.net.SocketException: Socket closed
at java.net.SocketOutputStream.socketWrite0(Native Method)
at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at
java.net.SocketOutputStream.write(SocketOutputStream.java:126)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at org.apache.ajp.RequestHandler.finish(RequestHandler.java:501)
at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
at
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:536)

Thanks for any input.
-Dennis


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




Tomcat 4.1.10 and symbolic links (linux)

2002-09-12 Thread Dennis Muhlestein

I've found many references to this problem on the list and in mail
archives but none had to do with my situation and I don't know how to
fix this.

Because we have used other web containers in the past, our WEB-INF
folder is not located in the root of the webapp.  We have a symbolic
link.  The directory structure looks like this.

ROOT/
ROOT/docs  (jsp images etc)
ROOT/WEB-INF/
ROOT/classes/
ROOT/jars

There are sym links to make this work with tomcat.

ROOT/docs/WEB-INF- ../WEB-INF
ROOT/WEB-INF/classes- ../classes
ROOT/WEB-INF/lib- ../jars


This all worked fine with tomcat 4.0.4 but now with 4.1.10 I can't get
it to recognize the web.xml  I get the following:

ContextConfig[]: Missing application web.xml, using defaults only


If I remove the sym links and copy the data to the correct location,
things start up, the web.xml is found.

Is it just symbolic links in general or is there something I'm missing.
Thanks for any input.

-Dennis


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




unpackWars performance/advantages/disadvantages?

2002-09-12 Thread Dennis Muhlestein

Great, thanks for the response.

I'd like to know if anyone has experience with deploying war files and
then setting unpackWARs to false.

Is there any advantage/disadvantage to doing this?  Why would one want
to?  How does this affect performance?  Any reasons for choosing one
over the other?

Thanks
Dennis

On Thu, 2002-09-12 at 14:11, Nome real wrote:
 That's the new behaviour for 4.1.x. See the RELEASE-NOTES.
 
 
 On 12 Sep 2002 08:12:34 -0600, Dennis Muhlestein [EMAIL PROTECTED] escreveu :
 
  De: Dennis Muhlestein [EMAIL PROTECTED]
  Data: 12 Sep 2002 08:12:34 -0600
  Para: [EMAIL PROTECTED]
  Assunto: Tomcat 4.1.10 and symbolic links (linux)
  
  I've found many references to this problem on the list and in mail
  archives but none had to do with my situation and I don't know how to
  fix this.
  
  Because we have used other web containers in the past, our WEB-INF
  folder is not located in the root of the webapp.  We have a symbolic
  link.  The directory structure looks like this.
  
  ROOT/
  ROOT/docs  (jsp images etc)
  ROOT/WEB-INF/
  ROOT/classes/
  ROOT/jars
  
  There are sym links to make this work with tomcat.
  
  ROOT/docs/WEB-INF- ../WEB-INF
  ROOT/WEB-INF/classes- ../classes
  ROOT/WEB-INF/lib- ../jars
  
  
  This all worked fine with tomcat 4.0.4 but now with 4.1.10 I can't get
  it to recognize the web.xml  I get the following:
  
  ContextConfig[]: Missing application web.xml, using defaults only
  
  
  If I remove the sym links and copy the data to the correct location,
  things start up, the web.xml is found.
  
  Is it just symbolic links in general or is there something I'm missing.
  Thanks for any input.
  
  -Dennis
  
  
  --
  To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: mailto:[EMAIL PROTECTED]
  
  
  
  
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



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




Re: COM Possible?

2002-06-21 Thread Dennis Muhlestein

Use JNI, then from C++ you can do whatever you want.


On Fri, 2002-06-21 at 08:29, Steven Sporen wrote:
 Accessing COM object on windows.
 
 Simple question - with Tomcat can a programmer access COM controls on a
 windows platform?
 
 Thanks
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



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




java line numbers

2002-06-12 Thread Dennis Muhlestein


Compile in debug mode.
read javac documentation.
With ant, you can put debug=true in the build.xml javac target.

On Wed, 2002-06-12 at 01:56, August Detlefsen wrote:
 How do I get line numbers in my stack trace? 
 
 All the org.apache and javax class show line numbers, but my classes
do
 not:
 
 java.lang.NullPointerException
 at showplan.Controller.dispatchContentAction(Controller.java)
 at showplan.Controller.service(Controller.java)
 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

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

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

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:528)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
 at

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

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at

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

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at

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

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

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

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:217)
 at

org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194)
 at java.lang.Thread.run(Thread.java:484)
 
 __
 Do You Yahoo!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.yahoo.com
 
 --
 To unsubscribe, e-mail:  
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 




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




Re: file upload using POST

2002-06-06 Thread Dennis Muhlestein

jakarta struts project has file upload capability but I haven't ever
looked at it.  They have an example war file too.

-Dennis

On Thu, 2002-06-06 at 12:26, Ushakov, Sergey N wrote:
 Sorry, I'm sure my question is a FAQ, but I still can't find an answer.
 
 Does Jakarta/Tomcat have a standard facility for file upload processing
 using POST?
 
 I have searched the Tomcat 4 docs, but did not find any trace.
 
 JGuru mentions the org.apache.tomcat.request.ParseMime class, but it seems
 to be absent from present Tomcat release. And from CVS tree also.
 
 Seems that most people use Jason Hunter's MultipartRequest . Is it the best
 choice for Tomcat?
 
 Regards,
 Sergey Ushakov
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



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




Re: prohibit stopping tomcat by generic user

2002-06-04 Thread Dennis Muhlestein

Even if the permissions are set correctly you could just

telnet localhost 8005 and type SHUTDOWN.

If your worried about users that much, I'd rethink their account on that
box.  And do make sure port 8005 is not available where someone can send
the shutdown command!

-Dennis

On Mon, 2002-06-03 at 17:18, Leland Chen wrote:
 
 Hi,
 
 I have tomcat web server configured run as nobody,
 but it can be stoped by any generic user using shutdown.sh
 script. Even the CATALINA_BASE is not set correctly, tomcat
 web server can be shutdown by any user account.
 
 Is there any way to prohibit this ?
 
 Thanks,
 
 Leland
 
 
 
 htmlDIVnbsp;/DIV/html
 
 
 _
 Join the world’s largest e-mail service with MSN Hotmail. 
 http://www.hotmail.com
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



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




jdbcpool

2002-06-03 Thread Dennis Muhlestein

I'm using the commons-pool, commons-dbcp to connect to mysql from tomcat
4.  Everything works fine when I develop but if I leave the site
unattened for a period of time, mysql times out the connections in the
pool.

I'd really like to set the maxIdle parameter to 0 so that if there are
idle connections they leave the pool.  Basically setting the min pool
size to 0 is what I want to do.  I haven't seen a minPoolSize parameter
though.  

The documentation says if I set maxIdle to 0 that means unlimited.  That
won't work I guess.  Is there a solution to this problem?

Thanks
Dennis





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




Re: rookie question

2002-05-24 Thread Dennis Muhlestein

For complete web-app details, just check the dtd from sun
http://java.sun.com/dtd/ .

I have a basic web.xml that just has:

web-app
/web-app


On Fri, 2002-05-24 at 07:07, Mihael Knezevic wrote:
 hi,
 
 i'm quite new to this tomcat and servlet/webapp thing. i'm having trouble deploying 
my application.
 what is the basic/smallest web.xml file? what must it contain?
 i'm having no trouble with the examples, so tomcat is running ok.
 
 thanx for your help.
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



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




tomcat and jce

2002-05-23 Thread Dennis Muhlestein

I've searched the list far and wide for solutions to the jce issues with
tomcat.  Basically old posts say to installing sunjce in the
JAVA_HOME/jre/lib/ext dir and modifying java.security to allow the use
of SunJCE.  

For me, this isn't working with Tomcat 4.0.3.  Does it work for anyone
else?  

I've also tried js2dk1.4.0 which has jce embedded already.  That also
doesn't work.

I am working with jboss and can get my ejbs to use the crypto provider
so I belive there is still an issue with tomcat.  This problem arises if
I run tomcat by itself, of if I embed it in jboss.

Any suggestions?

-Thanks
Dennis


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