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.
Open the new web application wizard. As target server choose Sun Java System Application Server and also change the Context Path. Then invoke action View Servlet over the the index.jsp. The message "The View Servlet action cannot be performed. You must run JSP page first". Even you run the JSP the view servlet doesn't work too. If you use Tomcat or JBoss as target server, then it works.
Regression?
cannot reproduce on my system... Can you chheck if the app is deployed? can you check if you see a DOMAINSDIR\domain1\generated\jsp\j2ee-modules\WEBAPPNAME and org/apache/jsp/index_jsp.java file on your system?
Ho... I did not the context root... So the API should not give context root, but the web project name in our case which is used by the backend... How can I get the project name from the context root??? Bug for you again?
Equivalent to 61749 We do not have enought context: we need a project handle then to get if its an EAR of not, then the project name etc... *** This issue has been marked as a duplicate of 61749 ***
Reopening... Ludo, please do not mix these two issues. Issue 61749 is far more complex problem when we do not even know how it should be solved from the user perspective. This issues is on the other hand quite clear and can be fixed even with the current API. Note that it works for all the other server plug-ins. The context path parameter uniquely identifies the JSP page on the server for which you want to see the servlet source code. All you have to do is to look into the domain.xml file and find the web module with the given context path... once you find the module it should be simple to find the generated sources.
I agree with Stepan. This issue is similar to issue #61749, but not exactly the same. This issue is more visible and more users can run into it.
API need: need to know which EAR prject (or not is used for this given JSP file. Need is not specific to AS.
Your solution can work but it is not performant at all. The IDE has the info. Alos jBoss plugin has similar bug.
Please, keep this issue assigned to the proper component and do not reassign it to the j2eeserver where it does not belong. If you like, you can test it on Tomcat to see that it works. Note that this issue is NOT about EARs, this one is about Web modules. And Yes, module name requirement is AS specific. JBoss, Tomcat or JOnAS needs just the given context path. Btw, what exactly do you mean by module name for the Web module? > Alos jBoss plugin has similar bug. It is not a similar bug, JBoss plug-in does not implement the FindJSPServlet interface at all, but as I said, it would not require any API change. If you insist that you cannot fix this issue until some new API is introduced, you can file an API enhancement against the j2eeserver and make this issue depend on it, but if you do so, please specify exactly all your requirements.
Fixed is now there in the plugin. The remaining issue is for EAR that the context root which is given is from the web app and not from the content of application.xml. So Nb needs to know (and it does) if this web app is inside an enterprise application or not, annd give the correct context root there for this EAR file that contains the Web app and the JSPs... The fix was mainly done by Nitya: Thanks...
> Fixed is now there in the plugin. Nitya, can you please attach the commit log and close this issue as fixed? The problem with the EAR is far more complex and is tracked in issue 61749.
http://serverplugins.netbeans.org/source/browse/serverplugins/sun/appsrvbridge/src/org/netbeans/modules/j2ee/sun/bridge/apis/AppserverMgmtController.java?r1=1.1.2.3&r2=1.1.2.4 http://serverplugins.netbeans.org/source/browse/serverplugins/sun/appsrv/src/org/netbeans/modules/j2ee/sun/api/ServerInterface.java?r1=1.1.16.1.2.2&r2=1.1.16.1.2.3 http://serverplugins.netbeans.org/source/browse/serverplugins/sun/appsrvbridge/src/org/netbeans/modules/j2ee/sun/ide/controllers/J2EEServerMgmtController.java?r1=1.1.14.1.2.4&r2=1.1.14.1.2.5 http://serverplugins.netbeans.org/source/browse/serverplugins/sun/appsrvbridge/src/org/netbeans/modules/j2ee/sun/share/management/ServerMEJB.java?r1=1.1.14.2.2.2&r2=1.1.14.2.2.3 http://serverplugins.netbeans.org/source/browse/serverplugins/sun/appsrv81/src/org/netbeans/modules/j2ee/sun/ide/j2ee/jsps/FindJSPServletImpl.java?r1=1.2.8.2.2.1&r2=1.2.8.2.2.2 Now, issue 61749 is a P3, right? I'll bump it as P2, as this is equivalent to this one.