[Beginners Corner] - ejb deployment in jboss4
by seemap
I am learning EJB from one of the book and got stuck on the deployment of first EJB . It is stateful Session Bean
the jboss.xml is
<?xml version="1.0" encoding = UTF-8" ?>
|
| <jboss>
|
| <enterprise-beans>
| <session>
| <ejb-name>SignOnEJB</ejb-name>
| <jndi-name>day05/SignOnHome</jndi-name>
| </session>
| </enterprise-beans>
|
| </jboss>
ejb-jar.xml is
<?xml version="1.0" encoding="UTF-8"?>
|
| <!DOCTYPE ejb-jar
| PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise Javabeans 2.0//EN"
| "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
| <ejb-jar>
| <enterprise-beans>
| <session>
| <ejb-name>SignOnEJB</ejb-name>
| <home>day05.SignOnHome</home>
| <remote>day05.SignOn</remote>
| <ejb-class>day05.SignOnEJB</ejb-class>
| <session-type>Stateless</session-type>
| <transaction-type>Container</transaction-type>
| <env-entry>
| <env-entry-name>student</env-entry-name>
| <env-entry-type>java.lang.String</env-entry-type>
| <env-entry-value>password</env-entry-value>
| </env-entry>
| <env-entry>
| <env-entry-name>student1</env-entry-name>
| <env-entry-type>java.lang.String</env-entry-type>
| <env-entry-value>password1</env-entry-value>
| </env-entry>
| </session>
|
| </enterprise-beans>
|
| </ejb-jar>
This book is using Jboss 3 and I am using JBoss 4.0.4
when I deploy my ejb jar file (day05-signon.jar) which is having all class file and Meta-INf
I got error message
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@4c050b2b { url=file:/C:/jboss-4.0.4/jboss-4.
0.4.GA/server/default/deploy/day05_Signon.jar }
deployer: MBeanProxyExt[jboss.ejb:service=EJBDeployer]
status: null
state: FAILED
watch: file:/C:/jboss-4.0.4/jboss-4.0.4.GA/server/default/deploy/day05_Signon.
jar
altDD: null
lastDeployed: 1153249201578
lastModified: 1153249201546
mbeans:
org.jboss.deployment.DeploymentInfo@592997e2 { url=file:/C:/jboss-4.0.4/jboss-4.
0.4.GA/server/default/deploy/META-INF/ejb-jar.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.4/jboss-4.0.4.GA/server/default/deploy/META-INF/ejb-
jar.xml
altDD: null
lastDeployed: 1153249202656
lastModified: 1153249202656
mbeans:
org.jboss.deployment.DeploymentInfo@2070e0ce { url=file:/C:/jboss-4.0.4/jboss-4.
0.4.GA/server/default/deploy/META-INF/jboss.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.4/jboss-4.0.4.GA/server/default/deploy/META-INF/jbos
s.xml
altDD: null
lastDeployed: 1153249202656
lastModified: 1153249202656
mbeans:
12:00:03,031 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0
-8080
12:00:03,265 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
12:00:03,390 INFO [JkMain] Jk running ID=0 time=0/172 config=null
12:00:03,406 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBos
Pls help .
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959005#3959005
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959005
19 years, 9 months
[Security & JAAS/JBoss] - Multiple security domains in one EAR
by lhoriman
Is it possible to have multiple security domains in one EAR?
I have an application that consists of two major components:
1) The main application (user-facing frontend), with a custom LoginModule that auths against the hibernate store of members.
2) The customer support tool, which auths against our corporate LDAP store using the LDAPLoginModule.
My (perhaps naive) first pass designing this involves two security domains. The main application EJBs have one @SecurityDomain, the customer support EJBs have a different @SecurityDomain.
Obviously the customer support tool backend EJBs need to communicate with the main user application EJBs to manipulate user accounts, etc. What happens when the EJBs associated with one @SecurityDomain call into the EJBs of a different @SecurityDomain? I suspect bad things.
Is there a strategy for making this work?
Thanks,
Jeff
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959004#3959004
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959004
19 years, 9 months
[JBoss Getting Started Documentation] - ejb in jboss
by seemap
I am new to ejb2 and Jboss I have downloaded the Jboss 4 and created the session stateful bean in day05 folder p
day05/SignOn.java
/ SignOnHome.java
/SignOnEJB.java
/ InvalidLoginException.java
/ ejb-jar.xml
/jboss.xml
The codes of ejb-jar.xml
<?xml version="1.0" encoding="UTF-8"?>
|
| <!DOCTYPE ejb-jar
| PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise Javabeans 2.0//EN"
| "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
| <ejb-jar>
| <enterprise-beans>
| <session>
| <ejb-name>SignOnEJB</ejb-name>
| <home>day05.SignOnHome</home>
| <remote>day05.SignOn</remote>
| <ejb-class>day05.SignOnEJB</ejb-class>
| <session-type>Stateless</session-type>
| <transaction-type>Container</transaction-type>
| <env-entry>
| <env-entry-name>student</env-entry-name>
| <env-entry-type>java.lang.String</env-entry-type>
| <env-entry-value>password</env-entry-value>
| </env-entry>
| <env-entry>
| <env-entry-name>student1</env-entry-name>
| <env-entry-type>java.lang.String</env-entry-type>
| <env-entry-value>password1</env-entry-value>
| </env-entry>
| </session>
|
| </enterprise-beans>
|
| </ejb-jar>
the codes for jboss.xml
<?xml version="1.0" encoding = UTF-8" ?>
|
| <jboss>
|
| <enterprise-beans>
| <session>
| <ejb-name>SignOnEJB</ejb-name>
| <jndi-name>day05/SignOnHome</jndi-name>
| </session>
| </enterprise-beans>
|
| </jboss>
|
I dont know how to deploy in jboss Can anybody guide me step by step?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959002#3959002
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959002
19 years, 9 months