You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Richard Drent <ri...@drentit.nl> on 2003/10/13 23:56:21 UTC

Constant strukle with connecting to firebird/interbase

Guyzzz


Im trying to connect my tomcat to a firebird database server.

The first time after a restart of the httpd/tomcat he gifs as an error

################################ start
Root cause: 
java.lang.ExceptionInInitializerError: java.security.AccessControlException:
access denied (java.util.PropertyPermission log4j.configuration read)
	at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:272)
	at
java.security.AccessController.checkPermission(AccessController.java:399)
	at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
	at
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278)
	at java.lang.System.getProperty(System.java:599)
	at org.apache.log4j.Category.(Category.java:137)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:120)
	at
org.firebirdsql.logging.LoggerFactory.getLogger(LoggerFactory.java:35)
	at
org.firebirdsql.logging.LoggerFactory.getLogger(LoggerFactory.java:65)
	at org.firebirdsql.jdbc.FBDriver.(FBDriver.java:151)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:120)
	at
_0002fconnect_00033_0002ejspconnect3_jsp_0._jspService(_0002fconnect_00033_0
002ejspconnect3_jsp_0.java:76)
######################### end

after an refresh he gives

######################### start
The root cause:

java.lang.NoClassDefFoundError
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:120)
	at
_0002fconnect_00033_0002ejspconnect3_jsp_11._jspService(_0002fconnect_00033_
0002ejspconnect3_jsp_11.java:76)

######################## end

@ line 76 is written

	Class.forName("org.firebirdsql.jdbc.FBDriver").newInstance();

The firebirdsql.jar is in the /java_home/lib/

My feeling is that he crashes @ the moment when he starts with building the
.class file.

But I would like to have some input, how to solve

Thnzx richard





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


RE: Constant strukle with connecting to firebird/interbase

Posted by "Richard Drent (Drent IT BV)" <in...@drentit.nl>.

Tomcat version = 3.2.3
Sdk = 1.3

Met vriendelijke groeten
 
 
Richard Drent
 


Guyzzz


Im trying to connect my tomcat to a firebird database server.

The first time after a restart of the httpd/tomcat he gifs as an error

################################ start
Root cause:
java.lang.ExceptionInInitializerError: java.security.AccessControlException:
access denied (java.util.PropertyPermission log4j.configuration read)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:272)
at
java.security.AccessController.checkPermission(AccessController.java:399)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278)
at java.lang.System.getProperty(System.java:599)
at org.apache.log4j.Category.(Category.java:137)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
org.firebirdsql.logging.LoggerFactory.getLogger(LoggerFactory.java:35)
at
org.firebirdsql.logging.LoggerFactory.getLogger(LoggerFactory.java:65)
at org.firebirdsql.jdbc.FBDriver.(FBDriver.java:151)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
_0002fconnect_00033_0002ejspconnect3_jsp_0._jspService(_0002fconnect_00033_0
002ejspconnect3_jsp_0.java:76)
######################### end

after an refresh he gives

######################### start
The root cause:

java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
_0002fconnect_00033_0002ejspconnect3_jsp_11._jspService(_0002fconnect_00033_
0002ejspconnect3_jsp_11.java:76)

######################## end

@ line 76 is written

Class.forName("org.firebirdsql.jdbc.FBDriver").newInstance();

The firebirdsql.jar is in the /java_home/lib/

My feeling is that he crashes @ the moment when he starts with building the
.class file.

But I would like to have some input, how to solve

Thnzx richard




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




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


Re: Constant strukle with connecting to firebird/interbase

Posted by Bill Barker <wb...@wilshire.com>.
You have neglected to mention your Tomcat version.  At a guess, (from the
stack-trace), you are using a 3.2.x version.

"Richard Drent" <ri...@drentit.nl> wrote in message
news:002001c391d4$d9d1b780$1800a8c0@richard...

Guyzzz


Im trying to connect my tomcat to a firebird database server.

The first time after a restart of the httpd/tomcat he gifs as an error

################################ start
Root cause:
java.lang.ExceptionInInitializerError: java.security.AccessControlException:
access denied (java.util.PropertyPermission log4j.configuration read)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:272)
at
java.security.AccessController.checkPermission(AccessController.java:399)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278)
at java.lang.System.getProperty(System.java:599)
at org.apache.log4j.Category.(Category.java:137)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
org.firebirdsql.logging.LoggerFactory.getLogger(LoggerFactory.java:35)
at
org.firebirdsql.logging.LoggerFactory.getLogger(LoggerFactory.java:65)
at org.firebirdsql.jdbc.FBDriver.(FBDriver.java:151)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
_0002fconnect_00033_0002ejspconnect3_jsp_0._jspService(_0002fconnect_00033_0
002ejspconnect3_jsp_0.java:76)
######################### end

after an refresh he gives

######################### start
The root cause:

java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
_0002fconnect_00033_0002ejspconnect3_jsp_11._jspService(_0002fconnect_00033_
0002ejspconnect3_jsp_11.java:76)

######################## end

@ line 76 is written

Class.forName("org.firebirdsql.jdbc.FBDriver").newInstance();

The firebirdsql.jar is in the /java_home/lib/

My feeling is that he crashes @ the moment when he starts with building the
.class file.

But I would like to have some input, how to solve

Thnzx richard




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