maven


Could not find sub module [portal-service-ejb-1.4-SNAPSHOT.jar] as defined in application.xml


I am using maven and NetBeans. I was able to deploy and run my application. But now it throws an error:
Error occurred during deployment: Exception while deploying the app [portal-ear-1.4-SNAPSHOT] : Could not find sub module [portal-service-ejb-1.4-SNAPSHOT.jar] as defined in application.xml.
When I go to target/portal-ear-1.4-SNAPSHOT I can see portal-service-ejb-1.4-SNAPSHOT.jar But still it throws me this error.
My application.xml :
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd" version="6">
<display-name>e2e-portal-ear</display-name>
<module>
<web>
<web-uri>portal-war-1.4-SNAPSHOT.war</web-uri>
<context-root>/portal</context-root>
</web>
</module>
<module>
<ejb>portal-repository-ejb-1.4-SNAPSHOT.jar</ejb>
</module>
<module>
<ejb>portal-service-ejb-1.4-SNAPSHOT.jar</ejb>
</module>
<library-directory>lib</library-directory>
</application>
Finally I resolved this bug.
So it was a file in C:\Program Files\glassfish-3.1.2\glassfish\domains\domain1\applications\portal-ear-1.4-SNAPSHOT
There was a file here. Which I think it saves the state of the application or something. I just removed it and everything now works fine.

Related Links

accessExternalDTD property ignoring catalog file
How do I get Maven to work in RHEL 7.x when there are npm install errors?
Releasing multiple projects with custome staging to Maven Central
Maven tool is not set in Jenkins pipeline
I cann't create maven project with myeclipse2016
Maven:Including jars from remote repository
tell maven to get JAR dependency from given URL
Repairslab software editing [closed]
what is the best way to upload file with javaee maven
Maven Error “cant find or load main class…”
I run a maven project with the package goal. I defined the main class in the manifest but I still cannot have the jar file run in command prompt. Why?
Why including bom doesn't work?
runtime deployment of decision table in KIE
java.lang.IllegalArgumentException: At least one JPA metamodel must be present
Defining suppressions filter in checkstyle.xml vs pom.xml - maven-checkstyle plugin
Missing artifact org.glassfish.jersey.media:jaxrs-media-moxy:jar:2.16 in Maven project in Eclipse ,what to do?

Categories

HOME
ms-access
keras
dictionary
kde
angular-material
alfresco
jsrender
umd
acquia
flyway4
elasticsearch-hadoop
django-simple-history
facebook-page
database-replication
sms-gateway
one-hot-encoding
java-3d
jquery-ajaxq
graphicsmagick
web-sql
cultureinfo
social-media
elasticsearch-ruby
semantic-versioning
http-referer
sequential
sqlite2
node-gyp
android-mediaprojection
arena-simulation
angular-resource
menuitem
user-accounts
boost-multi-index
svmlight
np-complete
r-forge
namecoin
titanium-android
android-fonts
passport-google-oauth
mikroc
fuzzy-search
prettytensor
php-parse-error
ptrace
uid
historian
ford-fulkerson
eclipse-clp
python-3.2
qdialog
interrupted-exception
graph-drawing
census
composite
asp.net-dynamic-data
applescript-objc
gulp-less
mechanize-ruby
datagridviewcolumn
message-driven-bean
gnu-smalltalk
floating-point-precision
jsctypes
access-rights
bulkloader
easy-install
flash-builder4.5
mylyn
pushbackinputstream
xamlparseexception
sqlperformance
hamiltonian-cycle
isnullorempty
trusted
work-stealing
libc++
xmlspy
inotifycollectionchanged
locate
blitz++
zend-tool
sef
iweb
photoshop-cs4
genealogy
.net-1.0

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App