[JBoss JIRA] Created: (JBIDE-473) JBoss AS ignores context root property of dynamic web project
by Viacheslav Kabanovich (JIRA)
JBoss AS ignores context root property of dynamic web project
-------------------------------------------------------------
Key: JBIDE-473
URL: http://jira.jboss.com/jira/browse/JBIDE-473
Project: JBoss Tools
Issue Type: Feature Request
Reporter: Viacheslav Kabanovich
Open editor for Tomcat Server (double click Tomcat node in Servers view). The editor has two tabs - Overview and Modules. In Modules tab, it is possible to select a registered web project and call dialog for changing path (context root) property by Edit button. Then, for example, if project's name is MyProject but path is set to /OurProject, in order to access the application running on Tomcat server one has to type in browser an address like http://localhost:8080/OurProject rather than http://localhost:8080/MyProject.
Red Hat studio defines menu action 'Register Web Context in Server', which invokes dialog that allows to set context root property. That works fine with Tomcat server, but fails with JBoss AS, because it seems that its implementation ignores this property of web project when deploying it. Hence, the request is to develop this functionality of JBoss AS to the level of Tomcat server.
Context root property is accessible through class org.eclipse.wst.common.componentcore.internal.util.ComponentUtilities with methods
public static void setServerContextRoot(IProject project, String contextRoot)
public static String getServerContextRoot(IProject project)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 2 months
[JBoss JIRA] Created: (JBIDE-830) JSF support: linked folders
by Petr Lindovsky (JIRA)
JSF support: linked folders
---------------------------
Key: JBIDE-830
URL: http://jira.jboss.com/jira/browse/JBIDE-830
Project: JBoss Tools
Issue Type: Bug
Affects Versions: 2.0.0.Beta3
Environment: Windows XP
Reporter: Petr Lindovsky
I have a Web project (originally developed in another IDE) where the META-INF and WEB-INF directories are located directly under the root of the project (e.g. next to src).
So I can't take the project root as the web content directory. To make this work with Europa, I created a new WebConent directory under the root and added folder links there pointing to the existing META-INF and WEB-INF. This now works in Europa.
Is it possible to add RedHat JSF support to this? This wizard doesn't seem to take this into account.
I created a project where you can see the problem: It works in Europa (you can use Export > WAR file and Run As > Run On Server) but I don't know hat to make it work with the RedHat JSF support.
(Note: I used absolute paths in the links in the project; in reality we used path variables to enable sharing.)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 8 months
[JBoss JIRA] Created: (JBIDE-910) Servlet Generator for Dynamic Web Project is creating errornous web.xml files
by Steve Davidson (JIRA)
Servlet Generator for Dynamic Web Project is creating errornous web.xml files
-----------------------------------------------------------------------------
Key: JBIDE-910
URL: http://jira.jboss.com/jira/browse/JBIDE-910
Project: JBoss Tools
Issue Type: Bug
Components: JBoss Tools Core
Affects Versions: 2.0.0.Beta3
Environment: Windows XP Professionial SP2
Reporter: Steve Davidson
When creating a Servlet using the New File - Servlet wizard in a Dynamic Web Project in a clean workspace, the web.xml file is not properly created. Specifically, this is what gets generated;
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>
DemoFlaw</display-name>
<servlet>
<description>
</description>
<display-name>
DemoServlet</display-name>
<servlet-name>DemoServlet</servlet-name>
<servlet-class>
org.ccccd.webone.DemoServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>DemoServlet</servlet-name>
<url-pattern>/DemoServlet</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>
The extra whitespace at the end of the start tag <servlet-class> causes the deployment to fail. This is occuring on 100% of the computers in the Java Web Class that I am teaching.
-Steve
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 11 months
[JBoss JIRA] Created: (JBIDE-1246) service beans code completion is broken
by Max Andersen (JIRA)
service beans code completion is broken
---------------------------------------
Key: JBIDE-1246
URL: http://jira.jboss.com/jira/browse/JBIDE-1246
Project: JBoss Tools
Issue Type: Bug
Components: JBossAS
Reporter: Max Andersen
Assigned To: Rob Stryker
Fix For: 2.1
While fixing the identification of service xml I found that the code completion is broken in service.xml
It looks like the code is searching for code completions manually and assumes way too much about what the searchengine can/should find.
e.g. PackageTypeSearcher.getPackage() assumes only one packagefragment per name will be found, but that is not the case if you have multiple projects with the same jar or simply uses the same package name in diffeerent projects.
One way to solve it is to use the built in codecompetlion in JDT - an example of that is to be found in CompletionHelper.java in the hibernate plugins.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years