[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
14 years, 4 months
[JBoss JIRA] (JBIDE-10079) JPA: NPE when NamingStrategy with xml mapping is used
by Dmitry Geraskov (Created) (JIRA)
JPA: NPE when NamingStrategy with xml mapping is used
-----------------------------------------------------
Key: JBIDE-10079
URL: https://issues.jboss.org/browse/JBIDE-10079
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: hibernate
Affects Versions: 3.3.0.M4
Reporter: Dmitry Geraskov
Assignee: Dmitry Geraskov
Fix For: 3.3.0.Beta1
java.lang.NullPointerException
at org.hibernate.util.StringHelper.unqualify(StringHelper.java:165)
at org.hibernate.cfg.EJB3NamingStrategy.classToTableName(EJB3NamingStrategy.java:40)
at org.jboss.tools.hibernate.jpt.core.internal.context.orm.HibernateOrmTableImpl.buildDefaultDBTableName(HibernateOrmTableImpl.java:78)
at org.jboss.tools.hibernate.jpt.core.internal.context.orm.HibernateOrmTableImpl.synchronizeWithResourceModel(HibernateOrmTableImpl.java:53)
at org.eclipse.jpt.jpa.core.internal.context.orm.AbstractOrmEntity.synchronizeWithResourceModel(AbstractOrmEntity.java:231)
at org.jboss.tools.hibernate.jpt.core.internal.context.orm.HibernateOrmEntityImpl.synchronizeWithResourceModel(HibernateOrmEntityImpl.java:66)
at org.eclipse.jpt.jpa.core.internal.jpa1.context.orm.GenericOrmPersistentType.synchronizeWithResourceModel(GenericOrmPersistentType.java:123)
at org.eclipse.jpt.jpa.core.internal.context.ContextContainerTools.sync(ContextContainerTools.java:137)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 4 months