[EJB/JBoss] - Error when deploying day trader to jboss - Caused by: org.jb
by openevol
Greetings,
i will like to ask if anybody have deploy day trader into JBoss.
Currently i deploying day trader into jboss and i meeting some problems and i hope to get some advice from u veterans.
My day trader can be down load at www.openevol.com/chongming/daytrader-ear-2.0-SNAPSHOT.ear
These are the errors i encounter
| ===============================================================================
|
| 18:03:24,553 INFO [Server] Starting JBoss (MX MicroKernel)...
| 18:03:24,553 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
| 18:03:24,553 INFO [Server] Home Dir: D:\Program Files\Apache\jboss-4.0.5.GA
| 18:03:24,563 INFO [Server] Home URL: file:/D:/Program Files/Apache/jboss-4.0.5.GA/
| 18:03:24,563 INFO [Server] Patch URL: null
| 18:03:24,563 INFO [Server] Server Name: default
| 18:03:24,563 INFO [Server] Server Home Dir: D:\Program Files\Apache\jboss-4.0.5.GA\server\default
| 18:03:24,563 INFO [Server] Server Home URL: file:/D:/Program Files/Apache/jboss-4.0.5.GA/server/default/
| 18:03:24,563 INFO [Server] Server Log Dir: D:\Program Files\Apache\jboss-4.0.5.GA\server\default\log
| 18:03:24,563 INFO [Server] Server Temp Dir: D:\Program Files\Apache\jboss-4.0.5.GA\server\default\tmp
| 18:03:24,563 INFO [Server] Root Deployment Filename: jboss-service.xml
| 18:03:25,564 INFO [ServerInfo] Java version: 1.5.0_15,Sun Microsystems Inc.
| 18:03:25,564 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_15-b04,Sun Microsystems Inc.
| 18:03:25,564 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
| 18:03:27,717 INFO [Server] Core system initialized
| 18:03:34,317 INFO [WebService] Using RMI server codebase: http://Zodiac:8083/
| 18:03:34,367 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
| 18:03:49,028 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
| 18:03:51,812 INFO [Embedded] Catalina naming disabled
| 18:03:51,912 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default ru
| e set.
| 18:03:51,912 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default ru
| e set.
| 18:03:53,023 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
| 18:03:53,023 INFO [Catalina] Initialization processed in 1111 ms
| 18:03:53,023 INFO [StandardService] Starting service jboss.web
| 18:03:53,023 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.20
| 18:03:53,084 INFO [StandardHost] XML validation disabled
| 18:03:53,154 INFO [Catalina] Server startup in 131 ms
| 18:03:53,564 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
| 18:03:54,175 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
| 18:03:55,397 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
| 18:03:56,679 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp3291jbossws-context-exp.war/
| 18:03:57,991 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-h
| tpil.war/
| 18:04:01,436 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-cons
| le.war/
| 18:04:03,589 INFO [MailService] Mail Service bound to java:/Mail
| 18:04:04,200 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc
| rar
| 18:04:04,330 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.ra
|
| 18:04:04,390 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.ra
|
| 18:04:04,450 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
| 18:04:04,550 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
| 18:04:04,690 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
| 18:04:06,613 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=Default
| S' to JNDI name 'java:DefaultDS'
| 18:04:07,935 INFO [jms/TradeBrokerQueue] Bound to JNDI name: TradeBrokerQueue
| 18:04:07,945 INFO [jms/TradeStreamerTopic] Bound to JNDI name: TradeStreamerTopic
| 18:04:07,955 INFO [A] Bound to JNDI name: queue/A
| 18:04:07,965 INFO [B] Bound to JNDI name: queue/B
| 18:04:07,965 INFO [C] Bound to JNDI name: queue/C
| 18:04:07,965 INFO [D] Bound to JNDI name: queue/D
| 18:04:07,965 INFO [ex] Bound to JNDI name: queue/ex
| 18:04:08,005 INFO [testTopic] Bound to JNDI name: topic/testTopic
| 18:04:08,015 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
| 18:04:08,015 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
| 18:04:08,025 INFO [testQueue] Bound to JNDI name: queue/testQueue
| 18:04:08,155 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
| 18:04:08,265 INFO [DLQ] Bound to JNDI name: queue/DLQ
| 18:04:08,646 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBindin
| ,name=JmsXA' to JNDI name 'java:JmsXA'
| 18:04:08,876 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=jdbc/Tr
| deDataSource' to JNDI name 'jdbc/TradeDataSource'
| 18:04:09,006 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
| 18:04:09,597 INFO [EARDeployer] Init J2EE application: file:/D:/Program Files/Apache/jboss-4.0.5.GA/server/default/dep
| oy/daytrader-ear-2.0-SNAPSHOT.ear
| 18:04:09,928 WARN [MainDeployer] Found non-jar deployer for wsappclient.jar: org.jboss.deployment.ClientDeployer@1a6b1
| f
| 18:04:11,150 WARN [NestedThrowable] Duplicate throwable nesting of same base type: class org.jboss.deployment.Deployme
| tException is assignable from: class org.jboss.deployment.DeploymentException
| 18:04:11,160 ERROR [MainDeployer] Could not initialise deployment: file:/D:/Program Files/Apache/jboss-4.0.5.GA/server/
| efault/deploy/daytrader-ear-2.0-SNAPSHOT.ear
| org.jboss.deployment.DeploymentException: Failed to parse WEB-INF/web.xml; - nested throwable: (org.jboss.deployment.De
| loymentException: expected one home tag)
| at org.jboss.web.AbstractWebContainer.parseMetaData(AbstractWebContainer.java:755)
| at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:356)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.deployment.SubDeployerInterceptorSupport.init(SubDeployerInterceptorSupport.java:119)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.init(SubDeployerInterceptorSupport.java
| 172)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:87)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy38.init(Unknown Source)
| at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)
| at org.jboss.deployment.MainDeployer.init(MainDeployer.java:895)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy8.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:2
| 3)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:490)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: org.jboss.deployment.DeploymentException: expected one home tag
| at org.jboss.metadata.MetaData.getUniqueChild(MetaData.java:113)
| at org.jboss.metadata.EjbRefMetaData.importEjbJarXml(EjbRefMetaData.java:85)
| at org.jboss.metadata.WebMetaData.importWebXml(WebMetaData.java:926)
| at org.jboss.metadata.WebMetaData.importXml(WebMetaData.java:738)
| at org.jboss.web.AbstractWebContainer.parseMetaData(AbstractWebContainer.java:750)
| ... 88 more
| 18:04:11,170 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
|
| --- Incompletely deployed packages ---
| org.jboss.deployment.DeploymentInfo@e797dc73 { url=file:/D:/Program Files/Apache/jboss-4.0.5.GA/server/default/deploy/d
| ytrader-ear-2.0-SNAPSHOT.ear }
| deployer: org.jboss.deployment.EARDeployer@15b8520
| status: null
| state: FAILED
| watch: file:/D:/Program Files/Apache/jboss-4.0.5.GA/server/default/deploy/daytrader-ear-2.0-SNAPSHOT.ear
| altDD: null
| lastDeployed: 1209863051160
| lastModified: 1209863049587
| mbeans:
|
|
| 18:04:11,360 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
| 18:04:11,560 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
| 18:04:11,590 INFO [JkMain] Jk running ID=0 time=0/90 config=null
| 18:04:11,600 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 4
| s:37ms
| 18:19:55,748 INFO [EARDeployer] Undeploying J2EE application, destroy step: file:/D:/Program Files/Apache/jboss-4.0.5.
| A/server/default/deploy/daytrader-ear-2.0-SNAPSHOT.ear
| 18:19:55,748 INFO [EARDeployer] Undeployed J2EE application: file:/D:/Program Files/Apache/jboss-4.0.5.GA/server/defau
| t/deploy/daytrader-ear-2.0-SNAPSHOT.ear
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4148639#4148639
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4148639
16 years, 4 months
[Javassist user questions] - how to annotate a field
by Ugn
Firstly hello everybody!
I am very new to javassist and am trying to write a class / function, which implements an interface which is passed to it.
So its something like
MyInterfac p = ImplFactory.implement(MyInterface.class);
What i need is to annotate the field of the implemented class with annotations, which i have read from the interface.
Bsp.:
Interface:
public interface PersonTestInterface {
public static final String foaf = "http://xmlns.com/foaf/0.1/";
@rdf(foaf+"surname") <-----take this
public Collection getSurnames();
}
should be implemented as:
public class PersonTestInterfaceImpl
implements PersonTestInterface
{
@rdf(foaf+"surname") <---- put it here
private Collection surnames;
public Collection getSurnames()
{
return surnames;
}
}
Could someone help me and tell how to create the annotations on the fields? The easiest way would be somethink to "copy" the annotations.
Eugen
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4148638#4148638
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4148638
16 years, 4 months
[JBoss Cache: Core Edition] - Re: Should be able to use ClusteredCacheLoader with CacheMod
by lovelyliatroim
anonymous wrote :
| This depends on which eviction policy you use. If you use the expiration policy, the expiry time is encoded as data on a node which means it will replicate to B and get evicted at the appropriate time.
|
Thats good to know, i know you can set a max number of nodes on this but can you set a minimum? I have the scenario where if it goes past a certain time i.e its stale then ask data source for data however if data source is not available then use stale data. So does the expiration policy keep a minimum amount of stale data or will it purge all data that has gone past the expiration time?
Now to get back to the main point, why it doesnt make sense to run CCL in LOCALMODE. Just referring back to the example given and the comment
anonymous wrote :
| Now if the cluster is not replicated, nodes A, B and C would have different state, potentially using the same Fqns. And using a CCL here could result in meaningless state retrieval.
|
That really a case if you cared about the state of data between the nodes. For my application, what defines whether to use the value, is the time duration. So I dont care what the value/state is as long as its not older than X mins old. If is older than Xmins old then a new value is retrieved.
I do see that it breaks the concept of what a cache loader is if you were allowed to use CCL in LOCAL mode but i do think there is a need to have something like CCL in local mode.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4148610#4148610
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4148610
16 years, 4 months