This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Referring to the issue http://netbeans.org/bugzilla/show_bug.cgi?id=177230 I 'd like to point out to an AOP exception logged in the IDE log when a WAR file is deployed to JBoss 5.x AS via NetBeans "DeployOnSave" function. I am not sure, if this exception is the reason for the failed "DeployOnSave" update when changing any JSP or Java file. If this is the case, please try to fix it. Below you can find the stacktrace of the IDE log. Best regards tb INFO [org.netbeans.modules.j2ee.jboss4.JBDeployer] java.lang.NoSuchMethodException: AOPProxy$2.load() at java.lang.Class.getDeclaredMethod(Class.java:1937) at org.netbeans.modules.j2ee.jboss4.JBoss5ProfileServiceProxy.isReady(JBoss5ProfileServiceProxy.java:104) [catch] at org.netbeans.modules.j2ee.jboss4.JBDeployer.isApplicationReady(JBDeployer.java:330) at org.netbeans.modules.j2ee.jboss4.JBDeployer.waitForUrlReady(JBDeployer.java:283) at org.netbeans.modules.j2ee.jboss4.JBDeployer.run(JBDeployer.java:243) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968) WARNING [org.openide.filesystems.Ordering]: Not all children in Loaders/text/x-ant+xml/Factories/ marked with the position attribute : [org-apache-tools-ant-module-loader-AntProjectDataLoader.instance], but some are: [org.apache.tools.ant.module.resources.xml-ergonomics.instance] WARNING [org.openide.awt.HtmlRenderer]: Malformed or unsupported HTML WARNING [org.openide.awt.HtmlRenderer]: <html><html><font color="#808080"><Enter new watch></font></html></html> WARNING [org.openide.awt.HtmlRenderer]: ^ WARNING [org.openide.awt.HtmlRenderer]: Full HTML string:<html><html><font color="#808080"><Enter new watch></font></html></html> WARNING [org.netbeans.core.startup.InstalledFileLocatorImpl]: no code name base passed when looking up docs/jstl11-doc.zip at org.netbeans.modules.web.core.syntax.JspSyntaxSupport.initHelp(JspSyntaxSupport.java:779) WARNING [org.netbeans.core.startup.InstalledFileLocatorImpl]: no code name base passed when looking up docs/jsf12-tlddoc.zip at org.netbeans.modules.web.core.syntax.JspSyntaxSupport.initHelp(JspSyntaxSupport.java:808) WARNING [org.netbeans.core.startup.InstalledFileLocatorImpl]: no code name base passed when looking up docs/struts-tags.zip at org.netbeans.modules.web.core.syntax.JspSyntaxSupport.initHelp(JspSyntaxSupport.java:821) WARNING [org.netbeans.core.startup.InstalledFileLocatorImpl]: no code name base passed when looking up docs/syntaxref20.zip at org.netbeans.modules.web.core.syntax.JspSyntaxSupport.initCompletionData(JspSyntaxSupport.java:918)
Changed component to JBoss
Deploy on Save has never been supported on JBoss. The exception is just info. If it does not cause other problems it is ok. Would be interesting to know the exact version and configuration of server/domain possibly with sample to app to reproduce.
Thanks for feedback. Since I am a Netbeans newbie - but enthusiastic one - I wasn't aware that there is no DeployOnSave support for JBoss AS. The problem is quite easy to reproduce because the automatic update of the JBoss deployment fails overtime - that was my experience. I assume the main problem is that the war/ear artifact is not deployed as an exploded file by the Netbeans IDE. If the Netbeans Maven plugin would deploy the file in exploded mode - e.g. like the maven-cargo-plugin - then the DeployOnSave function might work. Nevertheless I will attach a sample project. For my tests I use the JBoss AS version 5.0.0 with default server configuration.
Created attachment 104947 [details] Maven war project failing to auto deploy on JBoss AS 5.x Maven war project that cannot be automatically deployed on save for JBoss AS 5.x