-
1. Re: What is equivalent namespace of “urn:jboss:bean-deployer:2.0” in JBoos 7 ?
alesj Jun 5, 2012 5:55 AM (in response to manoj.m.agarwal)It should still work, to some extent:
The thing is not all features from the old xml are supported.
The new supported schema is this (in Java code):
-
2. Re: What is equivalent namespace of “urn:jboss:bean-deployer:2.0” in JBoos 7 ?
jaikiran Jun 5, 2012 5:58 AM (in response to alesj)Manoj, which exact version of AS7? I think the support for this was only added in 7.1.x if I remember right.
-
3. Re: What is equivalent namespace of “urn:jboss:bean-deployer:2.0” in JBoos 7 ?
manoj.m.agarwal Jun 5, 2012 6:14 AM (in response to jaikiran)JaiKiarn, I am using jboss-as-7.2.0.Alpha1-SNAPSHOT.
-
4. Re: What is equivalent namespace of “urn:jboss:bean-deployer:2.0” in JBoos 7 ?
jaikiran Jun 5, 2012 6:16 AM (in response to manoj.m.agarwal)Manoj Agarwal wrote:
It seems this namespace in not valid for JBoss 7,
What error do you get? Post the entire exception stacktrace and also the relevant xml file.
-
5. Re: What is equivalent namespace of “urn:jboss:bean-deployer:2.0” in JBoos 7 ?
manoj.m.agarwal Jun 5, 2012 6:22 AM (in response to jaikiran)I am not getting any specific exception for this but the problem is this jboss-bean.xml is not picked up while starting the Jboss and due to that my startup services are not getting invoke.
Jboss server gets up with this Error -
JBAS014775: New missing/unsatisfied dependencies:
service jbosgi.integration.PersistentBundlesHandler.COMPLETE (missing) dependents: [service jbosgi.framework.INIT]
JBAS014777: Services which failed to start: service jbosgi.bundle.86."org.apache.harmony.luni.kernel"."1.0.0".INSTALLED: org.jboss.msc.service.StartException in service jbosgi.bundle.86."org.apache.harmony.luni.kernel"."1.0.0".INSTALLED: org.osgi.framework.BundleException: JBOSGI011236: Not allowed to export java.* in: org.apache.harmony.luni.kernel:1.0.0
service jbosgi.bundle.87."org.apache.harmony.security;singleton:=true"."1.0.0".INSTALLED: org.jboss.msc.service.StartException in service jbosgi.bundle.87."org.apache.harmony.security;singleton:=true"."1.0.0".INSTALLED: org.osgi.framework.BundleException: JBOSGI011236: Not allowed to export java.* in: org.apache.harmony.security:1.0.013:26:03,228 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
13:26:03,229 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss AS 7.2.0.Alpha1-SNAPSHOT "Steropes" started (with errors) in 7124ms - Started 1951 of 2087 services (1 services failed or missing dependencies, 134 services are passive or on-demand) -
6. Re: What is equivalent namespace of “urn:jboss:bean-deployer:2.0” in JBoos 7 ?
jaikiran Jun 5, 2012 6:24 AM (in response to manoj.m.agarwal)Where exactly is the jboss-beans.xml located? Note that its name is jboss-beans.xml and not jboss-bean.xml
-
7. Re: What is equivalent namespace of “urn:jboss:bean-deployer:2.0” in JBoos 7 ?
manoj.m.agarwal Jun 5, 2012 6:38 AM (in response to jaikiran)This "myproj-deployer-jboss-beans.xml" is located in META-INF and name is fine as you can see. Here is the content of this xml.
<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="urn:jboss:bean-deployer:2.0">
<bean name="myproj-startup"
class="com.abc.myproj.server.startup.TestPrimordialJbossBean">
<start method="start"/>
</bean>
</deployment>
-
8. Re: What is equivalent namespace of “urn:jboss:bean-deployer:2.0” in JBoos 7 ?
manoj.m.agarwal Jun 5, 2012 6:45 AM (in response to alesj)Hi Ales,
Thanks for your prompt response but the namespace mentioned in KernelDeploymentXmlDescriptorParser did not work for me.
Thanks !
Manoj
-
9. Re: What is equivalent namespace of “urn:jboss:bean-deployer:2.0” in JBoos 7 ?
manoj.m.agarwal Jun 5, 2012 8:07 AM (in response to manoj.m.agarwal)Hi Jaikiran,
Did you see any issue with this jboss-beans.xml ?
Thanks!
Manoj
-
10. Re: What is equivalent namespace of “urn:jboss:bean-deployer:2.0” in JBoos 7 ?
alesj Jun 5, 2012 8:54 AM (in response to manoj.m.agarwal)The xml / bean looks simple enough.
And you should get an error, if the file could not be parsed.
How do you know that the service is not starting?
-
11. Re: What is equivalent namespace of “urn:jboss:bean-deployer:2.0” in JBoos 7 ?
manoj.m.agarwal Jun 6, 2012 6:07 AM (in response to alesj)The service contains the logic to create the VDB(We use Teiid in our project) and i have put couple of print statements but its not reaching there.
That's how i determine that service is not getting invoke.
-
12. Re: What is equivalent namespace of “urn:jboss:bean-deployer:2.0” in JBoos 7 ?
alesj Jun 6, 2012 6:11 AM (in response to manoj.m.agarwal)Can you do a remote debug to AS7 instance, stopping in
to see if it picks up any jboss-beans.xml files.
-
13. Re: What is equivalent namespace of “urn:jboss:bean-deployer:2.0” in JBoos 7 ?
jaikiran Jun 6, 2012 6:14 AM (in response to manoj.m.agarwal)Manoj Agarwal wrote:
This "myproj-deployer-jboss-beans.xml" is located in META-INF and name is fine as you can see.
And where exactly is this META-INF folder in your deployed application? You have to provide clear details about the application packaging to be able to get some help.
-
14. Re: What is equivalent namespace of “urn:jboss:bean-deployer:2.0” in JBoos 7 ?
manoj.m.agarwal Jun 7, 2012 8:04 AM (in response to jaikiran)Hi Jaikiran,
I put this startup relate code in a jar file which is structured like this.
my-startup.jar
com-->ABC-->myProj-->server-->startup-->(startup-service-classes..)
META-INF --> myProj-deployer-jboss-beans.xml, MANIFEST.MF
I have placed this jar file in <jboss-home>\standalone\deployments\myProj\myProj.deployer Dir.
I tried to place it in <jboss-home>\standalone\deployments\myProj\lib as well where i put all other required jars but it didn't work.