Hi Adrian,

I did what you told me and at last... it worked!! (though I'm not sure where
was the problem...)

Thanks a lot.

Santi.

----- Original Message -----
From: "Adrian Brock" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 04, 2003 9:50 PM
Subject: Re: [JBoss-user] RT: JBoss couldn't deploy


> On Sat, 2003-10-04 at 19:02, Santi Caballé wrote:
> > Thanks a lot for your answers.
> >
> > I checked the jre/lib/ext for the j2ee.jar but it wasn't there. Even so,
I
> > deleted all the existing jars within jre/lib/ext but JBoss kept on
reporting
> > the same problems just after compiling successfully all the HelloEJB
java
> > files with 'ant all', as usual. So, I don't know what the next step is
so as
> > to get Jboss works fine.
>
> Try the following:
>
> Uninstall then reinstall your java sdk.
> Set the property JAVA_HOME and add ${JAVA.HOME}\bin to your path
> Run java -version to make sure you are using the correct version
>
> Take your jboss distribution and unpack it.
> Put HelloWorld.jar in ${JBOSS.HOME}\server\default\deploy
> Use run.bat in ${JBOSS.HOME}\bin
>
> Regards,
> Adrian
>
> >
> > I attach my W2K's settings for if it helps.
> >
> > Thanks.
> > Santi.
> > ----- Original Message -----
> > From: "Adrian Brock" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Saturday, October 04, 2003 3:18 PM
> > Subject: Re: [JBoss-user] RT: JBoss couldn't deploy
> >
> >
> > > If you put jars in jre/lib/ext these will be loaded in preference
> > > to anything inside jboss.
> > > But classes in jre/lib/ext cannot see classes in jboss
> > > when they do Class.forName(), MyClass.class or imports.
> > >
> > > I usually see this reported with j2ee.jar in jre/lib/ext
> > >
> > > Your HelloWorld.jar deploys fine for me.
> > >
> > > Regards,
> > > Adrian
> > >
> > > On Fri, 2003-10-03 at 22:53, Santi Caballé wrote:
> > > > I did the change you said   <attribute
> > > > name="VerifyDeployments">false</attribute> and effectively now JBoss
> > doesn't
> > > > report deployment errors but it still reports two main problems just
> > after
> > > > compiling by 'ant all' (I hope they are the real errors).
> > > >
> > > > First:
> > > > ============================
> > > > 23:14:17,608 INFO  [Server] JBoss (MX MicroKernel) [3.2.1 (build:
> > > > CVSTag=JBoss_3_2_1 date=2003050415
> > > > 33)] Started in 36s:943ms
> > > > 23:14:37,937 INFO  [MainDeployer] Starting deployment of package:
> > > > file:/C:/jboss/server/default/depl
> > > > oy/HelloWorld.jar
> > > > 23:14:38,818 INFO  [EjbModule] Creating
> > > > 23:14:38,838 INFO  [EjbModule] Deploying Hello
> > > > 23:14:38,868 INFO  [StatelessSessionContainer] Creating
> > > > 23:14:38,878 ERROR [StatelessSessionContainer] Initialization failed
> > > > java.lang.ClassNotFoundException: examples.HelloHome
> > > >         at java.net.URLClassLoader$1.run(URLClassLoader.java:198
> > > > ============================
> > > > Second:
> > > > ============================
> > > > 23:14:39,149 WARN  [ServiceController] Problem creating service
> > > > jboss.j2ee:jndiName=Hello,service=EJB
> > > > java.lang.ClassNotFoundException: examples.HelloHome
> > > >         at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
> > > >         at java.security.AccessController.doPrivileged(Native
Method)
> > > > ============================
> > > >
> > > > On the other hand, my JAVA_HOME/jre/lib/ext directory (jdk 1.4.1) is
> > full
> > > > (22) of jars such as: ant.jar, junit.jar, tools.jar, xalan.jar, etc.
> > Have I
> > > > to delete all of them?
> > > >
> > > > Regarding JBoss classpath, the JBoss initial starting is
> > > > (JAVA_HOME=C:\j2sdk4):
> > > >
> > > > C:\ep4\helloejb>run
> > > >
> >
============================================================================
> > > > ===
> > > > .
> > > >   JBoss Bootstrap Environment
> > > > .
> > > >   JBOSS_HOME: C:\jboss\bin\\..
> > > > .
> > > >   JAVA: C:\j2sdk4\bin\java
> > > > .
> > > >   JAVA_OPTS:  -Dprogram.name=run.bat
> > > > .
> > > >   CLASSPATH: ;C:\j2sdk4\lib\tools.jar;C:\jboss\bin\\run.jar
> > > > .
> > > >
> >
============================================================================
> > > > ===
> > > >
> > > > Another point to take in account is that this problem arises in the
same
> > way
> > > > in two different machines which are completely independent each
other
> > and
> > > > both use W2K Professional.
> > > >
> > > > I also attach the following files (JBOSS_HOME=C:\jboss and
HOME=current
> > > > directory=C:\ep4):
> > > > - JBOSS_HOME/server/default/deploy/HelloWorld.jar
> > > > - HOME/HelloEJB/build.xml
> > > > - HOME/HelloEJB/ejb-jar.xml files.
> > > >
> > > > Thanks a lot.
> > > >
> > > > Santi.
> > > >
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Adrian Brock" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Friday, October 03, 2003 1:42 PM
> > > > Subject: Re: [JBoss-user] RT: JBoss couldn't deploy
> > > >
> > > >
> > > > > 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
> > > --
> > > 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



-------------------------------------------------------
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