java - Strange behaviour during deployment of Jboss in Eclipse -


i'm working in app with:

  • eclipse version: luna service release 1 (4.4.1)
  • jboss eap 6.3
  • maven, spring, hibernate, log4j etc...

i'm experiencing strange strange issue when doing modification in code:

if don't execute run as... maven install goals clean package -x nothing changes except debug points don't match code. build automatically enabled.

  • why happening? can because .class files not syncronized .java ones?

knowing this, it's bit tricky can deal it, every thime make modification, stop server, rebuild war file (run as... maven install) see changes applied in code , restart server.

problem comes randomly when restart server, app not start , exception:

17:40:12,816 error [org.apache.catalina.core.containerbase.[jboss.web].[default-host].[/xxx]] (serverservice thread pool -- 71) jbweb000287: exception sending context initialized event listener instance of class net.aqualogy.xf.component.web.spring.contextloaderlistener: org.springframework.beans.factory.beandefinitionstoreexception: failed load bean class: net.aqualogy.xxx.bc.impl.aclass; nested exception java.io.filenotfoundexception: class path resource [net/aqualogy/xxxx/bc/impl/xxxxe_fcdimpl$2.class] cannot opened because not exist @ org.springframework.context.annotation.configurationclasspostprocessor.processconfigbeandefinitions(configurationclasspostprocessor.java:291) [spring-context-3.2.6.release.jar:3.2.6.release] ... 19 more 17:40:16,998 error [org.apache.catalina.core] (serverservice thread pool -- 71) jbweb001103: error detected during context /myapp start, stop it

in error log:

publish failed module xxx-web eclipse.buildid=4.4.1.m20140925-0400 java.version=1.7.0_79 java.vendor=oracle corporation bootloader constants: os=win32, arch=x86_64, ws=win32, nl=es_es framework arguments: -product org.eclipse.epp.package.jee.product -perspective net.aqualogy.xf.tools.ide.ui.perspectives.xfperspective command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product -perspective net.aqualogy.xf.tools.ide.ui.perspectives.xfperspective

after breaking mind couple of days, i've found strange things:

  • if remove app server in eclipse still same exception.
  • if try clean server in eclipse exception: enter image description here
  • after removing app, server started, when go jboss administration console, still can see war file deployed there.
  • if remove app console problem not fix.
  • to make app work part of times must perform:
    1. run maven custom install: maven install goals clean package -x
    2. remove app server
    3. app , server clean.
    4. exit eclipse
    5. delete manually maven repository folder
    6. open eclipse , wait till rebuilding workspace , download dependencies
    7. add app server again

i'm quite sure server / maven configurations wrong, can't figure out search.

any ideas?

make sure project date there option update, right click on project select maven > update project, make sure project cleaned, , run maven clean install.

also i've created launch configuration options want maven launch


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -