Can you explode the war during deployment? It looks like Stripersist is
unable to handle the resource URLs that point to entries within the war
file.
On Mon, Jun 4, 2012 at 11:50 AM, Geert Van Muylem <
geert.vanmuy...@be.zetes.com> wrote:
> I have a webapplication based on Stripes and stripersist
> having the following deployment errors on JBOSS6
>
>
> 17:05:44,617 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] schema
> update complete
> 17:05:44,617 INFO [org.hibernate.util.NamingHelper] JNDI
> InitialContext properties:{}
> 17:05:44,619 INFO [org.stripesstuff.stripersist.Stripersist]
> checking jar file from url:
>
> vfs:/home/geert/Temp/eid-dss-mysql-distribution/jboss/server/default/deploy/
> MarketPlace-1.0-SNAPSHOT.war/WEB-INF/classes/META-INF/persistence.xml
> 17:05:44,619 INFO [org.stripesstuff.stripersist.Stripersist] urlPath =
> /home/geert/Temp/eid-dss-mysql-distribution/jboss/server/default/deploy
> /MarketPlace-1.0-SNAPSHOT.war/WEB-INF/classes/META-INF/persistence.xml
> 17:05:44,619 ERROR [org.stripesstuff.stripersist.Stripersist] Could not
> search
> jar file
> '/home/geert/Temp/eid-dss-mysql-distribution/jboss/server/default/deploy/
> MarketPlace-1.0-SNAPSHOT.war/WEB-INF/classes/META-INF/persistence.xml'
> for entities due to an IOException:
> /home/geert/Temp/eid-dss-mysql-distribution/jboss/server/default/deploy/
> MarketPlace-1.0-SNAPSHOT.war/WEB-INF/classes/META-INF/persistence.xml
> (Not a directory)
> 17:05:44,619 ERROR [org.stripesstuff.stripersist.Stripersist] :
> java.lang.NullPointerException
> at java.util.AbstractCollection.addAll(AbstractCollection.java:303)
> [:1.6.0_31]
> at
> org.stripesstuff.stripersist.Stripersist.init(Stripersist.java:294)
> [:151:153]
>
>
> My persistence.xml
> <!--<?xml version="1.0" encoding="UTF-8"?>-->
> <persistence xmlns="http://java.sun.com/xml/ns/persistence"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
> http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
> version="2.0">
> <persistence-unit name="MarketPlace" transaction-type="JTA">
> <jta-data-source>java:/MarketPlaceDS</jta-data-source>
> <class>be.zetes.marketplace.entity.User</class>
>
> <properties>
> <property name="hibernate.hbm2ddl.auto" value="update" />
> <property name="hibernate.transaction.manager_lookup_class"
> value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
> <property name="hibernate.jdbc.use_streams_for_binary"
> value="true" />
>
> <property name="hibernate.transaction.factory_class"
> value="org.hibernate.transaction.JTATransactionFactory"/>
> </properties>
> </persistence-unit>
> </persistence>
>
> My data-source:
> <?xml version="1.0" encoding="UTF-8"?>
> <datasources>
> <xa-datasource>
> <jndi-name>MarketPlaceDS</jndi-name>
> <track-connection-by-tx>true</track-connection-by-tx>
>
> <xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource
> </xa-datasource-class>
> <xa-datasource-property name="ServerName">localhost
> </xa-datasource-property>
> <xa-datasource-property name="DatabaseName">marketplace
> </xa-datasource-property>
> <xa-datasource-property name="User">mp</xa-datasource-property>
> <xa-datasource-property name="Password">mp</xa-datasource-property>
> <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml
> (optional) -->
> <metadata>
> <type-mapping>mySQL</type-mapping>
> </metadata>
> </xa-datasource>
> </datasources>
>
> What is happening?
>
> Regards,
> Geert
>
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users