My configuration is jboss-4.0.4RC1 and jboss-portal-2.2.1RC3-src

To remove both the "No transaction manager provided" error and also the 
"setObjectName" no such method exception, do what is advised here and edit the 
file 
"jboss-portal-2.2.1RC3-src/core/src/resources/portal-core-sar/META-INF/jboss-service.xml"
 so that you add the "depends" thing advised here and also comment out the line 
with setObjectName in it cos there really is no such method. This XML file 
doesn't conform to any DTD and looks unfinished (rant).

            <injection id="MBeanServerType" setMethod="setMBeanServer"/>
  |             <!-- [ MCB 2006/03/24 -->
  |             <!-- <injection id="ObjectNameType" setMethod="setObjectName"/> 
-->
  |             <!-- ] MCB 2006/03/24 -->
  | ...
  |       <attribute name="CacheMode">LOCAL</attribute>
  |       <!-- [ MCB 2006/03/24 -->
  |       <depends>jboss.jca:service=DataSourceBinding,name=PortalDS</depends>
  |       <!-- ] MCB 2006/03/24 -->
  | 

Regarding the MySQL datasource, remember do not use the -g debug build of the 
MySQL driver - it has missing classes. Also you will have to copy a couple of 
jars from the mysql connector distribution over (aspect-something or other) 
also.

I am using this for 

jboss-portal-2.2.1RC3-src/core/output/resources/setup/portal-mysql-ds.xml


  | <?xml version="1.0" encoding="UTF-8"?>
  | <datasources>
  |     <local-tx-datasource>
  |         <jndi-name>PortalDS</jndi-name>
  |         
<connection-url>jdbc:mysql://localhost:3306/jbossportal</connection-url>
  |         <!-- 
<connection-url>jdbc:mysql://localhost:3306/jbossportal?useServerPrepStmts=false</connection-url>
 -->
  |         <!-- <driver-class>org.gjt.mm.mysql.Driver</driver-class> -->
  |         <driver-class>com.mysql.jdbc.Driver</driver-class>
  |         <user-name>jbp</user-name>
  |         <password>hbo6541</password>
  |         <!-- <min-pool-size>2</min-pool-size> -->
  |         <!-- <max-pool-size>20</max-pool-size> -->
  |         <!-- <idle-timeout-minutes>5</idle-timeout-minutes> -->
  |         <!-- 
<valid-connection-checker-class-name>com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker</valid-connection-checker-class-name>
 -->
  |         <!-- 
<exception-sorter-class-name>com.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter</exception-sorter-class-name>
 -->
  |         
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
  |         <metadata><type-mapping>mySQL</type-mapping></metadata>
  |         <!-- <type-mapping>mySQL</type-mapping> -->
  |     </local-tx-datasource>
  | </datasources>
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932483#3932483

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932483


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to