Re: [JBoss-user] newbie.. problem with startingjboss-tomcat-2.2

2001-04-16 Thread srajan

Hi, 
The sealing exception occurs when you load the jar files more than 
once. The tomcat jars are jarred with the sealing option.Clean out your 
classpath on the system and make sure you load the jars only once.

Sunder

- Original Message -
From: danch <[EMAIL PROTECTED]>
Date: Monday, April 16, 2001 5:21 pm
Subject: Re: [JBoss-user] newbie.. problem with starting jboss-tomcat-
2.2

> This is usually a classpath issue. Try running run.bat with an 
> empty 
> classpath (`set classpath=`)
> 
> -danch
> 
> Arun wrote:
> 
> > hi,
> > im getting the following error when i run the run.bat file..
> > I have modified the jboss.conf, jboss.jcml, server.xml files as 
> given in the documentation..
> > pls help.
> > thanx
> > Arun
> > 
> > 
> > G:\jboss-tomcat-2.2\jboss-2.2\bin>run
> > jboss.home = G:\jboss-tomcat-2.2\jboss-2.2
> > Using configuration "tomcat"
> > [Info] Java version: 1.3.0,Sun Microsystems Inc.
> > [Info] Java VM: Java HotSpot(TM) Client VM 1.3.0-C,Sun 
> Microsystems Inc.
> > [Info] System: Windows NT 4.0,x86
> > [Shutdown] Shutdown hook added
> > [Service Control] Registered with server
> > [Default] java.lang.SecurityException: sealing violation
> > [Default]   at java.net.URLClassLoader.defineClass(Unknown 
> Source)> [Default]   at 
> java.net.URLClassLoader.access$100(Unknown Source)
> > [Default]   at java.net.URLClassLoader$1.run(Unknown Source)
> > [Default]   at 
> java.security.AccessController.doPrivileged(Native Method)
> > [Default]   at java.net.URLClassLoader.findClass(Unknown Source)
> > [Default]   at java.lang.ClassLoader.loadClass(Unknown Source)
> > [Default]   at 
> sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> > [Default]   at java.lang.ClassLoader.loadClass(Unknown Source)
> > [Default]   at 
> java.lang.ClassLoader.loadClassInternal(Unknown Source)
> > [Default]   at java.lang.ClassLoader.defineClass0(Native Method)
> > 
> > 
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] newbie.. problem with starting jboss-tomcat-2.2

2001-04-16 Thread danch

This is usually a classpath issue. Try running run.bat with an empty 
classpath (`set classpath=`)

-danch

Arun wrote:

> hi,
> im getting the following error when i run the run.bat file..
> I have modified the jboss.conf, jboss.jcml, server.xml files as given in the 
>documentation..
> pls help.
> thanx
> Arun
> 
> 
> G:\jboss-tomcat-2.2\jboss-2.2\bin>run
> jboss.home = G:\jboss-tomcat-2.2\jboss-2.2
> Using configuration "tomcat"
> [Info] Java version: 1.3.0,Sun Microsystems Inc.
> [Info] Java VM: Java HotSpot(TM) Client VM 1.3.0-C,Sun Microsystems Inc.
> [Info] System: Windows NT 4.0,x86
> [Shutdown] Shutdown hook added
> [Service Control] Registered with server
> [Default] java.lang.SecurityException: sealing violation
> [Default]   at java.net.URLClassLoader.defineClass(Unknown Source)
> [Default]   at java.net.URLClassLoader.access$100(Unknown Source)
> [Default]   at java.net.URLClassLoader$1.run(Unknown Source)
> [Default]   at java.security.AccessController.doPrivileged(Native Method)
> [Default]   at java.net.URLClassLoader.findClass(Unknown Source)
> [Default]   at java.lang.ClassLoader.loadClass(Unknown Source)
> [Default]   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> [Default]   at java.lang.ClassLoader.loadClass(Unknown Source)
> [Default]   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> [Default]   at java.lang.ClassLoader.defineClass0(Native Method)
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] newbie.. problem with starting jboss-tomcat-2.2

2001-04-16 Thread Arun

hi,
im getting the following error when i run the run.bat file..
I have modified the jboss.conf, jboss.jcml, server.xml files as given in the 
documentation..
pls help.
thanx
Arun


G:\jboss-tomcat-2.2\jboss-2.2\bin>run
jboss.home = G:\jboss-tomcat-2.2\jboss-2.2
Using configuration "tomcat"
[Info] Java version: 1.3.0,Sun Microsystems Inc.
[Info] Java VM: Java HotSpot(TM) Client VM 1.3.0-C,Sun Microsystems Inc.
[Info] System: Windows NT 4.0,x86
[Shutdown] Shutdown hook added
[Service Control] Registered with server
[Default] java.lang.SecurityException: sealing violation
[Default]   at java.net.URLClassLoader.defineClass(Unknown Source)
[Default]   at java.net.URLClassLoader.access$100(Unknown Source)
[Default]   at java.net.URLClassLoader$1.run(Unknown Source)
[Default]   at java.security.AccessController.doPrivileged(Native Method)
[Default]   at java.net.URLClassLoader.findClass(Unknown Source)
[Default]   at java.lang.ClassLoader.loadClass(Unknown Source)
[Default]   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
[Default]   at java.lang.ClassLoader.loadClass(Unknown Source)
[Default]   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
[Default]   at java.lang.ClassLoader.defineClass0(Native Method)


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] newbie problem

2001-04-05 Thread Emmanuel Sciara

- Original Message -
From: "Thomas Sutter" <[EMAIL PROTECTED]>
To: "Emmanuel Sciara" <[EMAIL PROTECTED]>
Sent: Thursday, April 05, 2001 2:18 PM
Subject: Re: [JBoss-user] newbie problem


> The jboss.xml looks like following:
>
> 
>
> 
>   false
>
>  
>InterestBean
>interest/Interest
> Default Stateless SessionBean
>  
>   
> 
>
>
> I was able to deploy the example in the meantime, but I don't know
> why
>


Here we go! Your ejb-name should be Interest, not InterestBean!

>
> Could it be, that JBoss is a bit like magic?

Jboss *is* magic, but in different way ;)

> I have changed the transaction-type to Container and then I was able to
> deploy the example and run the client. But I really wanted to know if it
> was the transaction-type that let me waste 2 days of that wonderful
> life. So I changed it back to Bean and the deployment was succesfull
> too. With other words I don't know why I'm now able to deploy. I tested
> almost every combination of variables but I always can deploy.

My wild guess is that more stuff is done being the woods during deployement
of Bean managed transactions.

> So I don't think about it longer, but simply enjoy the sunny weather!!

Your lucky. It's rainning in London. You should nevertheless try checking
whether the ejb-name was the problem. Just to be sure.

> Thanks for helping,

Gruessdich!

Emmanuel
>
> Emmanuel Sciara schrieb:
> >
> > Do you have a jboss.xml file along with your ejb.xml?
> >
> > As a side question, are you sure you want transactions to be Bean
managed?
> > If not you better change you transaction type to Container.
> >
> > Hope this helps
> >
> > Emmanuel
> >
> > - Original Message -
> > From: "Thomas Sutter" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, April 05, 2001 11:47 AM
> > Subject: [JBoss-user] newbie problem
> >
> > > Hi there!
> > >
> > > I am new to JBoss and just trying it. The server ist running well with
> > > embedded TomCat. I'm using JBoss 2.1 with Tomcat 3.2.1 on a
> > > Win2k-machine.
> > > But I have problems with deploying EJBs on JBoss. I was following the
> > > instructions shown in the documentation "Beginning EJB programming
using
> > > JBoss" with the interest-example. Everything goes fine but when I copy
> > > the interest.jar-file into the /dist/deploy-directory I get following
> > > error:
> > >
> > > .
> > > .
> > > .
> > > [J2EE Deployer Default] Create application interest.jar
> > > [J2EE Deployer Default] install module interest.jar
> > > [Container factory] Deploying:file:/z:/JBoss/jboss-tomcat-2.1-beta/
> > > jboss-2.1/tmp/deploy/Default/interest.jar
> > > [Container factory] org.jboss.ejb.DeploymentException: Error in
> > > ejb-jar.xml for Entity Bean null: expected one ejb-name tag
> > > [Container factory]
> > > org.jboss.metadata.ApplicationMetaData.importEjbJarXML
> > > (ApplicationMetaData.java:109)
> > > .
> > > .
> > > .
> > >
> > > It seems that the container can't find an ejb-name tag, although I
have
> > > one in my ejb-jar.xml (see below).
> > >
> > > My ejb-jar.xml:
> > >
> > > 
> > >
> > > 
> > >   jBoss test application 
> > >   Test
> > >   
> > > 
> > >   Interest
> > >   com.web_tomorrow.interest.InterestHome
> > >   com.web_tomorrow.interest.Interest
> > >   com.web_tomorrow.interest.InterestBean
> > >   Stateless
> > >   Bean
> > > 
> > >   
> > > 
> > >
> > >
> > > My question now ist, why doesn't the container find the tag and why
does
> > > he look "for Entity Bean null"??
> > >
> > > Thanks in advance
> > >
> > > Thomas
> > >
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] newbie problem

2001-04-05 Thread Iny, Yair

Hi,

Check your ejb-jar.xml file in the EJB jarfile.

There should be one and only one  tag for the session bean (inside
the  tag).

Good luck,
Yair Iny

-Original Message-
From: Thomas Sutter [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 05, 2001 12:48 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] newbie problem


Hi there!

I am new to JBoss and just trying it. The server ist running well with
embedded TomCat. I'm using JBoss 2.1 with Tomcat 3.2.1 on a
Win2k-machine. 
But I have problems with deploying EJBs on JBoss. I was following the
instructions shown in the documentation "Beginning EJB programming using
JBoss" with the interest-example. Everything goes fine but when I copy
the interest.jar-file into the /dist/deploy-directory I get following
error:

.
.
.
[J2EE Deployer Default] Create application interest.jar
[J2EE Deployer Default] install module interest.jar  
[Container factory] Deploying:file:/z:/JBoss/jboss-tomcat-2.1-beta/
jboss-2.1/tmp/deploy/Default/interest.jar
[Container factory] org.jboss.ejb.DeploymentException: Error in
ejb-jar.xml for Entity Bean null: expected one ejb-name tag
[Container factory]
org.jboss.metadata.ApplicationMetaData.importEjbJarXML
(ApplicationMetaData.java:109)
.
.
.

It seems that the container can't find an ejb-name tag, although I have
one in my ejb-jar.xml (see below).

My ejb-jar.xml:




  jBoss test application 
  Test
  

  Interest
  com.web_tomorrow.interest.InterestHome
  com.web_tomorrow.interest.Interest
  com.web_tomorrow.interest.InterestBean
  Stateless
  Bean

  



My question now ist, why doesn't the container find the tag and why does
he look "for Entity Bean null"??

Thanks in advance

Thomas

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] newbie problem

2001-04-05 Thread Thomas Sutter

Hi there!

I am new to JBoss and just trying it. The server ist running well with
embedded TomCat. I'm using JBoss 2.1 with Tomcat 3.2.1 on a
Win2k-machine. 
But I have problems with deploying EJBs on JBoss. I was following the
instructions shown in the documentation "Beginning EJB programming using
JBoss" with the interest-example. Everything goes fine but when I copy
the interest.jar-file into the /dist/deploy-directory I get following
error:

.
.
.
[J2EE Deployer Default] Create application interest.jar
[J2EE Deployer Default] install module interest.jar  
[Container factory] Deploying:file:/z:/JBoss/jboss-tomcat-2.1-beta/
jboss-2.1/tmp/deploy/Default/interest.jar
[Container factory] org.jboss.ejb.DeploymentException: Error in
ejb-jar.xml for Entity Bean null: expected one ejb-name tag
[Container factory]
org.jboss.metadata.ApplicationMetaData.importEjbJarXML
(ApplicationMetaData.java:109)
.
.
.

It seems that the container can't find an ejb-name tag, although I have
one in my ejb-jar.xml (see below).

My ejb-jar.xml:




  jBoss test application 
  Test
  

  Interest
  com.web_tomorrow.interest.InterestHome
  com.web_tomorrow.interest.Interest
  com.web_tomorrow.interest.InterestBean
  Stateless
  Bean

  



My question now ist, why doesn't the container find the tag and why does
he look "for Entity Bean null"??

Thanks in advance

Thomas

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user