jubin it seems you are using an old version (I can tell from the messages),
please try PR4 and let us know if that works for you
marc
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jubin Zawar
> Sent: Tuesday, August 22, 2000 12:08 PM
> To: jBoss
> Subject: [jBoss-User] Please Help - Minerva - XML
>
>
> Hi,
>
>
> well.. thanks Jeremiah - I followed your procedures and I'm close
> to giving
> up, because I get the same output returned.
>
> I deleted the res-ref lines out of ejb-jar.xml, I only have res-refs in
> jboss.xml now.
>
> And still this nullpointer exception when deploying Quiz.jar
>
> I m posting this a last time to the group now.
>
> Here are all the files, whoever wants to check it out and reproduce is
> invited to.
> Perhaps there is just some spelling error, perhaps its not "Default
> Stateless SessionBean" but
> "Default Stateless Session Bean" or whatever.
>
> Ciao, Jubin
>
>
> Here the output of jboss.exe :
>
> [Auto deploy] Auto deploy of
> file:/usr/local/linuxshare/jboss/deploy/Quiz.jar
> [Container factory]
> Deploying:file:/usr/local/linuxshare/jboss/deploy/Quiz.jar
> [Container factory] Deploying Quiz
> [Container factory] No configuration chosen. Using default configuration
> [Container factory] java.lang.NullPointerException
> [Container factory] at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactor
> y.java:214)
> [Container factory] at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactor
> y.java:98)
> [Container factory] at java.lang.reflect.Method.invoke(Native Method)
> [Container factory] at
> javax.management.MBeanServer.invoke(MBeanServer.java:
> 1635)
> [Container factory] at
> javax.management.MBeanServer.invoke(MBeanServer.java:
> 1501)
> [Container factory] at
> org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:2
> 58)
> [Container factory] at
> org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:194)
> [Container factory] at
> org.jboss.ejb.AutoDeployer.startService(AutoDeployer.
> java:237)
> [Container factory] at
> org.jboss.util.ServiceMBeanSupport.preRegister(Servic
> eMBeanSupport.java:147)
> [Container factory] at
> org.jboss.util.ServiceMBeanSupport.start(ServiceMBean
> Support.java:86)
> [Container factory] at java.lang.reflect.Method.invoke(Native Method)
>
> [Container factory] at
> javax.management.MBeanServer.preRegisterInvoker(MBean
> Server.java:2253)
> [Container factory] at
> javax.management.loading.MLet.getMBeansFromURL(MLet.j
> ava:208)
> [Container factory] at
> javax.management.loading.MLet.getMBeansFromURL(MLet.j
> ava:385)
> [Container factory] at
> javax.management.MBeanServer.createMBean(MBeanServer.
> java:721)
> [Container factory] at org.jboss.Main.run(Main.java:109)
> [Container factory] at org.jboss.Main$1.run(Main.java:81)
> [Container factory] at
> java.security.AccessController.doPrivileged(Native Me
> thod)
> [Auto deploy] Deployment
> failed:file:/usr/local/linuxshare/jboss/deploy/Quiz.jar
> [Container factory] at org.jboss.Main.main(Main.java:77)
> [Auto deploy] org.jboss.ejb.DeploymentException: Could not deploy
> file:/usr/loca
> l/linuxshare/jboss/deploy/Quiz.jar, Cause:java.lang.NullPointerException
> [Auto deploy] at java.lang.Throwable.<init>(Throwable.java:96)
> [Auto deploy] at java.lang.Exception.<init>(Exception.java:44)
> [Auto deploy] at
> org.jboss.ejb.DeploymentException.<init>(DeploymentException.
> java:34)
> [Auto deploy] at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:3
> 44)
> [Auto deploy] at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:9
> 8)
> [Auto deploy] at java.lang.reflect.Method.invoke(Native Method)
> [Auto deploy] at
> javax.management.MBeanServer.invoke(MBeanServer.java:1635)
> [Auto deploy] at
> javax.management.MBeanServer.invoke(MBeanServer.java:1501)
> [Auto deploy] at
> org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:258)
> [Auto deploy] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:194)
> [Auto deploy] at
> org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:237
> )
> [Auto deploy] at
> org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.
> java:86)
> [Auto deploy] at
> org.jboss.util.ServiceMBeanSupport.preRegister(ServiceMBeanSu
> pport.java:147)
> [Auto deploy] at java.lang.reflect.Method.invoke(Native Method)
> [Auto deploy] at
> javax.management.MBeanServer.preRegisterInvoker(MBeanServer.j
> ava:2253)
> [Auto deploy] at
> javax.management.MBeanServer.createMBean(MBeanServer.java:721
> )
> [Auto deploy] at
> javax.management.loading.MLet.getMBeansFromURL(MLet.java:385)
> [Auto deploy] at
> javax.management.loading.MLet.getMBeansFromURL(MLet.java:208)
> [Auto deploy] at org.jboss.Main.run(Main.java:109)
> [Auto deploy] at org.jboss.Main$1.run(Main.java:81)
> [Auto deploy] at java.security.AccessController.doPrivileged(Native
> Method)
> [Auto deploy] at org.jboss.Main.main(Main.java:77)
>
> Here the entry in my jboss.conf :
>
> <MLET CODE="org.jboss.jdbc.XADataSourceLoader"
> ARCHIVE="jboss.jar,jdbc6.5-1.2.jar" CODEBASE="../lib/ext/">
> <ARG TYPE="java.lang.String" VALUE="postgres">
> <ARG TYPE="java.lang.String"
> VALUE="org.jboss.minerva.xa.XADataSourceImpl">
> </MLET>
>
> the only content in my jboss.jcml :
> <mbean name="DefaultDomain:service=XADataSource,name=postgres">
> <attribute name="URL">jdbc:postgresql:wapdb</attribute>
> <attribute name="JDBCUser">onu</attribute>
> <attribute name="Password">onu</attribute>
> </mbean>
>
> jboss.properties:
> jdbc.drivers=org.hsql.jdbcDriver,jdbc.idbDriver,postgresql.Driver
>
> ejb-jar.xml :
>
> <?xml version="1.0" encoding="Cp1252"?>
>
> <ejb-jar>
> <description>jBoss wap framework application </description>
> <display-name>wapplication</display-name>
> <enterprise-beans>
> <session>
> <ejb-name>Quiz</ejb-name>
> <jndi-name>Quiz</jndi-name>
> <home>framework.application.QuizHome</home>
> <remote>framework.application.Quiz</remote>
> <ejb-class>framework.application.QuizBean</ejb-class>
> <session-type>Stateless</session-type>
> <transaction-type>Bean</transaction-type>
> </session>
> </enterprise-beans>
> </ejb-jar>
>
>
> and here the jboss.xml : (also in directory META-INF, shouldnt it be there
> ?)
>
> <?xml version="1.0" encoding="Cp1252"?>
> <jboss>
> <resource-managers>
> <resource-manager res-class="org.jboss.ejb.deployment.JDBCResource">
> <res-name>wapdb</res-name>
> <res-jndi-name>xa.postgres</res-jndi-name>
> </resource-manager>
> </resource-managers>
>
>
> <enterprise-beans>
> <session>
> <ejb-name>Quiz</ejb-name>
> <jndi-name>Quiz</jndi-name>
> <configuration-name>Default Stateless Session Bean</configuration-name>
> <resource-ref>
> <res-ref-name>wapdb</res-ref-name>
> <resource-name>wapdb</resource-name>
> </resource-ref>
> </session>
> </enterprise-beans>
>
> </jboss>
>
> And here the code fragment executing the db lookup, but in fact, this is
> never called, since I get the NullPointerException at Deploy time :
>
> public QuizPattern getQuizPattern(int level) throws SQLException,
> javax.naming.NamingException
> {
>
> /* lots of declarations cutted */
>
> try {
> /* try to get a connection from the database pool
> named postgres */
> naming = new InitialContext();
> ds =
> (DataSource)naming.lookup("java:comp/env/wapdb");
> con = ds.getConnection();
> st = con.createStatement();
> /* get the count of interesting records */
> rs=st.executeQuery("SELECT COUNT(question) FROM
> wapquizview WHERE (difficulty = " + level +");");
>
> /* stuff cutted again */
>
> }
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]