You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "YunFeng Ma (JIRA)" <ji...@apache.org> on 2008/08/13 11:22:49 UTC

[jira] Updated: (GERONIMODEVTOOLS-468) JAXBException when marshalling geronimo-web.xml

     [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

YunFeng Ma updated GERONIMODEVTOOLS-468:
----------------------------------------

    Attachment: GERONIMODEVTOOLS-468.patch

Hi Tim,
The only difference between Java 5 and Java 6 is class NamespacePrefixMapper's package name and so far looks like it's difficult to handle this problem.
The attached patch use DOM to handle the namespace prefix, instead of NamespacePrefixMapper, so it can work fine on both Java 5 and Java 6. Please review it. Thanks. 

> JAXBException when marshalling geronimo-web.xml
> -----------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-468
>                 URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-468
>             Project: Geronimo-Devtools
>          Issue Type: Sub-task
>          Components: eclipse-plugin
>    Affects Versions: 2.1.2
>         Environment: Microsoft Windows [Version 5.2.3790]
> (C) Copyright 1985-2003 Microsoft Corp.
> C:\>java -version
> java version "1.6.0_07"
> Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
> Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
>            Reporter: Tim McConnell
>            Assignee: Tim McConnell
>             Fix For: 2.1.2
>
>         Attachments: GERONIMODEVTOOLS-468.patch
>
>
> org.apache.geronimo.st.core:  JAXBException: JAXBUtils.marshalDeploymentPlan()( parm1=[/test1/WebContent/WEB-INF/geronimo-web.xml] )
> javax.xml.bind.PropertyException: name: com.sun.xml.bind.namespacePrefixMapper value: org.apache.geronimo.st.core.jaxb.NamespacePrefixMapperImpl@5749c6
> 	at javax.xml.bind.helpers.AbstractMarshallerImpl.setProperty(Unknown Source)
> 	at com.sun.xml.internal.bind.v2.runtime.MarshallerImpl.setProperty(Unknown Source)
> 	at org.apache.geronimo.st.core.jaxb.JAXBUtils.marshalDeploymentPlan(JAXBUtils.java:75)
> 	at org.apache.geronimo.st.v21.core.operations.V21DeploymentPlanCreationOperation.createGeronimoWebDeploymentPlan(V21DeploymentPlanCreationOperation.java:107)
> 	at org.apache.geronimo.st.core.operations.DeploymentPlanCreationOperation.execute(DeploymentPlanCreationOperation.java:67)
> 	at org.apache.geronimo.st.core.operations.DeploymentPlanCreationOperation.execute(DeploymentPlanCreationOperation.java:57)
> 	at org.apache.geronimo.st.core.GeronimoFacetInstallDelegate.execute(GeronimoFacetInstallDelegate.java:48)
> 	at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.callDelegate(FacetedProject.java:1394)
> 	at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:401)
> 	at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1134)
> 	at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1070)
> 	at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$5.run(FacetedProject.java:1052)
> 	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
> 	at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChanges(FacetedProject.java:1062)
> 	at org.eclipse.wst.common.project.facet.core.internal.FacetedProjectWorkingCopy.commitChanges(FacetedProjectWorkingCopy.java:1834)
> 	at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard.performFinish(ModifyFacetedProjectWizard.java:388)
> 	at org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelFacetWizard.performFinish(NewProjectDataModelFacetWizard.java:276)
> 	at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard$3.run(ModifyFacetedProjectWizard.java:330)
> 	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
> 	at org.eclipse.wst.common.project.facet.ui.ModifyFacetedProjectWizard$4.run(ModifyFacetedProjectWizard.java:344)
> 	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

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