Re: [ANN] Apache Tomcat 5.0.24 Stable released

2004-05-14 Thread Nathan Maves
Click on 5.0 Documentation then look on the bottom left.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/changelog.html

Nathan

On May 14, 2004, at 1:44 PM, Zachary Hartley wrote:

Remy Maucherat wrote:

The Tomcat Team announces the immediate availability of Apache Tomcat
5.0.24 Stable.
Please refer to the changelog for the list of changes.
Where is the changelog? I've searched the site _and_ the release 
(binary and source). How about making the changelog easy to find or 
providing a link instead of just saying to look at it? Thanks.

Zachary Hartley

-
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: Filter on url example - Filter out hack attempts

2004-05-11 Thread Nathan Maves
First of this is not a Tomcat question.  This type of information is 
always available at http://java.sun.com or http://forum.java.sun.com/

To answer your questionYes.  in-fact you can place the class where 
ever you want as long as it is in your classpath.  Of course you will 
also have to change the filter-class attribute accordingly.

Nathan
On May 11, 2004, at 7:42 AM, lrnobs wrote:
Yoav,

So from what I know so far my
/usr/local/tomcat/webapps/myapplication/WEB-INF/web.xml should look 
like the
following:

web-app
  filter
filter-nameUrlFilter/filter-name
filter-classUrlFilter/filter-class *Don't know how this should
layout.*
  /filter
  filter-mapping
filter-nameUrlFilter/filter-name
url-pattern/*/url-pattern
  /filter-mapping
  welcome-file-list
welcome-fileindex.jsp/welcome-file
welcome-fileindex.html/welcome-file
  /welcome-file-list
/web-app
Do I then create
/usr/local/tomcat/webapps/myapplication/WEB-INF/classes/URLFilter.java?
 public class UrlFilter implements Filter {
   ...
   public void doFilter(...) {
 if(req instance of HttpServletRequest) {
   HttpServletRequest hreq = (HttpServletRequest) req;
   String uri = hreq.getRequestURI();
   if(allow(uri)){
 chain.doFilter(req, res);
   } else {
...Send to Null
 // Do whatever: error page, redirect, etc.
   }
 } else {
   // Non-HTTP requests
   chain.doFilter(req, res);
 }
   }
 private boolean allow(String uri) {
 // Look up allowed urls in a DB, Collection, whatever
   SubstringTest = False;
SubstringTest = string.indexOf(GET / HTTP/1.1)  0;
 if(SubstringTest = True) return True;
 Do the same for the rest
 //GET / HTTP/1.0 //page1.jsp //page2.jsp //page3.jsp
//page4.jsp //page5.jsp //graphic1.gif //graphic2.gif
 } }
Thanks,

Larry Nobs









Hi,
This is a trivial filter:
public class URLFilter implements Filter {
  ...
  public void doFilter(...) {
if(req instance of HttpServletRequest) {
  HttpServletRequest hreq = (HttpServletRequest) req;
  String uri = hreq.getRequestURI();
  if(allow(uri)){
chain.doFilter(req, res);
  } else {
// Do whatever: error page, redirect, etc.
  }
} else {
  // Non-HTTP requests
  chain.doFilter(req, res);
}
  }
private boolean allow(String uri) {
 // Look up allowed urls in a DB, Collection, whatever
}
}
I omitted full prototype declarations above due to laziness.  It's the
javax.servlet.Filter interface.
Take a look at the balancer webapp that ships with tomcat 5.  The
URLStringMatchRule is pretty close to what you want, and can be easily
extended with a list of allow patterns and/or deny patterns.  Tomcat 
has
something similar as the base Valve for the RemoteAddr/RemoteHost
valves.

Yoav Shapira
Millennium Research Informatics

-Original Message-
From: lrnobs [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 08, 2004 9:11 PM
To: Tomcat Users List
Subject: Filter on url example - Filter out hack attempts
I have had no luck Googling so far for an example on how to filter
based on
urls.

I thought I might put this in the AccessLogValve but will do whatever
works.
I have a limited number of jsp's and graphics on my site and would 
like
to
filter out all of the hack attempts that fill up my logs.

I would like to do something like this (in plain english)

Accept
GET / HTTP/1.1
GET / HTTP/1.0
*page1.jsp*
*page2.jsp*
*page3.jsp*
*page4.jsp*
*page5.jsp*
*graphic1.gif*
*graphic2.gif*
Drop All Other Requests - they are just hack attempts

Thanks,

Larry Nobs



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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, 
proprietary
and/or privileged.  This e-mail is intended only for the individual(s) 
to
whom it is addressed, and may not be saved, copied, printed, disclosed 
or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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: Filter on url example - Filter out hack attempts

2004-05-11 Thread Nathan Maves
True every alias is subject to the occasional OT question.  I think 
for the most part people are not aware of other areas where information 
is available.

my $.02
On May 11, 2004, at 8:55 AM, Ralph Einfeldt wrote:
It's not always easy easy to find the right list for
a question. The opinions about what is right or wrong
vary with the members of the list. (In my opinion
your question is right in this list, although I can
understand that others have different opinions in this
case)
I have seen questions that where more of topic than yours.

http://forum.java.sun.com/ is not a bad idea as there
you may ask questions about java, jsp, servlets and other
things that are not drectly related with tomcat.
-Original Message-
From: lrnobs [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 11, 2004 4:17 PM
To: Tomcat Users List
Subject: Re: Filter on url example - Filter out hack attempts


I am a newbie to Java and Tomcat, and I did spend two days
with two Tomcat books I bought and Google trying to find
some instructions I could understand before posting a
question to this list. Please let me know if there is a
list more appropriate for new users.
-
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]


Can Tomcat 5 use PKCS10 certificates? (Was SSL CA (PKCS10) Problem)

2004-05-06 Thread Nathan Maves
Is anyone aware of problems using a PKCS10 cert with Tomcat 5.0.19?

On May 5, 2004, at 12:49 PM, Nathan Maves wrote:

Our internal CA issued us a PKCS10 certificate but we can not get  
Tomcat 5.0.19 to recognize it.

We imported the PKCS10 Cert using Keytool (java) which worked well.   
We then added the created .keystore to a new Connector using port 443.

Here is the error that we are getting

WARNING: Reinitializing ServerSocket
May 3, 2004 9:29:59 AM org.apache.tomcat.util.net.PoolTcpEndpoint  
acceptSocket
SEVERE: Endpoint [SSL:  
ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8443]] ignored  
exception: java.net.SocketException: SSL handshake  
errorjavax.net.ssl.SSLException: No available certificate corresponds  
to the SSL cipher suites which are enabled.
java.net.SocketException: SSL handshake  
errorjavax.net.ssl.SSLException: No available certificate corresponds  
to the SSL cipher suites which are enabled.	at  
org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESock 
etFactory.java:154)
	at  
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint 
.java:410)
	at  
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 
591)
	at  
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo 
l.java:688)
	at java.lang.Thread.run(Thread.java:534)

Nathan

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


Looking for a HOW-TO for connecting apache to tomcat 5

2004-05-06 Thread Nathan Maves
Can anyone send me a link for any info on this.

Nathan

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


Re: Strange error

2004-05-05 Thread Nathan Maves
The object is a custom object.  The only difference I can find is that  
this object has some event listeners attached to it.  It is an  
implementation of a Tree object.  The only java objects that it uses  
are Map, TreeMap and few other util classes.

Nathan

On May 5, 2004, at 7:18 AM, QM wrote:

On Tue, May 04, 2004 at 02:30:16PM -0600, Nathan Maves wrote:
: What could cause this error in Tomcat 5.0.19.
:
: 2004-05-04 14:21:02 StandardContext[/manager]HTMLManager:
: ManagerServlet.reload[/ReportViewer]
: java.lang.ThreadDeath
: at
:  
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade 
r
: .java:1270)
: [snip]
: It happens when I place an object in the session and then click  
reload
: from the webapp manager.

Any object, or a particular object?
(especially a custom object)
Does said object do anything with threads, such as calling ::stop()?

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


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


SSL CA (PKCS10) Problem

2004-05-05 Thread Nathan Maves
Our internal CA issued us a PKCS10 certificate but we can not get  
Tomcat 5.0.19 to recognize it.

We imported the PKCS10 Cert using Keytool (java) which worked well.  We  
then added the created .keystore to a new Connector using port 443.

Here is the error that we are getting

WARNING: Reinitializing ServerSocket
May 3, 2004 9:29:59 AM org.apache.tomcat.util.net.PoolTcpEndpoint  
acceptSocket
SEVERE: Endpoint [SSL:  
ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8443]] ignored  
exception: java.net.SocketException: SSL handshake  
errorjavax.net.ssl.SSLException: No available certificate corresponds  
to the SSL cipher suites which are enabled.
java.net.SocketException: SSL handshake  
errorjavax.net.ssl.SSLException: No available certificate corresponds  
to the SSL cipher suites which are enabled.	at  
org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocke 
tFactory.java:154)
	at  
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint. 
java:410)
	at  
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 
591)
	at  
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool 
.java:688)
	at java.lang.Thread.run(Thread.java:534)

Nathan

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


Strange error

2004-05-04 Thread Nathan Maves
What could cause this error in Tomcat 5.0.19.

2004-05-04 14:21:02 StandardContext[/manager]HTMLManager:  
ManagerServlet.reload[/ReportViewer]
java.lang.ThreadDeath
at  
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader 
.java:1270)
at  
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader 
.java:1230)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at  
org.apache.log4j.spi.LoggingEvent.init(LoggingEvent.java:145)
at org.apache.log4j.Category.forcedLog(Category.java:372)
at org.apache.log4j.Category.log(Category.java:864)
at  
org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:192)
at  
org.apache.catalina.session.StandardManager.start(StandardManager.java: 
706)
at  
org.apache.catalina.core.StandardContext.start(StandardContext.java: 
4226)
at  
org.apache.catalina.core.StandardContext.reload(StandardContext.java: 
2990)
at  
org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java: 
1019)
at  
org.apache.catalina.manager.HTMLManagerServlet.reload(HTMLManagerServlet 
.java:524)
at  
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet. 
java:147)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica 
tionFilterChain.java:284)
at  
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt 
erChain.java:204)
at  
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi 
lter.java:131)
at  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica 
tionFilterChain.java:233)
at  
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt 
erChain.java:204)
at  
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv 
e.java:257)
at  
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo 
ntext.java:151)
at  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
567)
at  
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon 
textValve.java:245)
at  
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv 
e.java:199)
at  
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo 
ntext.java:151)
at  
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator 
Base.java:587)
at  
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo 
ntext.java:149)
at  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
567)
at  
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java 
:184)
at  
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo 
ntext.java:151)
at  
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java 
:164)
at  
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo 
ntext.java:149)
at  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
567)
at  
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. 
java:156)
at  
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo 
ntext.java:151)
at  
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 
567)
at  
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at  
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
at  
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 
833)
at  
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC 
onnection(Http11Protocol.java:732)
at  
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java: 
619)
at  
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool 
.java:688)
at java.lang.Thread.run(Thread.java:552)

It happens when I place an object in the session and then click reload  
from the webapp manager.

Nathan

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


Re: Long running JDBC session

2004-05-04 Thread Nathan Maves
This is really not a Tomcat question.

Are you using connection pooling?  If so which one?  How many 
connections?

Why are you not using the latest jar from oracle?  You should download 
the 9i driver.

What is your code for how you obtain connection and how you create 
statements.  Are you using PreparedStatements?

Nathan

On May 4, 2004, at 2:31 PM, Carlos-Roberto Queiroz wrote:





  Hello, I have a servlet that connects to an Oracle database (9i)
using classes12.jar JDBC file. In it, there´s a loop that executes a 
quick
query 3000 times, and that´s running for long 10 minutes !! Is there 
any
way I can optimize this connection (JDBC parameters maybe) for such 
case ?

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]


default mime type for tomcat 5

2004-03-03 Thread Nathan Maves
I have some plain text files that are formated but when tomcat 5 serves 
the pages it loses all formating.  This only happens on older browser 
such as netscape 4.79.

I assume that tomcat sets the default mime type to text/html but I need 
it to be text/plain.

Nathan

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


Global URL Redirect Tomcat 5

2004-03-02 Thread Nathan Maves
I am trying to migrate to Tomcat 5 from a different app server.  Is 
there a way to define url redirects? i.e. if a page moved off your 
server to a different location and you do not want to make a redirect 
page.

Nathan

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


Tomcat 5 SSI problems

2004-03-02 Thread Nathan Maves
I have followed the instructions in the documentation to a t and still 
can not get the following line to work.

Any ideas?

!--#include file=./components/Global--

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


Re: Tomcat 5 SSI problems

2004-03-02 Thread Nathan Maves
Never mind...  my own mistake!

On Mar 2, 2004, at 2:21 PM, Nathan Maves wrote:

I have followed the instructions in the documentation to a t and still 
can not get the following line to work.

Any ideas?

!--#include file=./components/Global--

-
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: Alternatives to J2EE Authentication

2004-02-26 Thread Nathan Maves
http://securityfilter.sourceforge.net/

This is perfect!  Not container specific!

On Feb 26, 2004, at 4:19 PM, Steven J. Owens wrote:

Hi folks,

 The most common (and frustrating) bookmarked login page gotcha
with J2EE authentication has been oft-discussed (broken as designed)
on this list.
 What are people's favorite alternatives to J2EE authentication?
And why?
 Something I'm particularly interested is alternatives that don't
require me to rebuild the application from scratch.  I'm looking at
tearing out the old login process and putting in a new one and I don't
really want to start the whole thing over.
 If I had to build it from scratch myself, I'd do it as a simple
Servlet filter that checks for a Principal object stored in the user's
HttpSession.
--
Steven J. Owens
[EMAIL PROTECTED]
I'm going to make broad, sweeping generalizations and strong,
 declarative statements, because otherwise I'll be here all night and
 this document will be four times longer and much less fun to read.
 Take it all with a grain of salt. - Me at http://darksleep.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: how to set java-environment variables in catalina.sh

2004-02-24 Thread Nathan Maves
I think either of these will work.  I use the second one and it works 
fine for me

#JAVA_OPTS=-Djava.awt.headless=true
CATALINA_OPTS=-Djava.awt.headless=true
Nathan Maves
Sun Microsystems
On Feb 24, 2004, at 8:28 AM, Peter Forster wrote:

hi,
I want to start tomcat so it knows environment variables. in regular a
java-programm, i do that with the -D option (java -DMY_ENV=$MY_ENV).
i know i have to do this in the catalina.sh script.
i just can't find the correct syntax. can anyone help me or point to a
tutorial?
thanks
pete
-
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]

Spelling?

2004-02-24 Thread Nathan Maves
Anyone notice that after every configuration change the message Save 
Sucessful appears?

This should be successful.

Just being nit picky :)



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


Logger issues

2004-02-24 Thread Nathan Maves
My webapp that is configured for logging work perfect on sun one app 
server but now nothing show up in the catalina.out on Tomcat 5.

Any ideas?

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


Re: Logger issues

2004-02-24 Thread Nathan Maves
Where would I set my log level?  It seems like there is about 100 
different places to set log levels in the Tomcat Administrator.  
Without changing my webapp all of the logging goes to the standard log 
file in the S1App Server.  When I deploy it to Tomcat 5 nothing appears 
in the catalina.out.  One thing I am looking for is DEBUG info on 
java.sql.PreparedStatement.



On Feb 24, 2004, at 7:10 PM, Jeanfrancois Arcand wrote:



Nathan Maves wrote:

My webapp that is configured for logging work perfect on sun one app 
server but now nothing show up in the catalina.out on Tomcat 5.

Any ideas?
Humm...SunOne App Server uses Tomcat 5 and I don't remember fixing 
such problem when I integrated Tomcat 5 ;-) Are you sure your log 
level is correct? What are you doing exactly?

-- Jeanfrancois




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


DataSource problem

2004-02-20 Thread Nathan Maves
Hey guys just joined the alias today!

I am getting the following error from my web app.

NotifyUtil::java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at  
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
at sun.net.www.http.HttpClient.init(HttpClient.java:306)
at sun.net.www.http.HttpClient.init(HttpClient.java:267)
at sun.net.www.http.HttpClient.New(HttpClient.java:339)
at sun.net.www.http.HttpClient.New(HttpClient.java:320)
at sun.net.www.http.HttpClient.New(HttpClient.java:315)
at  
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnecti 
on.java:512)
at  
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.ja 
va:489)
at  
sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConne 
ction.java:560)
at  
org.netbeans.modules.web.monitor.server.NotifyUtil$RecordSender.run(Noti 
fyUtil.java:237)

What does this mean.  My app seems to be running fine but these errors  
are streaming by in the log.  Here is my server.xml file

ResourceParams name=jdbc/webapps
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
nameurl/name
valuejdbc:oracle:thin:@Server_Name:1541:SID/value
  /parameter
  parameter
namepassword/name
valuepassword/value
  /parameter
  parameter
namemaxActive/name
value32/value
  /parameter
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
nameusername/name
valueuser_name/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
/ResourceParams
I am connection to an Oracle 9 DB us iBatis and Struts.

Nathan Maves
Sun Microsystems

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

Re: Logging

2004-02-20 Thread Nathan Maves
Where is the best resource on how to make your classes log4j compliant?

Nathan Maves
Sun Microsystems
On Feb 20, 2004, at 1:08 PM, Shapira, Yoav wrote:

Howdy,

So is log4j the industry standard for logging in tomcat apps? Is it
what you use?
It's what I use, and I'd say there's no established industry standard.
It's one of the most commonly used packaged.  Many people still use
System.out/System.err.  Many servlet developers use the
ServletContext#log methods.
Yoav Shapira



This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, 
proprietary and/or privileged.  This e-mail is intended only for the 
individual(s) to whom it is addressed, and may not be saved, copied, 
printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your 
computer system and notify the sender.  Thank you.

-
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: Logging

2004-02-20 Thread Nathan Maves
I have been waiting for someone to say that :)

I was just being lazy and looking for a easy example.

~N

On Feb 20, 2004, at 1:29 PM, Adam Hardy wrote:

Nathan,
it seems from your signature that you're already at the right place.  
Or are you a troll?

Seriously though, log4j, like the other loggers, is an API that you  
code with - there's no compliancy involved.
Adam

On 02/20/2004 09:13 PM Nathan Maves wrote:
Where is the best resource on how to make your classes log4j  
compliant?
Nathan Maves
Sun Microsystems
On Feb 20, 2004, at 1:08 PM, Shapira, Yoav wrote:
Howdy,

So is log4j the industry standard for logging in tomcat apps? Is  
it
what you use?


It's what I use, and I'd say there's no established industry  
standard.
It's one of the most commonly used packaged.  Many people still use
System.out/System.err.  Many servlet developers use the
ServletContext#log methods.

Yoav Shapira



This e-mail, including any attachments, is a confidential business  
communication, and may contain information that is confidential,  
proprietary and/or privileged.  This e-mail is intended only for the  
individual(s) to whom it is addressed, and may not be saved, copied,  
printed, disclosed or used by anyone else.  If you are not the(an)  
intended recipient, please immediately delete this e-mail from your  
computer system and notify the sender.  Thank you.

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


--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
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: DataSource problem

2004-02-20 Thread Nathan Maves
I was not aware that I was :)

I have turned this off in net beans.  I just use this for my  
development and create a war file with it.  I just drop this war in the  
webapps dir of tomcat.  Now I can't seem to get rid of it!

Nathan

On Feb 20, 2004, at 1:55 PM, Antonio Fiol Bonnín wrote:

This sounds as anything but a DataSource problem.

What are you using NetBeans web monitor module for?

Antonio Fiol

Nathan Maves wrote:

Hey guys just joined the alias today!

I am getting the following error from my web app.

NotifyUtil::java.net.ConnectException: Connection refused


Means server not responding (refusing the connection).

at java.net.PlainSocketImpl.socketConnect(Native Method)
at  
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at   
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)


Clearly protocol is HTTP.

at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
at sun.net.www.http.HttpClient.init(HttpClient.java:306)
at sun.net.www.http.HttpClient.init(HttpClient.java:267)
at sun.net.www.http.HttpClient.New(HttpClient.java:339)
at sun.net.www.http.HttpClient.New(HttpClient.java:320)
at sun.net.www.http.HttpClient.New(HttpClient.java:315)
at   
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnec 
tion.java:512)
at   
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection. 
java:489)
at   
sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLCon 
nection.java:560)


And finally something that may tell you something...

at   
org.netbeans.modules.web.monitor.server.NotifyUtil$RecordSender.run(No 
tifyUtil.java:237)

What does this mean.


Well... no idea :-(

What are you trying?

Antonio Fiol



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