RE: Upgrading from Tomcat3.1.1 to Tomcat3.2.2

2001-06-20 Thread Paulo J S Pereira

Govind,

Make sure the 'includes/' directory exists under the physical-path of where
your jsp's are. But you really should be using the html tag script
src=includes/LocalizationConstants.js language=JavaScript/script
instead of loading the actual javascript inline to your doc.

Regards,
Paulo

-Original Message-
From: Govind Agarwal [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 10:42 AM
To: [EMAIL PROTECTED]
Subject: Upgrading from Tomcat3.1.1 to Tomcat3.2.2


Hello,

I have upgraded from Tomcat3.1.1 to Tomcat3.2.2.
The WebServer used is IIS.

Everything runs fine but the Include Tag which gives Bad file argument to
include 
The Syntax I have used is
%@ include file = includes/LocalizationConstants.js %

The same thing works fine with Tomcat3.1.1
Is there are any change in the syntax for this or there is some other
problem.
Please help.

Regards
Govind

The Error thrown is :

Error: 500
Location: /art/Main.jsp
Internal Servlet Error:

org.apache.jasper.compiler.CompileException: C:\art\Main.jsp(54,0) Bad file
argument to include
at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve
ntListener.java, Compiled Code)
at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList
ener.java:116)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java, Compiled
Code)
at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled
Code)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:258)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:268)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled
Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
Compiled Code)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
Compiled Code)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java,
Compiled Code)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java, Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
at java.lang.Thread.run(Thread.java:479)






RE: Server Side Includes

2001-05-31 Thread Paulo J S Pereira

Hi Geetha;

I use this JSP tag to accomplish the eqivalent:
%@ include file=URL %

Please note this happens at translation time and is only applicable within
JSP pages.

If you want to just use .shtml files, then be sure that your web server
supports it ... apache and iis does.

Hope this helps,
Paulo

-Original Message-
From: Geetha Subramanian [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 31, 2001 5:04 PM
To: [EMAIL PROTECTED]
Subject: Server Side Includes


Hi
  Does tomcat support .shtml files? That is the
server side includes. Please clarify.

Thanks,
Geetha


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year!  http://personal.mail.yahoo.com/





RE: JDBC Connections

2001-05-28 Thread Paulo J S Pereira

Mathew,

It's been my experience to only use it when necessary and release it back to
the pool when done. Otherwise, it is redundant to have a pool to being with.
The pool's power comes in its management of available connections, if you
minimize the available connections, the pool will try to grow and eventually
lose it's effectiveness. You will also experience a performance hit for it.

Persistance layer implementaions rely on that principal in managing its
connection pool.

Paulo Pereira
Java/Web Developer
Sentricity Inc.,
A Division of Sentex Communications Corp.,
www.sentricity.com

-Original Message-
From: Mathew Clark [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 28, 2001 11:38 AM
To: [EMAIL PROTECTED]
Subject: JDBC Connections


Hi,

We have implemented a simple JDBC connection pool for our servlet - do you
think it is better to grab a connection once when a request is received and
use that connection throughout the processing or should the connection be
used only when necessary and released as soon as possible??

Regards,

Matthew.




RE: problem with /jakarta/isapi_redirect.dll on win2k

2001-05-23 Thread Paulo J S Pereira

Also, make sure the Filter DLLs key under
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\Parameters is
EMPTY or DOES NOT reference the full path to isapi_redirect.dll. Only
perform that step if using PWS.

Paulo Pereira
Java Developer
Sentricity Inc., www.sentricity.com
A Division of Sentex Communications Corp.,
240-E Holiday Inn Drive,
Cambridge, ON
N3C3X4 CANADA

-Original Message-
From: Eric Wu [mailto:[EMAIL PROTECTED]]
Sent: May 23, 2001 4:23 PM
To: '[EMAIL PROTECTED]'
Subject: RE: problem with /jakarta/isapi_redirect.dll on win2k


Did you check the settings in the registry (under
HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0)?  Verify that the extension_uri, worker_file and
worker_mount_file settings are pointing to the correct files.

Eric

-Original Message-
From: Robert, Betts [mailto:[EMAIL PROTECTED]]
Sent: May 23, 2001 9:37 AM
To: [EMAIL PROTECTED]
Subject: problem with /jakarta/isapi_redirect.dll on win2k


Howdy

I have looked at the docs, faq and gone throught the list archive, but not
found a solution to my particular problem.

I have installed tc 3.2.1 on a win2k prof machine with iis 5, running tomcat
out of process.

I can run tomcat with no problems as a service or as a stand alone
executable.

I can also load isapi_redirect.dll as a ISAPI filter and it shows the green
light.

I have tripple checked that the right permissions have been setup on the
virtual directory /jakarta, and that it includes execute permissions.

Can anyone please help me or point me in the right direction.

I get an file not found error when run the examples, BUT I get NO ERROR when
I run http://localhost:8080/examples/jsp/index.html.

Thanks

Rob

Now for the problem details:

When from my browser I call http://localhost/examples/jsp/index.html;, I
get the followinf out put:

Not Found (404)
Original request: /jakarta/isapi_redirect.dll

Not found request: /jakarta/isapi_redirect.dll

Web Logfile has the following:

12:52:51 127.0.0.1 W3SVC1 80 GET /jakarta/isapi_redirect.dll 401
12:52:51 127.0.0.1 W3SVC1 80 GET /jakarta/isapi_redirect.dll 200

The output from tomcat:

2001-05-23 03:05:41 - Ctx(  ): 404 R(  + /jakarta/isapi_redirect.dll
+ null) null






RE: ISAPI dll Download URL

2001-05-23 Thread Paulo J S Pereira

http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/win32/i38
6/

Paulo Pereira
Java Developer
Sentricity Inc., www.sentricity.com
A Division of Sentex Communications Corp.,
240-E Holiday Inn Drive,
Cambridge, ON
N3C3X4 CANADA

-Original Message-
From: Arnold Shore [mailto:[EMAIL PROTECTED]]
Sent: May 23, 2001 7:26 AM
To: [EMAIL PROTECTED]
Subject: ISAPI dll Download URL


Sorry for the bother, but the basic links to binary Tomcat downloads appears
circular.  Will appreciate subject URL.  Thanks, all.

Arnold Shore
Annapolis, MD USA