btw for those who wonder, if you configure your xml files right, it will
still work the same, the ongoing effort (and null pointer debunking) is for
default configuration only.
regards
marc
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of marc fleury
> Sent: Sunday, May 28, 2000 10:26 PM
> To: jBoss
> Subject: RE: [jBoss-User] Defaults done
>
>
> yes you are reproducing my error (class cast) (it is bug #56 i
> think) I know
> what causes it and will fix it asap (when I find the binding place for the
> default dbs... ) if not I will hack the naming in the container factory,
> unelegant...
>
> marc
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Jim Archer
> > Sent: Sunday, May 28, 2000 8:08 PM
> > To: jBoss
> > Subject: Re: [jBoss-User] Defaults done
> >
> >
> > Hi Marc and list...
> >
> > OK, I pulled down a fresh cvs tree and it built fine. I placed the class
> > files for my bean in the right spot and the ejb-jar.xml file in there as
> > well. I started the server and got a ClassCastException. I'll paste the
> > server log and my XML file below. I would appreciate anyone
> telling my if
> > there are errors in the XML file, but I believe it is correct.
> >
> > Thanks!
> >
> > Jim
> >
> > XML File:
> >
> > <?xml version="1.0" encoding="UTF-8" ?>
> > <ejb-jar>
> > <enterprise-beans>
> > <entity>
> > <description>User EJB</description>
> > <ejb-name>User</ejb-name>
> > <home>com.regtek.eb.user.UserHome</home>
> > <remote>com.regtek.eb.user.User</remote>
> > <ejb-class>com.regtek.eb.user.UserBean</ejb-class>
> > <persistence-type>Container</persistence-type>
> > <prim-key-class>com.regtek.eb.user.UserPK</prim-key-class>
> >
> > <reentrant>False</reentrant>
> >
> > <cmp-field><field-name>pk</field-name></cmp-field>
> > <cmp-field><field-name>code</field-name></cmp-field>
> > <cmp-field><field-name>personCode</field-name></cmp-field>
> > <cmp-field><field-name>passwd</field-name></cmp-field>
> > <cmp-field><field-name>resellerCode</field-name></cmp-field>
> > <cmp-field><field-name>orgname</field-name></cmp-field>
> > <cmp-field><field-name>createDate</field-name></cmp-field>
> > <cmp-field><field-name>lastMod</field-name></cmp-field>
> > <primkey-field>pk</primkey-field>
> > </entity>
> > </enterprise-beans>
> > </ejb-jar>
> >
> >
> >
> > Log File:
> >
> > <2000-05-28 10.54><4><File logging><Information><Logging started>
> > <2000-05-28 10.54><5><Info><Information><Java version: 1.3.0,Sun
> > Microsystems Inc.>
> > <2000-05-28 10.54><6><Info><Information><Java VM: Java
> HotSpot(TM) Client
> > VM 1.3.0-C,Sun Microsystems Inc.>
> > <2000-05-28 10.54><7><Info><Information><System: Windows 98 4.10,x86>
> > <2000-05-28 10.54><8><Classpath><Information><Added
> > library:file:/C:/jboss_cvs/jboss/dist/lib/ext/mail.jar>
> > <2000-05-28 10.54><9><Classpath><Information><Added
> > library:file:/C:/jboss_cvs/jboss/dist/lib/ext/ejxejb.jar>
> > <2000-05-28 10.54><10><Classpath><Information><Added
> > library:file:/C:/jboss_cvs/jboss/dist/lib/ext/ejb.jar>
> > <2000-05-28 10.54><11><Classpath><Information><Added
> > library:file:/C:/jboss_cvs/jboss/dist/lib/ext/jnpserver.jar>
> > <2000-05-28 10.54><12><Classpath><Information><Added
> > library:file:/C:/jboss_cvs/jboss/dist/lib/ext/jmxtools.jar>
> > <2000-05-28 10.54><13><Classpath><Information><Added
> > library:file:/C:/jboss_cvs/jboss/dist/lib/ext/awt.jar>
> > <2000-05-28 10.54><15><Classpath><Information><Added
> > library:file:/C:/jboss_cvs/jboss/dist/lib/ext/jdbc2_0-stdext.jar>
> > <2000-05-28 10.54><14><Classpath><Information><Added
> > library:file:/C:/jboss_cvs/jboss/dist/lib/ext/idb.jar>
> > <2000-05-28 10.54><16><Classpath><Information><Added
> > library:file:/C:/jboss_cvs/jboss/dist/lib/ext/hsql.jar>
> > <2000-05-28 10.54><17><Classpath><Information><Added
> > library:file:/C:/jboss_cvs/jboss/dist/lib/ext/activation.jar>
> > <2000-05-28 10.54><18><Classpath><Information><Added
> > library:file:/C:/jboss_cvs/jboss/dist/lib/ext/jndi.jar>
> > <2000-05-28 10.54><19><Classpath><Information><Added
> > library:file:/C:/jboss_cvs/jboss/dist/lib/ext/xml.jar>
> > <2000-05-28 10.54><20><Classpath><Information><Added
> > library:file:/C:/jboss_cvs/jboss/dist/lib/ext/dynaserver.jar>
> > <2000-05-28 10.54><21><Classpath><Information><Added
> > library:file:/C:/jboss_cvs/jboss/dist/lib/ext/jta-spec1_0_1.jar>
> > <2000-05-28 10.54><22><Classpath><Information><Added
> > library:file:/C:/jboss_cvs/jboss/dist/lib/ext/ejxeditor.jar>
> > <2000-05-28 10.54><23><Classpath><Information><Added
> > library:file:/C:/jboss_cvs/jboss/dist/lib/ext/ejxjaws.jar>
> > <2000-05-28 10.54><24><Classpath><Information><Added
> > library:file:/C:/jboss_cvs/jboss/dist/lib/ext/jboss.jar>
> > <2000-05-28 10.54><25><Classpath><Information><Added
> > library:file:/C:/jboss_cvs/jboss/dist/lib/ext/ejxjboss.jar>
> > <2000-05-28 10.54><26><Classpath><Information><Added
> > directory:file:/C:/jboss_cvs/jboss/dist/db/>
> > <2000-05-28 10.54><27><JDBC><Information><Loaded
> > JDBC-driver:org.hsql.jdbcDriver>
> > <2000-05-28 10.54><28><JDBC><Information><Loaded
> > JDBC-driver:jdbc.idbDriver>
> > <2000-05-28 10.54><29><Webserver><Information><Starting>
> > <2000-05-28 10.54><30><Webserver><Information><Started dynamic
> > downloading
> > service on port 8080>
> > <2000-05-28 10.54><31><Webserver><Information><Started>
> > <2000-05-28 10.54><32><Hypersonic><Information><Starting>
> > <2000-0005-28 10.55><33><Hypersonic><Information><Server is running>
> > <2000-05-28 10.55><35><Hypersonic><Information><Started>
> > <2000-05-28 10.55><34><Hypersonic><Information><Database started>
> > <2000-05-28 10.55><36><Naming><Information><Starting>
> > <2000-05-28 10.55><37><Naming><Information><Naming started on port 1099>
> > <2000-05-28 10.55><38><Naming><Information><Started>
> > <2000-05-28 10.55><39><DataSource><Information><Starting>
> > <2000-05-28 10.55><40><DataSource><Information><Copyright (c) 1997-1999
> > Instant Computer Solutions Ltd.>
> > <2000-05-28 10.55><41><DataSource><Information><Started>
> > <2000-05-28 10.55><42><DataSource><Information><Starting>
> > <2000-05-28 10.55><43><DataSource><Information><Started>
> > <2000-05-28 10.55><44><Auto deploy><Information><Watching
> > C:\jboss_cvs\jboss\dist\deploy>
> > <2000-05-28 10.55><45><Auto deploy><Information><Auto deploy of
> > file:/C:/jboss_cvs/jboss/dist/deploy/classes/>
> > <2000-05-28 10.55><46><Container
> > factory><Information><Deploying:file:/C:/jboss_cvs/jboss/dist/depl
> > oy/classe
> > s/>
> > <2000-05-28 10.55><47><Container factory><Information><Deploying User>
> > <2000-05-28 10.55><48><Container factory><Information><Using default
> > configuration>
> > <2000-05-28 10.55><55><Container
> > factory><Error><java.lang.ClassCastException:
> > org.jnp.interfaces.NamingContext>
> > <2000-05-28 10.55><56><Auto deploy><Error><Deployment
> > failed:file:/C:/jboss_cvs/jboss/dist/deploy/classes/>
> > <2000-05-28 10.55><57><Auto deploy><Error><java.lang.ClassCastException:
> > org.jnp.interfaces.NamingContext>
> > <2000-05-28 10.55><58><Auto deploy><Error>< at
> > org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.start(JAWSPersis
> > tenceMana
> > ger.java:251)>
> > <2000-05-28 10.55><59><Auto deploy><Error>< at
> > org.jboss.ejb.EntityContainer.start(EntityContainer.java:105)>
> > <2000-05-28 10.55><60><Auto deploy><Error>< at
> > org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:254)>
> > <2000-05-28 10.55><61><Auto deploy><Error>< at
> > org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:86)>
> > <2000-05-28 10.55><62><Auto deploy><Error>< at
> > java.lang.reflect.Method.invoke(Native Method)>
> > <2000-05-28 10.55><63><Auto deploy><Error>< at
> > javax.management.MBeanServer.invoke(MBeanServer.java:1635)>
> > <2000-05-28 10.55><64><Auto deploy><Error>< at
> > javax.management.MBeanServer.invoke(MBeanServer.java:1501)>
> > <2000-05-28 10.55><65><Auto deploy><Error>< at
> > org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:143)>
> > <2000-05-28 10.55><67><Auto deploy><Error>< at
> > org.jboss.ejb.AutoDeployer.preRegister(AutoDeployer.java:163)>
> > <2000-05-28 10.55><66><Auto deploy><Error>< at
> > org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:231)>
> > <2000-05-28 10.55><68><Auto deploy><Error>< at
> > java.lang.reflect.Method.invoke(Native Method)>
> > <2000-05-28 10.55><69><Auto deploy><Error>< at
> > javax.management.MBeanServer.preRegisterInvoker(MBeanServer.java:2253)>
> > <2000-05-28 10.55><70><Auto deploy><Error>< at
> > javax.management.MBeanServer.createMBean(MBeanServer.java:721)>
> > <2000-05-28 10.55><71><Auto deploy><Error>< at
> > javax.management.loading.MLet.getMBeansFromURL(MLet.java:385)>
> > <2000-05-28 10.55><72><Auto deploy><Error>< at
> > javax.management.loading.MLet.getMBeansFromURL(MLet.java:208)>
> > <2000-05-28 10.55><73><Auto deploy><Error>< at
> > org.jboss.Main.run(Main.java:109)>
> > <2000-05-28 10.55><74><Auto deploy><Error>< at
> > org.jboss.Main$1.run(Main.java:81)>
> > <2000-05-28 10.55><75><Auto deploy><Error>< at
> > java.security.AccessController.doPrivileged(Native Method)>
> > <2000-05-28 10.55><76><Auto deploy><Error>< at
> > org.jboss.Main.main(Main.java:77)>
> > <2000-05-28 10.55><77><JMX RMI Adaptor><Information><Starting>
> > <2000-05-28 10.55><78><JMX RMI Adaptor><Information><Started>
> > <2000-05-28 10.55><79><Default><Information><jBoss 2.0 Started>
> > <2000-05-28 10.55><80><Default><Information><Shutdown>
> > <2000-05-28 10.55><81><Default><Information><Shutting down 17 MBeans>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > --On Sunday, May 28, 2000 2:37 PM -0700 marc fleury
> > <[EMAIL PROTECTED]> wrote:
> >
> > > well almost,
> > >
> > > at least the jboss.xml and jaws.xml.
> > >
> > > ALl the "null pointer" exception stuff happened because the xml
> > was tough.
> > > In a effort to provide defaults to prevent these null
> pointers, Rickard
> > > provided the jaws.xml and jboss.xml by default in the system
> > classpath. It
> > > is now as well the default for the runtime so that the default data is
> > > loaded in EJX RAM classes.
> > >
> > > No biggy, just a bit of digging-diffing and working with the
> > EJX classes.
> > > I want to reiterate that while climbing the jboss2.0 kernel
> > mountain is a
> > > bit steep, (in terms of air up there, 0 comments... ;-) but
> it is really
> > > worth it....
> > >
> > > Anyway there is still a small configuration thing, that needs
> to be done
> > > (initial pools) but that should be small.
> > >
> > > regards
> > >
> > > marc
> > >
> > >
> > >
> > > --
> > > --------------------------------------------------------------
> > > To subscribe: [EMAIL PROTECTED]
> > > To unsubscribe: [EMAIL PROTECTED]
> > > Problems?: [EMAIL PROTECTED]
> >
> >
> >
> >
> >
> >
> > --
> > --------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Problems?: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]