[jboss-user] [Performance Tuning] - Re: DayTrader3

Steven ONeill do-not-reply at jboss.com
Sun Aug 26 00:36:51 EDT 2012


Steven ONeill [https://community.jboss.org/people/soneill] created the discussion

"Re: DayTrader3"

To view the discussion, visit: https://community.jboss.org/message/755978#755978

--------------------------------------------------------------
I haven't done java development in a while, I'm a little rusty, but so far I've been able to....

-Install Eclipse Indigo, Install JBoss Tools, Install an SVN utility, Install sublcipse, Unzip maven 3.0.3 locally

-Grab the repository to disk with svn, and I can follow the DT3 README to do an mvn clean install...which gives me an ear file.

Inspecting the persistence.xml, I've determined that I need two jdbc datasources, which I have created in JBoss, which is using standalone-full.xml.  I've also downloaded and imported a jpa .jar file, and done an associated add of the module with a module .xml in the correct place. 

The installation the dt3 .ear file errors out with log entries listed at the bottom of this post.   

Also, I was hoping to be able to import the DT3 code base directly into Eclipse, to be able to play around/recompile/see any warnings errors; however, i'm not sure of the correct steps or what kind of project to use.  Import as SVN and make it a JBoss EE Web App project archetype?  Some other archetype? No particular archetype since the DT3 code base is already a maven project?

Not asking for full-on hand-holding here, but can anyone offer some hints or suggestions?  Even if its just some links to get me googling in the right direction, it'd be much appreciated.


*************************************
log entries from deployment
*************************************
00:33:36,918 INFO  [org.jboss.as.repository] (HttpManagementService-threads - 1) JBAS014900: Content added at location C:\apps\wpdev\jbossEAP6\standalone\data\content\84\095aa2c57c4f5d5f3b28f20a120a0c1c73f863\content
00:33:41,579 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-10) JBAS015876: Starting deployment of "daytrader-ear-3.0.0.ear"
00:33:42,302 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-11) JBAS015876: Starting deployment of "web.war"
00:33:42,469 INFO  [org.jboss.as.jpa] (MSC service thread 1-12) JBAS011401: Read persistence.xml for daytrader
00:33:42,750 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-14) JNDI bindings for session bean named DirectSLSBBean in deployment unit subdeployment "web.war" of deployment "daytrader-ear-3.0.0.ear" are as follows:


          java:global/daytrader/web/DirectSLSBBean!org.apache.geronimo.daytrader.javaee6.web.ejb3.DirectSLSBRemote
          java:app/web/DirectSLSBBean!org.apache.geronimo.daytrader.javaee6.web.ejb3.DirectSLSBRemote
          java:module/DirectSLSBBean!org.apache.geronimo.daytrader.javaee6.web.ejb3.DirectSLSBRemote
          java:jboss/exported/daytrader/web/DirectSLSBBean!org.apache.geronimo.daytrader.javaee6.web.ejb3.DirectSLSBRemote
          java:global/daytrader/web/DirectSLSBBean!org.apache.geronimo.daytrader.javaee6.web.ejb3.DirectSLSBLocal
          java:app/web/DirectSLSBBean!org.apache.geronimo.daytrader.javaee6.web.ejb3.DirectSLSBLocal
          java:module/DirectSLSBBean!org.apache.geronimo.daytrader.javaee6.web.ejb3.DirectSLSBLocal


00:33:42,751 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-14) JNDI bindings for session bean named TradeSLSBBean in deployment unit subdeployment "web.war" of deployment "daytrader-ear-3.0.0.ear" are as follows:


          java:global/daytrader/web/TradeSLSBBean!org.apache.geronimo.daytrader.javaee6.web.ejb3.TradeSLSBRemote
          java:app/web/TradeSLSBBean!org.apache.geronimo.daytrader.javaee6.web.ejb3.TradeSLSBRemote
          java:module/TradeSLSBBean!org.apache.geronimo.daytrader.javaee6.web.ejb3.TradeSLSBRemote
          java:jboss/exported/daytrader/web/TradeSLSBBean!org.apache.geronimo.daytrader.javaee6.web.ejb3.TradeSLSBRemote
          java:global/daytrader/web/TradeSLSBBean!org.apache.geronimo.daytrader.javaee6.web.ejb3.TradeSLSBLocal
          java:app/web/TradeSLSBBean!org.apache.geronimo.daytrader.javaee6.web.ejb3.TradeSLSBLocal
          java:module/TradeSLSBBean!org.apache.geronimo.daytrader.javaee6.web.ejb3.TradeSLSBLocal


00:33:42,827 INFO  [org.jboss.as.osgi] (MSC service thread 1-1) JBAS011907: Register module: Module "deployment.daytrader-ear-3.0.0.ear:main" from Service Module Loader
00:33:42,828 INFO  [org.jboss.as.jpa] (MSC service thread 1-10) JBAS011402: Starting Persistence Unit Service 'daytrader-ear-3.0.0.ear#daytrader'
00:33:42,916 ERROR [stderr] (MSC service thread 1-10) 2  daytrader  TRACE  [MSC service thread 1-10] openjpa.Runtime - Setting the following properties from "?" into configuration: {openjpa.RuntimeUnenhancedClasses=supported, javax.persistence.provider=org.apache.openjpa.persistence.PersistenceProviderImpl, javax.persistence.sharedCache.mode=UNSPECIFIED, openjpa.Log=DefaultLevel=TRACE, Tool=INFO, openjpa.jdbc.DBDictionary=derby, PersistenceVersion=1.0, openjpa.Id=daytrader, openjpa.ConnectionFactoryMode=managed, openjpa.ConnectionFactory=org.jboss.jca.adapters.jdbc.WrapperDataSource at 1a51852, openjpa.jdbc.SynchronizeMappings=buildSchema(ForeignKeys=true), javax.persistence.validation.mode=AUTO, javax.persistence.validation.factory=org.jboss.as.jpa.validator.SerializableValidatorFactory at 1b0a981, jboss.as.jpa.providerModule=org.apache.openjpa, openjpa.TransactionMode=managed, openjpa.BrokerImpl=non-finalizing, openjpa.MetaDataFactory=jpa(Types=org.apache.geronimo.daytrader.javaee6.entities.AccountDataBean;org.apache.geronimo.daytrader.javaee6.entities.AccountProfileDataBean;org.apache.geronimo.daytrader.javaee6.entities.HoldingDataBean;org.apache.geronimo.daytrader.javaee6.entities.OrderDataBean;org.apache.geronimo.daytrader.javaee6.entities.QuoteDataBean), openjpa.Sequence=table(Table=OPENJPASEQ, Increment=100), openjpa.ClassResolver=org.apache.openjpa.persistence.PersistenceUnitInfoImpl$ClassResolverImpl at 10f8407, openjpa.ConnectionFactory2=org.jboss.jca.adapters.jdbc.WrapperDataSource at 1dfeace, openjpa.DynamicEnhancementAgent=false}


00:33:42,919 ERROR [stderr] (MSC service thread 1-10) 6  daytrader  TRACE  [MSC service thread 1-10] openjpa.Runtime - No cache marshaller found for id org.apache.openjpa.conf.MetaDataCacheMaintenance.


00:33:42,956 ERROR [stderr] (MSC service thread 1-10) 43  daytrader  TRACE  [MSC service thread 1-10] openjpa.MetaData - Scanning resource "META-INF/orm.xml" for persistent types.


00:33:42,957 ERROR [stderr] (MSC service thread 1-10) 44  daytrader  TRACE  [MSC service thread 1-10] openjpa.MetaData - The persistent unit root url is "null"


00:33:42,957 ERROR [stderr] (MSC service thread 1-10) 44  daytrader  TRACE  [MSC service thread 1-10] openjpa.MetaData - parsePersistentTypeNames() found [org.apache.geronimo.daytrader.javaee6.entities.AccountDataBean, org.apache.geronimo.daytrader.javaee6.entities.AccountProfileDataBean, org.apache.geronimo.daytrader.javaee6.entities.OrderDataBean, org.apache.geronimo.daytrader.javaee6.entities.QuoteDataBean, org.apache.geronimo.daytrader.javaee6.entities.HoldingDataBean].


00:33:42,958 ERROR [stderr] (MSC service thread 1-10) 45  daytrader  TRACE  [MSC service thread 1-10] openjpa.MetaData - Found 5 classes with metadata in 3 milliseconds.


00:33:42,970 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-16) MSC000001: Failed to start service jboss.deployment.subunit."daytrader-ear-3.0.0.ear"."web.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."daytrader-ear-3.0.0.ear"."web.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "web.war" of deployment "daytrader-ear-3.0.0.ear"
          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123) [jboss-as-server-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_34]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_34]
          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_34]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS014544: No EJB found with interface of type 'org.apache.geronimo.daytrader.javaee6.entities.QuoteDataBean' for binding org.apache.geronimo.daytrader.javaee6.web.prims.ejb3.PingServlet2Entity/quote
          at org.jboss.as.ejb3.deployment.processors.EjbInjectionSource.getResourceValue(EjbInjectionSource.java:88)
          at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.addJndiBinding(ModuleJndiBindingProcessor.java:227)
          at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor$1.handle(ModuleJndiBindingProcessor.java:194)
          at org.jboss.as.ee.component.ClassDescriptionTraversal.run(ClassDescriptionTraversal.java:54)
          at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.processClassConfigurations(ModuleJndiBindingProcessor.java:162)
          at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.deploy(ModuleJndiBindingProcessor.java:155)
          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116) [jboss-as-server-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
          ... 5 more


00:33:42,982 ERROR [stderr] (MSC service thread 1-10) 0  daytrader  TRACE  [MSC service thread 1-10] openjpa.Runtime - Setting the following properties from "?" into configuration: {openjpa.BrokerFactory=jdbc, openjpa.RuntimeUnenhancedClasses=supported, javax.persistence.provider=org.apache.openjpa.persistence.PersistenceProviderImpl, javax.persistence.sharedCache.mode=UNSPECIFIED, openjpa.Log=DefaultLevel=TRACE, Tool=INFO, openjpa.jdbc.DBDictionary=derby, PersistenceVersion=1.0, openjpa.Id=daytrader, openjpa.ConnectionFactoryMode=managed, openjpa.ConnectionFactory=org.jboss.jca.adapters.jdbc.WrapperDataSource at 1a51852, openjpa.jdbc.SynchronizeMappings=buildSchema(ForeignKeys=true), javax.persistence.validation.mode=AUTO, javax.persistence.validation.factory=org.jboss.as.jpa.validator.SerializableValidatorFactory at 1b0a981, jboss.as.jpa.providerModule=org.apache.openjpa, openjpa.TransactionMode=managed, openjpa.BrokerImpl=non-finalizing, openjpa.MetaDataFactory=jpa(Types=org.apache.geronimo.daytrader.javaee6.entities.AccountDataBean;org.apache.geronimo.daytrader.javaee6.entities.AccountProfileDataBean;org.apache.geronimo.daytrader.javaee6.entities.HoldingDataBean;org.apache.geronimo.daytrader.javaee6.entities.OrderDataBean;org.apache.geronimo.daytrader.javaee6.entities.QuoteDataBean), openjpa.Sequence=table(Table=OPENJPASEQ, Increment=100), openjpa.ClassResolver=org.apache.openjpa.persistence.PersistenceUnitInfoImpl$ClassResolverImpl at 10f8407, openjpa.ConnectionFactory2=org.jboss.jca.adapters.jdbc.WrapperDataSource at 1dfeace, openjpa.DynamicEnhancementAgent=false}


00:33:42,994 ERROR [stderr] (MSC service thread 1-10) 12  daytrader  TRACE  [MSC service thread 1-10] openjpa.Runtime - Not creating a ValidatorImpl because this app is using the JPA 1.0 Spec


00:33:43,004 ERROR [stderr] (MSC service thread 1-10) 22  daytrader  TRACE  [MSC service thread 1-10] openjpa.Runtime - org.apache.openjpa.persistence.PersistenceProviderImpl at afaa85 creating container org.apache.openjpa.persistence.EntityManagerFactoryImpl at e42811 for PU daytrader.


00:33:43,206 INFO  [org.jboss.as.server] (HttpManagementService-threads - 1) JBAS015870: Deploy of deployment "daytrader-ear-3.0.0.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"daytrader-ear-3.0.0.ear\".\"web.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"daytrader-ear-3.0.0.ear\".\"web.war\".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment \"web.war\" of deployment \"daytrader-ear-3.0.0.ear\"
    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS014544: No EJB found with interface of type 'org.apache.geronimo.daytrader.javaee6.entities.QuoteDataBean' for binding org.apache.geronimo.daytrader.javaee6.web.prims.ejb3.PingServlet2Entity/quote"},"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"daytrader-ear-3.0.0.ear\".CLEANUP Missing[JBAS014861: <one or more transitive dependencies>]"]}
00:33:43,209 INFO  [org.jboss.as.osgi] (MSC service thread 1-12) JBAS011908: Unregister module: Module "deployment.daytrader-ear-3.0.0.ear:main" from Service Module Loader
00:33:43,210 INFO  [org.jboss.as.jpa] (MSC service thread 1-11) JBAS011403: Stopping Persistence Unit Service 'daytrader-ear-3.0.0.ear#daytrader'
00:33:43,210 ERROR [stderr] (MSC service thread 1-11) 228  daytrader  TRACE  [MSC service thread 1-11] openjpa.Runtime - org.apache.openjpa.persistence.EntityManagerFactoryImpl at e42811.close() invoked.


00:33:43,298 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-14) JBAS015877: Stopped deployment web.war in 91ms
00:33:43,303 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment daytrader-ear-3.0.0.ear in 96ms
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/755978#755978]

Start a new discussion in Performance Tuning at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2078]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120826/5a381bb4/attachment-0001.html 


More information about the jboss-user mailing list