-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 
Author Message
 Post subject: Hibernate error in jboss: MappingException: No persister
PostPosted: Fri Feb 13, 2004 12:04 am 
Newbie

Joined: Thu Feb 12, 2004 11:59 pm
Posts: 6
Hello all,

I'm having a problem with hibernate when I deploy it as a service in jboss and then try to access that service in another bean in jboss.
The error that I'm getting is

##This is from the jboss console screen when the error shows up

22:37:49,055 INFO [STDOUT] persist: after tran=net.sf.hibernate.transaction.JDBCTransaction@71cb25
22:37:49,056 DEBUG [SessionImpl] closing session
22:37:49,057 DEBUG [SessionImpl] disconnecting session
22:37:49,060 ERROR [LogInterceptor] EJBException, causedBy:
net.sf.hibernate.MappingException: No persister for: com.ejbsol.oboxsample.hibernate.CommLogIn
at net.sf.hibernate.impl.SessionFactoryImpl.getPersister(SessionFactoryImpl.java:420)
at net.sf.hibernate.impl.SessionImpl.getPersister(SessionImpl.java:2302)
at net.sf.hibernate.impl.SessionImpl.getPersister(SessionImpl.java:2309)
at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:599)
at com.crisys.tng.dataAccess.CommLogInPersist.persist(CommLogInPersist.java:80)
at com.crisys.tng.input.E911Strategy.persistInput(E911Strategy.java:169)
at com.crisys.tng.input.E911Strategy.process(E911Strategy.java:119)
at com.crisys.tng.inputDevice.jboss.InputFacadeBean.processInput(InputFacadeBean.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:629)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:144)
at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:322)


##The package in the sar looks like this, I was thinking that the error meant it couldn't find the mapping file,
##so I put the mapping file all over the place.

##jar tf inputFacade.sar

META-INF/
META-INF/MANIFEST.MF
com/
com/ejbsol/
com/ejbsol/oboxsample/
com/ejbsol/oboxsample/hibernate/
com/ejbsol/oboxsample/hibernate/Incident.java
com/ejbsol/oboxsample/hibernate/Incident.class
com/ejbsol/oboxsample/hibernate/CommLogIn.class
com/ejbsol/oboxsample/hibernate/CommLogIn.hbm.xml
com/ejbsol/oboxsample/hibernate/CommLogIn.java
com/ejbsol/oboxsample/hibernate/Incident.hbm.xml
META-INF/jboss-service.xml
META-INF/CommLogIn.hbm.xml
META-INF/Incident.hbm.xml
CommLogIn.hbm.xml
Incident.hbm.xml


###The jboss-service.xml file looks like this,

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server>

<!-- Generated file - Do not edit! -->

<server>
<loader-repository>com.ejbsol.oboxsample.hibernate:loader=inputFace.jar</load
er-repository>
<mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=H
ibernateFactory, name=HibernateFactory">
<depends>jboss.jca:service=RARDeployer</depends>
<depends>jboss.jca:service=LocalTxCM,name=DefaultDS</depends>
<attribute name="MapResources">CommLogIn.hbm.xml,Incident.hbm.xml</attrib
ute>
<attribute name="JndiName">java:/inputFacade/HibernateFactory</attribute>
<attribute name="Datasource">java:/DefaultDS</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.MySQLDialect</attribut
e>
<attribute name="UseOuterJoin">false</attribute>
<attribute name="ShowSql">false</attribute>
</mbean>

</server>


## The package of the bean using this service is

jar tf inputFacade.ear
META-INF/
META-INF/MANIFEST.MF
META-INF/application.xml
META-INF/jboss-app.xml
inputFacade.jar
CommLogIn.hbm.xml
Incident.hbm.xml
hibernate2.jar


##The package of inputFacade.jar is

jar tf inputFacade.jar
META-INF/
META-INF/MANIFEST.MF
com/
com/crisys/
com/crisys/tng/
com/crisys/tng/inputDevice/
com/crisys/tng/inputDevice/jboss/
com/crisys/tng/inputDevice/jboss/InputDTO.java
com/crisys/tng/inputDevice/jboss/InputFacade.java
com/crisys/tng/inputDevice/jboss/InputFacadeBean.java
com/crisys/tng/inputDevice/jboss/InputFacadeHome.class
com/crisys/tng/inputDevice/jboss/InputFacadeBean.class
com/crisys/tng/inputDevice/jboss/InputFacade.class
com/crisys/tng/inputDevice/jboss/InputDTO.class
com/crisys/tng/inputDevice/jboss/InputFacadeHome.java
com/crisys/tng/inputDevice/DeviceDetailsDTO.java
com/crisys/tng/inputDevice/DeviceDetailsDTO.class
com/crisys/tng/input/
com/crisys/tng/input/E911Strategy.java
com/crisys/tng/input/InputStrategy.class
com/crisys/tng/input/InputStrategy.java
com/crisys/tng/input/E911Strategy.class
com/crisys/tng/model/
com/crisys/tng/model/CallPublisher.java
com/crisys/tng/model/CallPublisher.class
com/crisys/tng/dataAccess/
com/crisys/tng/dataAccess/CommLogInPersist.class
com/crisys/tng/dataAccess/CommLogInPersist.java
com/ejbsol/
com/ejbsol/oboxsample/
com/ejbsol/oboxsample/hibernate/
com/ejbsol/oboxsample/hibernate/interfaces/
com/ejbsol/oboxsample/hibernate/CommLogIn.java
com/ejbsol/oboxsample/hibernate/Incident.java
com/ejbsol/oboxsample/hibernate/CommLogIn.hbm.xml
com/ejbsol/oboxsample/hibernate/session/
com/ejbsol/oboxsample/hibernate/Incident.hbm.xml
com/ejbsol/oboxsample/hibernate/CommLogIn.class
com/ejbsol/oboxsample/hibernate/Incident.class
com/ejbsol/oboxsample/hibernate/exceptions/
META-INF/ejb-jar.xml
META-INF/jboss.xml
CommLogIn.hbm.xml
Incident.hbm.xml

## The ejb-jar.xml file looks like this

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.
0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">

<ejb-jar >
<enterprise-beans>
<!-- Session Beans -->
<session >
<ejb-name>ejb/InputFacade</ejb-name>
<home>com.crisys.tng.inputDevice.jboss.InputFacadeHome</home>
<remote>com.crisys.tng.inputDevice.jboss.InputFacade</remote>
<ejb-class>com.crisys.tng.inputDevice.jboss.InputFacadeBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>

</session>
</enterprise-beans>

<!-- Assembly Descriptor -->
<assembly-descriptor >
<!--
To add additional assembly descriptor info here, add a file to your
XDoclet merge directory called assembly-descriptor.xml that contains
the <assembly-descriptor></assembly-descriptor> markup.
-->

</assembly-descriptor>
</ejb-jar>


##The jboss.xml file look like this

<?xml version="1.0" encoding="UTF-8"?>
<jboss>
<enterprise-beans>

<!--
To add beans that you have deployment descriptor info for, add
a file to your XDoclet merge directory called jboss-beans.xml that contai
ns
the <session></session>, <entity></entity> and <message-driven></message-
driven>
markup for those beans.
-->
<session>
<ejb-name>ejb/InputFacade</ejb-name>
<jndi-name>InputFacade</jndi-name>
</session>
</enterprise-beans>
<resource-managers>
</resource-managers>

</jboss>


##The section of my code that is causing this error is

setSession();
session = sessionFactory.openSession();
System.out.println(" persist: after get session=" + session);
tran = session.beginTransaction();
System.out.println(" persist: after tran=" + tran);
if (null == commLogIn.getId()) {
session.save(commLogIn);
ret=new Long((commLogIn.getId()).intValue());
} else {
session.update(commLogIn);
}

###the setSession is just a function to get the SessionFactory

private static final String JNDI_NAME= "java:/inputFacade/HibernateFactory";

public void setSession( )
{
try {
if (null == ctx)
ctx = new InitialContext();
sessionFactory = (SessionFactory) ctx.lookup(JNDI_NAME);
} catch (Exception e) {
e.printStackTrace();
}
}


I've been working on this for a couple of days and I hope someone can help me out with this,

Thanks for looking,
Somsack Tsai


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 13, 2004 1:43 am 
Expert
Expert

Joined: Fri Nov 07, 2003 4:24 am
Posts: 315
Location: Cape Town, South Africa
Hi,

Please post you mapping for CommLogIn

Have you considered using:
Code:
session.saveOrUpdate(Object)
instead of:

Code:
if (null == commLogIn.getId()) {
session.save(commLogIn);
ret=new Long((commLogIn.getId()).intValue());
} else {
session.update(commLogIn);
}


Of course this depends of your identifier - which I cannot see!


Top
 Profile  
 
 Post subject: mapping file
PostPosted: Fri Feb 13, 2004 1:10 pm 
Newbie

Joined: Thu Feb 12, 2004 11:59 pm
Posts: 6
Actually, I must have missed the saveOrUpdate function in the API when I was writing this, thanks for the advice. I'll change the code to use it now. Here's the mapping file for CommLogIn requested

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>

<!--

Created by Middlegen Hibernate plugin

http://boss.bekk.no/boss/middlegen/
http://hibernate.sourceforge.net/

-->

<class
name="com.ejbsol.oboxsample.hibernate.CommLogIn"
table="commLogIn"
proxy="com.ejbsol.oboxsample.hibernate.CommLogIn"
>

<!-- simple properties -->

<id
name="id"
type="int"
column="id"
length="11"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's ID</meta>
<generator class="native">
<param name="sequence">commLogIn_sequence</param>
</generator>
</id>
<property
name="callNumber"
type="java.lang.String"
column="callNumber"
length="16"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's callNumber</meta>
</property>
<property
name="callTime"
type="java.sql.Time"
column="callTime"
length="8"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's callTime</meta>
</property>
<property
name="answeredTime"
type="java.sql.Time"
column="answeredTime"
length="8"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's answeredTime</meta>
</property>
<property
name="onHoldTime"
type="java.sql.Time"
column="onHoldTime"
length="8"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's onHoldTime</meta>
</property>
<property
name="offHoldTime"
type="java.sql.Time"
column="offHoldTime"
length="8"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's offHoldTime</meta>
</property>
<property
name="endCallTime"
type="java.sql.Time"
column="endCallTime"
length="8"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's endCallTime</meta>
</property>
<property
name="transferredTime"
type="java.sql.Time"
column="transferredTime"
length="8"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's transferredTime</meta>
</property>
<property
name="transferredNumber"
type="java.lang.String"
column="transferredNumber"
length="24"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's transferredNumber</meta>
</property>
<property
name="emerCodesClientCallMethodId"
type="int"
column="emerCodesClientCallMethodId"
length="11"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's emerCodesClientCallMethodId</meta>
</property>
<property
name="number"
type="java.lang.String"
column="number"
length="24"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's number</meta>
</property>
<property
name="alarmLogCallSourceId"
type="int"
column="alarmLogCallSourceId"
length="11"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's alarmLogCallSourceId</meta>
</property>
<property
name="callerName"
type="java.lang.String"
column="callerName"
length="32"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's callerName</meta>
</property>
<property
name="personWhoPersonId"
type="int"
column="personWhoPersonId"
length="11"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's personWhoPersonId</meta>
</property>
<property
name="businessWhoBusinessId"
type="int"
column="businessWhoBusinessId"
length="11"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's businessWhoBusinessId</meta>
</property>
<property
name="address"
type="java.lang.String"
column="address"
length="42"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's address</meta>
</property>
<property
name="apartmentDesc"
type="java.lang.String"
column="apartmentDesc"
length="16"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's apartmentDesc</meta>
</property>
<property
name="community"
type="java.lang.String"
column="community"
length="26"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's community</meta>
</property>
<property
name="locationId"
type="int"
column="locationId"
length="11"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's locationId</meta>
</property>
<property
name="intersectionId"
type="int"
column="intersectionId"
length="11"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's intersectionId</meta>
</property>
<property
name="namedAreaDistrictId"
type="int"
column="namedAreaDistrictId"
length="11"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's namedAreaDistrictId</meta>
</property>
<property
name="commentsCommentId"
type="int"
column="commentsCommentId"
length="11"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's commentsCommentId</meta>
</property>
<property
name="commentsComment2id"
type="int"
column="commentsComment2Id"
length="11"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's commentsComment2id</meta>
</property>
<property
name="emerCodesStatusCodeId"
type="int"
column="emerCodesStatusCodeId"
length="11"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's emerCodesStatusCodeId</meta>
</property>
<property
name="emerCodesResolutionId"
type="int"
column="emerCodesResolutionId"
length="11"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's emerCodesResolutionId</meta>
</property>
<property
name="emerCodesSourceCodeId"
type="int"
column="emerCodesSourceCodeId"
length="11"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's emerCodesSourceCodeId</meta>
</property>
<property
name="touched"
type="byte"
column="touched"
length="4"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's touched</meta>
</property>
<property
name="blobE911rawDataId"
type="int"
column="blobE911RawDataId"
length="11"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The CommLogIn's blobE911rawDataId</meta>
</property>

<!-- associations -->

<!-- bi-directional one-to-many association to CommLogIn -->
<set
name="commLogIns2"
lazy="true"
inverse="true">
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The associated collection of CommLogIns</meta>
<key
column="commLogInAssociatedCallId"
/>
<one-to-many
class="com.ejbsol.oboxsample.hibernate.CommLogIn"
/>
</set>

<!-- bi-directional many-to-one association to CommLogIn -->
<many-to-one
name="commLogIn1"
column="commLogInAssociatedCallId"
class="com.ejbsol.oboxsample.hibernate.CommLogIn"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The associated CommLogIn</meta>
</many-to-one>

<!-- bi-directional many-to-one association to Incident -->
<many-to-one
name="incident"
column="incidentAssociatedIncidentId"
class="com.ejbsol.oboxsample.hibernate.Incident"
>
<meta attribute="scope-get">public</meta>
<meta attribute="scope-set">public</meta>
<meta attribute="description">The associated Incident</meta>
</many-to-one>

</class>
</hibernate-mapping>


Top
 Profile  
 
 Post subject: same problem
PostPosted: Fri Feb 20, 2004 11:08 pm 
Newbie

Joined: Fri Feb 20, 2004 10:45 pm
Posts: 5
Location: Atlanta, GA USA
Just wanted to add that I am having the same problem. All I'm trying to do is a load. Can I tag on this one, or should I start a new thread?

I'm using hibernate2.1, jboss-3.2.3, and xdoclet-1.2

I can see where jboss/hibernate finds my mapping file on deploy and it looks O.K. to me, but I still get the MappingException.

Here is info from jboss logs when I deploy the hibernate sar, it looks like it is deploying Orginization correctly
2004-02-20 21:23:56,883 INFO [org.jboss.ejb.EjbModule] Deploying HibernateService
2004-02-20 21:23:56,957 INFO [net.sf.hibernate.jmx.HibernateServiceMBean] starting service at JNDI name: java:/repository/hibernate
2004-02-20 21:23:56,958 INFO [net.sf.hibernate.jmx.HibernateServiceMBean] service properties: {hibernate.session_factory_name=java:/repository/hibernate, hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect, hibernate.show_sql=true, hibernate.use_outer_join=false, hibernate.connection.datasource=java:/MVDS-hotel}
2004-02-20 21:23:57,038 INFO [net.sf.hibernate.cfg.Environment] Hibernate 2.1.2
2004-02-20 21:23:57,043 INFO [net.sf.hibernate.cfg.Environment] hibernate.properties not found
2004-02-20 21:23:57,053 INFO [net.sf.hibernate.cfg.Environment] using CGLIB reflection optimizer
2004-02-20 21:23:57,083 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: com/rubicon/mv/Orginization.hbm.xml
2004-02-20 21:23:57,349 DEBUG [net.sf.hibernate.util.DTDEntityResolver] trying to locate http://hibernate.sourceforge.net/hibern ... ng-2.0.dtd in classpath under net/sf/hibernate/
2004-02-20 21:23:57,352 DEBUG [net.sf.hibernate.util.DTDEntityResolver] found http://hibernate.sourceforge.net/hibern ... ng-2.0.dtd in classpath
2004-02-20 21:23:57,968 INFO [net.sf.hibernate.cfg.Binder] Mapping class: com.rubicon.mv.Orginization -> org
2004-02-20 21:23:58,275 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: orginizationId -> org_id, type: long
2004-02-20 21:23:58,332 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: features -> features, type: string
2004-02-20 21:23:58,333 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: monthlyShops -> monthly_shops, type: integer
2004-02-20 21:23:58,333 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: remainingShops -> remain_shops, type: integer
2004-02-20 21:23:58,334 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: brandedWebSitesCar -> bws_data_sources, type: string
2004-02-20 21:23:58,334 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: authorizedDataSourcesCar -> auth_data_sources, type: string
2004-02-20 21:23:58,335 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: authorizedDataSourcesHotel -> hotel_auth_data_sources, type: string
2004-02-20 21:23:58,335 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: brandedWebSitesHotel -> hotel_web_data_sources, type: string
2004-02-20 21:23:58,336 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: dataSourceCosts -> data_source_costs, type: string
2004-02-20 21:23:58,336 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: subscribeType -> subscribe_type, type: string
2004-02-20 21:23:58,379 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: subscribeGDS -> subscribe_gds, type: string
2004-02-20 21:23:58,379 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: subscribeWEB -> subscribe_web, type: string
2004-02-20 21:23:58,380 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: subscribeFV -> subscribe_fv, type: string
2004-02-20 21:23:58,381 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: subscribeQ -> subscribe_q, type: string
2004-02-20 21:23:58,381 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: orgAuthCode -> org_auth_cd, type: string
2004-02-20 21:23:58,382 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: ownerUserId -> owner_usr_id, type: long
2004-02-20 21:23:58,382 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: orgName -> org_name, type: string
2004-02-20 21:23:58,383 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: orgLongName -> org_long_name, type: string
2004-02-20 21:23:58,383 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: authOrgEmail -> auth_org_email, type: string
2004-02-20 21:23:58,384 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: primaryOrgEmail -> pri_org_email, type: string
2004-02-20 21:23:58,384 DEBUG [net.sf.hibernate.cfg.Binder] Mapped property: createDate -> create_dttm, type: timestamp
2004-02-20 21:23:58,385 INFO [net.sf.hibernate.cfg.Configuration] processing one-to-many association mappings
2004-02-20 21:23:58,385 INFO [net.sf.hibernate.cfg.Configuration] processing one-to-one association property references
2004-02-20 21:23:58,386 INFO [net.sf.hibernate.cfg.Configuration] processing foreign key constraints
2004-02-20 21:23:58,474 INFO [net.sf.hibernate.dialect.Dialect] Using dialect: net.sf.hibernate.dialect.MySQLDialect
2004-02-20 21:23:58,478 INFO [net.sf.hibernate.cfg.SettingsFactory] Use outer join fetching: false
2004-02-20 21:23:58,507 INFO [net.sf.hibernate.util.NamingHelper] JNDI InitialContext properties:{}
2004-02-20 21:23:58,524 INFO [net.sf.hibernate.connection.DatasourceConnectionProvider] Using datasource: java:/MVDS-hotel
2004-02-20 21:23:58,547 INFO [net.sf.hibernate.transaction.TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended)
2004-02-20 21:23:58,558 INFO [net.sf.hibernate.cfg.SettingsFactory] Use scrollable result sets: true
2004-02-20 21:23:58,558 INFO [net.sf.hibernate.cfg.SettingsFactory] Use JDBC3 getGeneratedKeys(): true
2004-02-20 21:23:58,559 INFO [net.sf.hibernate.cfg.SettingsFactory] Optimize cache for minimal puts: false
2004-02-20 21:23:58,559 INFO [net.sf.hibernate.cfg.SettingsFactory] echoing all SQL to stdout
2004-02-20 21:23:58,560 INFO [net.sf.hibernate.cfg.SettingsFactory] Query language substitutions: {}
2004-02-20 21:23:58,560 INFO [net.sf.hibernate.cfg.SettingsFactory] cache provider: net.sf.ehcache.hibernate.Provider
2004-02-20 21:23:58,572 INFO [net.sf.hibernate.cfg.Configuration] instantiating and configuring caches
2004-02-20 21:23:59,018 INFO [net.sf.hibernate.impl.SessionFactoryImpl] building session fac
.
.
.

Hereis the exception:
2004-02-20 21:25:25,767 DEBUG [com.rubicon.mvh.TestAction] EXECUTING TestAction
2004-02-20 21:25:25,767 DEBUG [com.rubicon.mvh.TestAction] Inside retreieveOrg
2004-02-20 21:25:25,786 DEBUG [com.rubicon.repository.hibernate.HibernateServiceEJB] loading object by identity
2004-02-20 21:25:25,788 DEBUG [net.sf.hibernate.impl.SessionFactoryObjectFactory] JNDI lookup: repository/hibernate
2004-02-20 21:25:25,788 DEBUG [net.sf.hibernate.impl.SessionFactoryObjectFactory] lookup: uid=2c918384fad5e2dc00fad5e2e2360000
2004-02-20 21:25:25,978 DEBUG [net.sf.hibernate.impl.SessionImpl] opened session
2004-02-20 21:25:25,984 DEBUG [net.sf.hibernate.impl.SessionImpl] loading [com.rubicon.mv.Orginization#1]
2004-02-20 21:25:25,999 ERROR [com.rubicon.repository.hibernate.HibernateServiceEJB] load failed net.sf.hibernate.MappingException: No persister for: com.rubicon.mv.Orginization
2004-02-20 21:25:26,246 DEBUG [com.opensymphony.webwork.dispatcher.ServletDispatcherResult] Forwarding to location /form.jsp
2004-02-20 21:25:26,772 DEBUG [net.sf.hibernate.impl.SessionImpl] running Session.finalize()
2004-02-20 21:25:33,718 DEBUG [com.opensymphony.webwork.lifecycle.RequestLifecycleFilter] Request DefaultComponentManager : dispose

Here is the code it is trying to run (shamelessly stolen from the example)
TestAction.java
private void retrieveOrg() throws Exception{

_log.debug( "Inside retreieveOrg");
try {
// obtain sesison bean
IHibernateService hs = HibernateServiceUtil.getHome().create();

org = ( Orginization ) hs.load( Orginization.class, new Long(1) );
}
catch( Exception ex )
{
_log.error( "exception: ", ex );
}
}

HibernateRepsoitoryEJB.java
public Object load( Class c, Serializable id )
{
Object ret = null;

_log.debug( "loading object by identity" );

try
{
Session sess = getSession();

ret = sess.load( c, id, LockMode.NONE );
sess.close();
}
catch( Exception ex )
{
_log.error( "load failed " + ex );
_ctx.setRollbackOnly();
}

return ret;
}

Hmmm..... everything else is create by xdcolet
jboss-service.xml
<server>
<mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=HibernateRepository">
<depends>jboss.jca:service=RARDeployer</depends>
<attribute name="MapResources">com/rubicon/mv/Orginization.hbm.xml</attribute>
<attribute name="JndiName">java:/repository/hibernate</attribute>
<attribute name="Datasource">java:/MVDS-hotel</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.MySQLDialect</attribute>
<attribute name="UseOuterJoin">false</attribute>
<attribute name="ShowSql">true</attribute>
</mbean>

</server>


<hibernate-mapping>
<class
name="com.rubicon.mv.Orginization"
table="org"
dynamic-update="false"
dynamic-insert="false"
>

<id
name="orginizationId"
column="org_id"
type="java.lang.Long"
unsaved-value="null"
>
<generator class="native">
</generator>
</id>

<property
name="features"
type="java.lang.String"
update="true"
insert="true"
column="features"
/>
<property
name="monthlyShops"
type="java.lang.Integer"
update="true"
insert="true"
column="monthly_shops"
/>

<property
name="remainingShops"
type="java.lang.Integer"
update="true"
insert="true"
column="remain_shops"
/>

<property
name="brandedWebSitesCar"
type="java.lang.String"
update="true"
insert="true"
column="bws_data_sources"
/>

<property
name="authorizedDataSourcesCar"
type="java.lang.String"
update="true"
insert="true"
column="auth_data_sources"
/>

<property
name="authorizedDataSourcesHotel"
type="java.lang.String"
update="true"
insert="true"
column="hotel_auth_data_sources"
/>

<property
name="brandedWebSitesHotel"
type="java.lang.String"
update="true"
insert="true"
column="hotel_web_data_sources"
/>

<property
name="dataSourceCosts"
type="java.lang.String"
update="true"
insert="true"
column="data_source_costs"
/>

<property
name="subscribeType"
type="java.lang.String"
update="true"
insert="true"
column="subscribe_type"
/>
<property
name="subscribeGDS"
type="java.lang.String"
update="true"
insert="true"
column="subscribe_gds"
/>

<property
name="subscribeWEB"
type="java.lang.String"
update="true"
insert="true"
column="subscribe_web"
/>

<property
name="subscribeFV"
type="java.lang.String"
update="true"
insert="true"
column="subscribe_fv"
/>

<property
name="subscribeQ"
type="java.lang.String"
update="true"
insert="true"
column="subscribe_q"
/>
<property
name="orgAuthCode"
type="java.lang.String"
update="true"
insert="true"
column="org_auth_cd"
/>

<property
name="ownerUserId"
type="java.lang.Long"
update="true"
insert="true"
column="owner_usr_id"
/>

<property
name="orgName"
type="java.lang.String"
update="true"
insert="true"
column="org_name"
/>

<property
name="orgLongName"
type="java.lang.String"
update="true"
insert="true"
column="org_long_name"
/>
<property
name="authOrgEmail"
type="java.lang.String"
update="true"
insert="true"
column="auth_org_email"
/>

<property
name="primaryOrgEmail"
type="java.lang.String"
update="true"
insert="true"
column="pri_org_email"
/>

<property
name="createDate"
type="java.util.Date"
update="true"
insert="true"
column="create_dttm"
/>

<!--
To add non XDoclet property mappings, create a file named
hibernate-properties-Orginization.xml
containing the additional properties and place it in your merge dir.
-->

</class>

Thanks,
Alex


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 21, 2004 2:22 am 
Newbie

Joined: Fri Feb 20, 2004 10:45 pm
Posts: 5
Location: Atlanta, GA USA
OK, I found the offending code, with some extra debug thrown in for good measure

public ClassPersister getPersister(Class theClass) throws MappingException {
if ( log.isDebugEnabled() ) {
Iterator iter = classPersisters.keySet().iterator();
while ( iter.hasNext() ) {
log.debug( (Class)iter.next() );
}
}
ClassPersister result = (ClassPersister) classPersisters.get(theClass);
if (result==null){
throw new MappingException( "No persister for: " + theClass );
}
return result;
}

Here's the output
DEBUG [net.sf.hibernate.impl.SessionImpl] opened session
2004-02-21 01:02:06,040 DEBUG [net.sf.hibernate.impl.SessionImpl] loading [com.rubicon.mv.Orginization#1]
2004-02-21 01:02:06,040 DEBUG [net.sf.hibernate.impl.SessionFactoryImpl] class com.rubicon.mv.Orginization
2004-02-21 01:02:06,055 ERROR [com.rubicon.repository.hibernate.HibernateServiceEJB] load failed net.sf.hibernate.MappingException: No persister for: class com.rubicon.mv.Orginization

You can see that, at least from the String representation, my class exists in classPersisters. My best guess is that java doesn't think that the actual class is the same, and is therefore not finding it in the hashmap.

Here's a question to some java guru's -
I'm, pretty sure the only other instance of my class is in the ear that has my client. I'm pretty sure that I built the ears from the same class, they are loaded by Jboss into different classload heirarchies. Does it make sense that the jvm wouldn't see them as equal?

If, so what are some strategies for deploying the POJOS in the hibernate sar and also the client ear, so that hash lookups still work? I tried putting the POJO's in a separate jar and letting everyone share them through JBoss' UCL, ala session interfaces, but hibernate complained that it couldn't find them.

Here's a question for some Hibernate guru's
What is the implication of using getPersister(String className) (which uses classPersistersByName) which I believe will work

Thanks in advance,
Alex


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 21, 2004 6:34 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
What does your deployment structure look like? Where are your sar, your mapped classes, your client classes?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 21, 2004 10:13 am 
Newbie

Joined: Fri Feb 20, 2004 10:45 pm
Posts: 5
Location: Atlanta, GA USA
Here it is...
The POJOS are in mv.jar. I've put the jar in the ear, sar, and unpacked in sar. All with the same result. I need to try just deploying them seperately in JBOSS again, and not including in either ear, again. I swear it didn't work last night but it was late.

Since I am sending the class through a session bean when I ask for the load, do I have a pass by value problem?

Thanks for looking at this,
Alex

jar -tf hibernate-repository.ear
META-INF/
META-INF/MANIFEST.MF
jar -tf hibernate-repository.ear
hibernate-repository.sar <---hibernate mapping file
hibernate-service.jar <---Session bean
mv.jar <---POJOS
hibernate2.jar
cglib-2.0-rc2.jar
commons-collections-2.1.jar
commons-logging-1.0.3.jar
dom4j-1.4.jar
odmg-3.0.jar
ehcache-0.6.jar
META-INF/jboss-app.xml
META-INF/application.xml

jar -tf hibernate-repository.sar
META-INF/
META-INF/MANIFEST.MF
com/
com/rubicon/
com/rubicon/mv/
com/rubicon/mv/Orginization.hbm.xml
META-INF/jboss-service.xml

jar -tf mv.jar
META-INF/
META-INF/MANIFEST.MF
com/
com/rubicon/
com/rubicon/mv/
com/rubicon/mv/Orginization.class

jar -tf hibernate-service.jar
META-INF/
META-INF/MANIFEST.MF
META-INF/ejb-jar.xml
META-INF/jboss.xml
com/
com/rubicon/
com/rubicon/repository/
com/rubicon/repository/hibernate/
com/rubicon/repository/hibernate/HibernateServiceEJB.class
com/rubicon/repository/hibernate/HibernateServiceSession.class

jar -tf hibernate-interface.jar <-- deployed directly in JBOSS deploy dir
META-INF/
META-INF/MANIFEST.MF
com/
com/rubicon/
com/rubicon/repository/
com/rubicon/repository/hibernate/
com/rubicon/repository/hibernate/IHibernateService.class
com/rubicon/repository/hibernate/IHibernateServiceHome.class
com/rubicon/repository/hibernate/HibernateServiceUtil.class

Client
jar -tf mv-test.ear
META-INF/
META-INF/MANIFEST.MF
mv.jar
mv-test.war
META-INF/application.xml
META-INF/jboss-app.xml

jar -tf mv-test.war
META-INF/
META-INF/MANIFEST.MF
images/
rubicon/
index.html
images/mvlogo_small.gif
images/trg_small.gif
images/dot_lblue.gif
rubicon/select.vm
rubicon/text.vm
mvh.css
form.jsp
WEB-INF/
WEB-INF/lib/
WEB-INF/lib/bsh-1.2b6.jar
WEB-INF/lib/commons-beanutils-1.5.jar
WEB-INF/lib/commons-beanutils-1.6.jar
WEB-INF/lib/commons-collections-2.1.jar
WEB-INF/lib/commons-digester-1.3.jar


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 21, 2004 10:33 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Do you have CLASSPATH entries in the manifest files of the sar to the jar containing the pojos? Generally speaking, avoid including the classes twice in different jars if somehow possible, this will drive you to classloader hell for sure.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 21, 2004 11:25 am 
Newbie

Joined: Fri Feb 20, 2004 10:45 pm
Posts: 5
Location: Atlanta, GA USA
Well, I do believe it is a classloader problem. I changed my load method to do some classloader magic
public Object load( Class c, Serializable id )
{
Object ret = null;
Class newclass;
try {
newclass = this.getClass().getClassLoader().loadClass(c.getName());
}
catch( Exception ex )
{
_log.error( "class not found" + ex );
newclass=c;
}

_log.debug( "loading object by identity" );

try
{
Session sess = getSession();

ret = sess.load( newclass, id, LockMode.NONE );
sess.close();
}
catch( Exception ex )
{
_log.error( "load failed " + ex );
ex.printStackTrace();
_ctx.setRollbackOnly();
}

return ret;
}

Now, I see hibernate getting the info, but of course I get a classCastException back in my client! Classloaders are not my friend. So change of cource... I'd like to figure out how to get hibernate to deploy when the POJO jar is deployed seperately in JBOSS. Right now without changing anything, besides moving mv.jar out of the ear and deploying seperately, I get this exception on deploy

net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:206)
at net.sf.cglib.reflect.FastClass$Generator.create(FastClass.java:92)
at net.sf.cglib.reflect.FastClass.create(FastClass.java:74)
at net.sf.hibernate.persister.AbstractEntityPersister.<init>(AbstractEntityPersister.java:757)
at net.sf.hibernate.persister.EntityPersister.<init>(EntityPersister.java:715)
at net.sf.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:41)
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:137)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:750)
at net.sf.hibernate.jmx.HibernateService.buildSessionFactory(HibernateService.java:176)
at net.sf.hibernate.jmx.HibernateService.start(HibernateService.java:145)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
at $Proxy14.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:394)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy6.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:373)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:193)
... 42 more
Caused by: java.lang.NoClassDefFoundError: net/sf/cglib/reflect/FastClass
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at java.lang.ClassLoader.defineClass(ClassLoader.java:379)

I'll play with manifest file in the sar to see if I can get hibernate to see mv.jar.

Alex


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 21, 2004 12:48 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
J2EE Classloader Architecture is really a nasty beast - I guess you will just have to experiment. Often things can be solved using CLASSPATH entries in the manifest files, have you tried working with those?

I will try to write something more detailed on how I organized my deployment in JBoss in the next days.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 21, 2004 9:51 pm 
Newbie

Joined: Fri Feb 20, 2004 10:45 pm
Posts: 5
Location: Atlanta, GA USA
Finally got it working, I had to move all the hibernate jars to server/default/lib and restart jboss but everything works. Not sure why that affected anything, but whatever....

So, here's the final config for my (small) app that has a hibernate service deployed as a sar, a session bean wrapping the service, and an external (as in not in the same ear) webwork web client. My mapping files, jboss-service.xml, and session bean interface files were created with XDoclet.

copy to server/default/lib
hibernate2.jar
cglib-2.0-rc2.jar
commons-collections-2.1.jar
commons-logging-1.0.3.jar
dom4j-1.4.jar
odmg-3.0.jar
ehcache-0.6.jar

POJO hibernate classes, this is put directly into deploy as the client and hibernate service both need them.
mv.jar
META-INF/
META-INF/MANIFEST.MF
com/
com/rubicon/
com/rubicon/mv/
com/rubicon/mv/Orginization.class

Session bean interface files - also put directly into deploy as the client and hibernate service both need them.
hibernate-interface.jar
META-INF/
META-INF/MANIFEST.MF
com/
com/rubicon/
com/rubicon/repository/
com/rubicon/repository/hibernate/
com/rubicon/repository/hibernate/IHibernateService.class
com/rubicon/repository/hibernate/IHibernateServiceHome.class
com/rubicon/repository/hibernate/HibernateServiceUtil.class

Here's the ear with hibernate and the session bean implementation classes
hibernate-repository.sar
META-INF/
META-INF/MANIFEST.MF
hibernate-repository.sar
hibernate-service.jar
META-INF/jboss-app.xml
META-INF/application.xml

hibernate-repository.sar
META-INF/
META-INF/MANIFEST.MF
com/
com/rubicon/
com/rubicon/mv/
com/rubicon/mv/Orginization.hbm.xml
META-INF/jboss-service.xml

hibernate-service.jar
META-INF/
META-INF/MANIFEST.MF
META-INF/ejb-jar.xml
META-INF/jboss.xml
com/
com/rubicon/
com/rubicon/repository/
com/rubicon/repository/hibernate/
com/rubicon/repository/hibernate/HibernateServiceEJB.class
com/rubicon/repository/hibernate/HibernateServiceSession.class

Here is the webwork client - I don't think the war needs to be in an ear, but i'm not sure if you can put jboss-app.xml in a war. I also had other jars in here originally, that got taken out. I never/haven't tested if I can just deploy the war
mv-test.ear
META-INF/
META-INF/MANIFEST.MF
mv-test.war
META-INF/application.xml
META-INF/jboss-app.xml

The war has a bujnch of jars needed for webwork. Some of then overlap with the hibernate jars I put in the server/default/lib directory. I can probably take them out of here.
mv-test.war
META-INF/
META-INF/MANIFEST.MF
images/
rubicon/
index.html
images/mvlogo_small.gif
images/trg_small.gif
images/dot_lblue.gif
rubicon/select.vm
rubicon/text.vm
mvh.css
form.jsp
WEB-INF/
WEB-INF/lib/
WEB-INF/lib/bsh-1.2b6.jar
WEB-INF/lib/commons-beanutils-1.5.jar
WEB-INF/lib/commons-beanutils-1.6.jar
WEB-INF/lib/commons-collections-2.1.jar
WEB-INF/lib/commons-digester-1.3.jar
WEB-INF/lib/commons-lang-2.0.jar
WEB-INF/lib/commons-logging.jar
WEB-INF/lib/cos-multipart.jar
WEB-INF/lib/displaytag-1.0-b1.jar
WEB-INF/lib/freemarker-2.3pre13.jar
WEB-INF/lib/itext-0.96.jar
WEB-INF/lib/jakarta-poi-1.5.1-final-20020615.jar
WEB-INF/lib/jasperreports-0.5.0.jar
WEB-INF/lib/jcommon-0.8.8.jar
WEB-INF/lib/jfreechart-0.9.13.jar
WEB-INF/lib/jstl.jar
WEB-INF/lib/mail.jar
WEB-INF/lib/ognl-2.6.3-modified.jar
WEB-INF/lib/oscore-2.2.1.jar
WEB-INF/lib/pell-multipart.jar
WEB-INF/lib/standard.jar
WEB-INF/lib/taglibs-benchmark.jar
WEB-INF/lib/velocity-dep-1.3.1.jar
WEB-INF/lib/webwork-2.0.jar
WEB-INF/lib/webwork-config-browser.jar
WEB-INF/lib/xwork-1.0.jar
WEB-INF/classes/
WEB-INF/classes/com/
WEB-INF/classes/com/rubicon/
WEB-INF/classes/com/rubicon/mvh/
WEB-INF/classes/com/rubicon/views/
WEB-INF/classes/com/rubicon/views/jsp/
WEB-INF/classes/com/rubicon/views/jsp/ui/
WEB-INF/classes/com/rubicon/mvh/TestAction.class
WEB-INF/classes/com/rubicon/views/jsp/ui/RubiconSelectTag.class
WEB-INF/classes/components.xml
WEB-INF/classes/webwork.properties
WEB-INF/classes/xwork.xml
WEB-INF/webwork.tld
WEB-INF/web.xml

This is a bit buried under a somthing that started as a mapping exception (I think mapping is a bit misleading, the map was fine, it was having problems working out the same class from different classloaders). If someone does happen upon this, I hope it helps.

Alex


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.