JBoss installation

View: New views
19 Messages — Rating Filter:   Alert me  

JBoss installation

by Christopher M. Logan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Can you run Roller 4 in JBoss as 4.2.2 ?  If you can please help me?  
I'm getting the following error:

INFO  2008-03-13 20:11:39,765 JPAPersistenceStrategy:<init> -
openjpa.Log: commons
ERROR 2008-03-13 20:11:39,781 JPAPersistenceStrategy:<init> - ERROR:
creating entity manager
javax.persistence.PersistenceException: Provider error. Provider:
org.hibernate.ejb.HibernatePersistence
    at javax.persistence.Persistence.createFactory(Persistence.java:175)
    at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:111)


Thank you


Re: JBoss installation

by Harihara Vinayakaram :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Chris
   I hit the same problem . I still have not found a solution . But I have
gone one step further than this error  by

a) Copying the hbernate-all.jar into WEB-INF/lib
b) have the database.configurationType=jdb in the roller-custom.properties

After this I get an error that says JDBC connection parameters must be
provided

Regards
Hari

On Fri, Mar 14, 2008 at 9:37 AM, Christopher M. Logan <chrismikall@...>
wrote:

> Can you run Roller 4 in JBoss as 4.2.2 ?  If you can please help me?
> I'm getting the following error:
>
> INFO  2008-03-13 20:11:39,765 JPAPersistenceStrategy:<init> -
> openjpa.Log: commons
> ERROR 2008-03-13 20:11:39,781 JPAPersistenceStrategy:<init> - ERROR:
> creating entity manager
> javax.persistence.PersistenceException: Provider error. Provider:
> org.hibernate.ejb.HibernatePersistence
>    at javax.persistence.Persistence.createFactory(Persistence.java:175)
>    at
> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java
> :111)
>
>
> Thank you
>
>

Re: JBoss installation

by Christopher M. Logan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Harihara,
Where did you get this jar from ?
Thanks,
Christopher

Harihara Vinayakaram wrote:

> Hi Chris
>    I hit the same problem . I still have not found a solution . But I have
> gone one step further than this error  by
>
> a) Copying the hbernate-all.jar into WEB-INF/lib
> b) have the database.configurationType=jdb in the roller-custom.properties
>
> After this I get an error that says JDBC connection parameters must be
> provided
>
> Regards
> Hari
>
> On Fri, Mar 14, 2008 at 9:37 AM, Christopher M. Logan <chrismikall@...>
> wrote:
>
>  
>> Can you run Roller 4 in JBoss as 4.2.2 ?  If you can please help me?
>> I'm getting the following error:
>>
>> INFO  2008-03-13 20:11:39,765 JPAPersistenceStrategy:<init> -
>> openjpa.Log: commons
>> ERROR 2008-03-13 20:11:39,781 JPAPersistenceStrategy:<init> - ERROR:
>> creating entity manager
>> javax.persistence.PersistenceException: Provider error. Provider:
>> org.hibernate.ejb.HibernatePersistence
>>    at javax.persistence.Persistence.createFactory(Persistence.java:175)
>>    at
>> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java
>> :111)
>>
>>
>> Thank you
>>
>>
>>    
>
>  


Re: JBoss installation

by houcun :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

that is a big big problem ,Dave ,please help us!

thx

Houcun


Christopher M. Logan 写道:

> Hi Harihara,
> Where did you get this jar from ?
> Thanks,
> Christopher
>
> Harihara Vinayakaram wrote:
>> Hi Chris
>> I hit the same problem . I still have not found a solution . But I have
>> gone one step further than this error by
>>
>> a) Copying the hbernate-all.jar into WEB-INF/lib
>> b) have the database.configurationType=jdb in the
>> roller-custom.properties
>>
>> After this I get an error that says JDBC connection parameters must be
>> provided
>>
>> Regards
>> Hari
>>
>> On Fri, Mar 14, 2008 at 9:37 AM, Christopher M. Logan
>> <chrismikall@...>
>> wrote:
>>
>>> Can you run Roller 4 in JBoss as 4.2.2 ? If you can please help me?
>>> I'm getting the following error:
>>>
>>> INFO 2008-03-13 20:11:39,765 JPAPersistenceStrategy:<init> -
>>> openjpa.Log: commons
>>> ERROR 2008-03-13 20:11:39,781 JPAPersistenceStrategy:<init> - ERROR:
>>> creating entity manager
>>> javax.persistence.PersistenceException: Provider error. Provider:
>>> org.hibernate.ejb.HibernatePersistence
>>> at javax.persistence.Persistence.createFactory(Persistence.java:175)
>>> at
>>> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java
>>>
>>> :111)
>>>
>>>
>>> Thank you
>>>
>>>
>>
>
>


Re: JBoss installation

by Harihara Vinayakaram :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think these jars are available at labs.jboss.org . I am using jboss seam
and these jars are bundled with Seam . I just copied the files here

Regards
Hari
PS : It still does not work.

On Mon, Mar 17, 2008 at 1:05 AM, Christopher M. Logan <chrismikall@...>
wrote:

> Hi Harihara,
> Where did you get this jar from ?
> Thanks,
> Christopher
>
> Harihara Vinayakaram wrote:
> > Hi Chris
> >    I hit the same problem . I still have not found a solution . But I
> have
> > gone one step further than this error  by
> >
> > a) Copying the hbernate-all.jar into WEB-INF/lib
> > b) have the database.configurationType=jdb in the
> roller-custom.properties
> >
> > After this I get an error that says JDBC connection parameters must be
> > provided
> >
> > Regards
> > Hari
> >
> > On Fri, Mar 14, 2008 at 9:37 AM, Christopher M. Logan <
> chrismikall@...>
> > wrote:
> >
> >
> >> Can you run Roller 4 in JBoss as 4.2.2 ?  If you can please help me?
> >> I'm getting the following error:
> >>
> >> INFO  2008-03-13 20:11:39,765 JPAPersistenceStrategy:<init> -
> >> openjpa.Log: commons
> >> ERROR 2008-03-13 20:11:39,781 JPAPersistenceStrategy:<init> - ERROR:
> >> creating entity manager
> >> javax.persistence.PersistenceException: Provider error. Provider:
> >> org.hibernate.ejb.HibernatePersistence
> >>    at javax.persistence.Persistence.createFactory(Persistence.java:175)
> >>    at
> >> javax.persistence.Persistence.createEntityManagerFactory(
> Persistence.java
> >> :111)
> >>
> >>
> >> Thank you
> >>
> >>
> >>
> >
> >
>
>

Re: JBoss installation

by Dave-401 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Mar 16, 2008 at 11:58 PM, Harihara Vinayakaram <hvram1@...> wrote:
> I think these jars are available at labs.jboss.org . I am using jboss seam
>  and these jars are bundled with Seam . I just copied the files here
>
>  Regards
>  Hari
>  PS : It still does not work.

The best approach is to figure out how to allow Roller to use the
OpenJPA 0.9.7 jars that are shipped with Roller. Roller 4.0 was never
successfully tested with Hibernate/JPA.

- Dave

Re: JBoss installation

by houcun :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dave:

 From roller 1.2 until 3.1 , We use jboss application server and
postgresql , but you tell us,
Roller 4.0 doesn't support Hibernate &Jobss , I am hard hit. :(~~~
Do you want join OpenJPA team and PK Hibernate &Jboss ?

Houcun

Dave 写道:

> On Sun, Mar 16, 2008 at 11:58 PM, Harihara Vinayakaram <hvram1@...> wrote:
>  
>> I think these jars are available at labs.jboss.org . I am using jboss seam
>>  and these jars are bundled with Seam . I just copied the files here
>>
>>  Regards
>>  Hari
>>  PS : It still does not work.
>>    
>
> The best approach is to figure out how to allow Roller to use the
> OpenJPA 0.9.7 jars that are shipped with Roller. Roller 4.0 was never
> successfully tested with Hibernate/JPA.
>
> - Dave
>
>  


Re: JBoss installation

by Christopher M. Logan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I ended up installing roller4 on weblogic
http://chrismikall.blogspot.com/2008/03/roller4-deployed-to-weblogic92.html
in the mean time.
I'll keep trying to understand the problem, I would like to use JBoss.
-Christopher

houcun wrote:

> Dave:
>
> From roller 1.2 until 3.1 , We use jboss application server and
> postgresql , but you tell us,
> Roller 4.0 doesn't support Hibernate &Jobss , I am hard hit. :(~~~
> Do you want join OpenJPA team and PK Hibernate &Jboss ?
>
> Houcun
>
> Dave 写道:
>> On Sun, Mar 16, 2008 at 11:58 PM, Harihara Vinayakaram
>> <hvram1@...> wrote:
>>  
>>> I think these jars are available at labs.jboss.org . I am using
>>> jboss seam
>>>  and these jars are bundled with Seam . I just copied the files here
>>>
>>>  Regards
>>>  Hari
>>>  PS : It still does not work.
>>>    
>>
>> The best approach is to figure out how to allow Roller to use the
>> OpenJPA 0.9.7 jars that are shipped with Roller. Roller 4.0 was never
>> successfully tested with Hibernate/JPA.
>>
>> - Dave
>>
>>  
>
>


Re: JBoss installation

by Phillip Rhodes-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

houcun wrote:
> Dave:
>
>  From roller 1.2 until 3.1 , We use jboss application server and
> postgresql , but you tell us,
> Roller 4.0 doesn't support Hibernate &Jobss , I am hard hit. :(~~~
> Do you want join OpenJPA team and PK Hibernate &Jboss ?

>> The best approach is to figure out how to allow Roller to use the
>> OpenJPA 0.9.7 jars that are shipped with Roller. Roller 4.0 was never
>> successfully tested with Hibernate/JPA.

I'm still not completely clear on how JPA determines which provider to
instantiate... but from what I've seen, if you have the jars for two
different providers available, it gets confused and causes errors like
this.  Unfortunately JBoss provides the hibernate jars as part of the
app server itself, and this seems to cause problems deploying Roller
with OpenJPA on JBoss.

What I do is this, and it seems to work fine.  Bundle the roller war
into an ear file, and in the ear file put a jboss-app.xml
with the following:


<?xml version="1.0" ?>

<jboss-app>
   <loader-repository>
   org.openqabal:loader=roller-ear.ear
      <loader-repository-config>
      java2ParentDelegation=false
      </loader-repository-config>
   </loader-repository>
</jboss-app>


This limits the classloader scoping to the ear and turns off
parent delegation (eg, searching container supplied classes first).

Note that if you do this, you'll need an application.xml as well,and
both that and the jboss-app.xml should go in the META-INF dir of the ear
file.


TTYL,


--
Phillip Rhodes
Chief Architect - OpenQabal
https://openqabal.dev.java.net
LinkedIn: http://www.linkedin.com/in/philliprhodes

Re: JBoss installation

by houcun :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you for your help,Phillip,I try it!

     houcun

Phillip Rhodes 写道:

> houcun wrote:
>> Dave:
>>
>>  From roller 1.2 until 3.1 , We use jboss application server and
>> postgresql , but you tell us,
>> Roller 4.0 doesn't support Hibernate &Jobss , I am hard hit. :(~~~
>> Do you want join OpenJPA team and PK Hibernate &Jboss ?
>
>>> The best approach is to figure out how to allow Roller to use the
>>> OpenJPA 0.9.7 jars that are shipped with Roller. Roller 4.0 was never
>>> successfully tested with Hibernate/JPA.
>
> I'm still not completely clear on how JPA determines which provider to
> instantiate... but from what I've seen, if you have the jars for two
> different providers available, it gets confused and causes errors like
> this.  Unfortunately JBoss provides the hibernate jars as part of the
> app server itself, and this seems to cause problems deploying Roller
> with OpenJPA on JBoss.
>
> What I do is this, and it seems to work fine.  Bundle the roller war
> into an ear file, and in the ear file put a jboss-app.xml
> with the following:
>
>
> <?xml version="1.0" ?>
>
> <jboss-app>
>   <loader-repository>
>   org.openqabal:loader=roller-ear.ear
>      <loader-repository-config>
>      java2ParentDelegation=false
>      </loader-repository-config>
>   </loader-repository>
> </jboss-app>
>
>
> This limits the classloader scoping to the ear and turns off
> parent delegation (eg, searching container supplied classes first).
>
> Note that if you do this, you'll need an application.xml as well,and
> both that and the jboss-app.xml should go in the META-INF dir of the
> ear file.
>
>
> TTYL,
>
>


Re: JBoss installation

by Harihara Vinayakaram :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Philip
   I tried the steps and it still does not work . I used the same contents
of the jboss-app.xml . Can u also post what your application.xml looks like
.

Regards
Hari

On Thu, Mar 20, 2008 at 11:23 PM, Phillip Rhodes <mindcrime@...>
wrote:

> houcun wrote:
> > Dave:
> >
> >  From roller 1.2 until 3.1 , We use jboss application server and
> > postgresql , but you tell us,
> > Roller 4.0 doesn't support Hibernate &Jobss , I am hard hit. :(~~~
> > Do you want join OpenJPA team and PK Hibernate &Jboss ?
>
> >> The best approach is to figure out how to allow Roller to use the
> >> OpenJPA 0.9.7 jars that are shipped with Roller. Roller 4.0 was never
> >> successfully tested with Hibernate/JPA.
>
> I'm still not completely clear on how JPA determines which provider to
> instantiate... but from what I've seen, if you have the jars for two
> different providers available, it gets confused and causes errors like
> this.  Unfortunately JBoss provides the hibernate jars as part of the
> app server itself, and this seems to cause problems deploying Roller
> with OpenJPA on JBoss.
>
> What I do is this, and it seems to work fine.  Bundle the roller war
> into an ear file, and in the ear file put a jboss-app.xml
> with the following:
>
>
> <?xml version="1.0" ?>
>
> <jboss-app>
>   <loader-repository>
>   org.openqabal:loader=roller-ear.ear
>      <loader-repository-config>
>      java2ParentDelegation=false
>      </loader-repository-config>
>   </loader-repository>
> </jboss-app>
>
>
> This limits the classloader scoping to the ear and turns off
> parent delegation (eg, searching container supplied classes first).
>
> Note that if you do this, you'll need an application.xml as well,and
> both that and the jboss-app.xml should go in the META-INF dir of the ear
> file.
>
>
> TTYL,
>
>
> --
> Phillip Rhodes
> Chief Architect - OpenQabal
> https://openqabal.dev.java.net
> LinkedIn: http://www.linkedin.com/in/philliprhodes
>

Re: JBoss installation

by Phillip Rhodes-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Harihara Vinayakaram wrote:
> Philip
>    I tried the steps and it still does not work . I used the same contents
> of the jboss-app.xml . Can u also post what your application.xml looks like
> .

Sure, here ya go.  You'll want to take out the ejb module stuff, as
that's specific to OpenQabal.  Otherwise, it's a very basic application.xml.

<?xml version="1.0" encoding="ISO-8859-1" ?>

<application>
         <display-name>OpenQabal Roller</display-name>


         <module>
                 <web>
                       <!-- you may have to change this file name to
whatever the stock Roller build creates, if it's not roller.war. I
forget -->
                         <web-uri>roller.war</web-uri>

                                        <!-- and of course you can change this to whatever you want-->
                         <context-root>/Roller41</context-root>
                 </web>
         </module>

        <!-- delete this stuff -->
         <!--  SingleSignOut MDB -->
         <module>
                 <ejb>single-sign-out-mdb-ejb.jar</ejb>
         </module>

</application>


If bundling as an ear with the classloader parent delegation
turned off doesn't work, I'm not sure what to tell you.  Other
than to say when I've had similar problems they were related to
(well, as best as i could determine anyway) some conflict with
OpenJPA and Hibernate.  One suggestion is to grep through
your log file carefully when you get the error you get (turn logging
all the way up to debug or even trace first) and see if you see
any reference to org.hibernate.* classes right around where the
error occurs.  If you do, you'll know it's some classloader issue,
as there's no reason that Roller should be loading any Hibernate
classes.


TTYL,


--
Phillip Rhodes
Chief Architect - OpenQabal
https://openqabal.dev.java.net
LinkedIn: http://www.linkedin.com/in/philliprhodes

Re: JBoss installation

by Krishna Revadigar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,
   It looks like there is some issue in DAO layer loading. So please re structure your jboss-web.xml as

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE jboss-web
    PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN"
    "http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd">
   
<jboss-web>

  <context-root>/roller</context-root>
 
  <class-loading>                                
    <loader-repository>              
  roller:archive=roller.war
    </loader-repository>
  </class-loading>

  <resource-ref>
    <res-ref-name>jdbc/rollerdb</res-ref-name>
    <jndi-name>java:/jdbc/rollerdb</jndi-name>
  </resource-ref>
 
  <resource-ref>
      <res-ref-name>mail/Session</res-ref-name>
      <jndi-name>java:/mail/Session</jndi-name>
  </resource-ref>

</jboss-web>



Christopher M. Logan wrote:
Can you run Roller 4 in JBoss as 4.2.2 ?  If you can please help me?  
I'm getting the following error:

INFO  2008-03-13 20:11:39,765 JPAPersistenceStrategy:<init> -
openjpa.Log: commons
ERROR 2008-03-13 20:11:39,781 JPAPersistenceStrategy:<init> - ERROR:
creating entity manager
javax.persistence.PersistenceException: Provider error. Provider:
org.hibernate.ejb.HibernatePersistence
    at javax.persistence.Persistence.createFactory(Persistence.java:175)
    at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:111)


Thank you

Re: JBoss installation

by Krishna Revadigar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message




Hi,
   It looks like there is some issue in DAO layer loading. So please re structure your jboss-web.xml as

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE jboss-web
    PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN"
    "http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd">
   
<jboss-web>

  <context-root>/roller</context-root>
 
  <class-loading>                                
    <loader-repository>              
  roller:archive=roller.war
    </loader-repository>
  </class-loading>

  <resource-ref>
    <res-ref-name>jdbc/rollerdb</res-ref-name>
    <jndi-name>java:/jdbc/rollerdb</jndi-name>
  </resource-ref>
 
  <resource-ref>
      <res-ref-name>mail/Session</res-ref-name>
      <jndi-name>java:/mail/Session</jndi-name>
  </resource-ref>

</jboss-web>

Hi,
  I could run roller 4.0 on jboss-eap-4.2.
1. I used mysql as backend
i.e mysql-ds.xml

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

<!-- ===================================================================== -->
<!--                                                                       -->
<!--  JBoss Server DataBase Configuration                                           -->
<!--                                                                       -->
<!-- ===================================================================== -->

<datasources>


  <local-tx-datasource>
    <jndi-name>jdbc/rollerdb</jndi-name>
    <connection-url>jdbc:mysql://localhost:3306/rollerdb?autoReconnect=true</connection-url>
    <driver-class>com.mysql.jdbc.Driver</driver-class>
    <user-name>root</user-name>
    <password>auram</password>    
    <min-pool-size>5</min-pool-size>
    <max-pool-size>20</max-pool-size>    

        <metadata>
                <type-mapping>MySQL</type-mapping>
        </metadata>
                         
    </local-tx-datasource>

</datasources>

2. I have created roller-custom.properties under <jboss>\deploy\roller.war\WEB-INF\classes
# Backend Guice module
#guice.backend.module=org.apache.roller.weblogger.business.jpa.JPAWebloggerModule

# Backend Provider
#weblogger.provider.class=org.apache.roller.weblogger.business.GuiceWebloggerProvider

installation.type=auto
database.configurationType=jndi
database.jndi.name=jdbc/rollerdb
mail.configurationType=jndi
mail.jndi.name=mail/Session

3. I have placed mysql-connector-java-5.1.6-bin.jar under <dir>\jboss-eap-4.2\jboss-as\server\default\lib

4. Finally I have restarted server....

Christopher M. Logan wrote:
Can you run Roller 4 in JBoss as 4.2.2 ?  If you can please help me?  
I'm getting the following error:

INFO  2008-03-13 20:11:39,765 JPAPersistenceStrategy:<init> -
openjpa.Log: commons
ERROR 2008-03-13 20:11:39,781 JPAPersistenceStrategy:<init> - ERROR:
creating entity manager
javax.persistence.PersistenceException: Provider error. Provider:
org.hibernate.ejb.HibernatePersistence
    at javax.persistence.Persistence.createFactory(Persistence.java:175)
    at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:111)


Thank you


Re: JBoss installation

by priyaramadoss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi,

I have one small clarification in this roller installation in jboss.

Can this be done with roller 4.0 in jboss-4.2.2.GA server.

Can anyone help on this?

Thanks in advance.

Regards,
Priya.




Krishna Revadigar wrote:
Hi,
   It looks like there is some issue in DAO layer loading. So please re structure your jboss-web.xml as

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE jboss-web
    PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN"
    "http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd">
   
<jboss-web>

  <context-root>/roller</context-root>
 
  <class-loading>                                
    <loader-repository>              
  roller:archive=roller.war
    </loader-repository>
  </class-loading>

  <resource-ref>
    <res-ref-name>jdbc/rollerdb</res-ref-name>
    <jndi-name>java:/jdbc/rollerdb</jndi-name>
  </resource-ref>
 
  <resource-ref>
      <res-ref-name>mail/Session</res-ref-name>
      <jndi-name>java:/mail/Session</jndi-name>
  </resource-ref>

</jboss-web>

Hi,
  I could run roller 4.0 on jboss-eap-4.2.
1. I used mysql as backend
i.e mysql-ds.xml

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

<!-- ===================================================================== -->
<!--                                                                       -->
<!--  JBoss Server DataBase Configuration                                           -->
<!--                                                                       -->
<!-- ===================================================================== -->

<datasources>


  <local-tx-datasource>
    <jndi-name>jdbc/rollerdb</jndi-name>
    <connection-url>jdbc:mysql://localhost:3306/rollerdb?autoReconnect=true</connection-url>
    <driver-class>com.mysql.jdbc.Driver</driver-class>
    <user-name>root</user-name>
    <password>auram</password>    
    <min-pool-size>5</min-pool-size>
    <max-pool-size>20</max-pool-size>    

        <metadata>
                <type-mapping>MySQL</type-mapping>
        </metadata>
                         
    </local-tx-datasource>

</datasources>

2. I have created roller-custom.properties under <jboss>\deploy\roller.war\WEB-INF\classes
# Backend Guice module
#guice.backend.module=org.apache.roller.weblogger.business.jpa.JPAWebloggerModule

# Backend Provider
#weblogger.provider.class=org.apache.roller.weblogger.business.GuiceWebloggerProvider

installation.type=auto
database.configurationType=jndi
database.jndi.name=jdbc/rollerdb
mail.configurationType=jndi
mail.jndi.name=mail/Session

3. I have placed mysql-connector-java-5.1.6-bin.jar under <dir>\jboss-eap-4.2\jboss-as\server\default\lib

4. Finally I have restarted server....

Christopher M. Logan wrote:
Can you run Roller 4 in JBoss as 4.2.2 ?  If you can please help me?  
I'm getting the following error:

INFO  2008-03-13 20:11:39,765 JPAPersistenceStrategy:<init> -
openjpa.Log: commons
ERROR 2008-03-13 20:11:39,781 JPAPersistenceStrategy:<init> - ERROR:
creating entity manager
javax.persistence.PersistenceException: Provider error. Provider:
org.hibernate.ejb.HibernatePersistence
    at javax.persistence.Persistence.createFactory(Persistence.java:175)
    at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:111)


Thank you

Re: JBoss installation

by Harihara Vinayakaram :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi
  I tried about 4 - 5 months back and the conclusion I reached was that it
was not possible to run Roller 4.0 with jboss 4.2 . I am not sure if the
situation has changed in the interim

Regards
Hari

On Wed, May 27, 2009 at 11:57 AM, priyaramadoss
<Priya_ramadoss@...>wrote:

>
> hi,
>
> I have one small clarification in this roller installation in jboss.
>
> Can this be done with roller 4.0 in jboss-4.2.2.GA server.
>
> Can anyone help on this?
>
> Thanks in advance.
>
> Regards,
> Priya.
>
>
>
> Krishna Revadigar wrote:
> >
> >
> >
> > Krishna Revadigar wrote:
> >>
> >>
> >> Hi,
> >>    It looks like there is some issue in DAO layer loading. So please re
> >> structure your jboss-web.xml as
> >>
> >> <?xml version='1.0' encoding='UTF-8' ?>
> >> <!DOCTYPE jboss-web
> >>     PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN"
> >>     "http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd">
> >>
> >> <jboss-web>
> >>
> >>   <context-root>/roller</context-root>
> >>
> >>   <class-loading>
> >>     <loader-repository>
> >>      roller:archive=roller.war
> >>     </loader-repository>
> >>   </class-loading>
> >>
> >>   <resource-ref>
> >>     <res-ref-name>jdbc/rollerdb</res-ref-name>
> >>     <jndi-name>java:/jdbc/rollerdb</jndi-name>
> >>   </resource-ref>
> >>
> >>   <resource-ref>
> >>       <res-ref-name>mail/Session</res-ref-name>
> >>       <jndi-name>java:/mail/Session</jndi-name>
> >>   </resource-ref>
> >>
> >> </jboss-web>
> >>
> >> Hi,
> >>   I could run roller 4.0 on jboss-eap-4.2.
> >> 1. I used mysql as backend
> >> i.e mysql-ds.xml
> >>
> >> <?xml version="1.0" encoding="UTF-8"?>
> >>
> >> <!--
> >> =====================================================================
> -->
> >> <!--
> >> -->
> >> <!--  JBoss Server DataBase Configuration
> >> -->
> >> <!--
> >> -->
> >> <!--
> >> =====================================================================
> -->
> >>
> >> <datasources>
> >>
> >>
> >>   <local-tx-datasource>
> >>     <jndi-name>jdbc/rollerdb</jndi-name>
> >>
> >>
> <connection-url>jdbc:mysql://localhost:3306/rollerdb?autoReconnect=true</connection-url>
> >>     <driver-class>com.mysql.jdbc.Driver</driver-class>
> >>     <user-name>root</user-name>
> >>     <password>auram</password>
> >>     <min-pool-size>5</min-pool-size>
> >>     <max-pool-size>20</max-pool-size>
> >>
> >>      <metadata>
> >>              <type-mapping>MySQL</type-mapping>
> >>      </metadata>
> >>
> >>     </local-tx-datasource>
> >>
> >> </datasources>
> >>
> >> 2. I have created roller-custom.properties under
> >> <jboss>\deploy\roller.war\WEB-INF\classes
> >> # Backend Guice module
> >>
> #guice.backend.module=org.apache.roller.weblogger.business.jpa.JPAWebloggerModule
> >>
> >> # Backend Provider
> >>
> #weblogger.provider.class=org.apache.roller.weblogger.business.GuiceWebloggerProvider
> >>
> >> installation.type=auto
> >> database.configurationType=jndi
> >> database.jndi.name=jdbc/rollerdb
> >> mail.configurationType=jndi
> >> mail.jndi.name=mail/Session
> >>
> >> 3. I have placed mysql-connector-java-5.1.6-bin.jar under
> >> <dir>\jboss-eap-4.2\jboss-as\server\default\lib
> >>
> >> 4. Finally I have restarted server....
> >>
> >>
> >> Christopher M. Logan wrote:
> >>>
> >>> Can you run Roller 4 in JBoss as 4.2.2 ?  If you can please help me?
> >>> I'm getting the following error:
> >>>
> >>> INFO  2008-03-13 20:11:39,765 JPAPersistenceStrategy:<init> -
> >>> openjpa.Log: commons
> >>> ERROR 2008-03-13 20:11:39,781 JPAPersistenceStrategy:<init> - ERROR:
> >>> creating entity manager
> >>> javax.persistence.PersistenceException: Provider error. Provider:
> >>> org.hibernate.ejb.HibernatePersistence
> >>>     at
> javax.persistence.Persistence.createFactory(Persistence.java:175)
> >>>     at
> >>>
> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:111)
> >>>
> >>>
> >>> Thank you
> >>>
> >>>
> >>>
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/JBoss-installation-tp16044106s12275p23736691.html
> Sent from the Roller - User mailing list archive at Nabble.com.
>
>

Re: JBoss installation

by Thiago Galbiatti Vespa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Same as you

On Sat, May 30, 2009 at 2:00 PM, Harihara Vinayakaram <hvram1@...>wrote:

> Hi
>  I tried about 4 - 5 months back and the conclusion I reached was that it
> was not possible to run Roller 4.0 with jboss 4.2 . I am not sure if the
> situation has changed in the interim
>
> Regards
> Hari
>
> On Wed, May 27, 2009 at 11:57 AM, priyaramadoss
> <Priya_ramadoss@...>wrote:
>
> >
> > hi,
> >
> > I have one small clarification in this roller installation in jboss.
> >
> > Can this be done with roller 4.0 in jboss-4.2.2.GA server.
> >
> > Can anyone help on this?
> >
> > Thanks in advance.
> >
> > Regards,
> > Priya.
> >
> >
> >
> > Krishna Revadigar wrote:
> > >
> > >
> > >
> > > Krishna Revadigar wrote:
> > >>
> > >>
> > >> Hi,
> > >>    It looks like there is some issue in DAO layer loading. So please
> re
> > >> structure your jboss-web.xml as
> > >>
> > >> <?xml version='1.0' encoding='UTF-8' ?>
> > >> <!DOCTYPE jboss-web
> > >>     PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN"
> > >>     "http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd">
> > >>
> > >> <jboss-web>
> > >>
> > >>   <context-root>/roller</context-root>
> > >>
> > >>   <class-loading>
> > >>     <loader-repository>
> > >>      roller:archive=roller.war
> > >>     </loader-repository>
> > >>   </class-loading>
> > >>
> > >>   <resource-ref>
> > >>     <res-ref-name>jdbc/rollerdb</res-ref-name>
> > >>     <jndi-name>java:/jdbc/rollerdb</jndi-name>
> > >>   </resource-ref>
> > >>
> > >>   <resource-ref>
> > >>       <res-ref-name>mail/Session</res-ref-name>
> > >>       <jndi-name>java:/mail/Session</jndi-name>
> > >>   </resource-ref>
> > >>
> > >> </jboss-web>
> > >>
> > >> Hi,
> > >>   I could run roller 4.0 on jboss-eap-4.2.
> > >> 1. I used mysql as backend
> > >> i.e mysql-ds.xml
> > >>
> > >> <?xml version="1.0" encoding="UTF-8"?>
> > >>
> > >> <!--
> > >> =====================================================================
> > -->
> > >> <!--
> > >> -->
> > >> <!--  JBoss Server DataBase Configuration
> > >> -->
> > >> <!--
> > >> -->
> > >> <!--
> > >> =====================================================================
> > -->
> > >>
> > >> <datasources>
> > >>
> > >>
> > >>   <local-tx-datasource>
> > >>     <jndi-name>jdbc/rollerdb</jndi-name>
> > >>
> > >>
> >
> <connection-url>jdbc:mysql://localhost:3306/rollerdb?autoReconnect=true</connection-url>
> > >>     <driver-class>com.mysql.jdbc.Driver</driver-class>
> > >>     <user-name>root</user-name>
> > >>     <password>auram</password>
> > >>     <min-pool-size>5</min-pool-size>
> > >>     <max-pool-size>20</max-pool-size>
> > >>
> > >>      <metadata>
> > >>              <type-mapping>MySQL</type-mapping>
> > >>      </metadata>
> > >>
> > >>     </local-tx-datasource>
> > >>
> > >> </datasources>
> > >>
> > >> 2. I have created roller-custom.properties under
> > >> <jboss>\deploy\roller.war\WEB-INF\classes
> > >> # Backend Guice module
> > >>
> >
> #guice.backend.module=org.apache.roller.weblogger.business.jpa.JPAWebloggerModule
> > >>
> > >> # Backend Provider
> > >>
> >
> #weblogger.provider.class=org.apache.roller.weblogger.business.GuiceWebloggerProvider
> > >>
> > >> installation.type=auto
> > >> database.configurationType=jndi
> > >> database.jndi.name=jdbc/rollerdb
> > >> mail.configurationType=jndi
> > >> mail.jndi.name=mail/Session
> > >>
> > >> 3. I have placed mysql-connector-java-5.1.6-bin.jar under
> > >> <dir>\jboss-eap-4.2\jboss-as\server\default\lib
> > >>
> > >> 4. Finally I have restarted server....
> > >>
> > >>
> > >> Christopher M. Logan wrote:
> > >>>
> > >>> Can you run Roller 4 in JBoss as 4.2.2 ?  If you can please help me?
> > >>> I'm getting the following error:
> > >>>
> > >>> INFO  2008-03-13 20:11:39,765 JPAPersistenceStrategy:<init> -
> > >>> openjpa.Log: commons
> > >>> ERROR 2008-03-13 20:11:39,781 JPAPersistenceStrategy:<init> - ERROR:
> > >>> creating entity manager
> > >>> javax.persistence.PersistenceException: Provider error. Provider:
> > >>> org.hibernate.ejb.HibernatePersistence
> > >>>     at
> > javax.persistence.Persistence.createFactory(Persistence.java:175)
> > >>>     at
> > >>>
> >
> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:111)
> > >>>
> > >>>
> > >>> Thank you
> > >>>
> > >>>
> > >>>
> > >>
> > >>
> > >
> > >
> >
> > --
> > View this message in context:
> > http://www.nabble.com/JBoss-installation-tp16044106s12275p23736691.html
> > Sent from the Roller - User mailing list archive at Nabble.com.
> >
> >
>



--
Thiago Galbiatti Vespa
http://www.thiagovespa.com.br
SCEA I - SCDJWS - SCSNI - SCJP - SCJA
MSc Computer Science - USP
BSc Computer Science - UNESP

Re: JBoss installation

by Emmanouil Batsis (Manos) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

+1

Thiago Galbiatti Vespa wrote:

> Same as you
>
> On Sat, May 30, 2009 at 2:00 PM, Harihara Vinayakaram <hvram1@...>wrote:
>
>> Hi
>>  I tried about 4 - 5 months back and the conclusion I reached was that it
>> was not possible to run Roller 4.0 with jboss 4.2 . I am not sure if the
>> situation has changed in the interim
>>
>> Regards
>> Hari
>>
>> On Wed, May 27, 2009 at 11:57 AM, priyaramadoss
>> <Priya_ramadoss@...>wrote:
>>
>>> hi,
>>>
>>> I have one small clarification in this roller installation in jboss.
>>>
>>> Can this be done with roller 4.0 in jboss-4.2.2.GA server.
>>>
>>> Can anyone help on this?
>>>
>>> Thanks in advance.
>>>
>>> Regards,
>>> Priya.
>>>
>>>
>>>
>>> Krishna Revadigar wrote:
>>>>
>>>>
>>>> Krishna Revadigar wrote:
>>>>>
>>>>> Hi,
>>>>>    It looks like there is some issue in DAO layer loading. So please
>> re
>>>>> structure your jboss-web.xml as
>>>>>
>>>>> <?xml version='1.0' encoding='UTF-8' ?>
>>>>> <!DOCTYPE jboss-web
>>>>>     PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN"
>>>>>     "http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd">
>>>>>
>>>>> <jboss-web>
>>>>>
>>>>>   <context-root>/roller</context-root>
>>>>>
>>>>>   <class-loading>
>>>>>     <loader-repository>
>>>>>      roller:archive=roller.war
>>>>>     </loader-repository>
>>>>>   </class-loading>
>>>>>
>>>>>   <resource-ref>
>>>>>     <res-ref-name>jdbc/rollerdb</res-ref-name>
>>>>>     <jndi-name>java:/jdbc/rollerdb</jndi-name>
>>>>>   </resource-ref>
>>>>>
>>>>>   <resource-ref>
>>>>>       <res-ref-name>mail/Session</res-ref-name>
>>>>>       <jndi-name>java:/mail/Session</jndi-name>
>>>>>   </resource-ref>
>>>>>
>>>>> </jboss-web>
>>>>>
>>>>> Hi,
>>>>>   I could run roller 4.0 on jboss-eap-4.2.
>>>>> 1. I used mysql as backend
>>>>> i.e mysql-ds.xml
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>
>>>>> <!--
>>>>> =====================================================================
>>> -->
>>>>> <!--
>>>>> -->
>>>>> <!--  JBoss Server DataBase Configuration
>>>>> -->
>>>>> <!--
>>>>> -->
>>>>> <!--
>>>>> =====================================================================
>>> -->
>>>>> <datasources>
>>>>>
>>>>>
>>>>>   <local-tx-datasource>
>>>>>     <jndi-name>jdbc/rollerdb</jndi-name>
>>>>>
>>>>>
>> <connection-url>jdbc:mysql://localhost:3306/rollerdb?autoReconnect=true</connection-url>
>>>>>     <driver-class>com.mysql.jdbc.Driver</driver-class>
>>>>>     <user-name>root</user-name>
>>>>>     <password>auram</password>
>>>>>     <min-pool-size>5</min-pool-size>
>>>>>     <max-pool-size>20</max-pool-size>
>>>>>
>>>>>      <metadata>
>>>>>              <type-mapping>MySQL</type-mapping>
>>>>>      </metadata>
>>>>>
>>>>>     </local-tx-datasource>
>>>>>
>>>>> </datasources>
>>>>>
>>>>> 2. I have created roller-custom.properties under
>>>>> <jboss>\deploy\roller.war\WEB-INF\classes
>>>>> # Backend Guice module
>>>>>
>> #guice.backend.module=org.apache.roller.weblogger.business.jpa.JPAWebloggerModule
>>>>> # Backend Provider
>>>>>
>> #weblogger.provider.class=org.apache.roller.weblogger.business.GuiceWebloggerProvider
>>>>> installation.type=auto
>>>>> database.configurationType=jndi
>>>>> database.jndi.name=jdbc/rollerdb
>>>>> mail.configurationType=jndi
>>>>> mail.jndi.name=mail/Session
>>>>>
>>>>> 3. I have placed mysql-connector-java-5.1.6-bin.jar under
>>>>> <dir>\jboss-eap-4.2\jboss-as\server\default\lib
>>>>>
>>>>> 4. Finally I have restarted server....
>>>>>
>>>>>
>>>>> Christopher M. Logan wrote:
>>>>>> Can you run Roller 4 in JBoss as 4.2.2 ?  If you can please help me?
>>>>>> I'm getting the following error:
>>>>>>
>>>>>> INFO  2008-03-13 20:11:39,765 JPAPersistenceStrategy:<init> -
>>>>>> openjpa.Log: commons
>>>>>> ERROR 2008-03-13 20:11:39,781 JPAPersistenceStrategy:<init> - ERROR:
>>>>>> creating entity manager
>>>>>> javax.persistence.PersistenceException: Provider error. Provider:
>>>>>> org.hibernate.ejb.HibernatePersistence
>>>>>>     at
>>> javax.persistence.Persistence.createFactory(Persistence.java:175)
>>>>>>     at
>>>>>>
>> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:111)
>>>>>>
>>>>>> Thank you
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/JBoss-installation-tp16044106s12275p23736691.html
>>> Sent from the Roller - User mailing list archive at Nabble.com.
>>>
>>>
>
>
>


--
Manos Batsis, Chief Technologist
          __    _
   ____ _/ /_  (_)_________ ____ ______
  / __ `/ __ \/ / ___/ ___// __ `/ ___/
/ /_/ / /_/ / (__  |__  )/ /_/ / /
\__,_/_.___/_/____/____(_)__, /_/
                         /____/
http://www.Abiss.gr
19, Andrea Kalvou Street,
14231, Nea Ionia,
Athens, Greece

Tel: +30 211-1027-900
Fax: +30 211-1027-999


Re: JBoss installation

by ShifengFan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I find the same problem with you.but i resolved the problem and run roller4 in jboss4.2 successful.the problem is the project miss a jar,you need put the hibernate-entityManager.jar into the roller4 project!


Christopher M. Logan wrote:
Can you run Roller 4 in JBoss as 4.2.2 ?  If you can please help me?  
I'm getting the following error:

INFO  2008-03-13 20:11:39,765 JPAPersistenceStrategy:<init> -
openjpa.Log: commons
ERROR 2008-03-13 20:11:39,781 JPAPersistenceStrategy:<init> - ERROR:
creating entity manager
javax.persistence.PersistenceException: Provider error. Provider:
org.hibernate.ejb.HibernatePersistence
    at javax.persistence.Persistence.createFactory(Persistence.java:175)
    at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:111)


Thank you