You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "John Crim (JIRA)" <ji...@apache.org> on 2009/05/17 08:29:45 UTC

[jira] Commented: (TAP5-628) Parameter namespacePrefix was null when deploying in Glassfish

    [ https://issues.apache.org/jira/browse/TAP5-628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12710174#action_12710174 ] 

John Crim commented on TAP5-628:
--------------------------------

I had the same problem, minus the 64-bit OS.  I was able to resolve it using steps 4-6 at http://mail-archives.apache.org/mod_mbox/tapestry-users/200903.mbox/%3C1238516597597-2563985.post@n2.nabble.com%3E  :

4) copy woodstox-core-asl*.jar and stax2-api*.jar from Tapestry application to domains/domain1/lib/ext/
 dir (if using Glassfish default domain1).
5) go to Glassfish admin page using browser and modify:
  - in Application Server/JVM Settings/JVM Options add: "-d64"
  - in Configuration/System Properties add:

Instance Variable Name                            Default Value
----------------------------------------------------------------------------------------
javax.xml.stream.XMLEventFactory        com.ctc.wstx.stax.WstxEventFactory
javax.xml.stream.XMLInputFactory        com.ctc.wstx.stax.WstxInputFactory
javax.xml.stream.XMLOutputFactory     com.ctc.wstx.stax.WstxOutputFactory

6) restart Glassfish



> Parameter namespacePrefix was null when deploying in Glassfish
> --------------------------------------------------------------
>
>                 Key: TAP5-628
>                 URL: https://issues.apache.org/jira/browse/TAP5-628
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.1.0.0, 5.1.0.1, 5.1.0.2
>         Environment: Ubuntu 8.10 / Mac OS X 10.5.6, Glassfish V2.1 and V3 / Jetty 6
>            Reporter: Thilo Tanner
>            Assignee: Howard M. Lewis Ship
>         Attachments: t5example.zip
>
>
> T5 throws "java.lang.IllegalArgumentException: Parameter namespacePrefix was null" when deploying application on Glassfish (v2.1 and v3). With Jetty everything works fine. It seems that Glassfish handles namespaces a bit different than other containers do. 
> The error *only* occurs when a Doctype is set. It seems that the XML parser of glassfish sets the variable "namespacePrefix" in the method "defineNamespace" (class: org.apache.tapestry5.dom.Element) to null. When I change the value to "" (empty string) by hand (in the debugger), everything works fine. Would it be possible to change the behaviour that a null namespacePrefix will be accepted? When no Doctype is defined, the method defineNamespace is not called.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.