roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matej Lazar <matejon...@gmail.com>
Subject Re: AW: AW: AW: deploy to jboss 5.1 - You have not defined a non-jta-data-source
Date Sat, 24 Oct 2009 17:13:15 GMT
The same error.




Werner Gaulke wrote:
> Exception looks like a datasource configuration problem to me. Try defining
> a no-tx-datasource. Have a look in the jboss server documentation.
>
>
>
>
>
>   
>> Unfortunately  no success :(
>>     
>
>   
>> roller.log empty, jboss console/log (see attachment)
>>     
>
>   
>> I think I'm closer with jdbc configuration than jndi.
>>     
>
>
> --
> matej
>
>
> Werner Gaulke wrote:
>   
>> No problem:
>>
>> Jboss-web.xml:
>> <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE jboss-web PUBLIC
>>     "-//JBoss//DTD Web Application 2.4//EN"
>>     "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
>> <jboss-web>
>>     <security-domain>java:/jaas/roller-policy</security-domain>
>>    <context-root>roller</context-root>
>>     <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/RollerMail</jndi-name>
>>     </resource-ref>
>> </jboss-web>
>>
>>
>> Roller-ds.xml
>> <?xml version="1.0" encoding="UTF-8"?>
>> <!DOCTYPE datasources
>>     PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"
>>     "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd">
>> <datasources>
>>    <local-tx-datasource>
>>       <jndi-name>jdbc/RollerDB</jndi-name>
>>       <connection-url>jdbc:mysql://localhost:3306/roller</connection-url>
>>       <driver-class>com.mysql.jdbc.Driver</driver-class>
>>       <user-name>roller</user-name>
>>       <password>mysecretpass</password>
>>    </local-tx-datasource>
>> </datasources>
>>
>> Roller-custom.properties
>> weblog.absoluteurl.mysite=http://www.mysite.de
>>
>>
>> web.xml -> didn't change anything.
>>
>>
>> I do not know how far these settings apply to jboss 5.1
>>
>>
>> Werner
>>
>>
>>
>>
>>
>>   
>>     
>>> I was also trying to manage with resource ref and ds, but with no 
>>> success, can you please post me content of your files.
>>> roller-ds.xml
>>> jboss-web.xml
>>> web.xml
>>> roller-custom.properties
>>>
>>> --
>>> matej
>>>     
>>>       
>> Werner Gaulke wrote:
>>   
>>     
>>> Hello,
>>>
>>> I have configured Roller with JBoss 4.2.3. Here are the steps I've done:
>>>
>>> - define roller-ds.xml with database configuration
>>> - define jboss-web.xml in roller.war/web-inf with resource ref pointer
>>>       
> for
>   
>>> roller-ds
>>> - add roller-custom.properties in roller/web-inf/classes
>>> - put hibernate-entitymanager.jar in roller/web-inf/lib
>>>
>>> Create roller tables manually
>>>
>>> Startup jboss - everything working fine (I left out email config)
>>>
>>> Maybe it helps for jboss 5.1 - if you get it working please drop a note
>>> here. I plan to migrate to jboss 5.1 later this year
>>>
>>>
>>> Regards
>>> werner
>>>
>>>
>>>
>>>   
>>>     
>>>       
>>
>>
>>   
>>     
>
>
>
>
>   


Mime
View raw message