Hi
I encounter the same problem on a WebSpere class (do not blame me but
my company) where DB2 was installed.
But I am now wondering why it takes the JNDI property from the DB2
environment and not the one set in the "jndi.properties" under
"/conf/default"?
Do you have an idea? Because I would prefer to change the properties files
instead of changing the startup script.
Have fun - Mad Andy / Better Pizza
----- Original Message -----
From: "Tilmann Ludwig" <[EMAIL PROTECTED]>
To: "'jboss-user'" <[EMAIL PROTECTED]>
Sent: Wednesday, November 22, 2000 11:59 PM
Subject: RE: Re: Re: [jBoss-User]javax.naming.OperationNotSupportedExcept
ion usingIBM DB2 6.1 Fix Pack 6
> I'm finally solved the problem myself.
> The problem is that the jdbc2.0 driver from IBM contains a file named
> jndi.properties, with
> the line
> java.naming.factory.initial=COM.ibm.db2.jndi.DB2InitialContextFactory !!!
> The solution is to put an environment entry in the startup skript for
jboss:
> java -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
> -classpath "%CLASSPATH%" org.jboss.Main
> so jndi is not searching for the entry in jndi.properties in the
classpath.
>
> Tilmann
>
> -----Original Message-----
> From: Tilmann Ludwig
> Sent: Dienstag, 21. November 2000 14:33
> To: 'jboss-user'
> Subject: Re: Re: [jBoss-User]
> javax.naming.OperationNotSupportedException usingIBM DB2 6.1 Fix Pack 6
>
>
> Hi Rick,
>
> i'm still getting this error on startup of jboss, when jboss is trying to
> start the datasource.
> The settings are working with an oracle 8.05 db and a IBM DB2 6.1 with
> jdbc1.0 driver, only when
> i try to use the jdbc2.0 driver , i get this error. Is something wrong
with
> my settings or
> is only IBM responsible for my problem?
>
> my settings are:
>
> jndi.properties:
> java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
> #java.naming.provider.url=localhost
> java.naming.factory.url.pkgs=org.jboss.naming
>
> jboss.conf:
> ...
> <MLET CODE = "org.jboss.naming.NamingService" ARCHIVE="jnpserver.jar"
> CODEBASE="../lib/ext/">
> </MLET>
> <MLET CODE = "org.jboss.jdbc.JdbcProvider" ARCHIVE="jboss.jar"
> CODEBASE="../lib/ext/">
> </MLET>
> <MLET CODE="org.jboss.jdbc.XADataSourceLoader" ARCHIVE="jboss.jar"
> CODEBASE="jboss.jar">
> <ARG TYPE="java.lang.String" VALUE="MWNEU">
> <ARG TYPE="java.lang.String"
> VALUE="org.jboss.minerva.xa.XADataSourceImpl">
> </MLET>
> ...
>
> jboss.jcml:
> ...
> <mbean name="DefaultDomain:service=XADataSource,name=MWNEU">
> <attribute name="Properties"></attribute>
> <attribute name="URL">jdbc:db2:MWNEU</attribute>
> <attribute name="GCMinIdleTime">1200000</attribute>
> <attribute name="JDBCUser">###</attribute>
> <attribute name="MaxSize">0</attribute>
> <attribute name="Password">###</attribute>
> <attribute name="GCEnabled">true</attribute>
> <attribute name="InvalidateOnError">false</attribute>
> <attribute name="TimestampUsed">false</attribute>
> <attribute name="Blocking">false</attribute>
> <attribute name="GCInterval">120000</attribute>
> <attribute name="IdleTimeout">1800000</attribute>
> <attribute name="IdleTimeoutEnabled">false</attribute>
> <attribute name="LoggingEnabled">false</attribute>
> <attribute name="MaxIdleTimeoutPercent">1.0</attribute>
> <attribute name="MinSize">10</attribute>
> </mbean>
> ...
>
> Thanx
>
> Tilmann
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]