websphere中的Jaxb [英] Jaxb in websphere

查看:145
本文介绍了websphere中的Jaxb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我已经使用JAXB开发了Web应用程序以进行编组和解组。 Web应用程序在tomcat中运行没有任何问题。但是当我在Websphere 7.0.0.13中尝试返回null对象时。请帮我解决这个问题。

Hi I have developed the web application to marshall and unmarshall using JAXB. The web application is working in tomcat without any issues. But when I tried in Websphere 7.0.0.13 its returning null object.Please help me on this issue.

推荐答案

我遇到了同样的问题。在此链接是帮助我的解决方案。


我做了什么:

1.在管理控制台中,单击应用程序>应用程序类型> WebSphere企业应用程序> app-name>类加载和更新检测。

2.在类重新加载选项下,选择覆盖类重新加载Web和EJB模块的设置。

3.在类加载器顺序下,选择类加载器顺序属性为首先加载本地类加载器的类(父类最后一个)。

4.单击确定,然后单击保存以保存更改。

I had the same problem. Under this link is solution that help me.

What i did:
1. In the administrative console, click Applications > Application Types > WebSphere enterprise applications > app-name > Class loading and update detection.
2. Under Class reloading options, select Override class reloading settings for web and EJB modules .
3. Under Class loader order, select Class loader order property to Classes loaded with local class loader first (parent last).
4. Click OK, and then Save to save your changes.

之后:

1.在管理控制台中选择服务器

2.展开服务器类型并选择* WebSphere应用程序服务器*

3.单击服务器名称

4.展开 Java和流程管理并选择*流程定义。*

5.在其他属性部分下,单击 Java虚拟
计算机。


6.向下滚动并找到通用JVM参数的文本框。

ADD:-Djavax.xml.bind.JAXBContext = com.sun.xml.internal.bind.v2.ContextFactory

After that:
1. In the Administration Console select Servers
2. Expand Server Type and select* WebSphere application servers *
3. Click on the name of your server
4. Expand Java and Process Management and select* Process Definition.*
5. Under the Additional Properties section, click Java Virtual Machine.
6. Scroll down and locate the textbox for Generic JVM arguments.
ADD: -Djavax.xml.bind.JAXBContext=com.sun.xml.internal.bind.v2.ContextFactory

最后重新设置Web服务器和集群。

In the end restar web server and cluster.

这篇关于websphere中的Jaxb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆