[JBossWS] - Re: java.lang.NoSuchMethodError: javax.jws.WebService.portNa
by hroriz
I am having the same problem as Marco. I did what was suggested but unfortunately did not succeed. I updated the directories, it's ok. The file ejb3-persistence.jar can be found in different directories:
jboss-4.0.4.GA\server\default\deploy\ejb3.deployer\
jboss-4.0.4.GA\client\
jboss-4.0.4.GA\server\default\lib\
Should I update on all 3 dirs?
I updated in all dirs and I get the following error:
ERROR [MainDeployer] Could not create deployment: HYPERLINK file:/C:/jboss-4.0.4.GA/server/default/deploy/ejb3.deployer/ file:/C:/jboss-4.0.4.GA/server/default/deploy/ejb3.deployer/
| org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)
| at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
| at org.jboss.system.ServiceController.install(ServiceController.java:226)
| (...)
|
| ERROR [MainDeployer] Could not create deployment: HYPERLINK file:/C:/jboss-4.0.4.GA/server/default/deploy/jboss-aop-jdk50.deployer/ file:/C:/jboss-4.0.4.GA/server/default/deploy/jboss-aop-jdk50.deployer/
| org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.aop:service=AspectManager
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)
| at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
|
| (...)
| 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:464)
| at java.lang.Thread.run(Thread.java:595)
| INFO [ServiceEndpointManager] jbossws-1.0.4.GA (date=200611151648)
|
Any hints?
Heitor
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991311#3991311
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991311
18 years, 1 month
[JBoss Seam] - Embedded EJB / DS EM Configuration
by eiswind70
I try to set up an embedded EJB/Seam Configuration. But Seam doesnt inject an Entity Manager when I try:
| @In
| private EntityManager em;
|
I get a NPE. I treid to use the EntityManagerFactory then to obtain an EM, but then I get
| javax.persistence.PersistenceException: org.hibernate.HibernateException: Could not find datasource
| at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:217)
| at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:114)
| at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37)
| at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:27)
| at com.hp.test.domain.TestBenutzer.testBenutzer(TestBenutzer.java:31)
| 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.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
| at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
| at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
| at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
| at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
| at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:71)
| at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
| at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
| at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
| at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
| at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
| at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
| Caused by: org.hibernate.HibernateException: Could not find datasource
| at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56)
| at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
| at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)
| at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:61)
| at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1928)
| at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211)
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:631)
| at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:760)
| at org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:151)
| at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:205)
| ... 24 more
| Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
| at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
| at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
| at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
| at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
| ... 33 more
|
|
altough I have a DataSource declared in embedded-jboss-beans.xml
| <bean name="DefaultDSBootstrap"
| class="org.jboss.resource.adapter.jdbc.local.LocalTxDataSource">
| <property name="driverClass">
| <value>com.edb.Driver</value>
| </property>
| <property name="connectionURL">
| <value>jdbc:edb://127.0.0.1:5444/asd</value>
| </property>
| <property name="userName">
| <value>sa</value>
| </property>
| <property name="jndiName">
| <value>java:/AsdDS</value>
| </property>
| <property name="minSize">
| <value>0</value>
| </property>
| <property name="maxSize">
| <value>10</value>
| </property>
| <property name="blockingTimeout">
| <value>1000</value>
| </property>
| <property name="idleTimeout">
| <value>50000</value>
| </property>
| <property name="transactionManager">
| <inject bean="TransactionManager" />
| </property>
| <property name="cachedConnectionManager">
| <inject bean="CachedConnectionManager" />
| </property>
| <property name="initialContextProperties">
| <inject bean="InitialContextProperties" />
| </property>
| </bean>
|
| <bean name="DefaultDS" class="java.lang.Object">
| <constructor factoryMethod="getDatasource">
| <factory bean="DefaultDSBootstrap" />
| </constructor>
| </bean>
|
can anyone help me with this ? Thx in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991309#3991309
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991309
18 years, 1 month
[JBoss AOP] - Re: Bug in SuperClassesFirstWeavingStrategy?
by chasta
Here are the stack traces of the locked threads (copied from Eclipse's debugger, after suspending them):
------------------------ Thread 1 ----------------
Thread [TotalRecordings Thread] (Suspended)
ClassLoader.findBootstrapClass(String) line: not available [native method]
Launcher$ExtClassLoader(ClassLoader).findBootstrapClass0(String) line: 891
Launcher$ExtClassLoader(ClassLoader).loadClass(String, boolean) line: 301
Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: 299
Launcher$AppClassLoader.loadClass(String, boolean) line: 268
Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 251
Launcher$AppClassLoader(ClassLoader).loadClassInternal(String) line: 319
ClassLoader.defineClass1(String, byte[], int, int, ProtectionDomain, String) line: not available [native method]
Launcher$AppClassLoader(ClassLoader).defineClass(String, byte[], int, int, ProtectionDomain) line: 620
Launcher$AppClassLoader(SecureClassLoader).defineClass(String, byte[], int, int, CodeSource) line: 124
Launcher$AppClassLoader(URLClassLoader).defineClass(String, Resource) line: 260
URLClassLoader.access$100(URLClassLoader, String, Resource) line: 56
URLClassLoader$1.run() line: 195
AccessController.doPrivileged(PrivilegedExceptionAction, AccessControlContext) line: not available [native method]
Launcher$AppClassLoader(URLClassLoader).findClass(String) line: 188
Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: 306
Launcher$AppClassLoader.loadClass(String, boolean) line: 268
Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 251
Launcher$AppClassLoader(ClassLoader).loadClassInternal(String) line: 319
CommonObjectUtil.(boolean) line: 34
CommonObjectUtil.() line: 41
JsonSerializer(AbstractSerializer).() line: 20
JsonSerializer.() line: 27
ObjectToJsonSerializer.() line: 10
TotalRecordingsMessageHandler.onMessage(Object) line: 42
TotalRecordings.run() line: 86
Thread.run() line: 595
------------------- Thread 2 -----------------------------
Thread [ShopModule Thread] (Suspended)
ClassicWeavingStrategy.translate(AspectManager, String, ClassLoader, byte[]) line: 69
AspectManager.translate(String, ClassLoader, byte[]) line: 887
AspectManager.transform(ClassLoader, String, Class, ProtectionDomain, byte[]) line: 830
AOPTransformer.aspectTransform(String, ClassLoader, Class<?>, ProtectionDomain, byte[]) line: 88
AOPTransformer.transform(ClassLoader, String, Class<?>, ProtectionDomain, byte[]) line: 75
TransformerManager.transform(ClassLoader, String, Class, ProtectionDomain, byte[]) line: 122
InstrumentationImpl.transform(ClassLoader, String, Class, ProtectionDomain, byte[]) line: 155
Proxy.defineClass0(ClassLoader, String, byte[], int, int) line: not available [native method]
Proxy.getProxyClass(ClassLoader, Class<?>...) line: 487
Proxy.newProxyInstance(ClassLoader, Class<?>[], InvocationHandler) line: 564
AnnotationParser.annotationForMap(Class, Map<String,Object>) line: 223
AnnotationParser.parseAnnotation(ByteBuffer, ConstantPool, Class) line: 213
AnnotationParser.parseAnnotations2(byte[], ConstantPool, Class) line: 69
AnnotationParser.parseAnnotations(byte[], ConstantPool, Class) line: 52
Class.initAnnotationsIfNecessary() line: 2998
Class.getAnnotation(Class) line: 2958
AnnotationType.(Class<?>) line: 104
AnnotationType.getInstance(Class) line: 64
AnnotationParser.parseAnnotation(ByteBuffer, ConstantPool, Class) line: 186
AnnotationParser.parseAnnotations2(byte[], ConstantPool, Class) line: 69
AnnotationParser.parseAnnotations(byte[], ConstantPool, Class) line: 52
Class.initAnnotationsIfNecessary() line: 2998
Class.getAnnotation(Class) line: 2958
AnnotationElement.getVisibleAnnotation(Class, Class) line: 88
PortableAnnotationElement.getAnyAnnotation(Class, Class) line: 402
AdvisorMatcherStrategy(MatcherStrategy).subtypeOf(Class, ClassExpression, Advisor) line: 63
Util.subtypeOf(Class, ClassExpression, Advisor) line: 413
Util.matchesClassExpr(ClassExpression, Class, Advisor) line: 124
InterfaceIntroduction.matches(Advisor, Class) line: 234
AspectManager.applyInterfaceIntroductions(Advisor, Class) line: 1580
ClassAdvisor$1.run() line: 289
AccessController.doPrivileged(PrivilegedExceptionAction) line: not available [native method]
ClassAdvisor.attachClass(Class) line: 272
AspectManager.initialiseClassAdvisor(Class, ClassAdvisor) line: 600
AspectManager.getAdvisor(Class) line: 587
Product.() line: 20
ShopModule.run() line: 34
Thread.run() line: 595
--------------------------------------------------
I'm not sure how feasible it'd be for me to deploy the application on a JBoss application server. It's not a J2EE (or even a web) application, and I have a feeling that trying to deploy it can potentially make me bounce into some tricky problems because of the use of native libraries and some components which may behave differently under an application server (e.g. a JMS broker). Perhaps there is a way to use JBoss's ClassLoader without deploying on the server?
Other than that, if the ClassLoader is related, it worth mentioning that we're using Sun's j2sdk-1.5.0_05.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991299#3991299
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991299
18 years, 1 month