struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sandeep kotha <sandeep4u.ko...@gmail.com>
Subject Issue with hibernate 3 + jboss-5.1.0.GA +mySql with Struts 2
Date Tue, 20 Jul 2010 06:28:37 GMT
Hi All

I'm newbie using* *hibernate 3 + jboss-5.1.0.GA +mySql with Struts 2* *while
i try to configure JNDI im getting the below exception. Please find my
Jboss, hibernate and Struts configurations. Im using *transaction.factory_class
as *org.hibernate.transaction.JTATransactionFactory in my hibernate.cfg.xml.
* *If i had missed something please let me know.

I know Im posting in Struts forum but i strictly believe we should be using
combination of these in our applications any small help to fix this issue
will be a great help for me

11:29:55,187 INFO  [LogNotificationListener] Adding notification listener
for logging mbean "jboss.system:service=Logging,type=Log4jService" to server
org.jboss.mx.server.MBeanServerImpl@1edd9b3[ defaultDomain='jboss' ]
11:30:01,906 ERROR [AbstractKernelController] Error installing to Parse:
name=vfsfile:/F:/jboss-5.1.0.GA/server/default/deploy/mysql-ds.xml state=Not
Installed mode=Manual requiredState=Parse
org.jboss.deployers.spi.DeploymentException: Error creating managed object
for vfsfile:/F:/jboss-5.1.0.GA/server/default/deploy/mysql-ds.xml
    at
org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
    at
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:362)
    at
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:322)
    at
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:294)
    at
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:234)
    at
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
    at
org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
    at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
    at
org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
    at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
    at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
    at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
    at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
    at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
    at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
    at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
    at
org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
    at
org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
    at
org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
    at
org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
    at
org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
    at
org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
    at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
    at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
    at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
    at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
    at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
    at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
    at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
    at
org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
    at
org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
    at
org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
    at org.jboss.Main.boot(Main.java:221)
    at org.jboss.Main$1.run(Main.java:556)
    at java.lang.Thread.run(Unknown Source)
Caused by: javax.xml.bind.UnmarshalException
 - with linked exception:
[org.xml.sax.SAXParseException: The element type "local-tx-datasourcee" must
be terminated by the matching end-tag "</local-tx-datasourcee>".]
    at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(Unknown
Source)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:514)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:215)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:190)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:238)
    at
org.jboss.resource.deployers.ManagedConnectionFactoryParserDeployer.parse(ManagedConnectionFactoryParserDeployer.java:123)
    at
org.jboss.resource.deployers.ManagedConnectionFactoryParserDeployer.parse(ManagedConnectionFactoryParserDeployer.java:63)
    at
org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)
    at
org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:239)
    at
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:355)
    ... 33 more
Caused by: org.xml.sax.SAXParseException: The element type
"local-tx-datasourcee" must be terminated by the matching end-tag
"</local-tx-datasourcee>".
    at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
    at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
    at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
    at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
    at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)
    ... 40 more
11:30:10,656 INFO  [Ejb3DependenciesDeployer] Encountered deployment
AbstractVFSDeploymentContext@22917694{vfsfile:/F:/
jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/}
11:30:10,656 INFO  [Ejb3DependenciesDeployer] Encountered deployment
AbstractVFSDeploymentContext@22917694{vfsfile:/F:/
jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/}
11:30:10,656 INFO  [Ejb3DependenciesDeployer] Encountered deployment
AbstractVFSDeploymentContext@22917694{vfsfile:/F:/
jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/}
11:30:10,656 INFO  [Ejb3DependenciesDeployer] Encountered deployment
AbstractVFSDeploymentContext@22917694{vfsfile:/F:/
jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/}
11:30:13,671 INFO  [JMXConnectorServerService] JMX Connector server:
service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
11:30:13,953 INFO  [MailService] Mail Service bound to java:/Mail
11:30:16,484 WARN  [JBossASSecurityMetadataStore] WARNING! POTENTIAL
SECURITY RISK. It has been detected that the MessageSucker component which
sucks messages from one node to another has not had its password changed
from the installation default. Please see the JBoss Messaging user guide for
instructions on how to do this.
11:30:16,500 WARN  [AnnotationCreator] No ClassLoader provided, using TCCL:
org.jboss.managed.api.annotation.ManagementComponent
11:30:16,562 WARN  [AnnotationCreator] No ClassLoader provided, using TCCL:
org.jboss.managed.api.annotation.ManagementComponent
11:30:16,687 INFO  [TransactionManagerService] JBossTS Transaction Service
(JTA version - tag:JBOSSTS_4_6_1_GA) - JBoss Inc.
11:30:16,687 INFO  [TransactionManagerService] Setting up property manager
MBean and JMX layer
11:30:17,140 INFO  [TransactionManagerService] Initializing recovery manager
11:30:18,437 INFO  [TransactionManagerService] Recovery manager configured
11:30:18,453 INFO  [TransactionManagerService] Binding TransactionManager
JNDI Reference
11:30:18,468 INFO  [TransactionManagerService] Starting transaction recovery
manager
11:30:19,468 INFO  [AprLifecycleListener] The Apache Tomcat Native library
which allows optimal performance in production environments was not found on
the java.library.path: C:\Program
Files\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program
Files/Java/jre6/bin/client;C:/Program
Files/Java/jre6/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\TortoiseSVN\bin;C:\Program Files\Common Files\Symbian\tools;C:\Program
Files\CSL Arm Toolchain\bin;C:\ant\bin;C:\Sun\SDK\bin;C:\Program
Files\WinAnt\bin
11:30:19,515 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on
http-127.0.0.1-8080
11:30:19,531 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on
ajp-127.0.0.1-8009
11:30:19,656 INFO  [StandardService] Starting service jboss.web
11:30:19,656 INFO  [StandardEngine] Starting Servlet Engine: JBoss Web/
2.1.3.GA
11:30:19,687 INFO  [Catalina] Server startup in 163 ms
11:30:19,718 INFO  [TomcatDeployment] deploy, ctxPath=/invoker
11:30:20,250 INFO  [TomcatDeployment] deploy, ctxPath=/jbossws
11:30:20,281 INFO  [TomcatDeployment] deploy, ctxPath=/web-console
11:30:20,703 INFO  [RARDeployment] Required license terms exist, view
vfszip:/F:/
jboss-5.1.0.GA/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
11:30:20,703 INFO  [RARDeployment] Required license terms exist, view
vfszip:/F:/
jboss-5.1.0.GA/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
11:30:20,718 INFO  [RARDeployment] Required license terms exist, view
vfszip:/F:/jboss-5.1.0.GA/server/default/deploy/jms-ra.rar/META-INF/ra.xml
11:30:20,734 INFO  [RARDeployment] Required license terms exist, view
vfszip:/F:/jboss-5.1.0.GA/server/default/deploy/mail-ra.rar/META-INF/ra.xml
11:30:20,765 INFO  [RARDeployment] Required license terms exist, view
vfszip:/F:/
jboss-5.1.0.GA/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
11:30:20,843 INFO  [SimpleThreadPool] Job execution threads will use class
loader of thread: main
11:30:20,859 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
11:30:20,859 INFO  [RAMJobStore] RAMJobStore initialized.
11:30:20,859 INFO  [StdSchedulerFactory] Quartz scheduler
'DefaultQuartzScheduler' initialized from default resource file in Quartz
package: 'quartz.properties'
11:30:20,859 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
11:30:20,859 INFO  [QuartzScheduler] Scheduler
DefaultQuartzScheduler_$_NON_CLUSTERED started.
11:30:21,984 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager
'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name
'java:DefaultDS'
11:30:22,546 INFO  [ServerPeer] JBoss Messaging 1.4.3.GA server [0] started
11:30:22,656 INFO  [QueueService] Queue[/queue/ExpiryQueue] started,
fullSize=200000, pageSize=2000, downCacheSize=2000
11:30:22,796 INFO  [ConnectionFactory] Connector
bisocket://127.0.0.1:4457has leasing enabled, lease period 10000
milliseconds
11:30:22,796 INFO  [ConnectionFactory]
org.jboss.jms.server.connectionfactory.ConnectionFactory@204deb started
11:30:22,796 INFO  [ConnectionFactoryJNDIMapper] supportsFailover attribute
is true on connection factory:
jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but
post office is non clustered. So connection factory will *not* support
failover
11:30:22,796 INFO  [ConnectionFactoryJNDIMapper] supportsLoadBalancing
attribute is true on connection factory:
jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but
post office is non clustered. So connection factory will *not* support load
balancing
11:30:22,796 INFO  [ConnectionFactory] Connector
bisocket://127.0.0.1:4457has leasing enabled, lease period 10000
milliseconds
11:30:22,796 INFO  [ConnectionFactory]
org.jboss.jms.server.connectionfactory.ConnectionFactory@1a42493 started
11:30:22,796 INFO  [ConnectionFactory] Connector
bisocket://127.0.0.1:4457has leasing enabled, lease period 10000
milliseconds
11:30:22,796 INFO  [ConnectionFactory]
org.jboss.jms.server.connectionfactory.ConnectionFactory@5c978a started
11:30:22,796 INFO  [QueueService] Queue[/queue/DLQ] started,
fullSize=200000, pageSize=2000, downCacheSize=2000
11:30:22,890 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager
'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name
'java:JmsXA'
11:30:23,296 INFO  [JBossASKernel] Created KernelDeployment for:
profileservice-secured.jar
11:30:23,296 INFO  [JBossASKernel] installing bean:
jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3
11:30:23,296 INFO  [JBossASKernel]   with dependencies:
11:30:23,296 INFO  [JBossASKernel]   and demands:
11:30:23,296 INFO  [JBossASKernel]
jndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView
11:30:23,296 INFO  [JBossASKernel]     jboss.ejb:service=EJBTimerService
11:30:23,296 INFO  [JBossASKernel]   and supplies:
11:30:23,296 INFO  [JBossASKernel]
Class:org.jboss.profileservice.spi.ProfileService
11:30:23,296 INFO  [JBossASKernel]     jndi:SecureProfileService/remote
11:30:23,296 INFO  [JBossASKernel]
jndi:SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService
11:30:23,296 INFO  [JBossASKernel] Added
bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3)
to KernelDeployment of: profileservice-secured.jar
11:30:23,296 INFO  [JBossASKernel] installing bean:
jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3
11:30:23,296 INFO  [JBossASKernel]   with dependencies:
11:30:23,296 INFO  [JBossASKernel]   and demands:
11:30:23,296 INFO  [JBossASKernel]     jboss.ejb:service=EJBTimerService
11:30:23,296 INFO  [JBossASKernel]   and supplies:
11:30:23,296 INFO  [JBossASKernel]
jndi:SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.DeploymentManager
11:30:23,296 INFO  [JBossASKernel]
Class:org.jboss.deployers.spi.management.deploy.DeploymentManager
11:30:23,296 INFO  [JBossASKernel]     jndi:SecureDeploymentManager/remote
11:30:23,296 INFO  [JBossASKernel] Added
bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3)
to KernelDeployment of: profileservice-secured.jar
11:30:23,296 INFO  [JBossASKernel] installing bean:
jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3
11:30:23,296 INFO  [JBossASKernel]   with dependencies:
11:30:23,296 INFO  [JBossASKernel]   and demands:
11:30:23,296 INFO  [JBossASKernel]     jboss.ejb:service=EJBTimerService
11:30:23,296 INFO  [JBossASKernel]   and supplies:
11:30:23,296 INFO  [JBossASKernel]
jndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView
11:30:23,296 INFO  [JBossASKernel]
Class:org.jboss.deployers.spi.management.ManagementView
11:30:23,296 INFO  [JBossASKernel]     jndi:SecureManagementView/remote
11:30:23,296 INFO  [JBossASKernel] Added
bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3)
to KernelDeployment of: profileservice-secured.jar
11:30:23,296 INFO  [EJB3EndpointDeployer] Deploy
AbstractBeanMetaData@f6de04{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3_endpoint
bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl
properties=[container] constructor=null autowireCandidate=true}
11:30:23,296 INFO  [EJB3EndpointDeployer] Deploy
AbstractBeanMetaData@146c38f{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3_endpoint
bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl
properties=[container] constructor=null autowireCandidate=true}
11:30:23,296 INFO  [EJB3EndpointDeployer] Deploy
AbstractBeanMetaData@f23791{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3_endpoint
bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl
properties=[container] constructor=null autowireCandidate=true}
11:30:23,375 INFO  [SessionSpecContainer] Starting
jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3
11:30:23,390 INFO  [EJBContainer] STARTED EJB:
org.jboss.profileservice.ejb.SecureDeploymentManager ejbName:
SecureDeploymentManager
11:30:23,421 INFO  [JndiSessionRegistrarBase] Binding the following Entries
in Global JNDI:

    SecureDeploymentManager/remote - EJB3.x Default Remote Business
Interface

SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.DeploymentManager
- EJB3.x Remote Business Interface

11:30:23,500 INFO  [SessionSpecContainer] Starting
jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3
11:30:23,500 INFO  [EJBContainer] STARTED EJB:
org.jboss.profileservice.ejb.SecureManagementView ejbName:
SecureManagementView
11:30:23,515 INFO  [JndiSessionRegistrarBase] Binding the following Entries
in Global JNDI:

    SecureManagementView/remote - EJB3.x Default Remote Business Interface

SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView
- EJB3.x Remote Business Interface

11:30:23,671 INFO  [SessionSpecContainer] Starting
jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3
11:30:23,671 INFO  [EJBContainer] STARTED EJB:
org.jboss.profileservice.ejb.SecureProfileServiceBean ejbName:
SecureProfileService
11:30:23,687 INFO  [JndiSessionRegistrarBase] Binding the following Entries
in Global JNDI:

    SecureProfileService/remote - EJB3.x Default Remote Business Interface
    SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService
- EJB3.x Remote Business Interface

11:30:23,812 INFO  [TomcatDeployment] deploy, ctxPath=/admin-console
11:30:23,921 INFO  [config] Initializing Mojarra (1.2_12-b01-FCS) for
context '/admin-console'
11:30:26,468 INFO  [TomcatDeployment] deploy, ctxPath=/
11:30:26,921 INFO  [TomcatDeployment] deploy, ctxPath=/apotheosis
11:30:27,734 ERROR [STDERR] log4j:WARN Continuable parsing error 19 and
column 39
11:30:27,734 ERROR [STDERR] log4j:WARN Attribute value "com.apotheosis.erc"
of type ID must be unique within the document.
11:30:27,812 INFO  [STDOUT] 2010-07-20 11:30:27,812 INFO
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.info:31 -
Parsing configuration file [struts-default.xml]
11:30:27,906 INFO  [STDOUT] 2010-07-20 11:30:27,906 INFO
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.info:31 -
Parsing configuration file [struts-plugin.xml]
11:30:27,921 INFO  [STDOUT] 2010-07-20 11:30:27,921 INFO
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.info:31 -
Unable to locate configuration files of the name struts.xml, skipping
11:30:27,921 INFO  [STDOUT] 2010-07-20 11:30:27,921 INFO
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.info:31 -
Parsing configuration file [struts.xml]
11:30:28,500 INFO  [TomcatDeployment] deploy, ctxPath=/jmx-console
11:30:28,687 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary
of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

DEPLOYMENTS IN ERROR:
  Deployment "vfsfile:/F:/jboss-5.1.0.GA/server/default/deploy/mysql-ds.xml"
is in error due to the following reason(s): org.xml.sax.SAXParseException:
The element type "local-tx-datasourcee" must be terminated by the matching
end-tag "</local-tx-datasourcee>".


------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

*  mysql-ds.xml*
<?xml version="1.0" encoding="UTF-8"?>

<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information
about local-tx-datasource -->
<!-- $Id: mysql-ds.xml 88948 2009-05-15 14:09:08Z jesper.pedersen $ -->
<!--  Datasource config for MySQL using 3.0.9 available from:
http://www.mysql.com/downloads/api-jdbc-stable.html
-->

<datasources>
   <local-tx-datasourcee>
        <!-- The jndi name of the DataSource, it is prefixed with java:/ -->
        <!-- Datasources are not available outside the virtual machine -->
        <jndi-name>jdbc/ercDS</jndi-name>
        <!-- For server mode db, allowing other processes to use mysql db
over tcp.-->
        <connection-url>jdbc:mysql://localhost:3306/</connection-url>
        <!-- The driver class -->
        <driver-class>com.mysql.jdbc.Driver</driver-class>
        <!-- The login and password -->
        <user-name/>root</user-name>
        <password>sandeep123</password>
        <!-- The minimum connections in a pool/sub-pool. Pools are lazily
constructed on first use -->
        <min-pool-size>1></min-pool-size>
        <!-- The maximum connections in a pool/sub-pool -->
        <max-pool-size>20></max-pool-size>
        <exception-sorter-class-name>
org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
</exception-sorter-class-name>
        <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml
(optional) -->
        <metadata>
           <type-mapping>mySQL</type-mapping>
        </metadata>
   </local-tx-datasource>
</datasources>

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

hibernate.cfg.xml


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

<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate
Configuration DTD 3.0//EN"

                                         "
http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<!-- Generated by MyEclipse *Hibernate* Tools.                   -->

<hibernate-configuration>

 <session-factory name=*"jdbc/ercDS"*>

  <property name=*"dialect"*>org.hibernate.dialect.MySQLDialect</property>

  <property name=*"connection.url"*>jdbc:mysql://*localhost*:3306/</property
>

  <property name=*"connection.username"*>root</property>

  <property name=*"connection.password"*>sandeep123</property>

  <property name=*"connection.pool_size"*>2</property>

  <property name=*"connection.driver_class"*>com.mysql.jdbc.Driver</property
>

  <property name=*"hibernate.dialect"*>*org.hibernate.dialect.MySQLDialect*
</property>

  <property name=*"hibernate.show_sql"*>true</property>

  <property name=*"hibernate.use_sql_comments"*>true</property>

  <property name=*"hibernate.format_sql"*>true</property>

  <property name=*"hibernate.default_schema"*>*erc*</property>

  <property name=*"hibernate.generate_statistics"*>true</property>

  <property name=*"hibernate.order_inserts"*>true</property>

  <property name=*"hibernate.order_updates"*>true</property>

  <property name=*"hibernate.use_identifier_rollback"*>true</property>

  <property name=*"hibernate.bytecode.use_reflection_optimizer"*>true</
property>

  <property name=*"hibernate.cache.use_query_cache"*>false</property>

  <property name=*"hibernate.query.startup_check"*>true</property>

  <property name=*"hibernate.current_session_context_class"*>*jta*</property
>

  <property name=*"hibernate.query.startup_check"*>true</property>



      <!-- JTA transaction properties (begin) -->

            <property name=*"transaction.factory_class"*>
org.hibernate.transaction.JTATransactionFactory</property>

            <property name=*"jta.UserTransaction"*>java:comp/UserTransaction
</property>

      <!-- JTA transaction properties (end) -->



      <!-- DataSource properties (begin) -->

            <property name=*"hibernate.connection.datasource"*>*jdbc*/ercDS
</property>

      <!-- DataSource properties (end) -->



   <!-- JBoss transaction manager lookup (begin) -->

      <property name=*"transaction.manager_lookup_class"*>
org.hibernate.transaction.JBossTransactionManagerLookup</property>

   <!-- JBoss transaction manager lookup (end) -->



  <!-- Mapping files -->

 </session-factory>

</hibernate-configuration>

Im using annotations I dont have any Mapping xml files

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

web.xml

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

<web-app id=*"WebApp_ID"* version=*"2.4"* xmlns=*"
http://java.sun.com/xml/ns/j2ee"* xmlns:xsi=*"
http://www.w3.org/2001/XMLSchema-instance"* xsi:schemaLocation=*"
http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"*>

<display-name>Message_Resource_Struts2_Ant</display-name>

  <welcome-file-list>

    <welcome-file>index.jsp</welcome-file>

  </welcome-file-list>





    <filter>

        <filter-name>struts2</filter-name>

        <filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</
filter-class>

    </filter>



     <filter-mapping>

        <filter-name>struts2</filter-name>

        <url-pattern>/*</url-pattern>

    </filter-mapping>



</web-app>


My struts simple web.xml.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Please go through and let me know if im missing some thing

Thanks
Sandeep Kotha

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message