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

Starting two instances of jetty with different maven (war)modules
jenkins maven setPerCoreThreadCount
Can't download artefacts from my nexus server
IntelliJ Error : “Cannot Resolve Symbol” in all maven dependencies
How do I properly configure h2 in OpenShift
Use Android Studio With Maven ONLY
Resolving transitive dependency
Maven Clean Fails on Linux Vagrant Shared Drive
How to properly mavenize grails project in Netbeans
OpenShift maven plugin
Serving GWT Dependency in .war Project
Getting an unexpected exception in NetBeans
Maven tomcat plugin - how to fail build if deployment fails
how to use maven command to deploy war package to local tomcat
VM Options missing for Maven Project
Create Symlink for dependencies in Maven assembly

Categories

HOME
hook
plone
appx
onedrive
sd-card
google-docs
gis
c#-2.0
baqend
mvvmcross
acquia
esper
gorm
communication
fancybox-3
kentor-authservices
floating-action-button
postgres-xl
circular-dependency
after-effects
tostring
jqwidget
code-review
core-text
social-media
jspm
libssl
vision
procdump
instant-messaging
galsim
pdb
phpfreechat
asset-pipeline
accelerate-framework
mozilla
rotational-matrices
sequential
android-ble
neuroscience
android-browser
angularjs-factory
azure-ml
preconditions
optix
osx-mavericks
worksheet
rdfs
lowpass-filter
ifs
flutterwave
imanage
vtigercrm
pycaffe
cubes
setuptools
infix-notation
home-directory
fputcsv
actionbardrawertoggle
photobucket
hsv
eclipse-clp
tarjans-algorithm
rgeo
geonetwork
oxwall
cdt
project-planning
jquery-layout
mechanize-ruby
meteor-velocity
viadeo
geos
dataadapter
jquery-knob
cisco-jtapi
datawindow
coredump
invite
yui-datatable
castle-monorail
compiler-specific
photoshop-cs4
adrotator
phonon
data-acquisition

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