[JBossWS] - Re: JBossWS 1.2.0CR2 with JEMS 1.2 (and JBoss 4.0.5) fails
by akhil.bhaskar
A similar issue I'm having, but this involves an EJB3 SLSB exposed as a webservice. I'm getting an error when deploying my EJB (built using Maven2 as an 'ejb' jar)
| JBoss 4.0.5.GA
| JBossWS 1.2.1.GA (build=200704161533)
| JBoss EJB 3.0 RC9 Patch 1
|
|
| my EJB:
|
| | @Stateless
| | @WebService
| | public class DnCommitmentBean extends BaseServiceBean implements DnCommitment
| | {
| |
| | @WebMethod
| | public DnCommitmentVo[] getDnCommitmentList(byte[] authenticationInfo) throws FhlbServiceException
| |
|
|
| | 12:31:19,986 DEBUG [JAXWSWebServiceMetaDataBuilder] JAXBContext [types=[class com.fhlb.service.dncommitment.business.jaxws.GetDnCommitmentList, class com.fhlb.service.dncommitment.business.jaxws.GetDnCommitmentListResponse, class com.fhlb.service.dncommitment.business.jaxws.FhlbServiceExceptionBean, class com.fhlb.service.dncommitment.business.jaxws.SaveDnCommitment, class com.fhlb.service.dncommitment.business.jaxws.SaveDnCommitmentResponse, class com.fhlb.service.dncommitment.business.jaxws.FhlbServiceExceptionBean],tn...
| | 12:31:20,659 DEBUG [WSDLDefinitionsFactory] parse: file:/Applications/jboss-4.0.5.GA/server/default/tmp/jbossws/DnCommitmentBeanService20342.wsdl
| | 12:31:20,825 DEBUG [JavaToXSD] Load schema: http://business.dncommitment.service.fhlb.com/=file:/Applications/jboss-4...
| | 12:31:20,825 DEBUG [JBossWSEntityResolver] resolveEntity: [pub=null,sysid=file:/Applications/jboss-4.0.5.GA/server/default/tmp/jbossws/JBossWS_business.dncommitment.service.fhlb.com_20343.xsd]
| | 12:31:20,831 DEBUG [JBossWSEntityResolver] resolveEntity: [pub=http://schemas.xmlsoap.org/soap/encoding/,sysid=null]
| | 12:31:20,861 DEBUG [EndpointMetaData] Create new config [name=Standard Endpoint,file=META-INF/standard-jaxws-endpoint-config.xml]
| | 12:31:20,864 DEBUG [JBossWSConfigFactory] getConfig: [name=Standard Endpoint,url=META-INF/standard-jaxws-endpoint-config.xml]
| | 12:31:20,865 DEBUG [JBossWSConfigFactory] parse: file:/Applications/jboss-4.0.5.GA/server/default/deploy/jbossws.sar/META-INF/standard-jaxws-endpoint-config.xml
| | 12:31:20,866 ERROR [ServiceEndpointDeployer] Cannot create service endpoint
| | org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
| | at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
| | at org.jboss.ws.metadata.config.JBossWSConfigFactory.parse(JBossWSConfigFactory.java:76)
| | at org.jboss.ws.metadata.config.JBossWSConfigFactory.getConfig(JBossWSConfigFactory.java:134)
| | at org.jboss.ws.metadata.umdm.EndpointMetaData.initEndpointConfig(EndpointMetaData.java:683)
| | at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:152)
| | at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:49)
| | at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3.buildMetaData(JAXWSMetaDataBuilderEJB3.java:77)
| | at org.jboss.ws.core.server.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:92)
| | at org.jboss.ws.integration.jboss42.DeployerInterceptor.createServiceEndpoint(DeployerInterceptor.java:127)
| | at org.jboss.ws.integration.jboss42.DeployerInterceptorEJB.createServiceEndpoint(DeployerInterceptorEJB.java:43)
| | at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:78)
| | at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
| | at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
| | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| | at $Proxy29.create(Unknown Source)
| | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| | at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
| | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| | at java.lang.reflect.Method.invoke(Method.java:585)
| | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| | at $Proxy8.deploy(Unknown Source)
| | at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| | at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| | at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| | at java.lang.reflect.Method.invoke(Method.java:585)
| | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| | at $Proxy0.start(Unknown Source)
| | at org.jboss.system.ServiceController.start(ServiceController.java:417)
| | at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| | at java.lang.reflect.Method.invoke(Method.java:585)
| | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| | at $Proxy4.start(Unknown Source)
| | at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| | at java.lang.reflect.Method.invoke(Method.java:585)
| | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| | at $Proxy5.deploy(Unknown Source)
| | at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| | at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| | at org.jboss.Main.boot(Main.java:200)
| | at org.jboss.Main$1.run(Main.java:490)
| | at java.lang.Thread.run(Thread.java:613)
| | Caused by: org.jboss.xb.binding.JBossXBException: Failed to create a new SAX parser
| | at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:96)
| | at org.jboss.xb.binding.UnmarshallerImpl.<init>(UnmarshallerImpl.java:55)
| | at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:96)
| | ... 84 more
| | Caused by: javax.xml.parsers.ParserConfigurationException: Feature 'http://apache.org/xml/features/xinclude' is not recognized.
| | at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source)
| | at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.<init>(SaxJBossXBParser.java:92)
| | ... 86 more
| |
|
| I had some other annotations, but cleared them out to test out the most simple implementation. I have used this in previous versions (I'm pretty sure 4.0.4) and have had success with this. The WSDL is generated - I see it in the ${INSTANCE}/tmp/jbossws/ directory, but the XSD is not in there. What am I missing?
|
| Thanks
| -Akhil
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048745#4048745
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048745
18 years, 11 months
[JBoss Seam] - dateformat not working?
by hhf8
Hi all,
I seem to have an issue with the selectDate tag,when i specify it with the dateformat as dd/mm/yyyy. It works when i submit the entry to my DB,
however then it reverts to mm/dd/yyyy. Has anyone any idea why this is?
| <s:selectDate for="selectedDate" value ="#{entryBrowser.selectedDate}"
| dateFormat = "dd/MM/yyyy">
|
| <h:graphicImage url="img/dtpick.gif" style="margin-left:10px"/>
| </s:selectDate>
|
| <div class="entry">
| <div class="label"> </div>
| <div class="input">
| <h:commandButton id="confirm" value="Confirm" action="#{entryConfirm.confirm}"/>
| <h:commandButton id="populate" value="Populate" action="#{entryList.getEntries}"/>
| </div>
| </div>
| </h:form>
|
| public void confirm()
| {
| log.info("outside try block");
| System.out.println("inside try block");
| Entry tempEntry = new Entry(user.getUsername());
| tempEntry.setStartdate(entryBrowser.getSelectedDate());
| tempEntry.setPriority(calen.getPriority());
| tempEntry.setStartHour(calen.getStartHour());
| tempEntry.setDesc(calen.getDesc());
| tempEntry.setPriority(calen.getPriority());
|
| try
| {
| em.persist(tempEntry);
| //em.flush();
| }
| catch(Exception e) {log.info("The Entity Manager Encountered an Error");}
|
| facesMessages.add("Thank you, #{user.name}, Entry was a success.");
| log.info("New entry for #{user.username}");
| }
|
| @Factory("entries")
| @Observer("entryConfirmed")
| public void getEntries()
| {
| System.out.println(entryBrowser.getSelectedDate().toString());
| if(searchByDate)
| {
| entries = em.createQuery("select e from Entry e where e.username = :username " +
| "and e.startdate = :searchDate order by e.startHour")
| .setParameter("username", user.getUsername())
| .setParameter("searchDate", entryBrowser.getSelectedDate())
| .getResultList();
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048739#4048739
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048739
18 years, 11 months