[Beginners Corner] - Problem looking with CastClassException on JBossConnectionFa
by Karen.Kramer
Using JBoss EAP 3.4.0 with JBossMessaging 1.4.0.SP3
We are migrating from JBoss 4.2.2 GA with JBossMQ
I was able to download the example client code for a basic send/receive with a queue....the client runs perfectly:
Here is remote client code which I could run and results up to getting the Session object :
public void setupPTP()
throws JMSException,
NamingException
{
Hashtable env = new Hashtable();
env.put( Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory" );
env.put( Context.PROVIDER_URL, "localhost:1099" );
env.put( Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces" );
InitialContext iniCtx = new InitialContext(env);
System.out.println("Here 1");
Object tmp = iniCtx.lookup("ConnectionFactory");
System.out.println("Got the tmp object: tmp is " + tmp.toString());
QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;
System.out.println("Got the QueueConnectionFactory: + qcf is " + qcf.toString());
conn = qcf.createQueueConnection();
System.out.println("Got the QueueConnection: conn is " + conn.toString());
que = (Queue) iniCtx.lookup("queue/EventSubmitServiceCommandQueue");
System.out.println("Got the Que: que is " + que.toString());
session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
System.out.println("Got the Session: session is " + session.toString());
conn.start();
}
RESULTS: THIS IS GOOD!
Got the tmp object: tmp is JBossConnectionFactory->ConnectionFactoryDelegate[jboss.messaging.connectionfactory:service=ConnectionFactory, SID=0]
Got the QueueConnectionFactory: + qcf is JBossConnectionFactory->ConnectionFactoryDelegate[jboss.messaging.connectionfactory:service=ConnectionFactory, SID=0]
Got the QueueConnection: conn is JBossConnection->ConnectionDelegate[13994297, ID=36-6udisckf-1-1a66ockf-7c3hoj-l1jvs4, SID=0]
Got the Que: que is JBossQueue[EventSubmitServiceCommandQueue]
Got the Session: session is JBossSession->SessionDelegate[18012736, ID=46-zxdisckf-1-1a66ockf-7c3hoj-l1jvs4]
PROBLEM
OK, so now I paste the same exact code into a java class inside of our application and I am getting a ClassCastException in the line:
QueueConnectionFactory qcf = ( QueueConnectionFactory ) tmp;
tmp is an instance of JBossConnectionFactory which (when I checked the source noticed) implements QueueConnectionFactory...so why won't it cast?
Does this have to do with the JNDI tree? Here is mine(part)
java: Namespace
+- ClusteredXAConnectionFactory (class: org.jboss.jms.client.JBossConnectionFactory)
+- jaas (class: javax.naming.Context)
| +- HsqlDbRealm (class: org.jboss.security.plugins.SecurityDomainContext)
| +- messaging (class: org.jboss.security.plugins.SecurityDomainContext)
| +- jmx-console (class: org.jboss.security.plugins.SecurityDomainContext)
| +- JmsXARealm (class: org.jboss.security.plugins.SecurityDomainContext)
+- TransactionPropagationContextImporter (class: com.arjuna.ats.internal.jbossatx.jta.PropagationContextManager)
+- JmsXA (class: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl)
+- comp.ejb3 (class: javax.naming.Context)
| NonContext: null
+- DefaultDS (class: org.jboss.resource.adapter.jdbc.WrapperDataSource)
+- StdJMSPool (class: org.jboss.jms.asf.StdServerSessionPoolFactory)
+- TransactionManager (class: com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate)
+- ClusteredConnectionFactory (class: org.jboss.jms.client.JBossConnectionFactory)
+- TransactionPropagationContextExporter (class: com.arjuna.ats.internal.jbossatx.jta.PropagationContextManager)
+- ConnectionFactory (class: org.jboss.jms.client.JBossConnectionFactory)
+- DefaultJMSProvider (class: org.jboss.jms.jndi.JNDIProviderAdapter)
+- XAConnectionFactory (class: org.jboss.jms.client.JBossConnectionFactory)
+- jdbcISAC (class: org.jboss.resource.adapter.jdbc.WrapperDataSource)
+- Mail (class: javax.mail.Session)
+- jdbcScanOptics (class: org.jboss.resource.adapter.jdbc.WrapperDataSource)
+- comp.original (class: javax.namingMain.Context)
+- timedCacheFactory (class: javax.naming.Context)
Failed to lookup: timedCacheFactory, errmsg=org.jboss.util.TimedCachePolicy
+- SecurityProxyFactory (class: org.jboss.security.SubjectSecurityProxyFactory)
+- comp (class: javax.naming.Context)
Global JNDI Namespace
+- CustomerNumberAdministration (proxy: $Proxy141 implements interface com.cbc.isac.ejb20.customernumber.CustomerNumberAdministrationHome,interface javax.ejb.Handle)
+- CacheLoad (proxy: $Proxy143 implements interface com.cbc.isac.ejb20.cacheload.TpCodesHome,interface javax.ejb.Handle)
+- ClusteredXAConnectionFactory (class: org.jboss.jms.client.JBossConnectionFactory)
+- XAConnectionFactory (class: org.jboss.jms.client.JBossConnectionFactory)
+- queue (class: org.jnp.interfaces.NamingContext)
| +- ExpiryQueue (class: org.jboss.jms.destination.JBossQueue)
| +- EventSubmitServiceCommandQueue (class: org.jboss.jms.destination.JBossQueue)
| +- EventCompleteServiceCommandQueue (class: org.jboss.jms.destination.JBossQueue)
| +- EventSubmitErrorQueue (class: org.jboss.jms.destination.JBossQueue)
| +- ScanOpticsServiceCommandQueue (class: org.jboss.jms.destination.JBossQueue)
| +- testDistributedQueue (class: org.jboss.jms.destination.JBossQueue)
| +- QueueWithOwnDLQAndExpiryQueue (class: org.jboss.jms.destination.JBossQueue)
| +- EventSubmitServiceCommanQueue (class: org.jboss.jms.destination.JBossQueue)
| +- DisputeStatusErrorQueue (class: org.jboss.jms.destination.JBossQueue)
| +- ScanOpticsSerivceCommandQueue (class: org.jboss.jms.destination.JBossQueue)
| +- EventCompleteErrorQueue (class: org.jboss.jms.destination.JBossQueue)
| +- testQueue (class: org.jboss.jms.destination.JBossQueue)
| +- D (class: org.jboss.jms.destination.JBossQueue)
| +- PrivateDLQ (class: org.jboss.jms.destination.JBossQueue)
| +- C (class: org.jboss.jms.destination.JBossQueue)
| +- B (class: org.jboss.jms.destination.JBossQueue)
| +- A (class: org.jboss.jms.destination.JBossQueue)
| +- PrivateExpiryQueue (class: org.jboss.jms.destination.JBossQueue)
| +- DisputeStatusMessageQueue (class: org.jboss.jms.destination.JBossQueue)
| +- ScanOpticsErrorQueue (class: org.jboss.jms.destination.JBossQueue)
| +- DLQ (class: org.jboss.jms.destination.JBossQueue)
| +- QueueWithOwnRedeliveryDelay (class: org.jboss.jms.destination.JBossQueue)
| +- ex (class: org.jboss.jms.destination.JBossQueue)
+- EventComplete (proxy: $Proxy115 implements interface com.cbc.isac.ejb20.eventcomplete.EventCompleteHome,interface javax.ejb.Handle)
+- MessageManagement (proxy: $Proxy129 implements interface com.cbc.isac.ejb20.messagemanagement.MessageManagementHome,interface javax.ejb.Handle)
+- TransactionSynchronizationRegistry (class: com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionSynchronizationRegistryImple)
+- UUIDKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory)
+- PaymentCalculator (proxy: $Proxy117 implements interface com.cbc.isac.ejb20.payment.PaymentCalculatorHome,interface javax.ejb.Handle)
+- ContactMaintenance (proxy: $Proxy111 implements interface com.cbc.isac.ejb20.contactinfo.ContactMaintenanceHome,interface javax.ejb.Handle)
+- HiLoKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory)
+- Security (proxy: $Proxy105 implements interface com.cbc.isac.ejb20.security.SecurityHome,interface javax.ejb.Handle)
+- ScanOptics (proxy: $Proxy89 implements interface com.cbc.isac.ejb20.scanoptics.ScanOpticsHome,interface javax.ejb.Handle)
+- UserTransactionSessionFactory (proxy: $Proxy14 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory)
+- DocumentMaintenance (proxy: $Proxy91 implements interface com.cbc.isac.ejb20.document.DocumentMaintenanceHome,interface javax.ejb.Handle)
+- FeeMaintenance (proxy: $Proxy107 implements interface com.cbc.isac.ejb20.feemaint.FeeMaintenanceHome,interface javax.ejb.Handle)
+- DocTemplateMaintenance (proxy: $Proxy139 implements interface com.cbc.isac.ejb20.doctemplate.DocTemplateMaintenanceHome,interface javax.ejb.Handle)
+- Inquiry (proxy: $Proxy99 implements interface com.cbc.isac.ejb20.inquiry.InquiryHome,interface javax.ejb.Handle)
+- console (class: org.jnp.interfaces.NamingContext)
| +- PluginManager (proxy: $Proxy49 implements interface org.jboss.console.manager.PluginManagerMBean)
+- EventSubmit (proxy: $Proxy119 implements interface com.cbc.isac.ejb20.eventsubmit.EventSubmitHome,interface javax.ejb.Handle)
+- PaymentUtil (proxy: $Proxy101 implements interface com.cbc.isac.ejb20.payment.PaymentUtilHome,interface javax.ejb.Handle)
+- topic (class: org.jnp.interfaces.NamingContext)
| +- testDurableTopic (class: org.jboss.jms.destination.JBossTopic)
| +- TopicWithOwnRedeliveryDelay (class: org.jboss.jms.destination.JBossTopic)
| +- testTopic (class: org.jboss.jms.destination.JBossTopic)
| +- testDistributedTopic (class: org.jboss.jms.destination.JBossTopic)
| +- TopicWithOwnDLQAndExpiryQueue (class: org.jboss.jms.destination.JBossTopic)
| +- securedTopic (class: org.jboss.jms.destination.JBossTopic)
+- StatusListsSearch (proxy: $Proxy95 implements interface com.cbc.isac.ejb20.statuslists.StatusListsSearchHome,interface javax.ejb.Handle)
+- XmlToCpuConversion (proxy: $Proxy127 implements interface com.cbc.isac.ejb20.xmltocpu.XmlToCpuConversionHome,interface javax.ejb.Handle)
+- EventAddressSearch (proxy: $Proxy135 implements interface com.cbc.isac.ejb20.search.EventAddressSearchHome,interface javax.ejb.Handle)
+- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
+- AdverseActionMaintenance (proxy: $Proxy93 implements interface com.cbc.isac.ejb20.adverse.AdverseActionMaintenanceHome,interface javax.ejb.Handle)
+- EventCompliance (proxy: $Proxy125 implements interface com.cbc.isac.ejb20.compliance.EventComplianceHome,interface javax.ejb.Handle)
+- ReportSubmissionManager (proxy: $Proxy131 implements interface com.cbc.isac.ejb20.eventcomplete.ReportSubmissionManagerHome,interface javax.ejb.Handle)
+- DisputeMaintenance (proxy: $Proxy109 implements interface com.cbc.isac.ejb20.dispute.DisputeMaintenanceHome,interface javax.ejb.Handle)
+- ClusteredConnectionFactory (class: org.jboss.jms.client.JBossConnectionFactory)
+- ACL (proxy: $Proxy121 implements interface com.cbc.isac.ejb20.acl.ACLHome,interface javax.ejb.Handle)
+- InsertMaintenance (proxy: $Proxy123 implements interface com.cbc.isac.ejb20.insert.InsertMaintenanceHome,interface javax.ejb.Handle)
+- Iccon (proxy: $Proxy103 implements interface com.cbc.isac.ejb20.iccon.IcconHome,interface javax.ejb.Handle)
+- ACDV (proxy: $Proxy133 implements interface com.cbc.isac.ejb20.acdv.AcdvHome,interface javax.ejb.Handle)
+- EventMaintenance (proxy: $Proxy137 implements interface com.cbc.isac.ejb20.event.EventMaintenanceHome,interface javax.ejb.Handle)
+- jmx (class: org.jnp.interfaces.NamingContext)
| +- invoker (class: org.jnp.interfaces.NamingContext)
| | +- RMIAdaptor (proxy: $Proxy48 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt)
| +- rmi (class: org.jnp.interfaces.NamingContext)
| | +- RMIAdaptor[link -> jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef)
+- ConnectionFactory (class: org.jboss.jms.client.JBossConnectionFactory)
+- HistoryMaintenance (proxy: $Proxy113 implements interface com.cbc.isac.ejb20.history.HistoryMaintenanceHome,interface javax.ejb.Handle)
+- UserAdministration (proxy: $Proxy97 implements interface com.cbc.isac.ejb20.useradmin.UserAdministrationHome,interface javax.ejb.Handle)
I've searched on the net and it doesn't appear to be a problem for anyone else, so I figured I was doing something ignorant...any help?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172704#4172704
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172704
17 years, 8 months
[Installation, Configuration & DEPLOYMENT] - Re: Classloading issue (loading class from another jar)
by patwary_shiva
we have a custom class which overides convert method
Instead of calling customclass.convert it is calling org.apache.commons.beanutils.ConvertUtils.convert which is in the same jar
below is stcak trace.
java.lang.IllegalArgumentException: array element type mismatch
at java.lang.reflect.Array.set(Native Method)
at org.apache.commons.beanutils.ConvertUtils.convert(ConvertUtils.java:415)
at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:983)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.organization.test.servlet.CompressionFilter.doFilter(CompressionFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.organization.test.servlet.CheckUriAccessFilter.doFilter(CheckUriAccessFilter.java:115)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.organization.test.servlet.InitializationFilter.doFilter(InitializationFilter.java:144)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.organization.test.servlet.StaticFileCacheControlFilter.doFilter(StaticFileCacheControlFilter.java:51)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172701#4172701
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172701
17 years, 8 months
[JBossWS] - ant tests errors: NoClassDefFoundError: org/jboss/wsf/test/G
by bkyle
Hi,
I'm new to web services on JBoss. I'm trying to debug my installation of JBossWS native 3.0.2 on JBossAS 4.2.1
When I try to run the tests that come in the jbossws-native-dist\tests directory, I get this error:
NoClassDefFoundError: org/jboss/wsf/test/GenericSOAPHandler
I put the console output below from both the client side (where the ant tests are running) and from the server side (where JBossAS is running).
Any ideas what the problem is? I would really appreciate the help.
-Brent.
****************** CLIENT ANT TESTS SIDE *****************
tests-run-internal:
[junit] WARNING: multiple versions of ant detected in path for junit
[junit] jar:file:/C:/java/apache-ant-1.7.1/lib/ant.jar!/org/apache/tools/ant/Project.class
[junit] and jar:file:/C:/java/jbossws-native-dist/deploy/lib/ant.jar!/org/apache/tools/ant/Project.class
[junit] Running org.jboss.test.ws.console.ConsoleAccessTestCase
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.062 sec
[junit] Running org.jboss.test.ws.jaxws.samples.advanced.retail.RetailSampleTestCase
[junit] javax.management.MBeanException
[junit] at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180)
[junit] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
[junit] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
[junit] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
[junit] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:14
2)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
[junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
[junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:585)
[junit] at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:585)
[junit] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
[junit] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
[junit] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
[junit] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:14
2)
[junit] at org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
[junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
[junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
[junit] at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:585)
[junit] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
[junit] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
[junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
[junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
[junit] at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:818)
[junit] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:419)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:585)
[junit] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
[junit] at sun.rmi.transport.Transport$1.run(Transport.java:153)
[junit] at java.security.AccessController.doPrivileged(Native Method)
[junit] at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
[junit] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
[junit] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
[junit] at java.lang.Thread.run(Thread.java:595)
[junit] Caused by: org.jboss.deployment.DeploymentException: Could not create deployment: file:/C:/java/jbossws-nati
ve-dist/output/test-libs/jaxws-samples-retail.jar; - nested throwable: (java.lang.NoClassDefFoundError: org/jboss/wsf/te
st/GenericSOAPHandler)
[junit] at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
[junit] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:991)
[junit] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
[junit] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
[junit] at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:585)
[junit] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
[junit] ... 48 more
[junit] Caused by: java.lang.NoClassDefFoundError: org/jboss/wsf/test/GenericSOAPHandler
[junit] at java.lang.ClassLoader.defineClass1(Native Method)
[junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
[junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
[junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
[junit] at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
[junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
[junit] at java.security.AccessController.doPrivileged(Native Method)
[junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[junit] at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:675)
[junit] at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:655)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[junit] at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:193)
[junit] at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131)
[junit] at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399)
[junit] at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:520)
[junit] at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[junit] at org.jboss.ws.metadata.umdm.HandlerMetaData.getHandlerClass(HandlerMetaData.java:115)
[junit] at org.jboss.ws.metadata.umdm.HandlerMetaDataJAXWS.toString(HandlerMetaDataJAXWS.java:86)
[junit] at java.lang.String.valueOf(String.java:2615)
[junit] at java.lang.StringBuilder.append(StringBuilder.java:116)
[junit] at org.jboss.ws.metadata.umdm.ServerEndpointMetaData.toString(ServerEndpointMetaData.java:214)
[junit] at java.lang.String.valueOf(String.java:2615)
[junit] at java.lang.StringBuilder.append(StringBuilder.java:116)
[junit] at org.jboss.ws.metadata.umdm.ServiceMetaData.toString(ServiceMetaData.java:458)
[junit] at java.lang.String.valueOf(String.java:2615)
[junit] at java.lang.StringBuilder.append(StringBuilder.java:116)
[junit] at org.jboss.ws.metadata.umdm.UnifiedMetaData.toString(UnifiedMetaData.java:227)
[junit] at java.lang.String.valueOf(String.java:2615)
[junit] at java.lang.StringBuilder.append(StringBuilder.java:116)
[junit] at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3.buildMetaData(JAXWSMetaDataBuilderEJB3.j
ava:93)
[junit] at org.jboss.ws.core.server.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:92)
[junit] at org.jboss.ws.integration.jboss42.DeployerInterceptor.createServiceEndpoint(DeployerInterceptor.java:1
27)
[junit] at org.jboss.ws.integration.jboss42.DeployerInterceptorEJB.createServiceEndpoint(DeployerInterceptorEJB.
java:43)
[junit] at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:78)
[junit] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSup
port.java:180)
[junit] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
[junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
[junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
[junit] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
[junit] at $Proxy34.create(Unknown Source)
[junit] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
[junit] ... 54 more
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 3.656 sec
****************** SERVER SIDE ********************
12:52:06,538 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
12:52:06,616 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
12:52:06,663 INFO [Server] JBoss (MX MicroKernel) [4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)] Started i
n 29s:266ms
12:53:00,960 ERROR [MainDeployer] Could not create deployment: file:/C:/java/jbossws-native-dist/output/test-libs/jaxws-
samples-retail.jar
java.lang.NoClassDefFoundError: org/jboss/wsf/test/GenericSOAPHandler
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:675)
at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:655)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:193)
at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131)
at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:520)
at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.jboss.ws.metadata.umdm.HandlerMetaData.getHandlerClass(HandlerMetaData.java:115)
at org.jboss.ws.metadata.umdm.HandlerMetaDataJAXWS.toString(HandlerMetaDataJAXWS.java:86)
at java.lang.String.valueOf(String.java:2615)
at java.lang.StringBuilder.append(StringBuilder.java:116)
at org.jboss.ws.metadata.umdm.ServerEndpointMetaData.toString(ServerEndpointMetaData.java:214)
at java.lang.String.valueOf(String.java:2615)
at java.lang.StringBuilder.append(StringBuilder.java:116)
at org.jboss.ws.metadata.umdm.ServiceMetaData.toString(ServiceMetaData.java:458)
at java.lang.String.valueOf(String.java:2615)
at java.lang.StringBuilder.append(StringBuilder.java:116)
at org.jboss.ws.metadata.umdm.UnifiedMetaData.toString(UnifiedMetaData.java:227)
at java.lang.String.valueOf(String.java:2615)
at java.lang.StringBuilder.append(StringBuilder.java:116)
at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3.buildMetaData(JAXWSMetaDataBuilderEJB3.java:93)
at org.jboss.ws.core.server.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:92)
at org.jboss.ws.integration.jboss42.DeployerInterceptor.createServiceEndpoint(DeployerInterceptor.java:127)
at org.jboss.ws.integration.jboss42.DeployerInterceptorEJB.createServiceEndpoint(DeployerInterceptorEJB.java:43)
at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:78)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.jav
a:180)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
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 $Proxy34.create(Unknown Source)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor23.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 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.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266)
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.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74)
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.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
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.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.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:818)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:419)
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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
at java.lang.Thread.run(Thread.java:595)
12:53:01,382 ERROR [ServiceEndpointPublisher] Cannot obtain waURL for: jaxws-samples-retail.jar
12:53:02,866 INFO [TomcatDeployer] deploy, ctxPath=/jaxws-samples-asynchronous, warUrl=.../tmp/deploy/tmp3562jaxws-samp
les-asynchronous-exp.war/
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172700#4172700
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172700
17 years, 8 months
[Beginners Corner] - Re: Deployment order and MYSQL Driver class issues
by PeterJ
Being a candidate release does not necessarily mean that nothing is broken. It is rather an indication of the feature set. That is, a candidate release contains all of the features expected in the final release. It also implies that all components are at their expected levels (that is, if CR1 contains version 2.0.1 of major component X, then the GA will contain perhaps 2.0.3 but not version 3.0, or even 2.1 (mainly because major upgrades imply user API changes and the idea is that the user APIs are stable once the product hits the CR stage)).
What is giving me fits, however, is the amount of configuration changes that have gone in since CR1:
* there is a new jmx console which is visually very different from CR1, though behaves almost the same
* the port binding service has finally been fixed but how port binding will be done in CR2 is vastly different than how it was done up to CR1
* various configuration files have been renamed (this one is my fault, I questioned some of the renaming that took place in CR1)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172692#4172692
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172692
17 years, 8 months