[JBoss Seam] - seam-gen vs. reference doc re Home setId()
by codelion
seam-gen with generate-entities keeps generating methods like setSomethingId() and getSomethingId() in
public class SomethingHome extends EntityHome<Something> {
|
| public void setSomethingId(String id) {
| setId(id);
| }
|
| public String getSomethingId() {
| return (String) getId();
| }
|
| @Override
| protected Something createInstance() {
| Something result = new Something();
| return result;
| }
| }
Then in the generated Something.page.xml there is
<page>
| <param name="somethingFrom"/>
| <param name="somethingId" value="#{somethingHome.somethingId}"/>
| </page>
In contrast, seam reference doc shows
<param name="personId" value="#{personHome.id}"/>
and no methods wrapping setId() and getId(), i.e. no setSomethingId() and no getSomethingId().
Big Question: Is it safe to not have setSomethingId() and not have getSomethingId() in my own code, just use setId() and getId()?
And, are setSomethingId() and getSomethingId() there for a good reason we should know?
And, will setSomethingId() and getSomethingId() be removed in the future?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009116#4009116
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009116
17 years, 10 months
[JBossWS] - Re: java client and MS Webservice
by firestormua
After playing with ws client I came to conclusion that there is some problem with mapping file or client classes generated by wstools in my particular case(complex type enclosed into response).
Not sure how do I resolve it. Can anybody help?
anonymous wrote :
| [java] 17:37:30,460 WARN [WSDLDefinitions] Multiple WSDL bindings referrence the same interface: {http://tempuri.org/TitanWebServices/TitanService}TitanServiceSoap
| [java] 17:37:30,460 WARN [WSDLDefinitions] Multiple WSDL bindings referrence the same interface: {http://tempuri.org/TitanWebServices/TitanService}TitanServiceSoap
| [java] 17:37:30,460 WARN [SchemaBindingBuilder] Cannot obtain type binding for: {http://tempuri.org/TitanWebServices/TitanService}>TitanRunNavisionResult
| [java] 17:37:30,538 INFO [SOAP11BindingProvider] Ignore Call.SOAPACTION_USE_PROPERTY because of BP-1.0 R2745, R2745
| [java] 17:37:31,270 WARN [JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://tempuri.org/TitanWebServices/TitanService
| [java] 17:37:31,629 ERROR [CallImpl] Call invocation failed with unkown Exception
| [java] javax.xml.rpc.JAXRPCException: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.
| [java] at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:303)
| [java] at org.jboss.ws.binding.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:233)
| [java] at org.jboss.ws.binding.EndpointInvocation.getReturnValue(EndpointInvocation.java:182)
| [java] at org.jboss.ws.jaxrpc.CallImpl.syncOutputParams(CallImpl.java:873)
| [java] at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:704)
| [java] at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
| [java] at com.texadasoftware.server.accounting.service.NavisionAccountingServiceBean.setUp(NavisionAccountingServiceBean.java:88)
| [java] at com.texadasoftware.server.accounting.service.NavisionAccountingServiceBean.getCustomerAccountingInfo(NavisionAccountingServiceBean.java:289)
| [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| [java] at java.lang.reflect.Method.invoke(Unknown Source)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| [java] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| [java] at com.texadasoftware.server.infra.ValidationInterceptor.intercept(ValidationInterceptor.java:37)
| [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| [java] at java.lang.reflect.Method.invoke(Unknown Source)
| [java] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| [java] at com.texadasoftware.server.infra.audit.ActionAuditInterceptor.intercept(ActionAuditInterceptor.java:61)
| [java] at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
| [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| [java] at java.lang.reflect.Method.invoke(Unknown Source)
| [java] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| [java] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
| [java] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:67)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] at org.jboss.aspects.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:166)
| [java] at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:108)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| [java] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:131)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:263)
| [java] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| [java] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
| [java] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
| [java] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
| [java] at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
| [java] at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:412)
| [java] at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
| [java] Caused by: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.
| [java] at org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeserializer.java:100)
| [java] at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:235)
| [java] ... 55 more
| [java] Caused by: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.
| [java] at org.jboss.ws.jaxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:67)
| [java] at org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeserializer.java:92)
| [java] ... 56 more
| [java] Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.
| [java] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:156)
| [java] at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:126)
| [java] at org.jboss.ws.jaxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:63)
| [java] ... 57 more
| [java] Caused by: org.jboss.xb.binding.JBossXBRuntimeException: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.
| [java] at org.jboss.xb.binding.sunday.unmarshalling.XsdBinderTerminatingErrorHandler.handleError(XsdBinderTerminatingErrorHandler.java:40)
| [java] at org.apache.xerces.impl.xs.XMLSchemaLoader.reportDOMFatalError(Unknown Source)
| [java] at org.apache.xerces.impl.xs.XSLoaderImpl.load(Unknown Source)
| [java] at org.jboss.xb.binding.Util.loadSchema(Util.java:395)
| [java] at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:166)
| [java] at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:137)
| [java] at org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver.resolve(DefaultSchemaResolver.java:248)
| [java] at org.jboss.xb.binding.sunday.unmarshalling.WildcardBinding.getElement(WildcardBinding.java:161)
| [java] at org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding$1.startElement(SequenceBinding.java:295)
| [java] at org.jboss.xb.binding.sunday.unmarshalling.ModelGroupBinding$Cursor.startElement(ModelGroupBinding.java:152)
| [java] at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:195)
| [java] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:301)
| [java] at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
| [java] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
| [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
| [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
| [java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| [java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| [java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
| [java] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
| [java] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
| [java] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:152)
| [java] ... 59 more
| [java] 17:37:31,691 ERROR [STDERR] java.rmi.RemoteException: Call invocation failed: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.; nested exception is:
| [java] javax.xml.rpc.JAXRPCException: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.
| [java] 17:37:31,691 ERROR [STDERR] at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:718)
| [java] 17:37:31,691 ERROR [STDERR] at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
| [java] 17:37:31,691 ERROR [STDERR] at com.texadasoftware.server.accounting.service.NavisionAccountingServiceBean.setUp(NavisionAccountingServiceBean.java:88)
| [java] 17:37:31,691 ERROR [STDERR] at com.texadasoftware.server.accounting.service.NavisionAccountingServiceBean.getCustomerAccountingInfo(NavisionAccountingServiceBean.java:289)
| [java] 17:37:31,691 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [java] 17:37:31,691 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| [java] 17:37:31,691 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| [java] 17:37:31,691 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
| [java] 17:37:31,691 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| [java] 17:37:31,691 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| [java] 17:37:31,691 ERROR [STDERR] at com.texadasoftware.server.infra.ValidationInterceptor.intercept(ValidationInterceptor.java:37)
| [java] 17:37:31,691 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [java] 17:37:31,691 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| [java] 17:37:31,691 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| [java] 17:37:31,691 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
| [java] 17:37:31,691 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| [java] 17:37:31,691 ERROR [STDERR] at com.texadasoftware.server.infra.audit.ActionAuditInterceptor.intercept(ActionAuditInterceptor.java:61)
| [java] 17:37:31,707 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
| [java] 17:37:31,707 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| [java] 17:37:31,707 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:67)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aspects.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:166)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:108)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:131)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:263)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
| [java] 17:37:31,707 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:412)
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
| [java] 17:37:31,722 ERROR [STDERR] Caused by: javax.xml.rpc.JAXRPCException: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:303)
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.ws.binding.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:233)
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.ws.binding.EndpointInvocation.getReturnValue(EndpointInvocation.java:182)
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.ws.jaxrpc.CallImpl.syncOutputParams(CallImpl.java:873)
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:704)
| [java] 17:37:31,722 ERROR [STDERR] ... 51 more
| [java] 17:37:31,722 ERROR [STDERR] Caused by: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeserializer.java:100)
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:235)
| [java] 17:37:31,722 ERROR [STDERR] ... 55 more
| [java] 17:37:31,722 ERROR [STDERR] Caused by: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.ws.jaxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:67)
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeserializer.java:92)
| [java] 17:37:31,722 ERROR [STDERR] ... 56 more
| [java] 17:37:31,722 ERROR [STDERR] Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:156)
| [java] 17:37:31,722 ERROR [STDERR] at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:126)
| [java] 17:37:31,738 ERROR [STDERR] at org.jboss.ws.jaxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:63)
| [java] 17:37:31,738 ERROR [STDERR] ... 57 more
| [java] 17:37:31,738 ERROR [STDERR] Caused by: org.jboss.xb.binding.JBossXBRuntimeException: -1:-1 11:109 s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }'.
| [java] 17:37:31,754 ERROR [STDERR] at org.jboss.xb.binding.sunday.unmarshalling.XsdBinderTerminatingErrorHandler.handleError(XsdBinderTerminatingErrorHandler.java:40)
| [java] 17:37:31,754 ERROR [STDERR] at org.apache.xerces.impl.xs.XMLSchemaLoader.reportDOMFatalError(Unknown Source)
| [java] 17:37:31,754 ERROR [STDERR] at org.apache.xerces.impl.xs.XSLoaderImpl.load(Unknown Source)
| [java] 17:37:31,754 ERROR [STDERR] at org.jboss.xb.binding.Util.loadSchema(Util.java:395)
| [java] 17:37:31,754 ERROR [STDERR] at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:166)
| [java] 17:37:31,754 ERROR [STDERR] at org.jboss.xb.binding.sunday.unmarshalling.XsdBinder.bind(XsdBinder.java:137)
| [java] 17:37:31,754 ERROR [STDERR] at org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver.resolve(DefaultSchemaResolver.java:248)
| [java] 17:37:31,754 ERROR [STDERR] at org.jboss.xb.binding.sunday.unmarshalling.WildcardBinding.getElement(WildcardBinding.java:161)
| [java] 17:37:31,754 ERROR [STDERR] at org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding$1.startElement(SequenceBinding.java:295)
| [java] 17:37:31,754 ERROR [STDERR] at org.jboss.xb.binding.sunday.unmarshalling.ModelGroupBinding$Cursor.startElement(ModelGroupBinding.java:152)
| [java] 17:37:31,754 ERROR [STDERR] at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:195)
| [java] 17:37:31,754 ERROR [STDERR] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:301)
| [java] 17:37:31,754 ERROR [STDERR] at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
| [java] 17:37:31,754 ERROR [STDERR] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
| [java] 17:37:31,754 ERROR [STDERR] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
| [java] 17:37:31,754 ERROR [STDERR] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
| [java] 17:37:31,754 ERROR [STDERR] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| [java] 17:37:31,754 ERROR [STDERR] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| [java] 17:37:31,754 ERROR [STDERR] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
| [java] 17:37:31,754 ERROR [STDERR] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
| [java] 17:37:31,754 ERROR [STDERR] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
| [java] 17:37:31,754 ERROR [STDERR] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:152)
| [java] 17:37:31,754 ERROR [STDERR] ... 59 more
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009082#4009082
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009082
17 years, 10 months
[JBoss Portal] - Re: Packaging of portlet-instances.xml
by julien@jboss.com
portlet-instances.xml file have to be packaged with a war file because they require the portlet to be present and the only way to achieve that is by doing such a deployment.
otherwise the -instances.xml file could be created before the war file containing the portlet is deployed.
you still have the option of using programmatic code that will use directly the InstanceContainer interface to create portlet instances programmatically :
public interface InstanceContainer
| {
|
| ...
|
| /**
| * Return the underlying portlet invoker for the instance container.
| *
| * @return the portlet invoker
| */
| PortletInvoker getPortletInvoker();
|
| /**
| * Create a new instance of the specified portlet.
| *
| * @param id
| * @param portletId the portlet id
| * @return the newly created instance
| * @throws DuplicateInstanceException if the instance already exist
| * @throws IllegalArgumentException if the instance id is null
| */
| InstanceDefinition createDefinition(String id, String portletId) throws DuplicateInstanceException, IllegalArgumentException, PortletInvokerException;
|
| ...
|
| }
In order to find out the right portlet id to use, you should use the getPortletInvoker() method to retrieve the portlet invoker behind the instance container and on the portlet invoker you have a getPortlets() method which returns all the portlets known by the portlet invoker. It is a set of PortletInfo interface which will give you the portlet name as well as all the metadata provided by the portlet (from portlet.xml and jboss-portlet.xlm for example).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009067#4009067
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009067
17 years, 10 months
[JBoss Seam] - Re: selectItems exception
by damatrix
Ok, here we go then
|
| <!-- <?xml version="1.0" encoding="UTF-8"?> -->
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <ui:composition xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:a="https://ajax4jsf.dev.java.net/ajax"
| xmlns:si="http://jboss.com/products/seam/selectitems/taglib"
| template="../templates/marketingLayout.xhtml">
|
|
| <ui:define name="title">TradeWinds - New stand</ui:define>
|
| <ui:define name="sidebar">
| <p>
| This the stand configuration panel.
| </p>
| </ui:define>
| <ui:define name="links">
| <p>
| <h3> Click Save to persist your changes or Cancel to return</h3>
| </p>
| </ui:define>
| <ui:define name="content">
| <h:form id="standNewForm">
| <fieldset>
| <s:validateAll>
| <div class="entry">
| <div class="label"><h:outputLabel for="code" value="Code"/></div>
| <div class="input">
| <s:decorate>
| <h:inputText id="code" value="#{standManger.objectTitle}">
| <a:support event="onblur" actionListener="#{standManager.checkTitle}" reRender="titleErrors"/>
| </h:inputText>
| <br/>
| <a:outputPanel id="titleErrors"><h:outputText value="#{standManager.message}" rendered="#{standManager.message != null}"/></a:outputPanel>
| </s:decorate>
| </div>
| </div>
| <div class="entry">
| <div class="label"><h:outputLabel for="description" value="Description"/></div>
| <div class="input">
| <h:inputText id="description" value="#{stand.description}"/>
| <br/>
| </div>
| </div>
| <div class="entry">
| <div class="label"><h:outputLabel for="pavilion" value="Pavilion "/></div>
| <div class="input">
| <h:selectOneMenu id="pavilion" value="#{stand.pavilion}" required="true">
| <si:selectItems value="#{pavilionList}" var="pav" label="#{pav.title}"/>
| </h:selectOneMenu>
| <br/>
| </div>
| </div>
| <div class="entry">
| <div class="label"><h:outputLabel for="type" value="Stand type"/></div>
| <div class="input">
| <h:selectOneMenu id="type" value="#{stand.standType}" required="true">
| <si:selectItems value="#{standTypeList}" var="type" label="#{type.title}"/>
| </h:selectOneMenu>
| <br/>
| </div>
| </div>
| </s:validateAll>
|
| <div class="entry errors">
| <h:messages globalOnly="true"/>
| </div>
|
| <div class="entry">
| <div class="label"> </div>
|
| <div class="input">
| <h:commandButton id="save" action="#{standManager.saveObject}" value="Save"/>
|
| <h:commandButton id="cancel" immediate="true" action="#{standManager.cancel}" value="Cancel"/>
| </div>
| </div>
| </fieldset>
| </h:form>
|
| </ui:define>
| </ui:composition>
|
|
the template it references is as ff:
| <!-- <?xml version="1.0" encoding="UTF-8"?> -->
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <html xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core">
| <head>
| <title><ui:insert name="title">GTFC - TradeWinds</ui:insert></title>
| <link rel="stylesheet" type="text/css" href="../../css/styles.css"/>
| </head>
| <body>
| <div id="document">
| <div id="container">
| <div id="sidebar">
| <ui:insert name="sidebar" >
| <ui:include src="marketingSidebar.xhtml"/>
| </ui:insert>
| </div>
|
| <div id="content">
| <script language="JavaScript" src="../../js/datePicker.js"/>
|
| <div class="section">
| <ui:insert name="links" >
| <ui:include src="marketingLinks.xhtml"/>
| </ui:insert>
| <br/>
| <br/>
| <ui:insert name="content">
| <ui:include src="content.xhtml"/>
| </ui:insert>
| </div>
| </div>
| </div>
| <div id="footer">
| <ui:insert name="footer">
| <ui:include src="footer.xhtml"/>
| </ui:insert>
| </div>
| </div>
| </body>
| </html>
|
|
|
Hope it helps.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009066#4009066
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009066
17 years, 10 months