You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Manu T George (JIRA)" <ji...@apache.org> on 2007/01/15 14:19:27 UTC
[jira] Created: (OPENEJB-444) Starting and ending spaces not
trimmed in openejb during unmarshalling of descriptors.
Starting and ending spaces not trimmed in openejb during unmarshalling of descriptors.
--------------------------------------------------------------------------------------
Key: OPENEJB-444
URL: https://issues.apache.org/jira/browse/OPENEJB-444
Project: OpenEJB
Issue Type: Bug
Components: deployment
Affects Versions: 3.0
Environment: All
Reporter: Manu T George
Fix For: 3.0
During unmarshalling, the leading and trailing whitespaces in the deployment descriptors are not trimmed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (OPENEJB-444) Starting and ending spaces not
trimmed in openejb during unmarshalling of descriptors.
Posted by "Jacek Laskowski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENEJB-444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacek Laskowski resolved OPENEJB-444.
-------------------------------------
Resolution: Fixed
Assignee: Manu T George (was: Jacek Laskowski)
Committed revision 496718.
Thanks Manu! I won't be repeating myself telling you how good the patch was - you know it and the day when you become a committer and tell it to others is getting closer and closer...Thanks!
> Starting and ending spaces not trimmed in openejb during unmarshalling of descriptors.
> --------------------------------------------------------------------------------------
>
> Key: OPENEJB-444
> URL: https://issues.apache.org/jira/browse/OPENEJB-444
> Project: OpenEJB
> Issue Type: Bug
> Components: deployment
> Affects Versions: 3.0
> Environment: All
> Reporter: Manu T George
> Assigned To: Manu T George
> Fix For: 3.0
>
> Attachments: patch[1]_r496651_OPENEJB-444.patch
>
>
> During unmarshalling, the leading and trailing whitespaces in the deployment descriptors are not trimmed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Assigned: (OPENEJB-444) Starting and ending spaces not
trimmed in openejb during unmarshalling of descriptors.
Posted by "Jacek Laskowski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENEJB-444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacek Laskowski reassigned OPENEJB-444:
---------------------------------------
Assignee: Jacek Laskowski (was: Manu T George)
> Starting and ending spaces not trimmed in openejb during unmarshalling of descriptors.
> --------------------------------------------------------------------------------------
>
> Key: OPENEJB-444
> URL: https://issues.apache.org/jira/browse/OPENEJB-444
> Project: OpenEJB
> Issue Type: Bug
> Components: deployment
> Affects Versions: 3.0
> Environment: All
> Reporter: Manu T George
> Assigned To: Jacek Laskowski
> Fix For: 3.0
>
> Attachments: patch[1]_r496651_OPENEJB-444.patch
>
>
> During unmarshalling, the leading and trailing whitespaces in the deployment descriptors are not trimmed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Assigned: (OPENEJB-444) Starting and ending spaces not
trimmed in openejb during unmarshalling of descriptors.
Posted by "Jacek Laskowski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENEJB-444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacek Laskowski reassigned OPENEJB-444:
---------------------------------------
Assignee: Manu T George
> Starting and ending spaces not trimmed in openejb during unmarshalling of descriptors.
> --------------------------------------------------------------------------------------
>
> Key: OPENEJB-444
> URL: https://issues.apache.org/jira/browse/OPENEJB-444
> Project: OpenEJB
> Issue Type: Bug
> Components: deployment
> Affects Versions: 3.0
> Environment: All
> Reporter: Manu T George
> Assigned To: Manu T George
> Fix For: 3.0
>
>
> During unmarshalling, the leading and trailing whitespaces in the deployment descriptors are not trimmed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (OPENEJB-444) Starting and ending spaces not
trimmed in openejb during unmarshalling of descriptors.
Posted by "Manu T George (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENEJB-444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12464775 ]
Manu T George commented on OPENEJB-444:
---------------------------------------
Need to create a StringAdapter class as shown below
package org.apache.openejb.jaxb.adapters;
import javax.xml.bind.annotation.adapters.XmlAdapter;
public class StringAdapter extends XmlAdapter<String, String> {
public String unmarshal(String val) throws Exception {
return val.trim();
}
public String marshal(String val) throws Exception {
return val.trim();
}
}
Now in all the package-info classes we need to add the annotation
@javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(value=org.apache.openejb.jaxb.adapters.StringAdapter.class,type=String.class)
This will fix this issue. Thanks to Dain for this very useful link
http://weblogs.java.net/blog/kohsuke/archive/2005/09/using_jaxb_20s.html
> Starting and ending spaces not trimmed in openejb during unmarshalling of descriptors.
> --------------------------------------------------------------------------------------
>
> Key: OPENEJB-444
> URL: https://issues.apache.org/jira/browse/OPENEJB-444
> Project: OpenEJB
> Issue Type: Bug
> Components: deployment
> Affects Versions: 3.0
> Environment: All
> Reporter: Manu T George
> Fix For: 3.0
>
>
> During unmarshalling, the leading and trailing whitespaces in the deployment descriptors are not trimmed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (OPENEJB-444) Starting and ending spaces not
trimmed in openejb during unmarshalling of descriptors.
Posted by "Manu T George (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENEJB-444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465054 ]
Manu T George commented on OPENEJB-444:
---------------------------------------
You are right :-). Thanks for giving me this tip.
> Starting and ending spaces not trimmed in openejb during unmarshalling of descriptors.
> --------------------------------------------------------------------------------------
>
> Key: OPENEJB-444
> URL: https://issues.apache.org/jira/browse/OPENEJB-444
> Project: OpenEJB
> Issue Type: Bug
> Components: deployment
> Affects Versions: 3.0
> Environment: All
> Reporter: Manu T George
> Assigned To: Manu T George
> Fix For: 3.0
>
>
> During unmarshalling, the leading and trailing whitespaces in the deployment descriptors are not trimmed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (OPENEJB-444) Starting and ending spaces not
trimmed in openejb during unmarshalling of descriptors.
Posted by "Manu T George (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENEJB-444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Manu T George updated OPENEJB-444:
----------------------------------
Attachment: patch[1]_r496651_OPENEJB-444.patch
> Starting and ending spaces not trimmed in openejb during unmarshalling of descriptors.
> --------------------------------------------------------------------------------------
>
> Key: OPENEJB-444
> URL: https://issues.apache.org/jira/browse/OPENEJB-444
> Project: OpenEJB
> Issue Type: Bug
> Components: deployment
> Affects Versions: 3.0
> Environment: All
> Reporter: Manu T George
> Assigned To: Manu T George
> Fix For: 3.0
>
> Attachments: patch[1]_r496651_OPENEJB-444.patch
>
>
> During unmarshalling, the leading and trailing whitespaces in the deployment descriptors are not trimmed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (OPENEJB-444) Starting and ending spaces not
trimmed in openejb during unmarshalling of descriptors.
Posted by "Dain Sundstrom (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENEJB-444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12464878 ]
Dain Sundstrom commented on OPENEJB-444:
----------------------------------------
I believe that you want to use the spec provided javax.xml.bind.annotation.adapters.CollapsedStringAdapter which trims and replaces sequences of white space with a single space.
> Starting and ending spaces not trimmed in openejb during unmarshalling of descriptors.
> --------------------------------------------------------------------------------------
>
> Key: OPENEJB-444
> URL: https://issues.apache.org/jira/browse/OPENEJB-444
> Project: OpenEJB
> Issue Type: Bug
> Components: deployment
> Affects Versions: 3.0
> Environment: All
> Reporter: Manu T George
> Assigned To: Manu T George
> Fix For: 3.0
>
>
> During unmarshalling, the leading and trailing whitespaces in the deployment descriptors are not trimmed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira