Hi all,

I'm currently trying to use Maven2 for creating an EAR file which
contains among some utitlity-JARs an EJB-project using EJB 2.1 and
containing one message driven bean.

I have problems there compiling the project as the EJB-implementation
should be used from a WebSphere 6.0 server. So what I did is to put the
j2ee.jar from WebSphere into my local Maven2 repository. But when I
compile with like "mvn install" I get the following error messages:

Downloading: http://repo1.maven.org/maven2/websphere/j2ee/1/j2ee-1.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[INFO] [compiler:compile]
[INFO] Compiling 1 source file to D:\projects\ProjectEJB\target\classes
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
----------------------------------------------------------------------------
[INFO] Compilation failure
MDBBean.java:[143,44] cannot resolve symbol
symbol  : method createConnection (java.lang.String,java.lang.String)
location: interface javax.jms.ConnectionFactory
MDBBean.java:[146,49] cannot resolve symbol
symbol  : method createSession (boolean,int)
location: interface javax.jms.Connection
MDBBean.java:[149,61] cannot resolve symbol
symbol  : method createProducer (javax.jms.Destination)
location: interface javax.jms.Session
MDBBean.java:[161,32] cannot resolve symbol
symbol  : method send (javax.jms.MapMessage)
location: interface javax.jms.MessageProducer

My repository contains the file websphere/j2ee/1/j2ee-1.jar which I
copied from the WebSphere/lib directory and which indeed does contain
the classes Maven2 is moaning about.

The dependency config is:
<dependencies>
    <dependency>
      <groupId>websphere</groupId>
      <artifactId>j2ee</artifactId>
      <version>1</version>
    </dependency>
    <dependency>
      <groupId>websphere</groupId>
      <artifactId>mail</artifactId>
      <version>impl</version>
    </dependency>
    <dependency>
      <groupId>websphere</groupId>
      <artifactId>activation</artifactId>
    <version>impl</version>
  </dependency>
<dependency>


I copied the activation-impl.jar and mail-impl.jar into my local repo
too, because the MANIFEST.MF of j2ee.jar contains them. Still it doesn't
compile.

Any help at this point is very appreciated.

Is it possible to include the whole WebSphere runtime or would I need to
import all the jar's to my local repo (like >100 :( )?

Kind regards
Marcus

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to