That looks ok as well.

Next thing to try is to turn off the verifier.
There was a bug in the verifier where it didn't report
the real exception (it just reported it couldn't load the
class). Turning off the verifier will mean jboss just deploys
it, you should see the real error.
This option is on the EJBDeployer in conf/jboss-service.xml
    <attribute name="VerifyDeployments">false</attribute>

Also, can you can check for me that you are not putting
jars in the classpath of jboss or in jre/lib/ext of
your VM installation. This can break class visibility.

If none of the above works, send me the jar.
I'll try it and tell you where you went wrong.

Regards,
Adrian

On Fri, 2003-10-03 at 09:34, EN_SANTI wrote:
> Hi Adrian,
> 
> As the classes that fail are HelloHome and Hello I post 
>  the source of both:
>  
>  =======
>  package examples;
>  
>  /**
>   * This is the home interface for HelloBean.  This interface
>   * is implemented by the EJB Server's tools - the
>   * implemented object is called the Home Object, and serves
>   * as a factory for EJB Objects.
>   *
>   * One create() method is in this Home Interface, which
>   * corresponds to the ejbCreate() method in HelloBean.
>   */
>  public interface HelloHome extends javax.ejb.EJBHome
>  {
>  
>      /*
>       * This method creates the EJB Object.
>       *
>       * @return The newly created EJB Object.
>       */
>      Hello create() throws java.rmi.RemoteException,
>          javax.ejb.CreateException;
>  }
>   ============
>  package examples;
>  
>  /**
>   * This is the HelloBean remote interface.
>   *
>   * This interface is what clients operate on when
>   * they interact with EJB objects.  The container
>   * vendor will implement this interface; the
>   * implemented object is the EJB object, which
>   * delegates invocations to the actual bean.
>   */
>  public interface Hello extends javax.ejb.EJBObject
>  {
>  
>    /**
>     * The one method - hello - returns a greeting to the client.
>     */
>    public String hello() throws java.rmi.RemoteException;
>  }
>  
>  =============
>  
> I should say it is a problem that it seems doesn't have an easy 
> solution. I'm Computer Science studient at a spanish university and my 
> lab professor is not able to find a 'good' solution given that the only 
> solution provided by him is to upgrade from W2K to WXP. I don't agree 
> and I believe there has to be a better solution. 
> 
> That's all. 
> Thanks a lot.
>  
> Santi.
>  
> >Looks ok, can you post the source for the classes that fail.
> > I want to look at the package declaration and imports.
> >
> >Regards,
> >Adrian
>  
>  On Thu, 2003-10-02 at 17:45, Santi Caballe Llobet wrote:
>  > Hi Adrian, 
>  > 
>  > First of all thank you for answering. The HelloWorld.jar's 
>  content 
>  > is:
>  > 
>  > =====================================
>  > C:\jboss\server\default\deploy>jar -tf HelloWorld.jar
>  > META-INF/
>  > META-INF/MANIFEST.MF
>  > examples/
>  > examples/Hello.class
>  > examples/HelloBean.class
>  > examples/HelloHome.class
>  > examples/HelloLocal.class
>  > examples/HelloLocalHome.class
>  > META-INF/ejb-jar.xml
>  > 
>  > C:\jboss\server\default\deploy>
>  > ===================================
>  > 
>  > Thanks a lot.
>  > 
>  > Santi.
>  > 
>  > > Post the output from 
>  > > 
>  > > jar -tf HelloWorld.jar
>  > > 
>  > > Regards,
>  > > Adrian
>  > > 
>  > > On Thu, 2003-10-02 at 17:06, Santi Caballe Llobet wrote:
>  > > > Hi everybody,
>  > > > 
>  > > > I got a problem while JBoss was deploying the traditional 
>  > HelloEJB 
>  > > > sample. The most interesting part of the JBoss's log says:
>  > > > 
>  > > > ====================================
>  > > > 12:20:23,302 WARN  [verifier] EJB spec violation:
>  > > > Bean   : Hello
>  > > > Section: 22.2
>  > > > Warning: The bean provider must specify the fully-qualified 
>  > name 
>  > > > of the enterprise bean's remote home interface, if any, in 
>  the 
>  > < 
>  > > > home > 
>  > > > element.
>  > > > Info   : Class not found: examples.HelloHome
>  > > > 
>  > > > 12:20:23,312 WARN  [verifier] EJB spec violation:
>  > > > Bean   : Hello
>  > > > Section: 22.2
>  > > > Warning: The bean provider must specify the fully-qualified 
>  > name 
>  > > > of the enterpri
>  > > > se bean's remote interface, if any, in the < remote > element.
>  > > > Info   : Class not found: examples.Hello
>  > > > 
>  > > > 12:20:23,352 ERROR [MainDeployer] could not create 
>  deployment: 
>  > > > file:/C:/jboss/se
>  > > > rver/default/deploy/HelloWorld.jar
>  > > > org.jboss.deployment.DeploymentException: Verification of 
>  > > > Enterprise Beans failed, see above for error messages.
>  > > >         at org.jboss.ejb.EJBDeployer.create
>  > (EJBDeployer.java:487)
>  > > > ===================================================
>  > > > 
>  > > > As it seems a descriptor problem I also post the ejb.jar (I 
>  > think 
>  > > > my W2K classpath settings are fully correct):
>  > > > 
>  > > > < !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 >Hello< /ejb-name >
>  > > >    < home >examples.HelloHome< /home >
>  > > >    < remote >examples.Hello< /remote >
>  > > >    < local-home >examples.HelloLocalHome< /local-home >
>  > > >    < local >examples.HelloLocal< /local >
>  > > >    < ejb-class >examples.HelloBean< /ejb-class >
>  > > >    < session-type >Stateless< /session-type >
>  > > >    < transaction-type >Container< /transaction-type >
>  > > >   < /session >
>  > > >  < /enterprise-beans >
>  > > > < /ejb-jar >
>  > > > 
>  > > > I'd thank a lot any help !
>  > > > 
>  > > > Santi.
>  > > -- 
>  > > xxxxxxxxxxxxxxxxxxxxxxxx 
>  > > Adrian Brock
>  > > Director of Support
>  > > Back Office
>  > > JBoss Group, LLC 
>  > > xxxxxxxxxxxxxxxxxxxxxxxx 
>  > > 
>  > > 
>  > > 
>  > > -------------------------------------------------------
>  > > This sf.net email is sponsored by:ThinkGeek
>  > > Welcome to geek heaven.
>  > > http://thinkgeek.com/sf
>  > > _______________________________________________
>  > > JBoss-user mailing list
>  > > [EMAIL PROTECTED]
>  > > https://lists.sourceforge.net/lists/listinfo/jboss-user
>  -- 
>  xxxxxxxxxxxxxxxxxxxxxxxx 
>  Adrian Brock
>  Director of Support
>  Back Office
>  JBoss Group, LLC 
>  xxxxxxxxxxxxxxxxxxxxxxxx 
>  
> 
> 
> 
> 
> 
>       
> 
> 
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
xxxxxxxxxxxxxxxxxxxxxxxx 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
xxxxxxxxxxxxxxxxxxxxxxxx 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to