I'm trying to deploy an EAR file to an application server. The project builds using Maven 3 in NetBeans 7.
When I try to deploy Glassfish and Websphere CE tell me certain classes cannot be found even though they are packaged in the EAR file. The app servers can see the other classes in the package just not all of them.
What could the problem be? I've been trying to solve this all day. I looked at the Maven POM files and I've been reading about deployment descriptors but I don't seem to be making in progress.
The error I get is SEVERE: Class [className] not found. Error while loading [className]
Here is the main pom file for the project:
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>SeaMarNetting</artifactId>
<groupId>com.manageinc.seamar</groupId>
<version>1.0RC1</version>
</parent>
<groupId>${project.parent.groupId}</groupId>
<artifactId>SeaMarNetting-ear</artifactId>
<packaging>ear</packaging>
<version>${project.parent.version}</version>
<name>SeaMarNetting-ear JEE5 Assembly</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>${project.parent.groupId}</groupId>
<artifactId>SeaMarNetting-project-deps</artifactId>
<version>${project.parent.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>${project.parent.groupId}</groupId>
<artifactId>SeaMarNetting-ejb</artifactId>
<version>${project.parent.version}</version>
<type>ejb</type>
</dependency>
<dependency>
<groupId>${project.parent.groupId}</groupId>
<artifactId>SeaMarNetting-jpa</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>${project.parent.groupId}</groupId>
<artifactId>SeaMarNetting-web</artifactId>
<version>${project.parent.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>com.manageinc.seamar</groupId>
<artifactId>SeaMarNetting-web</artifactId>
<version>1.0RC1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>${source.version}</source>
<target>${compile.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<version>2.4.2</version>
<configuration>
<version>5</version>
<displayName>SeaMarNetting</displayName>
<modules>
<jarModule>
<groupId>${project.parent.groupId}</groupId>
<artifactId>SeaMarNetting-jpa</artifactId>
</jarModule>
<ejbModule>
<groupId>${project.parent.groupId}</groupId>
<artifactId>SeaMarNetting-ejb</artifactId>
</ejbModule>
<webModule>
<groupId>${project.parent.groupId}</groupId>
<artifactId>SeaMarNetting-web</artifactId>
<contextRoot>/nets</contextRoot>
</webModule>
</modules>
</configuration>
</plugin>
</plugins>
</build>
I tried changing the scope as recommended but I get the same error messages. I just started using Maven and I'm sure it's something simple I'm unaware of.
Thanks.