Hi Glen,

In this case, what happens is that WebLogic unloads our web app altogether
and reloads almost every time or every other time a new request comes in.
When I traced into CXF source code, I see the "init" and "destroy" method of
CXFServlet gets called all the time.  

Do you know anything that will cause WebLogic to unload our web app?

Thanks
Tong


Glen Mazza-2 wrote:
> 
> I have not worked with this type of problem before.  Possible guesses:
> 
> 1.) Anything in our WebLogic docs[1] that may be relevant for your
> problem?
> 
> 2.) We have two types of configuration for web services--via a
> cxf-servlet.xml file and directly through Spring configuration[2].  If
> you try the cxf-servlet.xml method, does the problem go away?  It might
> be something Spring-related that is causing the reinitialization to be
> occurring each time.
> 
> HTH,
> Glen
> 
> [1]
> http://cwiki.apache.org/confluence/display/CXF20DOC/AppServerGuide#AppServerGuide-WebLogic
> [2]
> http://cwiki.apache.org/CXF20DOC/configuration.html#Configuration-Serverconfigurationfiles
> 
> 
> Am Samstag, den 05.04.2008, 11:14 -0700 schrieb stevewu:
>> Hi all,
>> 
>> I deployed my web services in WebLogic with an EAR file.Every time I
>> access
>> a web service it rebuild all the end points defined in cxf-servlet.xml.
>> Is
>> there some parameters that I can set, so that the endpoints will be build
>> only once when I start the service?
>> 
>> Entries in cxf-servlet.xml
>> <?xml version="1.0" encoding="UTF-8"?>
>> 
>> <beans xmlns="http://www.springframework.org/schema/beans";
>>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>       xmlns:cxf="http://cxf.apache.org/core";
>>       xmlns:wsa="http://cxf.apache.org/ws/addressing";
>>       xmlns:jaxws="http://cxf.apache.org/jaxws";
>>       xmlns:soap="http://cxf.apache.org/bindings/soap";
>>       xsi:schemaLocation="
>> http://www.springframework.org/schema/beans
>> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>> http://cxf.apache.org/bindings/soap
>> http://cxf.apache.org/schemas/configuration/soap.xsd
>> http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
>> http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd";>
>> 
>>   
>> 
>>     <jaxws:endpoint
>>         id="LoginService"
>>         implementor="com.myworld.ws.jaxws.provider.LoginProvider"
>>         wsdlLocation="WEB-INF/wsdl/Login.wsdl"
>>         address="/LoginService">
>>                 <jaxws:features>
>>              <bean class="org.apache.cxf.feature.LoggingFeature"/>
>>                 </jaxws:features>
>>     </jaxws:endpoint>
>> ......
>> </beans>
>> 
>> Below is the top part of the console output before it rebuild the end
>> points.
>> 
>> 
>> Apr 5, 2008 12:38:59 PM org.apache.cxf.transport.servlet.CXFServlet
>> loadSpringBus
>> INFO: Load the bus without application context
>> log4j:WARN No appenders could be found for logger
>> (org.apache.cxf.bus.spring.BusApplicationContext).
>> log4j:WARN Please initialize the log4j system properly.
>> Apr 5, 2008 12:39:04 PM
>> org.apache.cxf.configuration.spring.ConfigurerImpl
>> <init>
>> INFO: Could not find the configuration file cxf.xml on the classpath.
>> Apr 5, 2008 12:39:06 PM
>> org.apache.cxf.transport.servlet.AbstractCXFServlet
>> replaceDestinationFactory
>> INFO: Replaced the http destionFactory with servlet transport factory
>> Apr 5, 2008 12:39:06 PM org.apache.cxf.transport.servlet.CXFServlet
>> loadAdditionalConfig
>> INFO: Build endpoints from config-location: /WEB-INF/cxf-servlet.xml
>> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/CXF-Service-End-Points-reloaded-every-time-in-WebLogic-tp16516335p16537531.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to