[JBoss jBPM] - getting error when JBPM installer -3.2.4.GA has executed
by santoshkumarsamala
I have downloaded jbpm-installer-3.2.4.GA.jar and when i run it, it asked for jboss path for jboss home and I gave it as c:/jboss.4.2.2 , and the wizard has completed successfully. Now Iam able to see there is folder created in server/default/deploy of jboss contains jbpm folder. but when i start jboss iam getting following error, please help me to resolve this
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.lang.NullPointerException)
at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.createManagedConnection(XAManagedConnectionFactory.java:144)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:577)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:262)
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:500)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:341)
at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:315)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:396)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:105)
at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:95)
at org.jbpm.persistence.jta.JtaDbPersistenceService.isJtaTransactionInProgress(JtaDbPersistenceService.java:64)
at org.jbpm.persistence.jta.JtaDbPersistenceService.(JtaDbPersistenceService.java:46)
at org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory.openService(JtaDbPersistenceServiceFactory.java:63)
at org.jbpm.svc.Services.getService(Services.java:156)
at org.jbpm.svc.Services.getPersistenceService(Services.java:195)
at org.jbpm.JbpmContext.getPersistenceService(JbpmContext.java:709)
at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:638)
at org.jbpm.web.BootstrapListener.contextInitialized(BootstrapListener.java:54)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
at org.jboss.web.WebModule.startModule(WebModule.java:83)
at org.jboss.web.WebModule.startService(WebModule.java:61)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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 $Proxy44.start(Unknown Source)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
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 $Proxy45.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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 $Proxy9.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.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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:508)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at com.mysql.jdbc.jdbc2.optional.MysqlXADataSource.wrapConnection(MysqlXADataSource.java:68)
at com.mysql.jdbc.jdbc2.optional.MysqlXADataSource.getXAConnection(MysqlXADataSource.java:60)
at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.createManagedConnection(XAManagedConnectionFactory.java:136)
... 158 more
19:13:56,774 WARN [SettingsFactory] Could not obtain connection metadata
org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (java.lang.NullPointerException); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.lang.NullPointerException))
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:94)
at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:105)
at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:95)
at org.jbpm.persistence.jta.JtaDbPersistenceService.isJtaTransactionInProgress(JtaDbPersistenceService.java:64)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211319#4211319
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211319
17 years, 2 months
[JNDI/Naming/Network] - TimerService issues
by dolsen
Hi!
I'm setting some timers using EJB TimerService:
@Stateless
| public class CommandBean implements CommandRemote
| {
| static Logger logger = Logger.getLogger(PlayerBean.class);
|
| @Resource TimerService timerService;
|
| public void scheduleCommand(Command command)
| {
| timerService.createTimer(command.getDuration(), command);
| }
|
| public void scheduleContinousCommand(Command command)
| {
| timerService.createTimer(command.getDuration(), command.getDuration(), command);
| }
|
| public Collection<Command> getCommands(long userId)
| {
| Collection<Command> commands = new ArrayList<Command>();
| for (Object object : timerService.getTimers())
| {
| Timer timer = (Timer) object;
|
| Command command = (Command) timer.getInfo();
| command.setTimeRemaining(timer.getTimeRemaining());
| if (command.getUserId() == userId)
| {
| commands.add(command);
| }
| }
|
| return commands;
| }
|
| @Timeout
| public void runCommand(Timer timer)
| {
| Command command = (Command) timer.getInfo();
|
| logger.debug("runCommand: Firing command for user: " + command.getUserId() + " " + command.getDescription());
|
| User user = null;
|
| System.setProperty("java.security.policy", "server.policy");
| if (System.getSecurityManager() == null)
| {
| System.setSecurityManager(new RMISecurityManager());
| }
|
| InitialContext jndiContext;
| try
| {
| jndiContext = getInitialContext();
| UserRemote userRef = (UserRemote) jndiContext.lookup("UserRemote");
| UserRemote dao = (UserRemote) PortableRemoteObject.narrow(userRef, UserRemote.class);
| user = dao.findUser(command.getUserId());
| logger.debug("runCommand: loading userId: " + user.getId());
| }
| catch (NamingException e)
| {
| logger.error("NamingException: ", e);
| }
| ...
| }
|
| public static InitialContext getInitialContext() throws NamingException
| {
| Properties properties = new Properties();
|
| properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, System.getProperty(Context.INITIAL_CONTEXT_FACTORY));
| properties.setProperty(Context.URL_PKG_PREFIXES, System.getProperty(Context.URL_PKG_PREFIXES));
| properties.setProperty(Context.PROVIDER_URL, "jnp://" + System.getProperty("providerHost") + ":1099");
|
| return new InitialContext(properties);
| }
|
|
jboss.xml:
| <?xml version="1.0" encoding="UTF-8"?>
| <jboss>
| <enterprise-beans>
| <session>
| <ejb-name>UserBean</ejb-name>
| <jndi-name>UserRemote</jndi-name>
| </session>
| </enterprise-beans>
| </jboss
|
JNDI view shows:
+- UserRemote (class: Proxy for: com.feudalism.session.user.UserRemote)
This works fine, and the times run at the expected time.
The problem occurs when the server is restarted, or the application is redeployed.
At this point, when the timer fires I get the following error:
ervice=EJB3]) NamingException:
javax.naming.NameNotFoundException: UserRemote not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
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 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:713)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.feudalism.session.command.CommandBean.runCommand(CommandBean.java:89)
This is running on JBoss_5_0_0_GA
Any help is appreciated.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211298#4211298
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211298
17 years, 2 months
[EJB 3.0] - ejb3.deployer does not have access to ear scoped loader repo
by barakka
Hello,
I'm using JBoss 4.2.3 and I would like to update one single ear application to the latest version Hibernate. To do that, I've placed all the needed libraries in the ear lib and used the jboss-app.xml to declare a scoped loader repository, such that the lib in my ear override the one in the default jboss lib dir.
The theory is fine, but then, in practice, I've discovered that the ejb3.deployer that is deploying my ejb (and most importantly the persistence unit) is still accessing the default lib, resulting in a classcast exception later on.
To further prove this, I've removed the hibernate libs from the jboss lib directory (after all they are in my ear lib, right?) and in turns our that I get a class not found exception for one of the classes in the hibernate lib (actually for any class in the hibernate lib). After debugging the jboss classloader, i discovered that the classes in question are looked for and cannot be found in the ejb3.deployer loader repository, that is of course different from the ear loader repository.
So, does any one have any idea on how I can tell the ejb3.deployer to use the ear loader repository? (I've seen something in case of a remoting connector, https://jira.jboss.org/jira/browse/JBREM-962, but i believe is not related to what i need).
Thanks,
Riccardo.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211284#4211284
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211284
17 years, 2 months
[JBoss jBPM] - Re: update process definition instead of creating new versio
by zoegraddy
I also have the need to distinguish between deploying a new version of a process definition and updating an existing one.
We are currently moving our workflow logic out of our session beans and into process definitions. I'm certain that our process definition will at first contain bugs that we'll want to quickly fix and have all currently 'in flight' process instances use the patched definition.
Also, I know my client and the one thing we can count on is changes to the workflow - sometimes it will make sense to only have new processes get the updated definition, but other times they will want existing instances to use the 'updated' process definition.
I've read that the preferred option is to 'migrate process instances' to the new definition, but cannot find any details about how to go about doing that. Are we supposed to modify the jbpm database's tables directly?
I appreciate any light that someone can shed on this subject.
Zoë
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211270#4211270
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211270
17 years, 2 months
[JBossWS] - WS methods with same name in different WS classes => unexpec
by samyers
Hi, I'm new to JbossWS and getting unexpected generated WSDLs from my simple test WebService classes when the classes (deployed in the same WAR) share common WebMethod names. I'm using JBossWS native version 3.0.4.GA in jboss-5.0.0.GA-jdk6.
In both WebService classes there are two methods, methodOne and methodTwo. In the TestOneWeb class both methods return Integers, in the TestTwoWeb class both methods return Strings. The WSDL for TestOneWeb looks fine, but in the WSDL for TestTwoWeb both method return ints when they should return strings.
Any help or suggestions are appreciated.
-- Steve
TestOneWeb.java:
| package com.ep.ff.web.endpoint.test;
|
| import javax.jws.WebMethod;
| import javax.jws.WebService;
|
| import org.apache.log4j.Logger;
|
| @WebService
| public class TestOneWeb
| {
| private static Logger logger = Logger.getLogger(TestOneWeb.class);
|
| @WebMethod
| public Integer methodOne(String number)
| {
| return new Integer(number);
| }
|
| @WebMethod
| public Integer methodTwo(String number)
| {
| return new Integer(number);
| }
| }
|
TestTwoWeb.java:
| package com.ep.ff.web.endpoint.test;
|
| import javax.jws.WebMethod;
| import javax.jws.WebService;
|
| import org.apache.log4j.Logger;
|
| @WebService
| public class TestTwoWeb
| {
| private static Logger logger = Logger.getLogger(TestTwoWeb.class);
|
| @WebMethod
| public String methodOne(String number)
| {
| return number;
| }
|
| @WebMethod
| public String methodTwo(String number)
| {
| return number;
| }
| }
|
web.xml:
| <?xml version="1.0" encoding="UTF-8"?>
| <web-app 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"
| version="2.5">
|
| <display-name>web-test</display-name>
|
| <servlet>
| <servlet-name>TestOneWeb</servlet-name>
| <servlet-class>com.ep.ff.web.endpoint.test.TestOneWeb</servlet-class>
| </servlet>
| <servlet-mapping>
| <servlet-name>TestOneWeb</servlet-name>
| <url-pattern>/ws/TestOne</url-pattern>
| </servlet-mapping>
|
| <servlet>
| <servlet-name>TestTwoWeb</servlet-name>
| <servlet-class>com.ep.ff.web.endpoint.test.TestTwoWeb</servlet-class>
| </servlet>
| <servlet-mapping>
| <servlet-name>TestTwoWeb</servlet-name>
| <url-pattern>/ws/TestTwo</url-pattern>
| </servlet-mapping>
| </web-app>
|
http://localhost:8080/web-test/ws/TestOne?wsdl :
| <definitions name="TestOneWebService" targetNamespace="http://test.endpoint.web.ff.ep.com/"
| xmlns="http://schemas.xmlsoap.org/wsdl/"
| xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
| xmlns:tns="http://test.endpoint.web.ff.ep.com/"
| xmlns:xsd="http://www.w3.org/2001/XMLSchema">
| <types>
| <xs:schema targetNamespace="http://test.endpoint.web.ff.ep.com/"
| version="1.0" xmlns:tns="http://test.endpoint.web.ff.ep.com/"
| xmlns:xs="http://www.w3.org/2001/XMLSchema">
| <xs:element name="methodOne" type="tns:methodOne"/>
| <xs:element name="methodOneResponse" type="tns:methodOneResponse"/>
| <xs:element name="methodTwo" type="tns:methodTwo"/>
| <xs:element name="methodTwoResponse" type="tns:methodTwoResponse"/>
| <xs:complexType name="methodOne">
| <xs:sequence>
| <xs:element minOccurs="0" name="arg0" type="xs:string"/>
| </xs:sequence>
| </xs:complexType>
| <xs:complexType name="methodOneResponse">
| <xs:sequence>
| <xs:element minOccurs="0" name="return" type="xs:int"/>
| </xs:sequence>
| </xs:complexType>
| <xs:complexType name="methodTwo">
| <xs:sequence>
| <xs:element minOccurs="0" name="arg0" type="xs:string"/>
| </xs:sequence>
| </xs:complexType>
| <xs:complexType name="methodTwoResponse">
| <xs:sequence>
| <xs:element minOccurs="0" name="return" type="xs:int"/>
| </xs:sequence>
| </xs:complexType>
| </xs:schema>
| </types>
| <message name="TestOneWeb_methodOne">
| <part element="tns:methodOne" name="methodOne"/>
| </message>
| <message name="TestOneWeb_methodTwo">
| <part element="tns:methodTwo" name="methodTwo"/>
| </message>
| <message name="TestOneWeb_methodOneResponse">
| <part element="tns:methodOneResponse" name="methodOneResponse"/>
| </message>
| <message name="TestOneWeb_methodTwoResponse">
| <part element="tns:methodTwoResponse" name="methodTwoResponse"/>
| </message>
| <portType name="TestOneWeb">
| <operation name="methodOne" parameterOrder="methodOne">
| <input message="tns:TestOneWeb_methodOne"/>
| <output message="tns:TestOneWeb_methodOneResponse"/>
| </operation>
| <operation name="methodTwo" parameterOrder="methodTwo">
| <input message="tns:TestOneWeb_methodTwo"/>
| <output message="tns:TestOneWeb_methodTwoResponse"/>
| </operation>
| </portType>
| <binding name="TestOneWebBinding" type="tns:TestOneWeb">
| <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
| <operation name="methodOne">
| <soap:operation soapAction=""/>
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
| <soap:body use="literal"/>
| </output>
| </operation>
| <operation name="methodTwo">
| <soap:operation soapAction=""/>
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
| <soap:body use="literal"/>
| </output>
| </operation>
| </binding>
| <service name="TestOneWebService">
| <port binding="tns:TestOneWebBinding" name="TestOneWebPort">
| <soap:address location="http://localhost:8080/web-test/ws/TestOne"/>
| </port>
| </service>
| </definitions>
|
http://localhost:8080/web-test/ws/TestTwo?wsdl :
| <definitions name="TestTwoWebService" targetNamespace="http://test.endpoint.web.ff.ep.com/"
| xmlns="http://schemas.xmlsoap.org/wsdl/"
| xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
| xmlns:tns="http://test.endpoint.web.ff.ep.com/"
| xmlns:xsd="http://www.w3.org/2001/XMLSchema">
| <types>
| <xs:schema targetNamespace="http://test.endpoint.web.ff.ep.com/"
| version="1.0" xmlns:tns="http://test.endpoint.web.ff.ep.com/"
| xmlns:xs="http://www.w3.org/2001/XMLSchema">
| <xs:element name="methodOne" type="tns:methodOne"/>
| <xs:element name="methodOneResponse" type="tns:methodOneResponse"/>
| <xs:element name="methodTwo" type="tns:methodTwo"/>
| <xs:element name="methodTwoResponse" type="tns:methodTwoResponse"/>
| <xs:complexType name="methodOne">
| <xs:sequence>
| <xs:element minOccurs="0" name="arg0" type="xs:string"/>
| </xs:sequence>
| </xs:complexType>
| <xs:complexType name="methodOneResponse">
| <xs:sequence>
| <xs:element minOccurs="0" name="return" type="xs:int"/>
| </xs:sequence>
| </xs:complexType>
| <xs:complexType name="methodTwo">
| <xs:sequence>
| <xs:element minOccurs="0" name="arg0" type="xs:string"/>
| </xs:sequence>
| </xs:complexType>
| <xs:complexType name="methodTwoResponse">
| <xs:sequence>
| <xs:element minOccurs="0" name="return" type="xs:int"/>
| </xs:sequence>
| </xs:complexType>
| </xs:schema>
| </types>
| <message name="TestTwoWeb_methodOne">
| <part element="tns:methodOne" name="methodOne"/>
| </message>
| <message name="TestTwoWeb_methodOneResponse">
| <part element="tns:methodOneResponse" name="methodOneResponse"/>
| </message>
| <message name="TestTwoWeb_methodTwo">
| <part element="tns:methodTwo" name="methodTwo"/>
| </message>
| <message name="TestTwoWeb_methodTwoResponse">
| <part element="tns:methodTwoResponse" name="methodTwoResponse"/>
| </message>
| <portType name="TestTwoWeb">
| <operation name="methodOne" parameterOrder="methodOne">
| <input message="tns:TestTwoWeb_methodOne"/>
| <output message="tns:TestTwoWeb_methodOneResponse"/>
| </operation>
| <operation name="methodTwo" parameterOrder="methodTwo">
| <input message="tns:TestTwoWeb_methodTwo"/>
| <output message="tns:TestTwoWeb_methodTwoResponse"/>
| </operation>
| </portType>
| <binding name="TestTwoWebBinding" type="tns:TestTwoWeb">
| <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
| <operation name="methodOne">
| <soap:operation soapAction=""/>
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
| <soap:body use="literal"/>
| </output>
| </operation>
| <operation name="methodTwo">
| <soap:operation soapAction=""/>
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
| <soap:body use="literal"/>
| </output>
| </operation>
| </binding>
| <service name="TestTwoWebService">
| <port binding="tns:TestTwoWebBinding" name="TestTwoWebPort">
| <soap:address location="http://localhost:8080/web-test/ws/TestTwo"/>
| </port>
| </service>
| </definitions>
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211253#4211253
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211253
17 years, 2 months