JBoss do not deploy .jar when importing

N

Nico

Hi,
i have a problem with the deploy of ejb in JBoss.
When in a java file there is the "import", JBoss do not deploy the .jar
file.

An example:


....
import com.util.Position;
....


If i insert the above code then JBoss do not deploy the ejb.


Can anyone help me please?
Thanks,
Nico.
 
P

Philip Reimer

Nico said:
Hi,
i have a problem with the deploy of ejb in JBoss.
When in a java file there is the "import", JBoss do not deploy the .jar
file.

An example:


...
import com.util.Position;
...


If i insert the above code then JBoss do not deploy the ejb.


Can anyone help me please?

I think, if com.util.Position is neither in the jar you want to deploy
nor in JBoss's classpath then the jar cannot be deployed.
Thanks,
Nico.

HTH,
philip
 
M

Matt Humphrey

Nico said:
Hi,
i have a problem with the deploy of ejb in JBoss.
When in a java file there is the "import", JBoss do not deploy the .jar
file.

An example:


...
import com.util.Position;
...


If i insert the above code then JBoss do not deploy the ejb.

There are quite alot of steps between adding an import state (which doesn't
even really show up in the compiled code) and having the resulting code
deployed. What recompiles your code? How is your deployment package
rebuilt? How are you deploying the jar? Is it part of an ear / war? What
does JBoss say when the jar is installed / loaded (JBoss error messages can
be long and cryptic) Also, if the code does not actually change (which can
be the case if you've only added an import) you may actually be deploying
the same jar--not a new one and JBoss will not detect the change (because
there is no change.)

Matt Humphrey (e-mail address removed) http://www.iviz.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,787
Messages
2,569,627
Members
45,328
Latest member
66Teonna9

Latest Threads

Top