[JBoss Seam] - Re: handling exceptions
by efabiano
HI,
maybe I wasn´t clear enough in my last post and I realy need a little help for this case. Then I´m sending more information about this problem.
The problem is that I couldn´t handle an exception using exception.xml. For example, I need to handle a database (referencial integrety violation) exception and then I configured my exception.xml like this:
| < exceptions>
| < exception class="javax.persistence.PersistenceException">
| <render>Database access failed</render>
| <end-conversation/>
| < /exception>
| < exception class="org.jboss.seam.framework.EntityNotFoundException">
| <redirect view-id="/logout.xhtml">Unexpected failure</redirect>
| <end-conversation/>
| < /exception>
| < /exceptions>
But, it didn´t work. The message in console was:
18:17:26,620 INFO [Exceptions] reading exceptions.xml
| 18:17:26,636 ERROR [SeamExceptionFilter] uncaught exception handled by Seam
then I changed exception.xml to this
<exception class="java.lang.RuntimeException">
| <redirect view-id="/home.xhtml">Erro inesperado</redirect>
| <end-conversation/>
| </exception>
and it worked! I´ve tried several classes of exceptions, for example: org.hibernate.exception.ConstraintViolationException, javax.persistence.EntityExistsException, org.jboss.tm.JBossRollbackException and so..
But the only exception seam could handle using exception.xml was java.lang.RuntimeException, which is too general for my goal.
I´m using seam 1.1.1+ajax4jsf+facelets+myfaces+tomahawk
Below is my web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/navigation.xml</param-value>
</context-param>
<!-- Ajax4jsf (must come first!) -->
<display-name>Ajax4jsf Filter</display-name>
<filter-name>ajax4jsf</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
<filter-mapping>
<filter-name>ajax4jsf</filter-name>
<url-pattern>*.seam</url-pattern>
</filter-mapping>
<context-param>
<param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
<param-value>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</param-value>
</context-param>
<!-- Seam -->
<listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
<!-- Propagate conversations across redirects -->
<filter-name>Seam Redirect Filter</filter-name>
<filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
<filter-mapping>
<filter-name>Seam Redirect Filter</filter-name>
<url-pattern>*.seam</url-pattern>
</filter-mapping>
<filter-name>Seam Exception Filter</filter-name>
<filter-class>org.jboss.seam.servlet.SeamExceptionFilter</filter-class>
<filter-mapping>
<filter-name>Seam Exception Filter</filter-name>
<url-pattern>*.seam</url-pattern>
</filter-mapping>
<!-- JSF -->
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
</context-param>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.seam</url-pattern>
</servlet-mapping>
<!-- MyFaces -->
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
<!-- JSF RI -->
<!--
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
-->
<!-- MyFaces Extensions-->
<filter-name>MyFacesExtensionsFilter</filter-name>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
<init-param>
<param-name>maxFileSize</param-name>
<param-value>20m</param-value>
</init-param>
<init-param>
<param-name>uploadMaxFileSize</param-name>
<param-value>100m</param-value>
<!--
Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
-->
</init-param>
<init-param>
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
<!--
Set the threshold size - files
below this limit are stored in memory, files above
this limit are stored on disk.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
-->
</init-param>
<!--
<init-param>
<param-name>uploadRepositoryPath</param-name>
<param-value>/temp</param-value>
Set the path where the intermediary files will be stored.
</init-param>
-->
<!-- extension mapping for adding , , and other resource tags to JSF-pages -->
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
<!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -->
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>/faces/*</url-pattern>
</filter-mapping>
<context-param>
<param-name>facelets.LIBRARIES</param-name>
<param-value>/WEB-INF/tomahawk.taglib.xml;/WEB-INF/mps.taglib.xml</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.PRETTY_HTML</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
<param-value>org.apache.myfaces.renderkit.html.util.DefaultAddResource</param-value>
</context-param>
<context-param>
<param-name>org.jboss.seam.core.init.debug</param-name>
<param-value>false</param-value>
</context-param>
<!-- acesso remoto à EJBs via javascript -->
<servlet-name>Seam Remoting</servlet-name>
<servlet-class>org.jboss.seam.remoting.SeamRemotingServlet</servlet-class>
<servlet-mapping>
<servlet-name>Seam Remoting</servlet-name>
<url-pattern>/seam/remoting/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>300</session-timeout>
</session-config>
</web-app>
Please, I really need a help.
tks emerson
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008441#4008441
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008441
19 years, 2 months
[Installation, Configuration & Deployment] - Cannot obtain type mapping from: jboss.jdbc:datasource=<data
by vinayarammohan
Hi,
I am trying to start up Jboss using run.bat.
I am getting an error ,the stack says:
13:17:09,300 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceB
inding,name=NextPahse' to JNDI name 'java:NextPahse'
13:17:10,238 ERROR [GeneralPurposeDatabasePersistencePlugin] Cannot create timer table
java.lang.IllegalStateException: Cannot obtain type mapping from: jboss.jdbc:datasource=NextPahse,se
rvice=metadata
at org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin.createTableIfNotExists(Gene
ralPurposeDatabasePersistencePlugin.java:117)
at org.jboss.ejb.txtimer.DatabasePersistencePolicy.startService(DatabasePersistencePolicy.ja
va:95)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
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.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:995)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
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 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(ModelMBeanOperationInterce
ptor.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 $Proxy42.start(Unknown Source)
at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:197)
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 sun.reflect.GeneratedMethodAccessor24.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(ModelMBeanOperationInterce
ptor.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(AbstractDeplo
ymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentSca
nner.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(ModelMBeanOperationInterce
ptor.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:595)
13:17:10,785 WARN [ServiceController] Problem starting service jboss:service=KeyGeneratorFactory,ty
pe=HiLo
java.sql.SQLException: ORA-01031: insufficient privileges
I appriciate any help on this.
Thanks
Vinaya
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008437#4008437
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008437
19 years, 2 months
[JBossWS] - java client and MS Webservice
by firestormua
I am trying to make Jboss WS jaxrpc client from samples work with MS webservice. I got next error when I run client:
anonymous wrote :
| [java] 12:01:12,376 WARN [WSDLDefinitions] Multiple WSDL bindings referrence the same interface: {http://tempuri.org/TitanWebServices/TitanService}TitanServiceSoap
| [java] 12:01:12,408 WARN [WSDLDefinitions] Multiple WSDL bindings referrence the same interface: {http://tempuri.org/TitanWebServices/TitanService}TitanServiceSoap
| [java] 12:01:12,423 WARN [SchemaBindingBuilder] Cannot obtain type binding for: {http://tempuri.org/TitanWebServices/TitanService}>TitanRunNavisionResult
| [java] 12:01:12,455 ERROR [STDERR] javax.xml.rpc.JAXRPCException: Cannot obtain operation meta data for: {http://tempuri.org/TitanWebServices/TitanService}TitanRunNavision
| [java] 12:01:12,455 ERROR [STDERR] at org.jboss.ws.jaxrpc.CallImpl.getOperationMetaData(CallImpl.java:840)
| [java] 12:01:12,455 ERROR [STDERR] at org.jboss.ws.jaxrpc.CallImpl.getOperationMetaData(CallImpl.java:820)
| [java] 12:01:12,455 ERROR [STDERR] at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:618)
| [java] 12:01:12,455 ERROR [STDERR] at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
| [java] 12:01:12,455 ERROR [STDERR] at
| ........
| <-------------------------skipped
|
|
I feel there is something small I am missing here, can somebody tell me what is wrong here?
It generated next classes in package org.tempuri.titanwebservices.titanservice;:TitanRunNavision.java
| TitanRunNavisionResponse.java
| TitanRunNavisionResponseTitanRunNavisionResult.java
| TitanService.java
| TitanServiceSoap.java
|
| here is my code
|
| | private final String TARGET_ENDPOINT_ADDRESS1 = "http://dev4:6699/titanwebservices/service.asmx";
| | private static final String TARGET_NAMESPACE1 = "http://tempuri.org/TitanWebServices/TitanService";
| | private static Call call;
| |
| | protected void setUp() throws Exception
| | {
| |
| | if (port == null)
| | {
| | ServiceFactoryImpl factory = new ServiceFactoryImpl();
| | URL wsdlLocation = new URL(TARGET_ENDPOINT_ADDRESS1 + "?wsdl");
| | URL mappingURL = new File("c:/tmp/ws/jaxrpc-mapping.xml").toURL();
| | //service wsdl location
| | QName serviceName = new QName(TARGET_NAMESPACE1, "TitanService");
| | ServiceImpl service = (ServiceImpl)factory.createService(wsdlLocation, serviceName, mappingURL);
| | call = service.createCall();
| | }
| | }
| |
| |
| | public void testUserType() throws Exception
| | {
| | QName operationName = new QName(TARGET_NAMESPACE1, "TitanRunNavision");
| | call.setOperationName(operationName);
| | String functionName = "GetCustomer";
| | String parameterList = "10000";
| | Object retObj = call.invoke(new Object[]{functionName, parameterList});
| | System.out.println("done");
| | }
| |
| here is wsdl
| | <?xml version="1.0" encoding="UTF-8"?>
| | <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
| | xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
| | xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://tempuri.org/TitanWebServices/TitanService" xmlns:s="http://www.w3.org/2001/XMLSchema"
| | xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
| | xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://tempuri.org/TitanWebServices/TitanService"
| | xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
| | <wsdl:types>
| | <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/TitanWebServices/TitanService">
| | <s:element name="TitanRunNavision">
| | <s:complexType>
| | <s:sequence>
| | <s:element minOccurs="0" maxOccurs="1" name="FunctionName" type="s:string"/>
| | <s:element minOccurs="0" maxOccurs="1" name="ParameterList" type="s:string"/>
| | </s:sequence>
| | </s:complexType>
| | </s:element>
| | <s:element name="TitanRunNavisionResponse">
| | <s:complexType>
| | <s:sequence>
| | <s:element minOccurs="0" maxOccurs="1" name="TitanRunNavisionResult">
| | <s:complexType>
| | <s:sequence>
| | <s:any/>
| | </s:sequence>
| | </s:complexType>
| | </s:element>
| | </s:sequence>
| | </s:complexType>
| | </s:element>
| | </s:schema>
| | </wsdl:types>
| | <wsdl:message name="TitanRunNavisionSoapIn">
| | <wsdl:part name="parameters" element="tns:TitanRunNavision"/>
| | </wsdl:message>
| | <wsdl:message name="TitanRunNavisionSoapOut">
| | <wsdl:part name="parameters" element="tns:TitanRunNavisionResponse"/>
| | </wsdl:message>
| | <wsdl:portType name="TitanServiceSoap">
| | <wsdl:operation name="TitanRunNavision">
| | <wsdl:input message="tns:TitanRunNavisionSoapIn"/>
| | <wsdl:output message="tns:TitanRunNavisionSoapOut"/>
| | </wsdl:operation>
| | </wsdl:portType>
| | <wsdl:binding name="TitanServiceSoap" type="tns:TitanServiceSoap">
| | <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
| | <wsdl:operation name="TitanRunNavision">
| | <soap:operation soapAction="http://tempuri.org/TitanWebServices/TitanService/TitanRunNavision" style="document"/>
| | <wsdl:input>
| | <soap:body use="literal"/>
| | </wsdl:input>
| | <wsdl:output>
| | <soap:body use="literal"/>
| | </wsdl:output>
| | </wsdl:operation>
| | </wsdl:binding>
| | <wsdl:binding name="TitanServiceSoap12" type="tns:TitanServiceSoap">
| | <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
| | <wsdl:operation name="TitanRunNavision">
| | <soap12:operation soapAction="http://tempuri.org/TitanWebServices/TitanService/TitanRunNavision" style="document"/>
| | <wsdl:input>
| | <soap12:body use="literal"/>
| | </wsdl:input>
| | <wsdl:output>
| | <soap12:body use="literal"/>
| | </wsdl:output>
| | </wsdl:operation>
| | </wsdl:binding>
| | <wsdl:service name="TitanService">
| | <wsdl:port name="TitanServiceSoap" binding="tns:TitanServiceSoap">
| | <soap:address location="http://dev4/titanwebservices/service.asmx"/>
| | </wsdl:port>
| | <wsdl:port name="TitanServiceSoap12" binding="tns:TitanServiceSoap12">
| | <soap12:address location="http://dev4/titanwebservices/service.asmx"/>
| | </wsdl:port>
| | </wsdl:service>
| | </wsdl:definitions>
|
| mapping generated by jboss wstools
| | <?xml version='1.0' encoding='UTF-8'?><java-wsdl-mapping version='1.1' xmlns='http://java.sun.com/xml/ns/j2ee' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd'>
| | <package-mapping>
| | <package-type>org.tempuri.titanwebservices.titanservice</package-type>
| | <namespaceURI>http://tempuri.org/TitanWebServices/TitanService</namespaceURI>
| | </package-mapping>
| | <java-xml-type-mapping>
| | <java-type>org.tempuri.titanwebservices.titanservice.TitanRunNavision</java-type>
| | <anonymous-type-qname xmlns:typeNS='http://tempuri.org/TitanWebServices/TitanService'>typeNS:>TitanRunNavision</anonymous-type-qname>
| | <qname-scope>complexType</qname-scope>
| | <variable-mapping>
| | <java-variable-name>functionName</java-variable-name>
| | <xml-element-name>FunctionName</xml-element-name>
| | </variable-mapping>
| | <variable-mapping>
| | <java-variable-name>parameterList</java-variable-name>
| | <xml-element-name>ParameterList</xml-element-name>
| | </variable-mapping>
| | </java-xml-type-mapping>
| | <java-xml-type-mapping>
| | <java-type>org.tempuri.titanwebservices.titanservice.TitanRunNavisionResult</java-type>
| | <anonymous-type-qname xmlns:typeNS='http://tempuri.org/TitanWebServices/TitanService'>typeNS:>TitanRunNavisionResult</anonymous-type-qname>
| | <qname-scope>complexType</qname-scope>
| | </java-xml-type-mapping>
| | <java-xml-type-mapping>
| | <java-type>org.tempuri.titanwebservices.titanservice.TitanRunNavisionResponse</java-type>
| | <anonymous-type-qname xmlns:typeNS='http://tempuri.org/TitanWebServices/TitanService'>typeNS:>TitanRunNavisionResponse</anonymous-type-qname>
| | <qname-scope>complexType</qname-scope>
| | <variable-mapping>
| | <java-variable-name>titanRunNavisionResult</java-variable-name>
| | <xml-element-name>TitanRunNavisionResult</xml-element-name>
| | </variable-mapping>
| | </java-xml-type-mapping>
| | <service-interface-mapping>
| | <service-interface>org.tempuri.titanwebservices.titanservice.TitanService</service-interface>
| | <wsdl-service-name xmlns:serviceNS='http://tempuri.org/TitanWebServices/TitanService'>serviceNS:TitanService</wsdl-service-name>
| | <port-mapping>
| | <port-name>TitanServiceSoap</port-name>
| | <java-port-name>TitanServiceSoap</java-port-name>
| | </port-mapping>
| | <port-mapping>
| | <port-name>TitanServiceSoap12</port-name>
| | <java-port-name>TitanServiceSoap12</java-port-name>
| | </port-mapping>
| | </service-interface-mapping>
| | <service-endpoint-interface-mapping>
| | <service-endpoint-interface>org.tempuri.titanwebservices.titanservice.TitanServiceSoap</service-endpoint-interface>
| | <wsdl-port-type xmlns:portTypeNS='http://tempuri.org/TitanWebServices/TitanService'>portTypeNS:TitanServiceSoap</wsdl-port-type>
| | <wsdl-binding xmlns:bindingNS='http://tempuri.org/TitanWebServices/TitanService'>bindingNS:TitanServiceSoap</wsdl-binding>
| | <service-endpoint-method-mapping>
| | <java-method-name>titanRunNavision</java-method-name>
| | <wsdl-operation>TitanRunNavision</wsdl-operation>
| | <method-param-parts-mapping>
| | <param-position>0</param-position>
| | <param-type>org.tempuri.titanwebservices.titanservice.TitanRunNavision</param-type>
| | <wsdl-message-mapping>
| | <wsdl-message xmlns:wsdlMsgNS='http://tempuri.org/TitanWebServices/TitanService'>wsdlMsgNS:TitanRunNavisionSoapIn</wsdl-message>
| | <wsdl-message-part-name>parameters</wsdl-message-part-name>
| | <parameter-mode>INOUT</parameter-mode>
| | </wsdl-message-mapping>
| | </method-param-parts-mapping>
| | <wsdl-return-value-mapping>
| | <method-return-value>org.tempuri.titanwebservices.titanservice.TitanRunNavisionResponse</method-return-value>
| | <wsdl-message xmlns:wsdlMsgNS='http://tempuri.org/TitanWebServices/TitanService'>wsdlMsgNS:TitanRunNavisionSoapOut</wsdl-message>
| | <wsdl-message-part-name>parameters</wsdl-message-part-name>
| | </wsdl-return-value-mapping>
| | </service-endpoint-method-mapping>
| | </service-endpoint-interface-mapping>
| | <service-endpoint-interface-mapping>
| | <service-endpoint-interface>org.tempuri.titanwebservices.titanservice.TitanServiceSoap</service-endpoint-interface>
| | <wsdl-port-type xmlns:portTypeNS='http://tempuri.org/TitanWebServices/TitanService'>portTypeNS:TitanServiceSoap</wsdl-port-type>
| | <wsdl-binding xmlns:bindingNS='http://tempuri.org/TitanWebServices/TitanService'>bindingNS:TitanServiceSoap12</wsdl-binding>
| | <service-endpoint-method-mapping>
| | <java-method-name>titanRunNavision</java-method-name>
| | <wsdl-operation>TitanRunNavision</wsdl-operation>
| | <method-param-parts-mapping>
| | <param-position>0</param-position>
| | <param-type>org.tempuri.titanwebservices.titanservice.TitanRunNavision</param-type>
| | <wsdl-message-mapping>
| | <wsdl-message xmlns:wsdlMsgNS='http://tempuri.org/TitanWebServices/TitanService'>wsdlMsgNS:TitanRunNavisionSoapIn</wsdl-message>
| | <wsdl-message-part-name>parameters</wsdl-message-part-name>
| | <parameter-mode>INOUT</parameter-mode>
| | </wsdl-message-mapping>
| | </method-param-parts-mapping>
| | <wsdl-return-value-mapping>
| | <method-return-value>org.tempuri.titanwebservices.titanservice.TitanRunNavisionResponse</method-return-value>
| | <wsdl-message xmlns:wsdlMsgNS='http://tempuri.org/TitanWebServices/TitanService'>wsdlMsgNS:TitanRunNavisionSoapOut</wsdl-message>
| | <wsdl-message-part-name>parameters</wsdl-message-part-name>
| | </wsdl-return-value-mapping>
| | </service-endpoint-method-mapping>
| | </service-endpoint-interface-mapping>
| | </java-wsdl-mapping>
| |
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008428#4008428
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008428
19 years, 2 months
[EJB/JBoss] - Remote not bound
by Strunker
Hi,
I have a stateless session bean with the same local and remote interface. Lookup for local interface from my webapp works fine, but the lookup for the remote interface fails with:
javax.naming.NameNotFoundException: remote not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
at java.lang.Thread.run(Thread.java:595)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at BeanTestUtil.getRemoteUserManager(BeanTestUtil.java:40)
...
Here's my bean declaration:
@Local
@Remote
public interface UserManager {
...
}
@Stateless
@Local(UserManager.class)
@Remote(UserManager.class)
public class UserManagerBean implements UserManager {
...
}
And here's the lookup:
Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
props.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
props.put(Context.PROVIDER_URL, "jnp://localhost:1099");
context = new InitialContext(props);
contect.lookup("TestEAR/UserManagerBean/remote");
And here's the output of JNDIView:
Global JNDI Namespace
...
+- TestEAR(class: org.jnp.interfaces.NamingContext)
| +- UserManagerBean (class: org.jnp.interfaces.NamingContext)
| | +- local (proxy: $Proxy137 implements interface org.community.ejb.business.UserManager,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBLocalObject)
| | +- remote (proxy: $Proxy136 implements interface org.community.ejb.business.UserManager,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject)
...
I use JBoss 4.0.5 with EJB3.0 (from WebInstaller)
Has anybody an idea what's going wrong?
Strunker
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008426#4008426
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008426
19 years, 2 months
[EJB 3.0] - Re: JBoss 4.0.5GA Problem with Firebird will not deploy was
by Jonefun
It looks like there may be an issue with JBoss 4.0.5 when defining a persistence unit that maps on to a ConnectionFactoryBinding service instead of the DataSourceBinding service.
I found a jira issue raised that points to the same problem : http://jira.jboss.com/jira/browse/JBPORTAL-613
Here is the jboss error :
|
| --- MBeans waiting for other MBeans ---
| ObjectName: persistence.units:jar=Mobile2Date.jar,unitName=Mobile2Date
| State: NOTYETINSTALLED
| I Depend On:
| jboss.jca:name=Mobile2DateDS,service=DataSourceBinding
| Depends On Me:
| jboss.j2ee:jar=Mobile2Date.jar,name=PersonManagerBean,service=EJB3
| jboss.j2ee:jar=Mobile2Date.jar,name=SetupBean,service=EJB3
|
|
You can see that it says it depends on :
jboss.jca:name=Mobile2DateDS,service=DataSourceBinding
which is odd because I have not defined my database as a DataSource, it is defined as a ConnectionFactory so it can't find it because it is looking up on the wrong service. It should be depending on :
jboss.jca:name=Mobile2DateDS,service=ConnectionFactoryBinding
because I am using a JCA Resource Adapter
If anyone can help I will be very grateful
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008425#4008425
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008425
19 years, 2 months