[jboss-user] [Installation, Configuration DEPLOYMENT] - JBoss 5 and CorbaOrb
JBoss 5 spits out several stack trace complaining CorbaOrb. Is this the norm? or does it indicate something is wrong, either with my installation, or JBoss itself? Below is just one example of such message. | 2008-12-08 08:46:52,841 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) Unable to retrieve orb | javax.management.InstanceNotFoundException: jboss:service=CorbaORB is not registered. | at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:529) | at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:559) | at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:507) | at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) | at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388) | at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367) | at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146) | at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460) | at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) | at org.jboss.web.deployers.WebModule.start(WebModule.java:96) | 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:157) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) | 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:668) | at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206) | at $Proxy36.start(Unknown Source) | at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42) | at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37) | at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) | at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) | at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) | at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) | at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286) | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598) | at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984) | at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822) | at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553) | at org.jboss.system.ServiceController.doChange(ServiceController.java:688) | at org.jboss.system.ServiceController.start(ServiceController.java:460) | at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146) | at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104) | at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45) | at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) | at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50) | at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178) | at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098) | at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) | at
[jboss-user] [EJB 3.0] - Re: how to get native connection
Yes, you can set the proxy at system level, by for example setting system, properties. However, please take a look at javadoc (version 1.5 at least) for java.net.URL, look for an overloaded method - URL.openConnetion(Proxy), you will come to realize that you can set proxy at per connection/URL base. That's why I am looking for a way to get the native connection that JBoss for ws. Well, web service at its bottom is nothing more than a http connection. jaikiran wrote : Not exactly sure, but since these properties are JVM system level properties, i don't think its possible to set it at an application level View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4193873#4193873 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4193873 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - jboss 4.2.3 is 200% slower than jboss 4.2.2
Hi, I have some EJB code exposed as web service. The sole functionality of that piece of EJB code is to act as a middle layer, between our c# client and outside (ECCNET) web services: in other words, my client calls my EJB web service, which subsequently calls ECCNET web service. I was hoping that I might get some performance gain, simply by migrating my EJB code from 4.2.2 to 4.2.3, but I got the opposite. 4.2.3 took double the time to respond. The testing was done with SoapUI as client, three runs against 4.2.2, and three runs against 4.2.3. Each run lasts 20 minutes, with SoapUI simulates 5 clients. Here is the result: JBoss 4.2.2 avegare response time in ms: 7062, 7609, 7478 JBoss 4.2.3 average response time in ms: 18823, 16356, 14573 What's the issue? Anybody had similar issues? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4193613#4193613 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4193613 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - how to get native connection
Hi, I have a need to access some outside web services through jboss, and I am behind a firewall, so my jboss has to access that web service through https proxy. I knew in general how to set system properties such as https.proxyHost, proxyPort and nonProxyHosts etc. But this way, the setting will bencome global. Is there a way for me to get the actual https connection underneath the web service, so that I can configure that connection and that connection alone to use proxy? Thanks in advance! Peter View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4193275#4193275 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4193275 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - get the native connection underneath the web service
Hi, I have a need to access some outside web services through jboss, and I am behind a firewall, so my jboss has to access that web service through https proxy. I knew in general how to set system properties such as https.proxyHost, proxyPort and nonProxyHosts etc. But this way, the setting will bencome global. Is there a way for me to get the actual https connection underneath the web service, so that I can configure that connection and that connection alone to use proxy? Thanks in advance! Peter (This was originally posted in ejb3 forum, but I thought this forum is probably more appropriate. Sorry for this reposting.) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4193276#4193276 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4193276 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - how to set up proxy for Jboss to go through
Hi, In our company, we access internet through a http proxy server (with user name and password). One of my EJB3 application needs to access outside web service. But I don't know how to set up jboss, so that it realizes the existence of the proxy server and uses it. Because of that, I am getting a Caused by: java.net.UnknownHostException exception. It is greatly appreciated if someone can help. Thanks in advance. Peter View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4184915#4184915 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4184915 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - EJB does not take proxy and authentication settings
We EJB needs to access internet, and in my company we go through http proxy, so I added the following to the beginning of my bean. However it didn't seem like JBoss actually take those configuration... | Properties systemSettings = System.getProperties(); |systemSettings.put(http.proxyHost, httpproxy.companyname.com); |systemSettings.put(http.proxyPort, 8080); |System.setProperties(systemSettings); | | |Authenticator.setDefault(new Authenticator() { | protected PasswordAuthentication getPasswordAuthentication() { | return new |PasswordAuthentication(myusername,mypassword.toCharArray()); | }}); View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4184922#4184922 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4184922 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: EJB does not take proxy and authentication settings
I noticed that the web service I called is https not http, so I modified my code to: systemSettings.put(http.proxyHost, httpproxy.companyname.com); |systemSettings.put(http.proxyPort, 8080); However I got this exception explaining about truststore etc. How to solve this? 2008-10-27 13:25:31,234 DEBUG [org.jboss.ws.core.client.RemotingConnectionImpl] Get locator for: [addr=https://demo.itemcentre.gs1ca.org/WebService/Service.svc,props={javax.xml.ws.service.endpoint.address=https://demo.itemcentre.gs1ca.org/WebService/Service.svc}] | 2008-10-27 13:25:31,234 DEBUG [org.jboss.remoting.security.SSLSocketBuilder] Could not find keystore url. Can not find store file for url because store url is null. | 2008-10-27 13:25:31,234 ERROR [org.jboss.remoting.transport.http.HTTPClientInvoker] Error creating SSL Socket Factory for client invoker. | java.io.IOException: Error initializing socket factory SSL context: Can not find truststore url. | at org.jboss.remoting.security.SSLSocketBuilder.initializeSocketFactorySSLContext(SSLSocketBuilder.java:1340) | at org.jboss.remoting.security.SSLSocketBuilder.createCustomSocketFactory(SSLSocketBuilder.java:451) | at org.jboss.remoting.security.SSLSocketBuilder.createSSLSocketFactory(SSLSocketBuilder.java:431) | at org.jboss.remoting.security.SSLSocketBuilder.createSSLSocketFactory(SSLSocketBuilder.java:381) | at org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker.createSocketFactory(HTTPSClientInvoker.java:140) | at org.jboss.remoting.RemoteClientInvoker.init(RemoteClientInvoker.java:46) | at org.jboss.remoting.transport.http.HTTPClientInvoker.init(HTTPClientInvoker.java:105) | at org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker.init(HTTPSClientInvoker.java:63) | at org.jboss.remoting.transport.https.TransportClientFactory.createClientInvoker(TransportClientFactory.java:39) | 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.remoting.InvokerRegistry.loadClientInvoker(InvokerRegistry.java:419) | at org.jboss.remoting.InvokerRegistry.createClientInvoker(InvokerRegistry.java:320) | at org.jboss.remoting.Client.connect(Client.java:459) | at org.jboss.ws.core.client.RemotingConnectionImpl.createRemotingClient(RemotingConnectionImpl.java:247) | at org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:165) | at org.jboss.ws.core.client.SOAPRemotingConnection.invoke(SOAPRemotingConnection.java:77) | at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:337) | at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243) | at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164) | at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150) | at $Proxy120.signOn(Unknown Source) | at org.jboss.tutorial.entity.bean.ShoppingCartBean.getProductData(ShoppingCartBean.java:42) | 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.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) | at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166) | at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126) | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62) | at
[jboss-user] [EJB 3.0] - Exception with AroundInvoke
I wrote a Profiler with AroundInvoke, and here is the code: import javax.interceptor.*; | import javax.ejb.*; | | public class Profiler | { | public Profiler() { | } | | @AroundInvoke | public Object profile(InvocationContext ctx) throws Exception | { | System.out.println(there); | long t1 = System.currentTimeMillis(); | try | { | return ctx.proceed(); | } | finally | { | long t2 = System.currentTimeMillis() - t1; | System.out.println(ctx.getMethod().getName() + | ( + ctx.getParameters()[0] + ) took: + | ((t2 - t1)/ 1000.0) + ms); | } | } | } | I used it to annotate a class like this: @Interceptors ({Profiler.class}) When I invoke the EJB, I got this: 2008-07-26 11:35:03,675 ERROR [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception | org.jboss.tutorial.entity.bean.WSException: web service failed | at org.jboss.tutorial.entity.bean.CalculatorBean.testReflect(CalculatorBean.java:305) | 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.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) | at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166) | at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79) | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77) | at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.wsf.container.jboss42.InvocationHandlerEJB3.invoke(InvocationHandlerEJB3.java:103) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:220) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at
[jboss-user] [EJB 3.0] - Re: Exception with AroundInvoke
I copied the code from a book, and the problem is with: ctx.getParameters()[0] When the invoked func has no param, the code fails. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166810#4166810 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166810 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - to termintae an instance of a bean
If a bean is running a long query and I want to kill it half way, how can I do that? One potential solution is to put a timer in the bean itself... but is there other ways, for example, can I look up and kill it??? Thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4158022#4158022 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4158022 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - OneToOne(fetch = FetchType.LAZY) does not work
When I specify fetch = FetchType.LAZY on OneToOne, it failed with the following stack: 2008-06-10 13:22:02,490 ERROR [org.hibernate.LazyInitializationException] could not initialize proxy - no Session | org.hibernate.LazyInitializationException: could not initialize proxy - no Session | at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:57) | at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:111) | at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:166) | at org.jboss.tutorial.entity.bean.Base_$$_javassist_7.getDescription(Base_$$_javassist_7.java) | 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 com.sun.xml.bind.v2.runtime.reflect.Accessor$GetterSetterReflection.get(Accessor.java:320) | at com.sun.xml.bind.v2.runtime.reflect.Accessor.getUnadapted(Accessor.java:147) | at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.hasValue(TransducedAccessor.java:245) | at com.sun.xml.bind.v2.runtime.property.SingleElementLeafProperty.serializeBody(SingleElementLeafProperty.java:96) | at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322) | at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:679) | at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:150) | at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322) | at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:679) | at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:65) | at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:168) | at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152) | at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322) | at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:679) | at com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:150) | at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322) | at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:679) | at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:151) | at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(ElementBeanInfoImpl.java:185) | at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeBody(ElementBeanInfoImpl.java:305) | at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:312) | at com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(ElementBeanInfoImpl.java:71) | at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:488) | at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:317) | at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:246) | at org.jboss.ws.core.jaxws.JAXBSerializer.serialize(JAXBSerializer.java:80) | at org.jboss.ws.core.binding.SerializerSupport.serialize(SerializerSupport.java:57) | at org.jboss.ws.core.soap.ObjectContent.marshallObjectContents(ObjectContent.java:159) | at org.jboss.ws.core.soap.ObjectContent.transitionTo(ObjectContent.java:72) | at org.jboss.ws.core.soap.SOAPContentElement.transitionTo(SOAPContentElement.java:140) | at org.jboss.ws.core.soap.SOAPContentElement.writeElement(SOAPContentElement.java:531) | at org.jboss.ws.core.soap.SOAPElementImpl.writeElementContent(SOAPElementImpl.java:840) | at org.jboss.ws.core.soap.SOAPElementImpl.writeElement(SOAPElementImpl.java:825) | at org.jboss.ws.core.soap.SOAPElementImpl.writeElementContent(SOAPElementImpl.java:840) | at org.jboss.ws.core.soap.SOAPElementImpl.writeElement(SOAPElementImpl.java:825) | at org.jboss.ws.core.soap.SOAPElementWriter.writeElementInternal(SOAPElementWriter.java:149) | at org.jboss.ws.core.soap.SOAPElementWriter.writeElement(SOAPElementWriter.java:130) | at org.jboss.ws.core.soap.SOAPMessageImpl.writeTo(SOAPMessageImpl.java:291) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.sendResponse(RequestHandlerImpl.java:343) | at
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Problem with OneToOne inside Embeddable
Document says that inside Embeddable, there are only handful of annotations one can use, and OneToOne is not one of them. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4157145#4157145 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4157145 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: OneToOne(fetch = FetchType.LAZY) does not work
Jboss version is 4.2.2 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4157150#4157150 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4157150 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Problem with OneToOne inside Embeddable
I have a table that has composite primary key, and one of the columns that form the primary key has OneToOne join to a helper table. Here is what I did: @Embeddable | public class SpoPK implements Serializable | { | @Column(name = objt_numb) | private int objectNumber; | | @Column(name = objt_type) | private int objectType; | | @Column(name = trgt_id) | private int target; | | @Column(name = orgu_numb_ffmt) | private int orgu; | | @Column(name = date_eff) | private Calendar dateEffective; | | @OneToOne(cascade = CascadeType.ALL) | @JoinColumn(name = price_type) | private PriceType priceType; | But it gives me error: 2008-06-09 13:00:11,310 DEBUG [org.hibernate.cfg.AnnotationBinder] Processing annotations of org.jboss.tutorial.entity.bean.SpoPK.priceType | 2008-06-09 13:00:11,310 DEBUG [org.hibernate.cfg.Ejb3Column] Binding column price_type unique false | 2008-06-09 13:00:11,310 DEBUG [org.hibernate.cfg.Ejb3Column] Binding column priceType unique false | 2008-06-09 13:00:11,310 DEBUG [org.hibernate.cfg.AnnotationBinder] Fetching priceType with JOIN | 2008-06-09 13:00:11,310 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Starting failed persistence.units:jar=order.jar,unitName=Items | java.lang.NullPointerException | at org.hibernate.cfg.AnnotationBinder.bindOneToOne(AnnotationBinder.java:1876) | at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1295) | at org.hibernate.cfg.AnnotationBinder.fillComponent(AnnotationBinder.java:1671) | at org.hibernate.cfg.AnnotationBinder.bindId(AnnotationBinder.java:1704) | at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1180) | at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:710) | at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:452) | at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:268) | at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1115) | at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1233) | at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:154) | at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:869) | at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:407) | at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126) | at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246) | 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.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103) | 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(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 $Proxy132.start(Unknown
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: jboss is only available to localhost
4.2.2 here View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4156472#4156472 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4156472 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - jboss is only available to localhost
Hi, I can access my jboss (wsdl etc.) through localhost, but not my ip address on the network. Is there a jboss configuration I need to change? Thanks, View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4156471#4156471 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4156471 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: DataSource with JBOSS
no extra other than your jdbc driver. those mappings are unnecessary. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4156473#4156473 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4156473 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: jboss is only available to localhost
got it. oh, this is new in 4.2.2. run - b 0.0.0.0 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4156474#4156474 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4156474 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Problem using JBoss Datasource
I used resource injection with JBoss 4.2.2 and Oracle 10g, and there was no probem. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4155541#4155541 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4155541 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - mappedBy and WS
Two questions: 1) We are investigating sending JPA entities through WS. When the entity defines mappedBy, WS fails because mappedBy cause recursive when the engine tried to generate the XML. The most obvious way to resolve the problem, is to remove mappedBy, but is that the best way, any other ways? 2) A larger question, is it the best practice to send JPA entity over WS? Is there any risk of troubles? I see an logical argument against it: sending data object over WS is not the best practice, what should be send over is the business object. Any thoughts? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4154454#4154454 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4154454 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: JBossAS4.2.x JPA annatations on Oracle92 xmlType column
The best document I can find on this is the following: http://www.hibernate.org/118.html?cmd=prntdoc. I take this as a clear indication that XMLType is not supported. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4152102#4152102 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4152102 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: JBossAS4.2.x JPA annatations on Oracle92 xmlType column
Forgot to mention, read third last qa on that page. I was able to navigate to that page from Hibernate's home, so we can assume it speaks to the latest status. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4152123#4152123 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4152123 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: JBossAS4.2.x JPA annatations on Oracle92 xmlType column
Is there a straight froward way? meaning whether JBoss supports XMType out of the box? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4151591#4151591 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4151591 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - XMLType, JPA and JBoss 4.2.2
Hi, Our encountered issues on Friday when we tried to get XMLType columns from Oracle database through JPA. Not much information available but in one of two available posts, seems like it is a fact that JBoss 4.2.2 does not support XMLType out of the box. I am not interested in any long shot solution, but do want hear whether this is documented, or whether someone else had the same experience.\ Thanks, P View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4151590#4151590 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4151590 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - getter/setter for ArrayList embedded in HashMap
I original posted this in WS forum, but I found there were many posts there with zero reply, so I just reposted it here. My question really comes down to whether I can write getter/setter for the ArrayList embedded in the HashMap. Original Post: I have getter/setter defined for properties, but still cannot send object of this class through WS, because the JBOSS generated WSDL doesn't include correct information for ArrayList. How can I correct this? | | package org.jboss.tutorial.webservice.bean; | | import java.util.*; | import java.io.*; | | public class Something { | private int a; | private double b; | | | private HashMapString, ArrayListString c; | | public Something() { | a = 1; | b = 2.0; | c = new HashMapString, ArrayListString(); | { | ArrayListString arr = new ArrayListString(); | arr.add(This is fun); | arr.add(Interesting); | arr.add(What is this?); | c.put(thought, arr); | } | { | ArrayListString arr = new ArrayListString(); | arr.add(Kaveh); | arr.add(David); | arr.add(Costa); | c.put(name, arr); | } | { | ArrayListString arr = new ArrayListString(); | arr.add(green apple); | arr.add(orange orange); | arr.add(yellow mango); | c.put(fruit, arr); | } | { | ArrayListString arr = new ArrayListString(); | arr.add(they shoot horse); | arr.add(sleppless in seattle); | arr.add(thank you for smoking); | c.put(movie, arr); | } | } | | public int getA() { | return a; | } | | public void setA(int a) { | this.a = a; | } | | public double getB() { | return b; | } | | public void setB(double b) { | this.b = b; | } | | public HashMapString, ArrayListString getC() { | return c; | } | | public void setC(HashMapString, ArrayListString c) { | this.c = c; | } | | public ArrayListString getC(String i) { | return c.get(i); | } | | public void setC(String i, ArrayListString c) { | this.c.put(i, c); | } | | } | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4148414#4148414 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4148414 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Urgent!! Web service return object - JBopss 4.2.2.GA
Hi, We are doing some prototyping, JBoss for web service and C# for client. One of the key thing is to return an object from web service. But it did n't seem to work (some kind of limitation???). After some investigation, the problem seems reside on JBoss side, since the WSDL seems missing information. Interface: | package org.jboss.tutorial.webservice.bean; | | import javax.jws.WebService; | import javax.jws.WebMethod; | import java.rmi.Remote; | import java.rmi.RemoteException; | import javax.jws.soap.SOAPBinding; | import javax.jws.soap.SOAPBinding.Style; | | | @WebService | @SOAPBinding(style=Style.DOCUMENT) | public interface Calculator extends Remote | { |@WebMethod int add(int x, int y); | |@WebMethod int subtract(int x, int y); |@WebMethod Something dump(); | | } | Implementation: | package org.jboss.tutorial.webservice.bean; | | import javax.ejb.*; | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | import javax.jws.soap.SOAPBinding.Style; | import javax.naming.*; | import javax.persistence.*; | | import java.sql.*; | import javax.sql.*; | | import javax.annotation.Resource; | | @Stateless | @WebService | @SOAPBinding(style=Style.DOCUMENT) | public class CalculatorBean | { | | public int add(int x, int y) { | return x + y; | } | |public int subtract(int x, int y) |{ | return x - y; |} | |public Something dump() { |System.out.println(called); | return new Something(); |} | } | | Definition of Something: | package org.jboss.tutorial.webservice.bean; | | import java.util.*; | | public class Something { | private int a; | private double b; | private HashMapString, ArrayListString c; | | public Something() { | a = 1; | b = 2.0; | c = new HashMapString, ArrayListString(); | { | ArrayListString arr = new ArrayListString(); | arr.add(This is fun); | arr.add(Interesting); | arr.add(What is this?); | c.put(first set, arr); | } | { | ArrayListString arr = new ArrayListString(); | arr.add(Kaveh); | arr.add(David); | arr.add(Costa); | c.put(second set, arr); | } | { | ArrayListString arr = new ArrayListString(); | arr.add(green apple); | arr.add(orange orange); | arr.add(yellow mango); | c.put(third set, arr); | } | { | ArrayListString arr = new ArrayListString(); | arr.add(they shoot horse); | arr.add(sleppless in seattle); | arr.add(thank you for smoking); | c.put(bunch of movies, arr); | } | } | } | | WSDL generated (does not seem to define Something!!!): | definitions name='CalculatorBeanService' targetNamespace='http://bean.webservice.tutorial.jboss.org/' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://bean.webservice.tutorial.jboss.org/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' | types | xs:schema targetNamespace='http://bean.webservice.tutorial.jboss.org/' version='1.0' xmlns:tns='http://bean.webservice.tutorial.jboss.org/' xmlns:xs='http://www.w3.org/2001/XMLSchema' |xs:element name='add' type='tns:add'/ |xs:element name='addResponse' type='tns:addResponse'/ |xs:element name='dump' type='tns:dump'/ |xs:element name='dumpResponse' type='tns:dumpResponse'/ |xs:element name='subtract' type='tns:subtract'/ |xs:element name='subtractResponse' type='tns:subtractResponse'/ | |xs:complexType name='add' | xs:sequence | xs:element name='arg0' type='xs:int'/ | xs:element name='arg1' type='xs:int'/ | /xs:sequence |/xs:complexType |xs:complexType name='addResponse' | xs:sequence | xs:element name='return' type='xs:int'/ | | /xs:sequence |/xs:complexType |xs:complexType name='dump' | xs:sequence/ |/xs:complexType |xs:complexType name='dumpResponse' | xs:sequence | xs:element minOccurs='0' name='return' type='tns:something'/ | /xs:sequence | |/xs:complexType |xs:complexType name='something' | xs:sequence/ |/xs:complexType |xs:complexType name='subtract' | xs:sequence | xs:element name='arg0' type='xs:int'/ | xs:element name='arg1' type='xs:int'/ |
[jboss-user] [JBossWS] - Re: Urgent!! Web service return object - JBopss 4.2.2.GA
getter/setter View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4148232#4148232 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4148232 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - send HaspMapString, ArrayListString over WS
I have getter/setter defined for properties, but still cannot send object of this class through WS, because the JBOSS generated WSDL doesn't include correct information for ArrayList. How can I correct this? | package org.jboss.tutorial.webservice.bean; | | import java.util.*; | import java.io.*; | | public class Something { | private int a; | private double b; | | | private HashMapString, ArrayListString c; | | public Something() { | a = 1; | b = 2.0; | c = new HashMapString, ArrayListString(); | { | ArrayListString arr = new ArrayListString(); | arr.add(This is fun); | arr.add(Interesting); | arr.add(What is this?); | c.put(thought, arr); | } | { | ArrayListString arr = new ArrayListString(); | arr.add(Kaveh); | arr.add(David); | arr.add(Costa); | c.put(name, arr); | } | { | ArrayListString arr = new ArrayListString(); | arr.add(green apple); | arr.add(orange orange); | arr.add(yellow mango); | c.put(fruit, arr); | } | { | ArrayListString arr = new ArrayListString(); | arr.add(they shoot horse); | arr.add(sleppless in seattle); | arr.add(thank you for smoking); | c.put(movie, arr); | } | } | | public int getA() { | return a; | } | | public void setA(int a) { | this.a = a; | } | | public double getB() { | return b; | } | | public void setB(double b) { | this.b = b; | } | | public HashMapString, ArrayListString getC() { | return c; | } | | public void setC(HashMapString, ArrayListString c) { | this.c = c; | } | | public ArrayListString getC(String i) { | return c.get(i); | } | | public void setC(String i, ArrayListString c) { | this.c.put(i, c); | } | | } | | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4148233#4148233 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4148233 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Cannot expose EJB 3 as WS
Thanks and you are right! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4147682#4147682 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4147682 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - how to modify a client so that it works with rpc instead of
On server side, I changed the style annotation of my service: from RPC to DOCUMENT. The client side stopped working. When I first started writing this post, I found teh client side imports javax.xml.rpc.*. i searched through J2EE API and there is no javax.xml.document. How should I modify my client code? Why is the API's not consistent for those two styles? | package org.jboss.tutorial.webservice.client; | | import org.jboss.tutorial.webservice.bean.Calculator; | | import javax.xml.namespace.QName; | import javax.xml.rpc.Service; | import javax.xml.rpc.ServiceFactory; | import java.net.URL; | import java.io.File; | | public class Client | { |public static void main(String[] args) throws Exception |{ | URL url = new URL(http://localhost:8080/tutorial/CalculatorBean?wsdl;); | | ServiceFactory factory = ServiceFactory.newInstance(); | Service service = factory.createService(url, null); | | Calculator calculator = (Calculator) service.getPort(Calculator.class); | | System.out.println( + calculator.add(Integer.parseInt(args[0]), Integer.parseInt(args[1]), args[2])); | System.out.println( + calculator.subtract(Integer.parseInt(args[0]), Integer.parseInt(args[1]))); |} | } | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4147684#4147684 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4147684 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Cannot expose EJB 3 as WS
Hm... After I read your reply, I tried two things but both failed, not sure what we did differently (I am using 4.2.2.GA). 1) I removed the config.xml file, when I deploy I got this: | 15:07:45,192 ERROR [URLDeploymentScanner] Incomplete Deployment listing: | | --- Packages waiting for a deployer --- | [EMAIL PROTECTED] { url=file:/C:/jboss-4.2.2.GA/serve | r/default/deploy/endpoint/Hello.class } | deployer: null | status: null | state: INIT_WAITING_DEPLOYER | watch: file:/C:/jboss-4.2.2.GA/server/default/deploy/endpoint/Hello.class | altDD: null | lastDeployed: 1209420465192 | lastModified: 1209420465192 | mbeans: | | --- Incompletely deployed packages --- | [EMAIL PROTECTED] { url=file:/C:/jboss-4.2.2.GA/serve | r/default/deploy/endpoint/Hello.class } | deployer: null | status: null | state: INIT_WAITING_DEPLOYER | watch: file:/C:/jboss-4.2.2.GA/server/default/deploy/endpoint/Hello.class | altDD: null | lastDeployed: 1209420465192 | lastModified: 1209420465192 | mbeans: | 2) the config.xml is still removed like option, but I added wsdlLocation in my code like this: | @Stateless | @WebService(endpointInterface=org.jboss.tutorial.webservice.bean.Calculator, wsdlLocation=http://localhost:8080/tutorial/CalculatorBean?wsdl;) | And I got this: | 15:10:27,020 ERROR [MainDeployer] Could not start deployment: file:/C:/jboss-4.2 | .2.GA/server/default/deploy/tutorial.jar | org.jboss.ws.metadata.wsdl.WSDLException: Cannot parse wsdlLocation: http://loca | lhost:8080/tutorial/CalculatorBean?wsdl | at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.getDocument(WSDLDefini | tionsFactory.java:183) | at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsF | actory.java:108) | at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.pr | ocessOrGenerateWSDL(JAXWSWebServiceMetaDataBuilder.java:373) | at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.bu | ildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:158) | at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupP | roviderOrWebService(JAXWSServerMetaDataBuilder.java:50) | at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3.buildMet | aData(JAXWSMetaDataBuilderEJB3.java:78) | at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.create(Unifi | edMetaDataDeploymentAspect.java:71) | at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy | (DeploymentAspectManagerImpl.java:115) | at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDep | loyerHook.java:97) | at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInt | erceptor.java:90) | at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor. | start(SubDeployerInterceptorSupport.java:188) | at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce | ptor.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 $Proxy34.start(Unknown Source) | 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.GeneratedMethodAccessor20.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces | sorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch | er.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept | or.java:133) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM | BeanOperationInterceptor.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(URLDeploymen | tScanner.java:421) | at
[jboss-user] [EJB 3.0] - Re: Problem with EJB call EJB
Thank you very much and you are right, once ejb-jar.xml is removed things worked. Thank you very much! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4147071#4147071 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4147071 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - failed to deploy entity when persistence.xml is there
I am trying out persistence and EJB 3, but I got this error when the jar is deployed: | 10:06:55,887 ERROR [URLDeploymentScanner] Incomplete Deployment listing: | | --- MBeans waiting for other MBeans --- | ObjectName: jboss.j2ee:jar=order.jar,name=ShoppingCartBean,service=EJB3 | State: NOTYETINSTALLED | I Depend On: | persistence.units:unitName=sample | | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- | ObjectName: persistence.units:unitName=sample | State: NOTYETINSTALLED | Depends On Me: | jboss.j2ee:jar=order.jar,name=ShoppingCartBean,service=EJB3 | I do have a persistencein META-INF directory: | persistence xmlns=http://java.sun.com/xml/ns/persistence; |xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; |xsi:schemaLocation=http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd; |version=1.0 |persistence-unit name=sample | jta-data-sourcejava:/DefaultDS/jta-data-source | properties | property name=hibernate.dialect value=org.hibernate.dialect.HSQLDialect/ | property name=hibernate.hbm2ddl.auto value=create-drop/ | /properties |/persistence-unit | /persistence | in my stateful bean I have this code: | package org.jboss.tutorial.entity.bean; | | import javax.ejb.Remote; | import javax.ejb.Remove; | import javax.ejb.Stateful; | import javax.persistence.EntityManager; | import javax.persistence.PersistenceContext; | import javax.persistence.PersistenceContext; | | | @Stateful | @Remote(ShoppingCart.class) | public class ShoppingCartBean implements ShoppingCart, java.io.Serializable | { |@PersistenceContext(unitName=sample) |private EntityManager manager; |private Order order; | |public void buy(String product, int quantity, double price) |{ | if (order == null) order = new Order(); | order.addPurchase(product, quantity, price); |} | |public Order getOrder() |{ | return order; |} | |@Remove |public void checkout() |{ | manager.persist(order); |} | } | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4147072#4147072 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4147072 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: failed to deploy entity when persistence.xml is there
figured out, the persistence.xml was not put under META-INF in the jar file. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4147078#4147078 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4147078 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Hypersonic data are all erased after jboss is restarted
The following code does persist data (orders and order lines) to database, and I did see that. The problem is that the data were all erased once jboss is restarted. How can I change that? I have a persistencein META-INF directory: | persistence xmlns=http://java.sun.com/xml/ns/persistence; |xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; |xsi:schemaLocation=http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd; |version=1.0 |persistence-unit name=sample | jta-data-sourcejava:/DefaultDS/jta-data-source | properties | property name=hibernate.dialect value=org.hibernate.dialect.HSQLDialect/ | property name=hibernate.hbm2ddl.auto value=create-drop/ | /properties |/persistence-unit | /persistence | in my stateful bean I have this code, and checkout was called from outside: | | package org.jboss.tutorial.entity.bean; | | import javax.ejb.Remote; | import javax.ejb.Remove; | import javax.ejb.Stateful; | import javax.persistence.EntityManager; | import javax.persistence.PersistenceContext; | import javax.persistence.PersistenceContext; | | | @Stateful | @Remote(ShoppingCart.class) | public class ShoppingCartBean implements ShoppingCart, java.io.Serializable | { |@PersistenceContext(unitName=sample) |private EntityManager manager; |private Order order; | |public void buy(String product, int quantity, double price) |{ | if (order == null) order = new Order(); | order.addPurchase(product, quantity, price); |} | |public Order getOrder() |{ | return order; |} | |@Remove |public void checkout() |{ | manager.persist(order); |} | } | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4147091#4147091 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4147091 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Hypersonic data are all erased after jboss is restarted
Thank you very much and your response is really quick! I changed it to update, and it worked. Thanks again! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4147095#4147095 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4147095 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Problem with EJB call EJB
Thank for your reply. I tried your first option, and got the same null pointer error. Your second option actually was the first thing I tried when I first started to experiment. I am using 4.2.2.GA if that means anything. I have attempted to upgrade to 5.0.0.Beta4, but it gave me some wierd error when I deploy. Instead of making it more complicated, I will just try to stay with 4 stream now. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4147014#4147014 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4147014 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Problem with EJB call EJB
I just notoced that,t the beginning of my ejb-jar.xml, it says version=2.1. That might be part of the problem, what's the correct schema and version etc? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4147017#4147017 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4147017 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Cannot expose EJB 3 as WS
Hi, I developed a very simple EJB 3 bean, I can deploy it with no error, but the web service is not exposed. This is what I did: 1) Wrote the code as shown below; 2) compile and jar into hello.jar; 3) copy the jar to server/default/deploy; Please help, what did I miss? I am using 4.2.2.GA Hello.java: | package org.jboss.ws.hello; | | | import java.rmi.Remote; | | import javax.jws.WebMethod; | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | import javax.jws.soap.SOAPBinding.Style; | | @WebService | public interface Hello extends Remote { | @WebMethod | String echo(String e); | } | HelloBean.java: | package org.jboss.ws.hello; | | | import javax.ejb.Remote; | import javax.ejb.Stateless; | import javax.jws.*; | import javax.jws.soap.*; | | @Stateless | @WebService(endpointInterface = org.jboss.ws.hello.Hello) | @Remote(Hello.class) | public class HelloBean { | public String echo(String e) { | return Web Service Echo + + e; | } | } | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4147022#4147022 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4147022 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Cannot expose EJB 3 as WS
Checked out the specification for @WebService, it says that wsdlLocation points to a predefined wsdl, obviously does not work for my purpose here. I still wonder whether I can avoid the config.xml file. Is it not true that EJB 3 suppose to remove the need of those xml files. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4147028#4147028 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4147028 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Cannot expose EJB 3 as WS
I can resolve by specify wsdlLocation in a config.xml file. Wondering why... tried to specify this wsdlLocation using @WebService and didn't work. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4147027#4147027 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4147027 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Problem with EJB call EJB
Hi, I was experimenting how to make a EJB to EJB call, and I started with let a EJB call itself. but no luck, could someone please help and point me to the right direction? The EJB code (modified based on some ws code in jboss4guide): package org.jboss.ws.hello; | | | import javax.ejb.*; | | | import javax.naming.*; | | | | public class HelloBean | implements SessionBean, Hello | { | | @EJB(beanName = org.jboss.ws.hello.HelloBean) | private HelloBean h; | | public int hello(int a, int b) | { | | return a + b; | | } | | | public int minus(int a, int b) | { | try { | | h.minus(2,1); | } catch (Exception e) { | e.printStackTrace(); | } | return a - b; | | } | | | | public void ejbCreate() { | System.out.println(create); | }; | | public void ejbRemove() { | System.out.println(remove); | }; | | | public void ejbActivate() { | System.out.println(activate); | } | | | public void ejbPassivate() { | System.out.println(passivate); | } | | | public void setSessionContext(SessionContext ctx) {} | | } | | Here is the ejb-jar.xml (I am guessing that the ejb-ref portion is not needed if I am using @EJB annotation???): | ?xml version=1.0 encoding=UTF-8? | | ejb-jar xmlns=http://java.sun.com/xml/ns/j2ee; version=2.1 | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; | xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd; | | display-namechapter 12 EJB JAR/display-name | | enterprise-beans | | session | | ejb-nameHelloBean/ejb-name | | service-endpointorg.jboss.ws.hello.Hello/service-endpoint | | ejb-classorg.jboss.ws.hello.HelloBean/ejb-class | | session-typeStateless/session-type | | transaction-typeContainer/transaction-type | ejb-ref | ejb-ref-namelocal/HelloBean/ejb-ref-name | ejb-ref-typeSession/ejb-ref-type | homeorg.jboss.ws.hello.HelloBean/home | remoteorg.jboss.ws.hello.HelloBean/remote | ejb-linkHelloBean/ejb-link | injection-targetlocal/HelloBean/injection-target | /ejb-ref | | /session | | /enterprise-beans | | assembly-descriptor | | method-permission | | unchecked/ | | method | | ejb-nameHelloBean/ejb-name | | method-name*/method-name | | /method | | /method-permission | | container-transaction | | method | | ejb-nameHelloBean/ejb-name | | method-name*/method-name | | /method | | trans-attributeRequired/trans-attribute | | /container-transaction | | /assembly-descriptor | | /ejb-jar | And here is the stack trace: | 2008-04-25 21:52:54,257 ERROR [STDERR] java.lang.NullPointerException | 2008-04-25 21:52:54,279 ERROR [STDERR] at org.jboss.ws.hello.HelloBean.minus(HelloBean.java:45) | 2008-04-25 21:52:54,282 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | 2008-04-25 21:52:54,305 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | 2008-04-25 21:52:54,308 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | 2008-04-25 21:52:54,311 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) | 2008-04-25 21:52:54,314 ERROR [STDERR] at org.jboss.invocation.Invocation.performCall(Invocation.java:359) | 2008-04-25 21:52:54,316 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237) | 2008-04-25 21:52:54,319 ERROR [STDERR] at org.jboss.wsf.container.jboss42.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:85) | 2008-04-25 21:52:54,322 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158) | 2008-04-25 21:52:54,325 ERROR [STDERR]
[jboss-user] [EJB 3.0] - Problem with EJB call EJB
Hi, I was experimenting how to make a EJB to EJB call, and I started with let a EJB call itself. but no luck, could someone please help and point me to the right direction? The EJB code (modified based on some ws code in jboss4guide): package org.jboss.ws.hello; | | | import javax.ejb.*; | | | import javax.naming.*; | | | | public class HelloBean | implements SessionBean, Hello | { | | @EJB(beanName = org.jboss.ws.hello.HelloBean) | private HelloBean h; | | public int hello(int a, int b) | { | | return a + b; | | } | | | public int minus(int a, int b) | { | try { | | h.minus(2,1); | } catch (Exception e) { | e.printStackTrace(); | } | return a - b; | | } | | | | public void ejbCreate() { | System.out.println(create); | }; | | public void ejbRemove() { | System.out.println(remove); | }; | | | public void ejbActivate() { | System.out.println(activate); | } | | | public void ejbPassivate() { | System.out.println(passivate); | } | | | public void setSessionContext(SessionContext ctx) {} | | } | | Here is the ejb-jar.xml (I am guessing that the ejb-ref portion is not needed if I am using @EJB annotation???): | ?xml version=1.0 encoding=UTF-8? | | ejb-jar xmlns=http://java.sun.com/xml/ns/j2ee; version=2.1 | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; | xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd; | | display-namechapter 12 EJB JAR/display-name | | enterprise-beans | | session | | ejb-nameHelloBean/ejb-name | | service-endpointorg.jboss.ws.hello.Hello/service-endpoint | | ejb-classorg.jboss.ws.hello.HelloBean/ejb-class | | session-typeStateless/session-type | | transaction-typeContainer/transaction-type | ejb-ref | ejb-ref-namelocal/HelloBean/ejb-ref-name | ejb-ref-typeSession/ejb-ref-type | homeorg.jboss.ws.hello.HelloBean/home | remoteorg.jboss.ws.hello.HelloBean/remote | ejb-linkHelloBean/ejb-link | injection-targetlocal/HelloBean/injection-target | /ejb-ref | | /session | | /enterprise-beans | | assembly-descriptor | | method-permission | | unchecked/ | | method | | ejb-nameHelloBean/ejb-name | | method-name*/method-name | | /method | | /method-permission | | container-transaction | | method | | ejb-nameHelloBean/ejb-name | | method-name*/method-name | | /method | | trans-attributeRequired/trans-attribute | | /container-transaction | | /assembly-descriptor | | /ejb-jar | And here is the stack trace: | 2008-04-25 21:52:54,257 ERROR [STDERR] java.lang.NullPointerException | 2008-04-25 21:52:54,279 ERROR [STDERR] at org.jboss.ws.hello.HelloBean.minus(HelloBean.java:45) | 2008-04-25 21:52:54,282 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | 2008-04-25 21:52:54,305 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | 2008-04-25 21:52:54,308 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | 2008-04-25 21:52:54,311 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) | 2008-04-25 21:52:54,314 ERROR [STDERR] at org.jboss.invocation.Invocation.performCall(Invocation.java:359) | 2008-04-25 21:52:54,316 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237) | 2008-04-25 21:52:54,319 ERROR [STDERR] at org.jboss.wsf.container.jboss42.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:85) | 2008-04-25 21:52:54,322 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158) | 2008-04-25 21:52:54,325 ERROR [STDERR]
[jboss-user] [Management, JMX/JBoss] - Connection closed by remote host, what and why?
I keep getting this error message, and there is no obvious reason to believe that this came from my application, could it be JBoss? What was the cause? Actually what was the connection mentioned in the error message? Is it the DB connection or something else? (If this is not the right section to post this, pls point me to the right one ;-) | 16:03:05,765 ERROR [Message] java.io.IOException: | ClientAbortException: java.net.SocketException: Connection closed by remote hos | t | at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java: | 327) | at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:29 | 3) | at org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputSt | ream.java:85) | at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:410) | at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152) | at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213) | at java.io.BufferedWriter.flush(BufferedWriter.java:230) | at org.apache.axis.Message.writeTo(Message.java:441) | at org.apache.axis.transport.http.AxisServlet.sendResponse(AxisServlet.j | ava:1018) | at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:89 | 5) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBas | e.java:339) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl | icationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF | ilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi | lter.java:81) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl | icationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF | ilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV | alve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV | alve.java:178) | at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc | ipalValve.java:39) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit | yAssociationValve.java:159) | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica | torBase.java:482) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv | e.java:59) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j | ava:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j | ava:105) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal | ve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav | a:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java | :856) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce | ssConnection(Http11Protocol.java:744) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo | int.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor | kerThread.java:112) | at java.lang.Thread.run(Thread.java:534) | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3980568#3980568 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3980568 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Message saying lost connection...
I keep getting the following message, which didn't really seem to be a problem, but annoying. Two questions: 1) Whether I can filter out the message (through some JBoss configuration), if it is harmless; 2) Whether there is a fix, so that the connection got kept, or at least kept longer. Thanks, Peter 08:30:19,175 ERROR [Message] java.io.IOException: | ClientAbortException: java.net.SocketException: Connection closed by remote hos | t | at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java: | 327) | at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:29 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3979413#3979413 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3979413 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Couldn't find a matching Java operation WSDD operation
I was simply modifyng an exsting program, but when I ran it, I got this error: Sorry, something seems to have gone wrong... here are the details: | | Fault - ; nested exception is: | org.apache.axis.InternalException: java.lang.Exception: Couldn't find a matching Java operation for WSDD operation getKey (0 args) | | AxisFault | faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException | faultSubcode: | faultString: org.apache.axis.InternalException: java.lang.Exception: Couldn't find a matching Java operation for WSDD operation getKey (0 args) | faultActor: | faultNode: | faultDetail: | Sounds to me like it just couldn't find the class (or jar file). What could be wrong though? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3971144#3971144 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3971144 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - problem with web service through SSL
I have SSL connector (port 8443) defined for my jboss application server. In server\default\deploy\jbossweb-tomcat55.sar\server.xml, I added: Connector port=8443 address=${jboss.bind.address} |maxThreads=100 strategy=ms maxHttpHeaderSize=8192 |emptySessionPath=true |scheme=https secure=true clientAuth=false |keystoreFile=conf/server.keystore |keystorePass=12345678 sslProtocol = TLS / But when I deploy a web service, it does not seem to work with https (when I try to view its wsdl through https://blah:8443/blah?wsdl, it fails). I checked the WSDL file that was generated (through http://blah:8080/blah?wsdl), it has this portion at the end: service name=SampleService | port binding=tns:TrivialServiceBinding name=TrivialServicePort | soap:address location=http://it-peip:8080/jbossws-samples-rpcstyle; / | /port | /service Should it also have one more section (almost a duplicate) for 8443? Tomcat does have. I didn't make any change to the code, but did add the security-constriant to the web-inf\web.xml file: login-config | auth-methodBASIC/auth-method | realm-namedefault/realm-name | /login-config | security-constraint | web-resource-collection | web-resource-nameSSLSecurityProvider/web-resource-name | descriptionSecurity constraint for Security Provider/description | url-pattern/jbossws-samples-rpcstyle?wsdl/url-pattern | http-methodPOST/http-method | http-methodGET/http-method | /web-resource-collection | auth-constraint | role-name*/role-name | /auth-constraint | user-data-constraint | descriptionSSL required/description | transport-guaranteeCONFIDENTIAL/transport-guarantee | /user-data-constraint | /security-constraint What is wrong? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3970630#3970630 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3970630 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - How to get peer information
In my web service, I would like to get information about the peer, for example IP address etc. How can I do that? I expect it to be something like JSPContext? For secured web service through LDAP, is there a way to get the user id etc.? Thanks very much, Peter View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3970173#3970173 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3970173 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - java.sql.SQLException: Already closed
In my web service, I need to access Oracle database, so I created the oracle-ds.xml file in my deploy directory like this: ?xml version=1.0 encoding=UTF-8? local-tx-datasource jndi-namehhsDB/jndi-name connection-urljdbc:oracle:thin:@aadv1db.abcd.com:1521:aadv1/connection-url driver-classoracle.jdbc.driver.OracleDriver/driver-class user-namesim/user-name sim exception-sorter-class-nameorg.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter/exception-sorter-class-name type-mappingOracle10g/type-mapping /local-tx-datasource And in my code I have this function to get connection for me: private Connection getConnection() throws Exception { InitialContext initialContext = new InitialContext(); javax.sql.DataSource ds = (javax.sql.DataSource) initialContext.lookup(java:hhsDB); java.sql.Connection conn = ds.getConnection(); return conn; } But it keeps giving me java.sql.SQLException: Already closed, even after I removed those .close() calls from my code... What should I do? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3969773#3969773 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3969773 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: java.sql.SQLException: Already closed
This was resolved by turning off the auto-commit. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3969782#3969782 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3969782 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Configure JavaMail in JBoss
I am looking for a way to configure JavaMail in JBoss, so that I can send mail by looking up context. I did find something online, but the information was really old, and I couldn't even find the the files mentioned (I amusing version 4, and the post was for version 2). Please help. Thanks, Peter View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3969788#3969788 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3969788 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: where to deploy web service war files
That worked, thanks a lot! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3968711#3968711 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3968711 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: JBoss port 1099 on windows
That was my fault. There was another instance running (I guess that there might be some bug with JBoss shutdown), which already had the port used. Once I killed that run away process, now everything is fine. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3968713#3968713 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3968713 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - where to deploy web service war files
Hi, I am familiar with war file etc. I am now moving to JBoss (away from SUN Application Server). After reading the user guide I couldn't find any information as how and where to deploy. Is it something as simple as copying the war file to a particular sub-directory under JBoss home? or is it more than that? is there a ant task? Thanks, Peter View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3968515#3968515 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3968515 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: where to deploy web service war files
Thanks, and you made my day, and I will try tomorrow. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3968521#3968521 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3968521 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - link to JBossWB User Guide is broken
The link on JBoss web page seems to be broken. I really need the user guide now, is there any other place I can get it? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3967121#3967121 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3967121 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user