[JBossWS] - Waiting lock during performance test(log4j locking)
by ienvyou
I post my problem because I didn't find locking issue on this forum.
I'm under Web Service BMT using JBoss EAP 4.3 CP03 and testing tool is LoadRunner which will be increased concurrent 20 to 2000 users.
There was so high CPU usage during load test, so I got a thread dump from running instance.
JDK : BEA JRockit 1.5.0 ia64
OS : RHEL 5.2
WAS : JBoss EAP 4.3 CP03
I think this is a general issue related log4j.
I tried to comment log4j configuration for JBoss WS "org/jboss/ws/core/jaxws" pacakge in $SERVER_HOME/conf/jboss-log4j.xml, but I couldn't find the logger category for JBoss WS.
Here is stacktrace in thread dump. 40 of thread(total 60) is waiting for getting log4j.
-- Blocked trying to get lock: org/apache/log4j/spi/RootLogger@0x25d4a58[thin lock]
| at jrockit/vm/Threads.sleep(I)V(Native Method)
| at jrockit/vm/Locks.waitForThinRelease(Locks.java:1208)[optimized]
| at jrockit/vm/Locks.monitorEnterSecondStageHard(Locks.java:1341)[optimized]
| at jrockit/vm/Locks.monitorEnterSecondStage(Locks.java:1258)[optimized]
| at org/apache/log4j/Category.callAppenders(Category.java:201)[optimized]
| at org/apache/log4j/Category.forcedLog(Category.java:388)[inlined]
| at org/apache/log4j/Category.log(Category.java:853)[inlined]
| at org/jboss/logging/Log4jLoggerPlugin.debug(Log4jLoggerPlugin.java:129)[optimized]
| at org/jboss/logging/Logger.debug(Logger.java:160)[inlined]
| at org/jboss/ws/core/jaxws/handler/HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:75)[optimized]
| at org/jboss/ws/core/server/ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:170)[optimized]
| at org/jboss/wsf/stack/jbws/RequestHandlerImpl.processRequest(RequestHandlerImpl.java:424)[optimized]
| at org/jboss/wsf/stack/jbws/RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:287)[inlined]
| at org/jboss/wsf/stack/jbws/RequestHandlerImpl.doPost(RequestHandlerImpl.java:197)[inlined]
| at org/jboss/wsf/stack/jbws/RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:123)[inlined]
| at org/jboss/wsf/stack/jbws/EndpointServlet.service(EndpointServlet.java:84)[optimized]
| at javax/servlet/http/HttpServlet.service(HttpServlet.java:717)[optimized]
| at org/apache/catalina/core/ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)[inlined]
| at org/apache/catalina/core/ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[optimized]
| at org/jboss/web/tomcat/filters/ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)[optimized]
| at org/apache/catalina/core/ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[inlined]
How do I fix this problem? Where could I change log4j category for JBoss WS?
Thank in advance.
JW
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198969#4198969
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198969
15 years, 9 months
[JBossWS] - Simple Top Down WS deployment Fails on JBoss 4.2.3 - Help
by chandra76
Hi,
Iam running into a issue of unable to deploy a TOp down WSDL on JBoss. I have packaged the app as an war file containing the wsdl file under the wsdl folder. I have a simple Implementation of the methods described in the WSDL.
| <?xml version="1.0" encoding="UTF-8"?>
| <!--
|
| Licensed to the Apache Software Foundation (ASF) under one or more
| contributor license agreements. See the NOTICE file distributed with
| this work for additional information regarding copyright ownership.
| The ASF licenses this file to You under the Apache License, Version 2.0
| (the "License"); you may not use this file except in compliance with
| the License. You may obtain a copy of the License at
|
| http://www.apache.org/licenses/LICENSE-2.0
|
| Unless required by applicable law or agreed to in writing, software
| distributed under the License is distributed on an "AS IS" BASIS,
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
| See the License for the specific language governing permissions and
| limitations under the License.
|
| -->
| <!-- $Rev: 356052 $ $Date: 2005-12-11 14:41:20 -0800 (dim., 11 dâÂÂéc. 2005) $ -->
| <wsdl:definitions name="wsdl-first"
| xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
| xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
| xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xmlns:tns="http://servicemix.apache.org/samples/wsdl-first"
| xmlns:typens="http://servicemix.apache.org/samples/wsdl-first/types"
| targetNamespace="http://servicemix.apache.org/samples/wsdl-first">
|
| <wsdl:types>
| <xsd:schema targetNamespace="http://servicemix.apache.org/samples/wsdl-first/types"
| elementFormDefault="qualified">
| <xsd:element name="GetPerson">
| <xsd:complexType>
| <xsd:sequence>
| <xsd:element name="personId" type="xsd:string"/>
| </xsd:sequence>
| </xsd:complexType>
| </xsd:element>
| <xsd:element name="GetPersonResponse">
| <xsd:complexType>
| <xsd:sequence>
| <xsd:element name="personId" type="xsd:string"/>
| <xsd:element name="ssn" type="xsd:string"/>
| <xsd:element name="name" type="xsd:string"/>
| </xsd:sequence>
| </xsd:complexType>
| </xsd:element>
| <xsd:element name="UnknownPersonFault">
| <xsd:complexType>
| <xsd:sequence>
| <xsd:element name="personId" type="xsd:string"/>
| </xsd:sequence>
| </xsd:complexType>
| </xsd:element>
| </xsd:schema>
| </wsdl:types>
|
| <wsdl:message name="GetPersonRequest">
| <wsdl:part name="payload" element="typens:GetPerson"/>
| </wsdl:message>
| <wsdl:message name="GetPersonResponse">
| <wsdl:part name="payload" element="typens:GetPersonResponse"/>
| </wsdl:message>
| <wsdl:message name="UnknownPersonFault">
| <wsdl:part name="payload" element="typens:UnknownPersonFault"/>
| </wsdl:message>
|
| <wsdl:portType name="Person">
| <wsdl:operation name="GetPerson">
| <wsdl:input message="tns:GetPersonRequest"/>
| <wsdl:output message="tns:GetPersonResponse"/>
| <wsdl:fault name="UnknownPerson" message="tns:UnknownPersonFault"/>
| </wsdl:operation>
| </wsdl:portType>
|
| <wsdl:binding name="PersonSOAPBinding" type="tns:Person">
| <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
| <wsdl:operation name="GetPerson">
| <wsdl:input>
| <soap:body use="literal" />
| </wsdl:input>
| <wsdl:output>
| <soap:body use="literal" />
| </wsdl:output>
| <wsdl:fault name="UnknownPerson">
| <soap:fault use="literal" name="UnknownPerson" />
| </wsdl:fault>
| </wsdl:operation>
| </wsdl:binding>
|
| <wsdl:service name="PersonService">
| <wsdl:port binding="tns:PersonSOAPBinding" name="soap">
| <soap:address location="http://localhost:8280/TestWebServicesSample/Person" />
| </wsdl:port>
| </wsdl:service>
|
| </wsdl:definitions>
|
|
My Person Impl class looks like this.
| @WebService(name = "Person", targetNamespace = "http://servicemix.apache.org/samples/wsdl-first", endpointInterface="com.gehcit.platform.types.Person.PersonImpl")
| public class PersonImpl implements Person{
|
| public void getPerson(Holder<String> personId, Holder<String> ssn, Holder<String> name)
| throws UnknownPersonFault_Exception {
| // TODO Auto-generated method stub
| name.value = "Guillaume";
| ssn.value = "000-000-0000";
|
| }
| }
|
While deploying on to JBoss i get an error saying
| ava.lang.NullPointerException
| at org.jboss.wsf.stack.jbws.WSDLFilePublisher.getPublishLocation(WSDLFil
| Publisher.java:303)
| at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishWsdlFiles(WSDLFileP
| blisher.java:103)
| at org.jboss.wsf.stack.jbws.PublishContractDeploymentAspect.create(Publi
| hContractDeploymentAspect.java:52)
| at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy
| Unknown Source)
| at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDep
| oyerHook.java:97)
| at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInt
| rceptor.java:90)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
| tart(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
| tor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
| ava:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy46.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.GeneratedMethodAccessor25.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| orImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| r.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
| r.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
| eanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
| ava:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy10.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
| Scanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
| anner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
| oScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
| stractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
| pport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
| anSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| orImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| r.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.
| ava:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
| er.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| orImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| r.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.
| ava:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
| ava:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| orImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| r.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
| r.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
| eanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
| ava: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(Thread.java:595)
| 4:27:02,058 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../dep
| oy/jmx-console.war/
| 4:27:02,152 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
|
|
Can you please help what is going wrong this is a JSR 181 deployment and JBoss supports it .
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198889#4198889
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198889
15 years, 9 months