-----Original Message-----
From: Mariano Kamp [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 4:38 PM
To: Dmitri Colebatch
Subject: RE: [Xdoclet-user] How to run samples with JBOSS?


Hi Dim,

  thanks for taking the time.

> >   When trying to run the samples (ant clean deploy) against
>>jboss-3.0.0alpha
>> I get an JBoss errormessage saying that it cannot find
>> "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd";.

>Seems that either you've found an out of date DTD reference, or JBoss have
>moved their dtds.   I couldn't find them anywhere from a quick look on the
>JBoss site.  I know there are clever ways to do this by pointing the file
at
>the local DTD, but I think the simplest way is to just remove the DTD line
>after XDoclet has done its stuff.

I tried that (removing the references to the dtds in jboss.xml and jaws.xml
and built all the stuff by hand). The result is:

[14:30:28,296,ContainerFactory] Could not deploy
file:/C:/jboss-3.0.0alpha/deplo
y/Default/samples.ear/
org.jboss.ejb.DeploymentException: No abstract accessors for field named
'balanc
e' found in entity class.
        at
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCCMPFieldMetaData.loadFiel
dType(JDBCCMPFieldMetaData.java:477)
        at
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCCMPFieldMetaData.<init>(J
DBCCMPFieldMetaData.java:103)
        at
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityMetaData.<init>(JDB
CEntityMetaData.java:259)
        at
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.<init
>(JDBCApplicationMetaData.java:122)
        at
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXm
lFileLoader.java:52)
        at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaDat
a(JDBCStoreManager.java:349)
        at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.init(JDBCStoreManager
.java:104)
        at
org.jboss.ejb.plugins.CMPPersistenceManager.init(CMPPersistenceManage
r.java:141)
        at org.jboss.ejb.EntityContainer.init(EntityContainer.java:313)
        at org.jboss.ejb.Application.start(Application.java:201)
        at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:382)
        at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:308)
        at java.lang.reflect.Method.invoke(Native Method)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
28)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
        at
org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:467)

        at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:
444)
        at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:215)
        at java.lang.reflect.Method.invoke(Native Method)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
28)
        at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
        at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:654)
        at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:327)
        at java.lang.Thread.run(Unknown Source)


By looking at the generated code it is true, there are no abstract
accessors, but code like that:

   public void setId( java.lang.Integer id )
   {
      this.id = id;

      makeDirty();
      dataHolder = null;
   }

Shouldn't there just be abstract accessors for CMP 2.0? I specified 2.0 in
the build.xml.


>I'll try and look into this further for you.
Thanks very much ;-))))
I currently have the problem that I cannot go online regularly, so as many
of the dtds refer to the web I am a bit out of luck here. You were
mentioning some smart thing to do about the dtds... could you give me a
reference here?



>   When trying to run the samples against jboss-2.4.4 with catalina I get
an
> JBoss errormessage saying that there is a parser error in line 9
column -1.
> EMPTY content model cannot ... I guess it is about application.xml, but it
> doesn't say which file it cannot parse.

>Try opening all the xml files in IE.  IE seems to have some inbuild DTD
>parsing - although I'm not 100% of the extent of it.  I often use it for
>these sort of situations to determine where the problem is.  Alternatively,
>if you think its the application.xml, which is often small - then you could
>post it for others to see if they can spot something.

Next time I will try all the stuff with 2.4 again. One thing I can tell you
right away, I didn't modify application.xml. It was coming right from the
samples.


>>   For the first case I used 2.4 as version number of JBoss and 1.1 for
the
>> EJB version. For the latter case I used 3.0 as version number an 2.0 for
>the
>> EJB version.
>>
>>   In both cases I excluded the cmr files as they produced errors.
>>
>>   It's just the samples, hence I guess I am just using it the wrong way.
>Any
>>> idea?

>I haven't tried to run the samples recently, although will make a point to
>get back into them this week.
great.

Cheers,
Mariano


_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to