[Design of POJO Server] - Re: To merge or not to merge?
by adrian@jboss.org
"scott.stark(a)jboss.org" wrote :
| "adrian(a)jboss.org" wrote :
| | The full normalized view should be maintained elsewhere.
| |
| I'm not following what you mean by normalized view?
|
The normalized view is all the information coupled with where it is defined
not the merged/denormalized view.
i.e. at runtime you say
"What are the resources for this ejb?"
"What is the transaction timeout for this ejb method?"
which comes from the denormalized view, i.e. you get all the resources
that are relevant for the ejb, or the transaction timeout for that context
(regardless of where it is defined).
Elsewhere you use the normalized view, so the responses will be
different:
"What are the resources for this ejb?"
Will only include those actually defined on the ejb not those
defined at e.g. deployment level for which you would need to ask
the normalized view:
"What are the resources for this deployment?"
Similarly for the transaction timeout. The denormalized should
always give you an answer (even if it is just the timeout defined at
server/domain level).
The normalized view will only give you an answer if something
is defined against that ejb method.
In the normalized view you can ask:
"Is there a transaction timeout for this ejb method?"
"Is there a transaction timeout for this ejb?"
"Is there a transaction timeout for this deployment?"
"Is there a transaction timeout for this server?"
etc.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981292#3981292
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981292
19 years, 2 months
[Design of POJO Server] - Re: Structure deployer changes comitted to trunk
by kabir.khan@jboss.com
If I try to run the test again (with jboss still running), I get the error you are mentioning
| 2006-10-27 13:05:30,015 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Instantiated: name=jboss.aop:name=ExtenderTester state=Described mode=Manual requiredState=Configured
| org.jboss.deployment.DeploymentException: Unable to createMBean for jboss.aop:name=ExtenderTester
| at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:52)
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:141)
| at org.jboss.system.microcontainer.InstantiateAction.installAction(InstantiateAction.java:45)
| at org.jboss.system.microcontainer.ServiceControllerContextAction.install(ServiceControllerContextAction.java:46)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at
| ....
| Caused by: java.lang.NoClassDefFoundError: org/jboss/test/aop/extender/Base
| at java.lang.Class.getDeclaredConstructors0(Native Method)
| at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
| at java.lang.Class.getConstructor0(Class.java:2671)
| at java.lang.Class.getConstructor(Class.java:1629)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1241)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
| at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
| at org.jboss.system.ServiceCreator.installPlainMBean(ServiceCreator.java:197)
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:115)
|
The Base class lives in the nested .aop file, so it seems that the second time round it is not looking at the nested .aop file
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981278#3981278
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981278
19 years, 2 months
[Design of POJO Server] - Re: Structure deployer changes comitted to trunk
by kabir.khan@jboss.com
For me the MBean gets installed correctly, but the deployment of the nested .aop archive fails when using MainDeployer.deploy()
| 2006-10-27 12:40:03,656 ERROR [org.jboss.ejb3.deployers.EJBRegistrationDeployer] Error during deployment: jar:file:/C:/cygwin/home/Kabir/sourcecontrol/jboss-head/testsuite/output/lib/aop-extendertest.sar!/aop-extendertest.aop
| org.jboss.deployers.spi.DeploymentException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
| at org.jboss.ejb3.deployers.EJBRegistrationDeployer.deploy(EJBRegistrationDeployer.java:147)
| at org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer.commitDeploy(AbstractSimpleDeployer.java:52)
| at org.jboss.deployers.plugins.deployer.DeployerWrapper.commitDeploy(DeployerWrapper.java:145)
| at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:440)
| at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:381)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:795)
| at org.jboss.deployment.MainDeployer.redeploy(MainDeployer.java:570)
| ....
| Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
| at java.lang.String.substring(String.java:1768)
| at org.jboss.ejb3.deployers.JBoss5DeploymentScope.<init>(JBoss5DeploymentScope.java:57)
| at org.jboss.ejb3.deployers.EJBRegistrationDeployer.deploy(EJBRegistrationDeployer.java:131)
|
|
EJBRegistrationDeployer.deploy():
| ...
| DeploymentScope scope = null;
| if (unit.getDeploymentContext().getParent() != null)
| {
| scope = new JBoss5DeploymentScope(unit.getDeploymentContext().getParent());
| }
| ...
|
| public JBoss5DeploymentScope(DeploymentContext parent)
| {
| // Use the root vfs path name
| this.shortName = parent.getRoot().getPathName();
|
| }
|
The pathname returned by the JARHandler is an empty string.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981277#3981277
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981277
19 years, 2 months
[Design of POJO Server] - Re: EARStructure not deploying modules
by scott.stark@jboss.org
A number of the ejb3 tests are deploying remotely and from the deploy dir. One ear that is having deployment failures is the factory-test.ear. There is a failure to find a META-INF/persistence.xml is a nested jar although the file does exist:
| Caused by: java.io.FileNotFoundException: /tmp/nestedjar45108.tmp/META-INF/persistence.xml
| at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:94)
| at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:103)
| at java.net.URL.openStream(URL.java:1007)
| at org.hibernate.ejb.packaging.PersistenceXmlLoader.loadURL(PersistenceXmlLoader.java:43)
| at org.hibernate.ejb.packaging.PersistenceXmlLoader.deploy(PersistenceXmlLoader.java:73)
| at org.jboss.ejb3.Ejb3Deployment.initializePersistenceUnits(Ejb3Deployment.java:450)
| at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:314)
| at org.jboss.ejb3.deployers.EJBRegistrationDeployer.deploy(EJBRegistrationDeployer.java:137)
| ... 12 more
|
| *** DEPLOYMENTS IN ERROR: Name -> Error
|
| jar:file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/factory-test.ear!/session1.jar -> java.io.FileNotFoundException: /tmp/nestedjar45104.tmp/META-INF/persistence.xml
|
| jar:file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/factory-test.ear!/session2.jar -> java.io.FileNotFoundException: /tmp/nestedjar45108.tmp/META-INF/persistence.xml
|
|
| 23:40:22,093 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
| 23:40:22,118 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-0.0.0.0-8009
| 23:40:22,120 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.Beta (build: CVSTag=HEAD date=200610262157)] Started in 15s:241ms
|
| ...
|
| [starksm@succubus Security]$ jar -tf /tmp/nestedjar45108.tmp
| META-INF/
| META-INF/MANIFEST.MF
| org/
| org/jboss/
| org/jboss/ejb3/
| org/jboss/ejb3/test/
| org/jboss/ejb3/test/factory/
| org/jboss/ejb3/test/factory/Entity2.class
| org/jboss/ejb3/test/factory/MyService.class
| org/jboss/ejb3/test/factory/MyServiceBean.class
| org/jboss/ejb3/test/factory/Session2.class
| org/jboss/ejb3/test/factory/Session2Bean.class
| META-INF/persistence.xml
|
The vfs does not use the no copy nested jar code by default. I'll look into this error more tomorrow.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981232#3981232
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981232
19 years, 2 months