[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
Curious about: java.lang.NoClassDefFoundError: org/jboss/metadata/process/chain/ProcessorChain ..or why you'd have to define the dependency upon jboss-metadata:1.0.0.CR5 manually? I'm getting: [INFO] [dependency:tree] | [INFO] org.jboss.ejb3:jboss-ejb3-embedded:jar:1.0.0-SNAPSHOT | [INFO] \- org.jboss.metadata:jboss-metadata:jar:1.0.0.CR5:compile ...from "mvn dependency:tree -Dincludes=org.jboss.metadata". S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188548#4188548 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188548 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
"ALRubinger" wrote : Sisepago, can I get a Unit Test for this...attached to a JIRA filed under "EJBTHREE" in the "proxy" component? Nevermind, I see this stems from the JNDI Server not being accessible. Have you determined why? S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188547#4188547 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188547 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
Sisepago, can I get a Unit Test for this: 15:09:25,236 ERROR [AbstractKernelController] Error installing to Start: name=jboss.j2ee:jar=classes | ,name=HelloBean,service=EJB3 state=Create | java.lang.RuntimeException: Could not bind Reference Class Name: Proxy for: org.ormsys.ejb3.Hello | Type: ProxyFactoryKey | Content: ProxyFactory/HelloBean/HelloBean/local | Type: EJB Container Name | Content: jboss.j2ee:jar=classes,name=HelloBean,service=EJB3 | Type: Proxy Factory is Local | Content: true | Type: Local Business Interface | Content: org.ormsys.ejb3.Hello | into JNDI at "HelloBean/local" ...attached to a JIRA filed under "EJBTHREE" in the "proxy" component? S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188542#4188542 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188542 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
"sisepago" wrote : ... | but testing with mvn command "mvn test" doesn't work, because of java.lang.NoClassDefFoundError: org/jboss/metadata/process/chain/ProcessorChain. | here is the error trace: | | 12:39:59,564 INFO [HelloBeanTest] Test #1 | | 12:39:59,830 INFO [JBossEJBContainer] Deploying jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jboss-ejb3-embedded/1.0.0-SNAPSHOT/jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar!/META-INF/embedded-bootstrap-beans.xml | | 12:40:01,282 INFO [JBossEJBContainer] Deploying jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jboss-ejb3-embedded/1.0.0-SNAPSHOT/jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar!/META-INF/ejb-deployers-beans.xml | | 12:40:01,459 ERROR [AbstractKernelController] Error installing to PreInstall: name=Ejb3MetadataProcessingDeployer state=Real | | java.lang.NoClassDefFoundError: org/jboss/metadata/process/chain/ProcessorChain | | at java.lang.Class.getDeclaredConstructors0(Native Method) | | at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) | | at java.lang.Class.getDeclaredConstructors(Class.java:1836) | | at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getDeclaredConstructors(IntrospectionTypeInfoFactoryImpl.java:489) | | at I can confirm this on both Maven 2.0.9 / Java 1.5.0_16 / MacOS X 10.5 and Maven 2.0.9 / Java 1.6.0_10 / Vista 64 (no change in pom since my first post). regards, Karl View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188540#4188540 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188540 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
with this dependencies configuration on the pom.xml all thing work fine through the comannd "mvn clean install". That means jboss-ejb3-embedded has a dependency jboss-metadata-1.0.0.CR1 and maybe another dependencies have also dependency jboss-metadata-1.0.0.CR5 and I do not know why? http://maven.apache.org/POM/4.0.0"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> | 4.0.0 | org.ormsys.ejb3 | ormsys-ejb31-embeddable | jar | 1.0-SNAPSHOT | ormsys-ejb31-embeddable | http://.orm-sys.org | | | | | | org.apache.maven.plugins | maven-compiler-plugin | 2.0.2 | | 1.5 | 1.5 | false | false | | | | | | | | jboss-snapshots | JBoss Snapshot Repository | http://snapshots.jboss.org/maven2 | | false | | | true | | | | jboss-releases | JBoss Release Repository | http://repository.jboss.org/maven2 | | true | | | false | | | | | | | org.jboss.ejb3 | jboss-ejb3-embedded | 1.0.0-SNAPSHOT | | | org.jboss.metadata | jboss-metadata | | | | | org.jboss.metadata | jboss-metadata | 1.0.0.CR5 | | | junit | junit | [4,) | test | | | | But with problem through eclipse "Run As -> JUnit Test" and here is the error trace. @Carlo what do you thing, where the can be? | 15:09:21,383 INFO [HelloBeanTest] Test #1 | 15:09:21,635 INFO [JBossEJBContainer] Deploying jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jboss-ejb3-embedded/1.0.0-SNAPSHOT/jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar!/META-INF/embedded-bootstrap-beans.xml | 15:09:23,040 INFO [JBossEJBContainer] Deploying jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jboss-ejb3-embedded/1.0.0-SNAPSHOT/jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar!/META-INF/ejb-deployers-beans.xml | 15:09:23,385 INFO [JBossEJBContainer] Deploying jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jboss-ejb3-embedded/1.0.0-SNAPSHOT/jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar!/META-INF/namingserver-beans.xml | 15:09:23,484 INFO [JBossEJBContainer] Deploying jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jboss-ejb3-embedded/1.0.0-SNAPSHOT/jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar!/META-INF/aop-beans.xml | 15:09:23,663 INFO [JBossEJBContainer] Deploying jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jboss-ejb3-embedded/1.0.0-SNAPSHOT/jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar!/META-INF/transactionmanager-beans.xml | 15:09:23,727 INFO [JBossEJBContainer] Deploying jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jboss-ejb3-embedded/1.0.0-SNAPSHOT/jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar!/META-INF/jpa-deployers-beans.xml | 15:09:23,837 INFO [JBossEJBContainer] Deploying jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jboss-ejb3-core/1.0.0-SNAPSHOT/jboss-ejb3-core-1.0.0-SNAPSHOT.jar!/ejb3-interceptors-aop.xml | 15:09:24,160 INFO [AspectDeployer] Deploying xml into [EMAIL PROTECTED] for [EMAIL PROTECTED] | 15:09:24,342 INFO [JBossEJBContainer] Deploying file:/Users/sp/innoq-dev/innoq-jboss/jboss-research/ormsys-ejb31-embeddable/target/classes/ | 15:09:24,620 INFO [EjbModuleDeployer] Found [EMAIL PROTECTED] in [EMAIL PROTECTED]:/Users/sp/innoq-dev/innoq-jboss/jboss-research/ormsys-ejb31-embeddable/target/classes/} | 15:09:24,648 INFO [EjbComponentDeployer] Found [EMAIL PROTECTED] in [EMAIL PROTECTED] | 15:09:25,151 INFO [SessionSpecContainer] Starting jboss.j2ee:jar=classes,name=HelloBean,service=EJB3 | 15:09:25,156 INFO [EJBContainer] STARTED EJB: org.ormsys.ejb3.HelloBean ejbNam
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
anonymous wrote : but testing with mvn command "mvn test" doesn't work, because of java.lang.NoClassDefFoundError: org/jboss/metadata/process/chain/ProcessorChain. I noticed that error this morning while trying out few things. Here's what i did: - I have the EJB3 SVN repository on my local setup. So i did a clean install on the entire EJB3 project: mvn -Dmaven.test.failure.ignore=true clean install - I then did a clean install of my sample EJB3.1 project to get my EJB3.1 test case running. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188459#4188459 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188459 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
For now I can now compile my small test case: env.: mac os x, Maven version: 2.0.9, Java version: 1.5.0_16 | /** | * Unit test for simple App. | */ | public class HelloBeanTest { | | private static final Logger log = Logger.getLogger(HelloBeanTest.class); | | private static String getBaseURLToResource( String resource ) { | URL url = Thread.currentThread().getContextClassLoader().getResource(resource); | String s = url.toString(); | return s.substring(0, s.length() - resource.length()); | } | | @Test | public void test1() throws NamingException { | log.info("Test #1"); | | Properties properties = new Properties(); | // Not according to spec! | properties.setProperty(EJBContainer.EMBEDDABLE_MODULES_PROPERTY, getBaseURLToResource("org/ormsys/ejb3/HelloBean.class")); | EJBContainer container = EJBContainer.createEJBContainer(properties); | | // Note that global naming isn't working yet. | InitialContext ctx = new InitialContext(); | Hello bean = (Hello)ctx.lookup("HelloBean/local"); | | String now = new Date().toString(); | String actual = bean.sayHello(now); | assertEquals("Hello " + now, actual); | | container.close(); | } | | } but testing with mvn command "mvn test" doesn't work, because of java.lang.NoClassDefFoundError: org/jboss/metadata/process/chain/ProcessorChain. here is the error trace: 12:39:59,564 INFO [HelloBeanTest] Test #1 | 12:39:59,830 INFO [JBossEJBContainer] Deploying jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jboss-ejb3-embedded/1.0.0-SNAPSHOT/jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar!/META-INF/embedded-bootstrap-beans.xml | 12:40:01,282 INFO [JBossEJBContainer] Deploying jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jboss-ejb3-embedded/1.0.0-SNAPSHOT/jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar!/META-INF/ejb-deployers-beans.xml | 12:40:01,459 ERROR [AbstractKernelController] Error installing to PreInstall: name=Ejb3MetadataProcessingDeployer state=Real | java.lang.NoClassDefFoundError: org/jboss/metadata/process/chain/ProcessorChain | at java.lang.Class.getDeclaredConstructors0(Native Method) | at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) | at java.lang.Class.getDeclaredConstructors(Class.java:1836) | at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getDeclaredConstructors(IntrospectionTypeInfoFactoryImpl.java:489) | at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getConstructors(IntrospectionTypeInfoFactoryImpl.java:146) | at org.jboss.reflect.plugins.ClassInfoImpl.getDeclaredConstructors(ClassInfoImpl.java:424) | at org.jboss.beans.info.plugins.AbstractBeanInfoFactory.getConstructors(AbstractBeanInfoFactory.java:207) | at org.jboss.beans.info.plugins.AbstractBeanInfoFactory.getBeanInfo(AbstractBeanInfoFactory.java:152) | at org.jboss.config.plugins.AbstractConfiguration.getBeanInfo(AbstractConfiguration.java:87) | at org.jboss.kernel.plugins.config.AbstractKernelConfig.getBeanInfo(AbstractKernelConfig.java:80) | at org.jboss.kernel.plugins.config.AbstractKernelConfigurator.getBeanInfo(AbstractKernelConfigurator.java:77) | at org.jboss.kernel.plugins.config.AbstractKernelConfigurator.getBeanInfo(AbstractKernelConfigurator.java:96) | at org.jboss.kernel.plugins.dependency.PreInstallAction.installActionInternal(PreInstallAction.java:90) | at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) | at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) | at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) | at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) | at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) | at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598) | at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984) | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774) | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540) | at org.jboss.kernel.plugins.deployment.
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
I did a clean build and don't see this error. Which version of Maven do you use? And does the following command throw any errors: mvn clean install View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188368#4188368 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188368 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
Here is my pom.xml http://maven.apache.org/POM/4.0.0"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> | 4.0.0 | org.orm-sys.ejb3 | ormsys-ejb31-embeddable | jar | 1.0-SNAPSHOT | ormsys-ejb31-embeddable | http://.orm-sys.org | | | | | | org.apache.maven.plugins | maven-compiler-plugin | 2.0.2 | | 1.5 | 1.5 | false | false | | | | | | | | jboss-snapshots | JBoss Snapshot Repository | http://snapshots.jboss.org/maven2 | | false | | | true | | | | jboss-releases | JBoss Release Repository | http://repository.jboss.org/maven2 | | true | | | false | | | | | | | org.jboss.ejb3 | jboss-ejb3-embedded | 1.0.0-SNAPSHOT | | | junit | junit | [4,) | test | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188364#4188364 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188364 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
Please post your pom.xml file. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188356#4188356 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188356 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
Hi Carlo, today, I tried one more time to see, if I can more experiment with EJB3.1 Embeddable but without sucess. After a maven command call "mvn eclipse:clean eclipse:eclipse", I got this error may you can know where is the matter here: 207b downloaded | Downloading: http://snapshots.jboss.org/maven2/jboss/jbossts/jbossts-common/4.4.0.CR1/jbossts-common-4.4.0.CR1.pom | Downloading: http://repository.jboss.org/maven2/jboss/jbossts/jbossts-common/4.4.0.CR1/jbossts-common-4.4.0.CR1.pom | 203b downloaded | [INFO] | [ERROR] FATAL ERROR | [INFO] | [INFO] version was null for org.jboss.deployers:jboss-deployers-structure-spi | [INFO] | [INFO] Trace | java.lang.NullPointerException: version was null for org.jboss.deployers:jboss-deployers-structure-spi | at org.apache.maven.artifact.DefaultArtifact.getBaseVersion(DefaultArtifact.java:364) | at org.apache.maven.artifact.DefaultArtifact.getId(DefaultArtifact.java:225) | at org.apache.maven.artifact.resolver.ResolutionNode.getDependencyTrail(ResolutionNode.java:118) | at org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtifactCollector.java:96) | at org.apache.maven.plugin.ide.AbstractIdeSupportMojo.doDependencyResolution(AbstractIdeSupportMojo.java:543) | at org.apache.maven.plugin.eclipse.EclipsePlugin.doDependencyResolution(EclipsePlugin.java:1526) | at org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute(AbstractIdeSupportMojo.java:490) | at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) | at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) | at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) | at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) | at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) | 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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) | at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) | at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) | at org.codehaus.classworlds.Launcher.main(Launcher.java:375) | [INFO] | [INFO] Total time: 6 minutes 9 seconds | [INFO] Finished at: Mon Nov 10 20:50:56 CET 2008 | [INFO] Final Memory: 35M/127M | [INFO] best regards. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188262#4188262 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188262 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
I've upgraded embedded to use MC 2.0.0.CR5 and applied the workaround. For now embedded is using core SNAPSHOT. https://jira.jboss.org/jira/browse/EJBTHREE-1575[/url] View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188134#4188134 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188134 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
Carlo, Could you please apply the workaround (constructor injection definition in jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar/embedded-bootstrap-beans.xml) and place an updated EJB3 embedded snapshot build in the JBoss maven repository? many thanks, Karl View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187408#4187408 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187408 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
Update: I hadn't refreshed the page, so when i replied, i did not see Ales or Carlo comments. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187371#4187371 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187371 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
At least MC should say that we entered a non-deterministic situation and throw an exception. I think it would be better to have an UndeterminedConstructorInfo which does some extra work at the end. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187370#4187370 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187370 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
I tried this on a sample project with EJB3.1 embedded and ran into the same error: --- | Test set: jaikiran.ejb3_1.client.EJBClientTestCase | --- | Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.328 sec <<< FAILURE! | testLookup(jaikiran.ejb3_1.client.EJBClientTestCase) Time elapsed: 3.157 sec <<< ERROR! | java.lang.IllegalStateException: Incompletely deployed: | | *** DEPLOYMENTS IN ERROR: Name -> Error | BeanMetaDataDeployer -> java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[org.jboss.dependency.spi.Controller] actual=[org.jboss.kernel.Kernel] | | at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:290) | at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:186) | at org.jboss.ejb3.embedded.JBossEJBContainer.deploy(JBossEJBContainer.java:127) | at org.jboss.ejb3.embedded.JBossEJBContainer.deploy(JBossEJBContainer.java:120) | at org.jboss.ejb3.embedded.JBossEJBContainer.(JBossEJBContainer.java:73) | at org.jboss.ejb3.embedded.JBossEJBContainerProvider.createEJBContainer(JBossEJBContainerProvider.java:56) | at javax.ejb.EJBContainer.createEJBContainer(EJBContainer.java:99) | at jaikiran.ejb3_1.client.EJBClientTestCase.testLookup(EJBClientTestCase.java:37) | 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.TestMethod.invoke(TestMethod.java:59) | at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98) | at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79) | at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87) | at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77) | at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42) | at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88) | at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51) | at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44) | at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27) | at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37) | at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42) | at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) | at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) | at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) | at org.apache.maven.surefire.Surefire.run(Surefire.java:177) | 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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338) | at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) | | Based on what i saw from Ales' comment in the JIRA https://jira.jboss.org/jira/browse/JBMICROCONT-176, i changed the embedded-bootstrap-beans.xml in the jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar to use this: | | | | | Earlier it was using After this change, the test case passed. P.S: I don't have much idea about the Kernel, so i am not sure if i did this right :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187369#4187369 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187369 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
Cool, thanks a lot Karl View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187368#4187368 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187368 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
https://jira.jboss.org/jira/browse/JBMICROCONT-380 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187367#4187367 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187367 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
The problem and fix are both quite simple. ;-) Problem: BeanMetaDataDeployer has 2 constructors. The metadata provided in that xml is not enough to make exact/deterministic decision about which constructor to chose. In Carlo's case, he is just lucky that ConstructorInfo is ordered the way it is == matching the right one. Solution: simply add class="org.jboss.kernel.Kernel" to constructor's parameter View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187363#4187363 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187363 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
Using JUnit instead of TestNG doesn't make a difference. JDK: same behavior with JDK 1.6.0_10 and 1.5.0_15. Karl View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187325#4187325 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187325 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
So far can't find anything different than my own setup except junit, which I have as: | junit | junit | [4,) | test | What JDK are you using? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186776#4186776 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186776 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
Carlo, thanks for responding. Yes, 2.0.9, maven output is: D:\sandbox\projects\green\EmbeddedEjbTest>mvn -Dverbose=true dependency:tree | [INFO] Scanning for projects... | [INFO] Searching repository for plugin with prefix: 'dependency'. | [INFO] | [INFO] Building Unnamed - com.hji:EmbeddedEjbTest:jar:0.1-SNAPSHOT | [INFO]task-segment: [dependency:tree] | [INFO] | [INFO] [dependency:tree] | [INFO] com.hji:EmbeddedEjbTest:jar:0.1-SNAPSHOT | [INFO] +- org.jboss.ejb3:jboss-ejb3-embedded:jar:1.0.0-SNAPSHOT:compile | [INFO] | +- jboss.jbossts:jbossjta:jar:4.4.0.CR2:compile | [INFO] | +- org.jboss:jboss-vfs:jar:2.0.0.CR1:compile | [INFO] | | +- org.jboss:jboss-common-core:jar:2.2.8.GA:compile | [INFO] | | | \- (org.jboss.logging:jboss-logging-spi:jar:2.0.5.GA:compile - omitted for duplicate) | [INFO] | | \- org.jboss.logging:jboss-logging-spi:jar:2.0.5.GA:compile | [INFO] | +- org.jboss.aop:jboss-aop-deployer-jdk50:jar:2.0.0.CR17:runtime | [INFO] | +- org.jboss.ejb3:jboss-ejb3-api:jar:3.1.0-SNAPSHOT:compile | [INFO] | | +- jboss.jbossws:jboss-jaxrpc:jar:1.0.4.GA:compile | [INFO] | | \- org.jboss.javaee:jboss-transaction-api:jar:1.0.1.CR2:compile | [INFO] | +- org.jboss.ejb3:jboss-ejb3-core:jar:1.0.0-Beta3:compile | [INFO] | | +- javassist:javassist:jar:3.7.1.GA:compile | [INFO] | | +- org.hibernate:hibernate:jar:3.2.6.ga:compile | [INFO] | | | +- net.sf.ehcache:ehcache:jar:1.2.3:compile | [INFO] | | | | +- (commons-logging:commons-logging:jar:1.0.4:compile - omitted for duplicate) | [INFO] | | | | \- (commons-collections:commons-collections:jar:2.1:compile - omitted for conflict with 2.1.1) | [INFO] | | | +- javax.transaction:jta:jar:1.0.1B:compile | [INFO] | | | +- commons-logging:commons-logging:jar:1.0.4:compile | [INFO] | | | +- asm:asm-attrs:jar:1.5.3:compile | [INFO] | | | +- dom4j:dom4j:jar:1.6.1:compile | [INFO] | | | +- antlr:antlr:jar:2.7.6:compile | [INFO] | | | +- cglib:cglib:jar:2.1_3:compile | [INFO] | | | | \- (asm:asm:jar:1.5.3:compile - omitted for duplicate) | [INFO] | | | +- asm:asm:jar:1.5.3:compile | [INFO] | | | \- commons-collections:commons-collections:jar:2.1.1:compile | [INFO] | | +- org.hibernate:hibernate-annotations:jar:3.3.1.GA:compile | [INFO] | | | +- (org.hibernate:hibernate:jar:3.2.6.ga:compile - omitted for duplicate) | [INFO] | | | +- org.hibernate:hibernate-commons-annotations:jar:3.0.0.ga:compile | [INFO] | | | | \- (commons-logging:commons-logging:jar:1.0.4:compile - omitted for duplicate) | [INFO] | | | +- (org.hibernate:ejb3-persistence:jar:1.0.1.GA:compile - omitted for conflict with 1.0.2.GA) | [INFO] | | | \- (commons-logging:commons-logging:jar:1.0.4:compile - omitted for duplicate) | [INFO] | | +- org.hibernate:hibernate-entitymanager:jar:3.3.2.GA:compile | [INFO] | | | +- (org.hibernate:hibernate:jar:3.2.6.ga:compile - omitted for duplicate) | [INFO] | | | +- (org.hibernate:hibernate-annotations:jar:3.3.1.GA:compile - omitted for duplicate) | [INFO] | | | +- (org.hibernate:hibernate-commons-annotations:jar:3.0.0.ga:compile - omitted for duplicate) | [INFO] | | | +- (org.hibernate:ejb3-persistence:jar:1.0.1.GA:compile - omitted for duplicate) | [INFO] | | | +- (commons-logging:commons-logging:jar:1.0.4:compile - omitted for duplicate) | [INFO] | | | \- (javassist:javassist:jar:3.4.GA:compile - omitted for conflict with 3.7.1.GA) | [INFO] | | +- (org.jboss.logging:jboss-logging-spi:jar:2.0.5.GA:compile - omitted for duplicate) | [INFO] | | +- org.jboss:jboss-transaction-spi:jar:5.0.0.Beta4:compile | [INFO] | | | +- jboss:jboss-common-logging-spi:jar:2.0.4.GA:compile | [INFO] | | | +- (org.jboss.javaee:jboss-jca-api:jar:1.5.0.20070913080910:compile - omitted for conflict with 1.5.0.CR1) | [INFO] | | | \- (org.jboss.javaee:jboss-transaction-api:jar:1.0.1.20070913080910:compile - omitted for conflict with 1.0.1.CR2) | [INFO] | | +- org.jboss.aop:jboss-aop:jar:2.0.0.CR15:compile | [INFO] | | | +- org.apache.ant:ant:jar:1.7.0:compile | [INFO] | | | | \- org.apache.ant:ant-launcher:jar:1.7.0:compile | [INFO] | | | +- (javassist:javassist:jar:3.8.0.GA:compile - omitted for conflict with 3.7.1.GA) | [INFO] | | | +- (org.jboss:jboss-reflect:jar:2.0.0.Beta12:compile - omitted for conflict with 2.0.0.CR1) | [INFO] | | | +- (org.jboss:jboss-mdr:jar:2.0.0.Beta15:compile - omitted for conflict with 2.0.0.CR1) | [INFO] | | | +- (org.jboss:jboss-common-core:jar:2.2.7.GA:compile - omitted for conflict with 2.2.8.GA) | [INFO] | | | +- (org.jboss.logging:jboss-logging-spi:jar:2.0.5.GA:compile - omitted for duplicate) | [INFO] | | | +- qdox:qdox:jar:1.6:c
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
Just to be sure: post the output of mvn -Dverbose=true dependency:tree here. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186484#4186484 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186484 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
It's not the exact same problem, but close. Usually this indicates that Maven has chosen the wrong dependency somewhere. Are you using Maven 2.0.9? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186483#4186483 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186483 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user