tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ZPet...@netscape.net (Peter)
Subject RE: JDBC security?
Date Tue, 17 Dec 2002 22:13:49 GMT
Yes, Tomcat runs fine with all the examples.

-Peter


"Tam, Michael" <mtam@PFC.Forestry.CA> wrote:

>It doesn't seem to be the driver problem.  It is coming from your network.
>Can you run tomcat by default (i.e. out of the box without your app)??
>
>
>-----Original Message-----
>From: ZPeterO@netscape.net [mailto:ZPeterO@netscape.net]
>Sent: Tuesday, December 17, 2002 1:23 PM
>To: tomcat-user@jakarta.apache.org
>Subject: RE: JDBC security?
>
>
>Here's the localhost_log.2002-12-17.txt
>
>2002-12-17 10:36:05 WebappLoader[/bd]: Deploying class repositories to work
>directory /opt/tomcat/work/Standalone/localhost/bd
>2002-12-17 10:36:05 WebappLoader[/bd]: Deploy class files /WEB-INF/classes
>to /opt/tomcat/webapps/bd/WEB-INF/classes
>2002-12-17 10:36:05 WebappLoader[/bd]: Reloading checks are enabled for this
>Context
>2002-12-17 10:36:06 ContextConfig[/bd]: Missing application web.xml, using
>defaults only
>2002-12-17 10:36:06 StandardManager[/bd]: Seeding random number generator
>class java.security.SecureRandom
>2002-12-17 10:36:06 StandardManager[/bd]: Seeding of random number generator
>has been completed
>2002-12-17 10:36:06 StandardWrapper[/bd:default]: Loading container servlet
>default
>2002-12-17 10:36:06 default: init
>2002-12-17 10:36:06 StandardWrapper[/bd:invoker]: Loading container servlet
>invoker
>2002-12-17 10:36:06 invoker: init
>2002-12-17 10:36:06 jsp: init
>2002-12-17 10:36:06 HostConfig[localhost]: Deploying configuration
>descriptor manager.xml
>2002-12-17 10:36:06 WebappLoader[/manager]: Deploying class repositories to
>work directory /opt/tomcat/work/Standalone/localhost/manager
>2002-12-17 10:36:08 ContextConfig[/manager]: Configured an authenticator for
>method BASIC
>2002-12-17 10:36:08 StandardManager[/manager]: Seeding random number
>generator class java.security.SecureRandom
>2002-12-17 10:36:08 StandardManager[/manager]: Seeding of random number
>generator has been completed
>2002-12-17 10:36:08 StandardWrapper[/manager:default]: Loading container
>servlet default
>2002-12-17 10:36:08 default: init
>2002-12-17 10:36:08 StandardWrapper[/manager:invoker]: Loading container
>servlet invoker
>2002-12-17 10:36:08 invoker: init
>2002-12-17 10:36:08 jsp: init
>2002-12-17 10:36:08 HostConfig[localhost]: Deploying configuration
>descriptor admin.xml
>2002-12-17 10:36:27 HostConfig[localhost]: Deploying web application
>directory tomcat-docs
>2002-12-17 10:36:27 StandardHost[localhost]: Installing web application at
>context path /tomcat-docs from URL file:/opt/tomcat/webapps/tomcat-docs
>2002-12-17 10:36:27 WebappLoader[/tomcat-docs]: Deploying class repositories
>to work directory /opt/tomcat/work/Standalone/localhost/tomcat-docs
>2002-12-17 10:36:28 StandardManager[/tomcat-docs]: Seeding random number
>generator class java.security.SecureRandom
>2002-12-17 10:36:28 StandardManager[/tomcat-docs]: Seeding of random number
>generator has been completed
>2002-12-17 10:36:28 StandardWrapper[/tomcat-docs:default]: Loading container
>servlet default
>2002-12-17 10:36:28 default: init
>2002-12-17 10:36:28 StandardWrapper[/tomcat-docs:invoker]: Loading container
>servlet invoker
>2002-12-17 10:36:28 invoker: init
>2002-12-17 10:36:28 jsp: init
>2002-12-17 10:36:28 HostConfig[localhost]: Deploying web application
>directory ROOT
>2002-12-17 10:36:28 StandardHost[localhost]: Installing web application at
>context path  from URL file:/opt/tomcat/webapps/ROOT
>2002-12-17 10:36:28 WebappLoader[]: Deploying class repositories to work
>directory /opt/tomcat/work/Standalone/localhost/_
>2002-12-17 10:36:31 StandardManager[]: Seeding random number generator class
>java.security.SecureRandom
>2002-12-17 10:36:31 StandardManager[]: Seeding of random number generator
>has been completed
>2002-12-17 10:36:31 StandardWrapper[:default]: Loading container servlet
>default
>2002-12-17 10:36:31 default: init
>2002-12-17 10:36:31 StandardWrapper[:invoker]: Loading container servlet
>invoker
>2002-12-17 10:36:31 invoker: init
>2002-12-17 10:36:31 jsp: init
>2002-12-17 10:36:31 HostConfig[localhost]: Deploying web application
>directory webdav
>2002-12-17 10:36:31 StandardHost[localhost]: Installing web application at
>context path /webdav from URL file:/opt/tomcat/webapps/webdav
>2002-12-17 10:36:31 WebappLoader[/webdav]: Deploying class repositories to
>work directory /opt/tomcat/work/Standalone/localhost/webdav
>2002-12-17 10:36:32 StandardManager[/webdav]: Seeding random number
>generator class java.security.SecureRandom
>2002-12-17 10:36:32 StandardManager[/webdav]: Seeding of random number
>generator has been completed
>2002-12-17 10:36:32 StandardWrapper[/webdav:default]: Loading container
>servlet default
>2002-12-17 10:36:32 default: init
>2002-12-17 10:36:32 StandardWrapper[/webdav:invoker]: Loading container
>servlet invoker
>2002-12-17 10:36:32 invoker: init
>2002-12-17 10:36:32 jsp: init
>2002-12-17 10:37:18 org.apache.catalina.INVOKER.BookDBServlet: init
>2002-12-17 10:37:18 BookDBServlet init: Start
>BookDBServlet init: Loading Database Driver
>Error Loading interbase.interclient.Driver
>
>2002-12-17 12:17:24 StandardHost[localhost]: Removing web application at
>context path /admin
>
>
>
>Here's the localhost_admin_log.2002-12-17.txt
>
>2002-12-17 10:36:08 WebappLoader[/admin]: Deploying class repositories to
>work directory /opt/tomcat/work/Standalone/localhost/admin
>2002-12-17 10:36:08 WebappLoader[/admin]: Deploy class files
>/WEB-INF/classes to
>/opt/tomcat/webapps/../server/webapps/admin/WEB-INF/classes
>2002-12-17 10:36:08 WebappLoader[/admin]: Deploy JAR /WEB-INF/lib/struts.jar
>to /opt/tomcat/webapps/../server/webapps/admin/WEB-INF/lib/struts.jar
>2002-12-17 10:36:13 ContextConfig[/admin]: Configured an authenticator for
>method FORM
>2002-12-17 10:36:13 StandardManager[/admin]: Seeding random number generator
>class java.security.SecureRandom
>2002-12-17 10:36:13 StandardManager[/admin]: Seeding of random number
>generator has been completed
>2002-12-17 10:36:13 StandardWrapper[/admin:default]: Loading container
>servlet default
>2002-12-17 10:36:13 default: init
>2002-12-17 10:36:14 action: init
>2002-12-17 10:36:27 StandardWrapper[/admin:invoker]: Loading container
>servlet invoker
>2002-12-17 10:36:27 invoker: init
>2002-12-17 10:36:27 jsp: init
>
>And here's the catalins.out
>
>
>Dec 17, 2002 10:35:44 AM org.apache.commons.modeler.Registry loadRegistry
>INFO: Loading registry information
>Dec 17, 2002 10:35:45 AM org.apache.commons.modeler.Registry getRegistry
>INFO: Creating new Registry instance
>Dec 17, 2002 10:35:49 AM org.apache.commons.modeler.Registry getServer
>INFO: Creating MBeanServer
>Dec 17, 2002 10:35:53 AM org.apache.coyote.http11.Http11Protocol init
>INFO: Initializing Coyote HTTP/1.1 on port 8080
>Starting service Tomcat-Standalone
>Apache Tomcat/4.1.9
>Dec 17, 2002 10:36:33 AM org.apache.coyote.http11.Http11Protocol start
>INFO: Starting Coyote HTTP/1.1 on port 8080
>Dec 17, 2002 10:36:33 AM org.apache.jk.common.ChannelSocket init
>INFO: JK2: ajp13 listening on tcp port 8009
>Dec 17, 2002 10:36:33 AM org.apache.jk.server.JkMain start
>INFO: Jk running ID=0 time=844/101  config=/opt/tomcat/conf/jk2.properties
>BookDBServlet Service Method: Start
>BookDBServlet Service Method: Before List Book
>BookDBServlet Service: Before login
>BookDBServlet Service: After login
>Stopping service Tomcat-Standalone
>java.net.SocketException: Network is unreachable
>    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:426)
>    at java.net.Socket.connect(Socket.java:376)
>    at java.net.Socket.<init>(Socket.java:291)
>    at java.net.Socket.<init>(Socket.java:119)
>    at org.apache.jk.common.ChannelSocket.destroy(ChannelSocket.java:355)
>    at org.apache.jk.server.JkMain.stop(JkMain.java:283)
>    at
>org.apache.jk.server.JkCoyoteHandler.destroy(JkCoyoteHandler.java:174)
>    at
>org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1051)
>    at
>org.apache.catalina.core.StandardService.stop(StandardService.java:546)
>    at
>org.apache.catalina.core.StandardServer.stop(StandardServer.java:2223)
>    at
>org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:
>622)
>
>
>
>================================================================
>
>
>
>"Tam, Michael" <mtam@PFC.Forestry.CA> wrote:
>
>>Hi Peter,
>>
>>   We need more details on the log in order to help.  I will take a wild
>>guess here that the servlet can't find the driver and which may due to the
>>driver lib is located in the wrong place.  Hope this helps.
>>
>>Regards,
>>Michael
>>
>>-----Original Message-----
>>From: ZPeterO@netscape.net [mailto:ZPeterO@netscape.net]
>>Sent: Tuesday, December 17, 2002 8:55 AM
>>To: tomcat-user@jakarta.apache.org
>>Subject: JDBC security?
>>
>>
>>To all,
>>
>>I had a servlet communicating via JDBC to an Interbase database on Tomcat
>>3.? and Apache 1.3.27, I can't remember tomcat version version.
>>
>>Now that I have Apache 2.04 and Tomcat 4.1.17 up and running the same
>>servlet will not connect, the log file indicated it won't/can't load the
>>database driver.
>>
>>Has there been some security updates to Tomcat that prohibit loading a
>>databse driver unless specified ? 
>>
>>Here's the localhost_log.2002-12-17.txt file error message,
>>
>>Error Loading interbase.interclient.Driver
>>
>>...and here's the servlet code..
>>
>>import interbase.interclient.Driver;
>>import java.io.*;
>>import java.util.*;
>>import java.sql.*;
>>import java.text.*;
>>import java.lang.*;
>>import java.net.*;
>>import javax.servlet.*;
>>import javax.servlet.http.*;
>>
>>
>>public class DBServlet extends HttpServlet {
>>
>>  protected String dbURL =
>>"jdbc:interbase://127.0.0.1//opt/tomcat/webapps/bd/database/main.gdb";
>>I tried this also
>>// protected String dbURL =
>>"jdbc:interbase://localhost//opt/tomcat/webapps/bd/database/main.gdb";
>>
>>
>>  public void init(ServletConfig config) throws ServletException {
>>    super.init(config);
>>    try {
>>        Properties prop = new Properties();
>>        prop.put ("user", "SYSDBA");
>>        prop.put ("password", "masterkey");
>>
>>THIS is the line that bombs!
>>        Class.forName("interbase.interclient.Driver");
>>
>>
>>Thanks, 
>>-Peter
>>
>>
>>__________________________________________________________________
>>The NEW Netscape 7.0 browser is now available. Upgrade now!
>>http://channels.netscape.com/ns/browsers/download.jsp 
>>
>>Get your own FREE, personal Netscape Mail account today at
>>http://webmail.netscape.com/
>>
>>--
>>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>
>>
>>
>
>__________________________________________________________________
>The NEW Netscape 7.0 browser is now available. Upgrade now!
>http://channels.netscape.com/ns/browsers/download.jsp 
>
>Get your own FREE, personal Netscape Mail account today at
>http://webmail.netscape.com/
>
>--
>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>
>
>

__________________________________________________________________
The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp


Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

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


Mime
View raw message