[JBoss Seam] - JBOSS Seam unable to bootstrap TestNG
by itpolnyi
I'm trying to run the basic testng and get the following exaption:
java.lang.RuntimeException: Unable to bootstrap:
at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:167)
at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:201)
at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:214)
at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:11)
at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1006)
at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:931)
at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
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.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:580)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:397)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:145)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:82)
at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:166)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
at org.testng.TestRunner.runWorkers(TestRunner.java:689)
at org.testng.TestRunner.privateRun(TestRunner.java:566)
at org.testng.TestRunner.run(TestRunner.java:466)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:301)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:296)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:276)
at org.testng.SuiteRunner.run(SuiteRunner.java:191)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:808)
at org.testng.TestNG.runSuitesLocally(TestNG.java:776)
at org.testng.TestNG.run(TestNG.java:701)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)
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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
Caused by: org.jboss.kernel.spi.registry.KernelRegistryEntryNotFoundException: Entry not found with name: MainDeployer
at org.jboss.kernel.plugins.registry.AbstractKernelRegistry.getEntry(AbstractKernelRegistry.java:89)
at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:163
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105601#4105601
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105601
18 years, 8 months
[Persistence, JBoss/CMP, Hibernate, Database] - Problems delpoying ejb3 session bean - please help
by harryrashid
I'm trying to deploy a jar named SEEKEjb, containing the following files:
Common.java, InstitutionPerson.java, ProfileSummary.java, Qualifications.java, QualificationType.java, User.java, UserDAOImp.java, UserLocal.java, UserRemote.java
UserDAOImp is a stateless session bean (the remainder excluding the UserLocal and UserRemote are all entity beans), however upon deploying I get the following error:
15:00:45,851 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- MBeans waiting for other MBeans ---
ObjectName: persistence.units:jar=SEEKEJB.jar,unitName=SEEKEJB
State: FAILED
Reason: java.lang.NullPointerException
I Depend On:
jboss.jca:service=DataSourceBinding,name=seekDS
Depends On Me:
jboss.j2ee:jar=SEEKEJB.jar,name=UserDAOImp,service=EJB3
ObjectName: jboss.j2ee:jar=SEEKEJB.jar,name=UserDAOImp,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:jar=SEEKEJB.jar,unitName=SEEKEJB
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: persistence.units:jar=SEEKEJB.jar,unitName=SEEKEJB
State: FAILED
Reason: java.lang.NullPointerException
I Depend On:
jboss.jca:service=DataSourceBinding,name=seekDS
Depends On Me:
jboss.j2ee:jar=SEEKEJB.jar,name=UserDAOImp,service=EJB3
I'm struggling to understand where the NullPointerException is being thrown and why, as this jar file deployed perfectly fine previously (when it only contained the User related files)
Any help would be greatly appreciated.
Harry
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105596#4105596
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105596
18 years, 8 months
[JBoss Seam] - Re: Difference between session timeout and not logged in yet
by jacob.orshalick
anonymous wrote : The best option I can think of is putting a page in between that simply displays something like "You have successfully logged out" and then perform a meta redirect to the login page after a few seconds.
On second look, this should be further specified, sorry. The redirect is going to have to include some information in the URL to indicate that a logout occurred. For example,
<meta http-equiv="Refresh"
| content="2; URL=/myApp/login.seam?logout=true">
This parameter allows you to differentiate between session timeout and logout when adding the message.
On further thought, you may also be able to use the logout event to redirect to the login page with the logout parameter provided. This would avoid the page in between. I would certainly like to hear the solution you go with just in case I have to do this myself :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105594#4105594
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105594
18 years, 8 months
[EJB 3.0] - Problems mixing descriptors and annotations?
by fiddlesticks
I have an entity, Foo, that has one-to-many FooChild children. This relationship is mapped via the OneToMany annotation. FooChild's properties are also mapped via annotation.
Foo and FooChild deploy fine, until I add an entity listener to Foo. Unfortunately I have to use a deployment descriptor (orm.xml) to add the entity listener - to use an annotation would add a circular dependency to our Maven module structure :(
<entity class="com.acme.Foo">
| <entity-listeners>
| <entity-listener class="com.acme.FooListener">
| <post-persist method-name="changeFoo" />
| <post-update method-name="changeFoo" />
| </entity-listener>
| </entity-listeners>
| </entity>
This works on the whole, but for entities that have OneToMany children annotation, I get this exception:
javax.persistence.PersistenceException: org.hibernate.AnnotationException: Use of @OneToMany or @ManyToMany targeting an unmapped class: com.acme.fooChildren[com.acme.FooChild]
| at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:252)
| at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:120)
| at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51)
|
| [snipped]
|
| Caused by: org.hibernate.AnnotationException: Use of @OneToMany or @ManyToMany targeting an unmapped class: com.acme.fooChildren[com.acme.FooChild]
| at org.hibernate.cfg.annotations.CollectionBinder.bindManyToManySecondPass(CollectionBinder.java:1016)
| at org.hibernate.cfg.annotations.CollectionBinder.bindStarToManySecondPass(CollectionBinder.java:567)
| at org.hibernate.cfg.annotations.CollectionBinder$1.secondPass(CollectionBinder.java:508)
| at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:43)
| at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1130)
| at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:296)
| at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1115)
| at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1233)
| at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:154)
| at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:869)
| at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:183)
| at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:240)
| ... 19 more
|
It *looks* like adding the descriptor on Foo is stopping the annotations in FooChild from being picked up.
The annotations in FooChild are property rather than field, and my orm.xml contains the line:
<access>PROPERTY</access>
I could understand it not working if the descriptor didn't contain this line as it would presumably default to field and expect to find field-level annotations on FooChild but fail as they were property-based.
Am I doing something wrong? I'm using JBoss 4.2.0GA.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105593#4105593
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105593
18 years, 8 months
[JBossWS] - Re: Exception while deploying the webservice using jax-ws
by alessio.soldano@jboss.com
"tpawankumar" wrote : Hi,
|
| This issue has been resolved by moving to Jbossws 2.0.1 GA.
|
| Now i am getting different exception
|
| java.lang.IllegalStateException: Cannot find endpoint meta data for: MacafeeAdapter
| at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.getEndpointM
| etaData(UnifiedMetaDataDeploymentAspect.java:117)
| at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.create(Unifi
| edMetaDataDeploymentAspect.java:86)
| [...]
|
OK, this is no longer related to the XmlAccessorType issue; this problem is cause by the UnifiedMetaDataDeploymentAspect that is not able to find your endpoint meta data after all meta data have been created. I would double check the web.xml (beware of the case, you have macafeeAdapter as the service implementation class name).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105590#4105590
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105590
18 years, 8 months