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):
Manoj, which exact version of AS7? I think the support for this was only added in 7.1.x if I remember right.
JaiKiarn, I am using jboss-as-7.2.0.Alpha1-SNAPSHOT.
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.
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.0
13: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)
Where exactly is the jboss-beans.xml located? Note that its name is jboss-beans.xml and not jboss-bean.xml
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"?>
Thanks for your prompt response but the namespace mentioned in KernelDeploymentXmlDescriptorParser did not work for me.
Did you see any issue with this jboss-beans.xml ?
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?
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.
Can you do a remote debug to AS7 instance, stopping in
to see if it picks up any jboss-beans.xml files.
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.
I put this startup relate code in a jar file which is structured like this.
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.