[EJB 3.0] - MBeans waiting for other MBeans problem in DataSourceBinding
by GeethaAdhikeshavalu
Hi,
I am using ejb3, MySql 4.1, and JBoss 4.2.2 Ga in my application..
when i worked i have a problem ie.,
12:38:10,542 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo@e234742c { url=file:/C:/eswood Project/jboss-4.2.2.GA/server/default/deploy/MySqlDS.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/eswood Project/jboss-4.2.2.GA/server/default/deploy/MySqlDS.xml
altDD: null
lastDeployed: 1201590490542
lastModified: 1201590492000
mbeans:
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@e234742c { url=file:/C:/eswood Project/jboss-4.2.2.GA/server/default/deploy/MySqlDS.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/eswood Project/jboss-4.2.2.GA/server/default/deploy/MySqlDS.xml
altDD: null
lastDeployed: 1201590490542
lastModified: 1201590492000
mbeans:
--- MBeans waiting for other MBeans ---
ObjectName: persistence.units:jar=EJBStrutsEJB.jar,unitName=EJBStrutsEJBPU
State: NOTYETINSTALLED
I Depend On:
jboss.jca:name=MySqlDS,service=DataSourceBinding
Depends On Me:
jboss.j2ee:jar=EJBStrutsEJB.jar,name=BookDAO,service=EJB3
jboss.j2ee:jar=EJBStrutsEJB.jar,name=CustomerDAO,service=EJB3
jboss.j2ee:jar=EJBStrutsEJB.jar,name=LibraryCart,service=EJB3
jboss.j2ee:jar=EJBStrutsEJB.jar,name=BookTest,service=EJB3
ObjectName: jboss.j2ee:jar=EJBStrutsEJB.jar,name=BookDAO,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:jar=EJBStrutsEJB.jar,unitName=EJBStrutsEJBPU
ObjectName: jboss.j2ee:jar=EJBStrutsEJB.jar,name=CustomerDAO,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:jar=EJBStrutsEJB.jar,unitName=EJBStrutsEJBPU
ObjectName: jboss.j2ee:jar=EJBStrutsEJB.jar,name=LibraryCart,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:jar=EJBStrutsEJB.jar,unitName=EJBStrutsEJBPU
ObjectName: jboss.j2ee:jar=EJBStrutsEJB.jar,name=BookTest,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:jar=EJBStrutsEJB.jar,unitName=EJBStrutsEJBPU
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.jca:name=MySqlDS,service=DataSourceBinding
State: NOTYETINSTALLED
Depends On Me:
persistence.units:jar=EJBStrutsEJB.jar,unitName=EJBStrutsEJBPU
12:38:10,651 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
12:38:10,683 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
12:38:10,698 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 26s:640ms
My persistance.xml is.........
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">
<persistence-unit name="EJBStrutsEJBPU" transaction-type="JTA">
org.hibernate.ejb.HibernatePersistance
<jta-data-source>java:/MySqlDS</jta-data-source>
</persistence-unit>
and my DataSource is .........
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: MySqlDS.xml 41016 2006-02-07 14:23:00Z acoliver $ -->
<!-- Datasource config for MySQL using 3.0.9 available from:
http://www.mysql.com/downloads/api-jdbc-stable.html
-->
<local-tx-datasource>
<jndi-name>MySqlDS</jndi-name>
<connection-url>jdbc:mysql://localhost/sampleejb</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
root
<type-mapping>mySQL</type-mapping>
</local-tx-datasource>
i stored it in Jboss-Home/server/default/deploy..
My JNDI is ..........
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=localhost
pls, help me.....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124265#4124265
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124265
18 years, 3 months
[Installation, Configuration & DEPLOYMENT] - Re: EJB JAR inside EAR
by jaikiran
You haven't actually posted the actual exception stacktrace or the classes/interfaces involved in that exception. But going by what you mention, i guess you have the bean interfaces both in the WAR and the ejb JAR, isnt it?
anonymous wrote : The post details that a JAR inside an EAR like th is causes problems after jboss 4.0.3.
Actually, that post doesnt say that having a EJB jar inside the EAR is wrong. It recommends removing the bean interfaces from the WAR and let them be packaged only in the ejb jar. Then package this WAR and ejb JAR in an EAR.
anonymous wrote : I though this might be my error, but I still need to reference the EJB jar somewhere in my deployment descriptors...where do I put this? Any suggestions?
I did not understand this part of your question. Can you elaborate?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124262#4124262
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124262
18 years, 3 months
[JBoss Seam] - s:selectItem problem while persisting
by panky_p
Hi I am trying to save to database the value selected from list but it is saving it as object of selectItem
my xhtml code is
| <h:selectOneMenu id="carList" value="#{carBean.carCategory}">
| <s:selectItems var="carCategory" value="#{carDetail.carCategoryList}"
| label="#{carCategory.label}" noSelectionLabel="Select Car Category..."/>
| </h:selectOneMenu>
and my list is
| public List<SelectItem> carCategoryList()
| {
| get values for car list from database such as Audi, BMW etc
| }
|
it works fine till populating list and retriving data from database as well but in database i want to store it as string "Audi" instead it saves it as object string
javax.faces.model.SelectItem@15817ba
can any one help me how can i store it as an actual string??
Thanks
Panky
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124258#4124258
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124258
18 years, 3 months