[jira] [Commented] (NETBEANS-1204) Make Wicket generated Web-Apps work

2019-06-07 Thread Pete Whelpton (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16858713#comment-16858713
 ] 

Pete Whelpton commented on NETBEANS-1204:
-

I think this is really a bug/oversight with the Wicket Quickstart Archetype.

If you compile the quickstart generated application and try to deploy to 
GlassFish via the GlassFish admin GUI, you will get the same error:

{{Error occurred during deployment: Exception while deploying the app 
[myproject-1.0-SNAPSHOT] : org.xml.sax.SAXParseExceptionpublicId: 
file:/C:/apps/glassfish51/glassfish/lib/schemas/web-app_3_1.xsd; lineNumber: 
26; columnNumber: 27; Deployment descriptor file WEB-INF/web.xml in archive 
[myproject-1.0-SNAPSHOT]. TargetNamespace.1: Expecting namespace 
'http://java.sun.com/xml/ns/javaee', but the target namespace of the schema 
document is 'http://xmlns.jcp.org/xml/ns/javaee'.. Please see server.log for 
more details.}}

 

GlassFish appears to validate the web.xml before it will accept it.  The 
problem is that in the Wicket quickstart web.xml they have:

{{http://java.sun.com/xml/ns/javaee"}}

 

But as per [Java EE: XML Schemas for Java EE Deployment 
Descriptors|[https://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/index.html]]:

{{All new schemas are in the [http://xmlns.jcp.org/xml/ns/javaee/] namespace. 
Most older schemas remain in the [http://java.sun.com/xml/ns/javaee/] 
namespace.}}

 

So any web.xml referencing web_app_3_1.xsd or web_app_4_0.xsd should be:

{{http://xmlns.jcp.org/xml/ns/javaee/]"}}

 

Making this simple change means GlassFish will accept the .war file for 
deployment

 

> Make Wicket generated Web-Apps work
> ---
>
> Key: NETBEANS-1204
> URL: https://issues.apache.org/jira/browse/NETBEANS-1204
> Project: NetBeans
>  Issue Type: Improvement
>  Components: serverplugins - GlassFish
>Affects Versions: 8.2
>Reporter: Peter Nabbefeld
>Priority: Major
>
> Could not yet test with NB 9.0, so added only version 8.2.
> Added Glassfish 5 as a Glassfish server type, but when I try to run my 
> project, I get the following error:
> java.io.IOException: org.xml.sax.SAXParseExceptionpublicId: 
> [file:/opt/glassfish5/glassfish/lib/schemas/web-app_3_1.xsd|file:///opt/glassfish5/glassfish/lib/schemas/web-app_3_1.xsd];
>  lineNumber: 8; columnNumber: 27; Deployment descriptor file WEB-INF/web.xml 
> in archive [PrivateCookingReceipes-1.0-SNAPSHOT].  TargetNamespace.1: 
> Namespace 'http://java.sun.com/xml/ns/javaee' wird erwartet, aber der 
> Ziel-Namespace des Schemadokuments ist '[http://xmlns.jcp.org/xml/ns/javaee'.]
> Sorry for the German message. It says the target namespace of the web.xml 
> schema does not fit, obviously this is checked by the glassfish plugin 
> (expected 'http://java.sun.com/xml/ns/javaee' but found 
> '[http://xmlns.jcp.org/xml/ns/javaee'|http://xmlns.jcp.org/xml/ns/javaee'.]).
> Probably it'd be sufficient to just test for both namespaces depending on 
> glassfish version.
> 
> While I first thought it's a problem with the Glassfish version, it turns out 
> to be a problem with the web.xml generated by Wicket Quickstart. I replaced 
> the schema declaration with another one copied from a web.xml generated by 
> NetBeans, after this change I can start my web app.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-1204) Make Wicket generated Web-Apps work

2018-09-02 Thread Peter Nabbefeld (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-1204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16601135#comment-16601135
 ] 

Peter Nabbefeld commented on NETBEANS-1204:
---

Only differences I can see:
 # Wicket Quickstart uses iso8599-1 encoding instead of utf-8.
 # Wicket 8.0.0 uses web_app_3_1.xsd and version 3.0 instead of web_app_3_0.xsd 
and version 3.0.

> Make Wicket generated Web-Apps work
> ---
>
> Key: NETBEANS-1204
> URL: https://issues.apache.org/jira/browse/NETBEANS-1204
> Project: NetBeans
>  Issue Type: Improvement
>  Components: serverplugins - GlassFish
>Affects Versions: 8.2
>Reporter: Peter Nabbefeld
>Priority: Major
>
> Could not yet test with NB 9.0, so added only version 8.2.
> Added Glassfish 5 as a Glassfish server type, but when I try to run my 
> project, I get the following error:
> java.io.IOException: org.xml.sax.SAXParseExceptionpublicId: 
> [file:/opt/glassfish5/glassfish/lib/schemas/web-app_3_1.xsd|file:///opt/glassfish5/glassfish/lib/schemas/web-app_3_1.xsd];
>  lineNumber: 8; columnNumber: 27; Deployment descriptor file WEB-INF/web.xml 
> in archive [PrivateCookingReceipes-1.0-SNAPSHOT].  TargetNamespace.1: 
> Namespace 'http://java.sun.com/xml/ns/javaee' wird erwartet, aber der 
> Ziel-Namespace des Schemadokuments ist '[http://xmlns.jcp.org/xml/ns/javaee'.]
> Sorry for the German message. It says the target namespace of the web.xml 
> schema does not fit, obviously this is checked by the glassfish plugin 
> (expected 'http://java.sun.com/xml/ns/javaee' but found 
> '[http://xmlns.jcp.org/xml/ns/javaee'|http://xmlns.jcp.org/xml/ns/javaee'.]).
> Probably it'd be sufficient to just test for both namespaces depending on 
> glassfish version.
> 
> While I first thought it's a problem with the Glassfish version, it turns out 
> to be a problem with the web.xml generated by Wicket Quickstart. I replaced 
> the schema declaration with another one copied from a web.xml generated by 
> NetBeans, after this change I can start my web app.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists