[Design of JBossXB] - QName unmarshalling
by scott.stark@jboss.org
I'm looking at http://jira.jboss.com/jira/browse/JBAS-4891 with regard to how to handle unmarshalling qnames from legacy descriptors that don't support namespaces. If a document like this is unmarshalled:
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE jboss PUBLIC
| "-//JBoss//DTD JBOSS 4.2//EN"
| "http://www.jboss.org/j2ee/dtd/jboss_4_2.dtd">
| <!-- Id -->
| <jboss>
| ...
| <service-ref>
| <service-ref-name>SecureService</service-ref-name> <service-impl-class>org.jboss.tests.ws.jaxws.webserviceref.SecureEndpointService</service-impl-class>
| <service-qname>{http://org.jboss.ws/wsref}SecureEndpointService</service-qname>
| <port-component-ref>
| <service-endpoint-interface>org.jboss.tests.ws.jaxws.webserviceref.SecureEndpoint</service-endpoint-interface>
| <port-qname>{http://org.jboss.ws/wsref}SecureEndpointPort</port-qname>
| <stub-property>
| <prop-name>javax.xml.ws.security.auth.username</prop-name>
| <prop-value>kermit</prop-value>
| </stub-property>
| <stub-property>
| <prop-name>javax.xml.ws.security.auth.password</prop-name>
| <prop-value>thefrog</prop-value>
| </stub-property>
| </port-component-ref>
| </service-ref>
|
the following exception happens because of the invalid qname encoding:
| Caused by: java.lang.IllegalStateException: No namespace URI registered for prefix: {http
| at org.jboss.xb.binding.SimpleTypeBindings.unmarshalQName(SimpleTypeBindings.java:1993)
| at org.jboss.xb.binding.SimpleTypeBindings.unmarshal(SimpleTypeBindings.java:739)
| at org.jboss.xb.binding.sunday.unmarshalling.CharactersHandler.unmarshal(CharactersHandler.java:114)
| ... 41 more
|
How should this be handled?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098093#4098093
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098093
18 years, 5 months
[Design of JBossXB] - Re: Collections with interfaces
by scott.stark@jboss.org
I needed to add an elementType to JBossXmlCollection to allow for the specification of the collection element type for collections of unparameterized interfaces like:
| @XmlType(name="service-refType")
| public class JBossServiceReferencesMetaData
| extends AbstractMappedMetaData<IServiceReferenceMetaData>
| implements IServiceReferencesMetaData
| {
| ...
|
so one can define both the collection class, and its concrete element type:
| @JBossXmlCollection(type=JBossServiceReferencesMetaData.class, elementType=JBossServiceReferenceMetaData.class)
| @XmlElement(name="service-ref")
| public void setServiceReferences(IServiceReferencesMetaData serviceReferences)
| {
| this.serviceReferences = (JBossServiceReferencesMetaData) serviceReferences;
| }
|
Can you check its use in the JBossXBNoSchemaBuilder? There was one location where I was not clear on whether this should override the localPropertyType.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098091#4098091
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098091
18 years, 5 months
[Design of JBossCache] - run jbosscache1.4.1sp5 in oc4j 10.1.3
by zinformagm
we were using standalone jboss cache 1.0 on oc4j 9.0.5 and 10.1.2 for a long time becuase its very good performance for clustering and very stable. now we are trying to upgrade it to jboss cache 1.4.1.sp5 to run on oc4j 10.1.3. but we got a exception when we can treeCache.start():
07/10/23 15:49:24 java.lang.ClassCastException: org.apache.commons.logging.impl.LogFactoryImpl
07/10/23 15:49:24 at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:504)
07/10/23 15:49:24 at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
07/10/23 15:49:24 at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
07/10/23 15:49:24 at org.jgroups.blocks.MethodCall.(MethodCall.java:46)
07/10/23 15:49:24 at java.lang.Class.forName0(Native Method)
07/10/23 15:49:24 at java.lang.Class.forName(Class.java:164)
07/10/23 15:49:24 at org.jboss.cache.marshall.MethodDeclarations.class$(MethodDeclarations.java:39)
07/10/23 15:49:24 at org.jboss.cache.marshall.MethodDeclarations.(MethodDeclarations.java:268)
07/10/23 15:49:24 at org.jboss.cache.interceptors.CallInterceptor.(CallInterceptor.java:30)
07/10/23 15:49:24 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
07/10/23 15:49:24 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
07/10/23 15:49:24 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
07/10/23 15:49:24 at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
07/10/23 15:49:24 at java.lang.Class.newInstance0(Class.java:350)
07/10/23 15:49:24 at java.lang.Class.newInstance(Class.java:303)
07/10/23 15:49:24 at org.jboss.cache.factories.InterceptorChainFactory.createInterceptor(InterceptorChainFactory.java:43)
07/10/23 15:49:24 at org.jboss.cache.factories.InterceptorChainFactory.createPessimisticInterceptorChain(InterceptorChainFactory.java:95)
07/10/23 15:49:24 at org.jboss.cache.factories.InterceptorChainFactory.buildInterceptorChain(InterceptorChainFactory.java:35)
07/10/23 15:49:24 at org.jboss.cache.TreeCache._createService(TreeCache.java:1431)
07/10/23 15:49:24 at org.jboss.cache.TreeCache.createService(TreeCache.java:1388)
07/10/23 15:49:24 at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:245)
07/10/23 15:49:24 at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:173)
07/10/23 15:49:24 at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:265)
07/10/23 15:49:24 at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:181)
07/10/23 15:49:24 at com.igm.gml.cache.JbCacheUtil.(JbCacheUtil.java:37)
07/10/23 15:49:24 at com.igm.gml.servlet.initServlet.init(initServlet.java:47)
please give me a help. thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098060#4098060
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098060
18 years, 5 months
[Design of JBoss Web Services] - Re: JBAS-4890:EJBAccessException: Caller unauthorized
by anil.saldhana@jboss.com
With the branch,
| asaldhana~/jbossws/stack/native/jbossws-native-2.0.2>ant -Dtest=org.jboss.test.
| ws.jaxws.samples.context.WebServiceContextEJBTestCase
|
| ....
| [servicegen] INFO: wrote interface definition: locationURI=hello.wsdl, basePath=
| C:\cygwin\home\asaldhana\jbossws\stack\native\jbossws-native-2.0.2/output/tests/
| wstools/resources/jaxrpc/samples/wsbpel/hello/WEB-INF/wsdl
| [servicegen] Oct 23, 2007 3:25:46 PM org.jbpm.bpel.wsdl.util.ServiceGenerator ge
| neratePortComponents
| [servicegen] INFO: wrote binding definition: hello-binding-1.wsdl
| [servicegen] Oct 23, 2007 3:25:46 PM org.jbpm.bpel.wsdl.util.ServiceGenerator ge
| neratePortComponents
| [servicegen] INFO: wrote service definition: hello-service.wsdl
|
| wstools:
|
| BUILD FAILED
| C:\cygwin\home\asaldhana\jbossws\stack\native\jbossws-native-2.0.2\ant-import-te
| sts\build-testsuite.xml:133: Error running jbossws:
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098046#4098046
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098046
18 years, 5 months
[Design of JBoss Web Services] - JBAS-4890:EJBAccessException: Caller unauthorized
by anil.saldhana@jboss.com
Thomas, I tried to build the native trunk and when I did
| asaldhana~/jbossws/stack/native/trunk>ant -Dtest=org.jboss.test.ws.jaxws.samples.context.WebServiceContextEJBTestCase
|
| ....
| wsprovide:
| [wsprovide] Generating from endpoint: org.jboss.test.ws.jaxws.samples.wssecurity.HelloJavaBean
| [wsprovide] Output directory: C:\cygwin\home\asaldhana\jbossws\stack\native\trunk\output
| [wsprovide] Source directory: C:\cygwin\home\asaldhana\jbossws\stack\native\trunk\output
| [wsprovide] Generating WSDL:
|
| BUILD FAILED
| C:\cygwin\home\asaldhana\jbossws\stack\native\trunk\ant-import-tests\build-tests
| uite.xml:182: org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
|
On an another note, if you look in the logs directory of your JBoss instance, you should see an audit.log. That will give an indication
as to why this particular authorization check failed. Is it possible
for you to post me the log entry for that?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098040#4098040
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098040
18 years, 5 months