Never got a response on the first part of this. I think Rickard is
looking at the second part. Unless I hear otherwise, I guess I plan to
open a bug on it.
Jeffrey Bonevich wrote:
>
> Marc, Rickard, et al.
>
> I am not totally sure if this is a bug, or just bad config on my part,
> but here goes. A number of entity beans I have been trying to develop
> fail to deploy under jboss. The commonality is that they have a
> persistent field this is primitive type char. So I did a
> quick-and-dirty, butt-simple entity bean that is nothing but a single
> field of type char, and sure enough I get the stack trace listed below
> (I stuck in some logging in org.jboss.ejb.ContainerFactory.deploy() to
> capture the original exception). Note the NoClassDefFoundError:
> java/lang/Char - something dynamically trying to turn primitives into
> the Object equivalent is not being smart?
>
> On an (un)related note, as I would try to deploy this app after making
> changes, I would cp the new jar into $JBOSS_HOME/deploy over-writing the
> old one, the auto-deployer would fire up, and then it would either try
> to deploy the original jar, or it would try to deploy other jars that I
> could not sucessfully deploy (not as sure about the second pattern). I
> have consistently seen this happen every time after the first deploy
> fails. I would only be able to get the new version to attempt to be
> deployed by restarting the server. Another bug? I know I haven't given
> you too much detail on this one, so feel free to ask for more info if
> necessary.
>
> For your enjoyment, I have stuck the jar up on my server at:
> http://www.bonevich.com/ejb/chartest.jar
>
> jeff
>
> ===========================================================
> [Auto deploy] Auto deploy of file:/usr/local/jboss2/deploy/chartest.jar
> [Container factory] Deploying:file:/usr/local/jboss2/deploy/chartest.jar
> [Container factory] Loading ejb-jar.xml :
> jar:file:/tmp/tmpejbjar20438.jar!/META-INF/ejb-jar.xml
> [Container factory] Loading standardjboss.xml :
> jar:file:/usr/local/jboss2/lib/ext/jboss.jar!/org/jboss/metadata/standardjboss.xml
> [Container factory] Deploying CharTest
> [Container factory] Using default DataSource:InstantDB
> [JAWS] Initializing JAWS plugin for CharTest
> [JAWS] Init SQL: CREATE TABLE CharTest (chr CHAR)
> [JAWS] Destroy SQL: DROP TABLE CharTest
> [JAWS] Exists SQL: SELECT COUNT(*) AS Total FROM CharTest WHERE chr=?
> [JAWS] Create SQL: INSERT INTO CharTest (chr) VALUES (?)
> [JAWS] Remove SQL: DELETE FROM CharTest WHERE chr=?
> [JAWS] Load SQL: SELECT chr FROM CharTest WHERE chr=?
> [JAWS] Init command executing: CREATE TABLE CharTest (chr CHAR)
> [JAWS] Table CharTest exists
> [Container factory] java.lang.NoClassDefFoundError: java/lang/Char
> [Container factory] at $Proxy11.<clinit>(Unknown Source)
> [Container factory] at
> java.lang.reflect.Constructor.newInstance(Native Method)
> [Container factory] at
> java.lang.reflect.Proxy.newProxyInstance(Proxy.java:562)
> [Container factory] at
>
>org.jboss.ejb.plugins.jrmp13.server.JRMPContainerInvoker.getEJBHome(JRMPContainerInvoker.java:48)
> [Container factory] at
>
>org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.start(JRMPContainerInvoker.java:317)
> [Container factory] at
> org.jboss.ejb.EntityContainer.start(EntityContainer.java:217)
> [Container factory] at
> org.jboss.ejb.Application.start(Application.java:174)
> [Container factory] at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:547)
> [Container factory] at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:193)
> [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:285)
> [Container factory] at
> org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
> [Container factory] at
> org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:264)
> [Container factory] at
> org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:89)
> [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.Main.<init>(Main.java:155)
> [Container factory] at org.jboss.Main.<init>(Main.java:86)
> [Container factory] at org.jboss.Main$1.run(Main.java:76)
> [Container factory] at
> java.security.AccessController.doPrivileged(Native Method)
> [Container factory] at org.jboss.Main.main(Main.java:67)
> [Auto deploy] Deployment
> failed:file:/usr/local/jboss2/deploy/chartest.jar
> [Auto deploy] org.jboss.ejb.DeploymentException: Could not deploy
> file:/tmp/tmpejbjar20438.jar
> [Auto deploy] at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:566)
> [Auto deploy] at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:193)
> [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:285)
> [Auto deploy] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
> [Auto deploy] at
> org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:264)
> [Auto deploy] at
> org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:89)
> [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.Main.<init>(Main.java:155)
> [Auto deploy] at org.jboss.Main.<init>(Main.java:86)
> [Auto deploy] at org.jboss.Main$1.run(Main.java:76)
> [Auto deploy] at java.security.AccessController.doPrivileged(Native
> Method)
> [Auto deploy] at org.jboss.Main.main(Main.java:67)
>
> --
> Jeffrey Bonevich
> Ann Arbor, Michigan
> [EMAIL PROTECTED]
> http://www.bonevich.com
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
--
Jeffrey Bonevich
Ann Arbor, Michigan
[EMAIL PROTECTED]
http://www.bonevich.com
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]