Hi everybody!

This is a basic question and probably a stupid one. But as I am new to
application servers and Jboss, and getting really frustrated of not
understanding of what I am doing wrong, I have to ask a simple question.
When I?m trying the example, interest, everything works fine, but when I
try to create my own example I get the following error message:

[Container factory]     at java.lang.Thread.run(Unknown Source)
[Auto deploy] Deployment failed:file:/C:/JBoss/deploy/HelloWorld.jar
[Auto deploy] org.jboss.ejb.DeploymentException: Could not deploy
file:/C:/JBoss
/tmp/deploy/tmpejbjar43655.jar, Cause:org.jboss.ejb.DeploymentException: no
ejb-
jar.xml found
[Auto deploy]   at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:7
52)
[Auto deploy]   at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:2
48)
[Auto deploy]   at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
.java:1628)
[Auto deploy]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
.java:1523)
[Auto deploy]   at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:286)
[Auto deploy]   at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:222)
[Auto deploy]   at java.lang.Thread.run(Unknown Source)

To get a first feeling of Jboss the example is the famous HelloWorld. Thus,
very simple. Her is the jar-code.

C:\JBoss\examples\HelloWorld>jar cfv HelloWorld.jar *.class Meta-inf
added manifest
adding: HelloWorld.class(in = 226) (out= 175)(deflated 22%)
adding: HelloWorldBean.class(in = 812) (out= 430)(deflated 47%)
adding: HelloWorldHome.class(in = 258) (out= 186)(deflated 27%)
adding: Meta-inf/(in = 0) (out= 0)(stored 0%)
adding: Meta-inf/ejb-jar.xml(in = 447) (out= 215)(deflated 51%)
adding: Meta-inf/jboss.xml(in = 366) (out= 190)(deflated 48%)
adding: Meta-inf/jboss.xml.bak(in = 360) (out= 183)(deflated 49%)
adding: Meta-inf/MANIFEST.MF(in = 72) (out= 72)(deflated 0%)

Here is the look of the ejb-jar.xml:
<?xml version="1.0" encoding="Cp1252"?>
<ejb-jar>
  <description>jBoss test application </description>
  <display-name>Test</display-name>
  <enterprise-beans>
    <session>
      <ejb-name>HelloWorld</ejb-name>
      <home>HelloWorldHome</home>
      <remote>HelloWorld</remote>
      <ejb-class>HelloWorldBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Bean</transaction-type>
    </session>
  </enterprise-beans>
</ejb-jar>

Best regards, Theis




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to