Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Changing any java code causes weblogic to restart in debug mode

780326Jul 6 2010 — edited Feb 24 2011
I'm using the OEPE version of eclipse with WL Server 11gr1 patchset 2. When I run in debug mode and change any line of code, even a comment, my server restarts. And when it does, it gives a ClassCastException so I have to kill it and restart it manually.

I was able to deploy an extremely simple web app and successfully change code and continue running without a restart so it's something to do with my project and not my environment (I think).

My project is using Spring, JPA, Icefaces and has a separate web and domain project. I'm including some logging from the startup and the error I get on the restart.

Starting WLS with line:
C:\apps\oracle\JDK160~1\bin\java -client -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n -Djava.compiler=NONE -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -Dweblogic.Name=AdminServer -Djava.security.policy=C:\apps\oracle\WLSERV~1.3\server\lib\weblogic.policy -Xverify:none -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole... -Dplatform.home=C:\apps\oracle\WLSERV~1.3 -Dwls.home=C:\apps\oracle\WLSERV~1.3\server -Dweblogic.home=C:\apps\oracle\WLSERV~1.3\server -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\apps\oracle\patch_wls1033\profiles\default\sysext_manifest_classpath;C:\apps\oracle\patch_oepe1033\profiles\default\sysext_manifest_classpath;C:\apps\oracle\patch_ocp353\profiles\default\sysext_manifest_classpath weblogic.Server
Listening for transport dt_socket at address: 8453
<Jul 6, 2010 10:38:53 AM PDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 16.0-b13 from Sun Microsystems Inc.>
<Jul 6, 2010 10:38:53 AM PDT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.3.0 Fri Apr 9 00:05:28 PDT 2010 1321401 >
<Jul 6, 2010 10:38:54 AM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<Jul 6, 2010 10:38:54 AM PDT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
<Jul 6, 2010 10:38:54 AM PDT> <Notice> <LoggingService> <BEA-320400> <The log file C:\apps\oracle\user_projects\domains\base_domain\servers\AdminServer\logs\AdminServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
<Jul 6, 2010 10:38:54 AM PDT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\apps\oracle\user_projects\domains\base_domain\servers\AdminServer\logs\AdminServer.log00462. Log messages will continue to be logged in C:\apps\oracle\user_projects\domains\base_domain\servers\AdminServer\logs\AdminServer.log.>
<Jul 6, 2010 10:38:54 AM PDT> <Notice> <Log Management> <BEA-170019> <The server log file C:\apps\oracle\user_projects\domains\base_domain\servers\AdminServer\logs\AdminServer.log is opened. All server side log events will be written to this file.>



========================================================
Restart error after changing a line of code:

10:40:43 DEBUG CMTStartupServletContextListener.contextDestroyed javax.servlet.ServletContextEvent[source=ServletContext@15807522[app:_auto_generated_ear_ module:targetSelectionManager-web path:/targetSelectionManager-web spec-version:2.5]]
10:40:43 INFO ContextEventRepeater.contextDestroyed Servlet Context Name: targetSelectionManager-web, Server Info: WebLogic Server 10.3.3.0 Fri Apr 9 00:05:28 PDT 2010 1321401 Oracle WebLogic Server Module Dependencies 10.3 Tue Mar 2 15:22:37 PST 2010
10:40:43 INFO XmlWebApplicationContext.doClose Closing org.springframework.web.context.support.XmlWebApplicationContext@12fd374: display name [Root WebApplicationContext]; startup date [Tue Jul 06 10:39:26 PDT 2010]; root of context hierarchy
10:40:43 INFO DefaultListableBeanFactory.destroySingletons Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@be9c88: defining beans [loadTimeWeaver,entityManagerFactory,cmtDS,userDS,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,TSMServiceImpl,jpaGenericDao,targetDAO,targetGasDAO,targetSerialDAO,gasValidator,targetGasValidator,targetValidator,page_settings,userSession,gasBean,targetBean,targetGasBean,targetSerialBean,tsmListBean,messageSource]; root of factory hierarchy
10:40:43 INFO LocalContainerEntityManagerFactoryBean.destroy Closing JPA EntityManagerFactory for persistence unit 'TargetSelectionManager'
[EL Config]: 2010-07-06 10:40:43.537--ServerSession(2963267)--Connection(33397632)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--disconnect
[EL Info]: 2010-07-06 10:40:43.537--ServerSession(2963267)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--file:/C:/apps/oepeWorkspace/SSSS_TSM_1.0.0_CM/nif/tsm/targetSelectionManager-web/src/main/webapp/WEB-INF/classes/_TargetSelectionManager logout successful
10:40:43 INFO ContextEventRepeater.contextDestroyed Servlet Context Name: targetSelectionManager-web, Server Info: WebLogic Server 10.3.3.0 Fri Apr 9 00:05:28 PDT 2010 1321401 Oracle WebLogic Server Module Dependencies 10.3 Tue Mar 2 15:22:37 PST 2010
Jul 6, 2010 10:40:44 AM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra (1.2_13-b01-FCS) for context '/targetSelectionManager-web'
Jul 6, 2010 10:40:44 AM com.sun.faces.spi.InjectionProviderFactory getProviderInstance
SEVERE: JSF1030: The specified InjectionProvider implementation 'com.bea.faces.WeblogicInjectionProvider' cannot be loaded.
Jul 6, 2010 10:40:44 AM com.sun.faces.spi.InjectionProviderFactory createInstance
INFO: JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed.
10:40:44 INFO D2DViewHandler.<clinit>
ICEsoft Technologies, Inc.
ICEfaces 1.8.2
Build number: 7
Revision: 19321

10:40:44 INFO ViewRootStateManagerImpl.<init> ViewRootStateManagerImpl constructed with Delegate: com.sun.faces.application.StateManagerImpl@df2eb8
10:40:44 INFO D2DViewHandler.<init> ICEfaces JSP parser disabled. This is a Facelets-only configuration.
10:40:45 INFO ContextLoader.initWebApplicationContext Root WebApplicationContext: initialization started
10:40:45 INFO XmlWebApplicationContext.prepareRefresh Refreshing org.springframework.web.context.support.XmlWebApplicationContext@190c9f3: display name [Root WebApplicationContext]; startup date [Tue Jul 06 10:40:45 PDT 2010]; root of context hierarchy
10:40:45 INFO XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from ServletContext resource [WEB-INF/applicationContext.xml]
10:40:45 INFO XmlWebApplicationContext.obtainFreshBeanFactory Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@190c9f3]: org.springframework.beans.factory.support.DefaultListableBeanFactory@66af27
10:40:45 INFO DefaultListableBeanFactory.preInstantiateSingletons Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@66af27: defining beans [loadTimeWeaver,entityManagerFactory,cmtDS,userDS,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,TSMServiceImpl,jpaGenericDao,targetDAO,targetGasDAO,targetSerialDAO,gasValidator,targetGasValidator,targetValidator,page_settings,userSession,gasBean,targetBean,targetGasBean,targetSerialBean,tsmListBean,messageSource]; root of factory hierarchy
10:40:45 INFO DefaultContextLoadTimeWeaver.setBeanClassLoader Determined server-specific load-time weaver: org.springframework.instrument.classloading.weblogic.WebLogicLoadTimeWeaver
10:40:46 INFO LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory Building JPA container EntityManagerFactory for persistence unit 'TargetSelectionManager'
[EL Config]: 2010-07-06 10:40:46.037--ServerSession(13163803)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The access type for the persistent class [class gov.llnl.nif.cmt.tsm.domain.entity.impl.TargetImpl] is set to [FIELD].
[EL Config]: 2010-07-06 10:40:46.037--ServerSession(13163803)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The access type for the persistent class [class gov.llnl.nif.cmt.tsm.domain.entity.impl.TargetGasImpl] is set to [FIELD].
[EL Config]: 2010-07-06 10:40:46.052--ServerSession(13163803)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The access type for the persistent class [class gov.llnl.nif.cmt.tsm.domain.entity.impl.GasImpl] is set to [FIELD].
[EL Config]: 2010-07-06 10:40:46.052--ServerSession(13163803)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The access type for the persistent class [class gov.llnl.nif.cmt.tsm.domain.entity.impl.TargetSerialImpl] is set to [FIELD].
[EL Config]: 2010-07-06 10:40:46.052--ServerSession(13163803)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The alias name for the entity class [class gov.llnl.nif.cmt.tsm.domain.entity.impl.TargetImpl] is being defaulted to: TargetImpl.
[EL Config]: 2010-07-06 10:40:46.052--ServerSession(13163803)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The column name for element [field type] is being defaulted to: TYPE.
[EL Config]: 2010-07-06 10:40:46.052--ServerSession(13163803)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The alias name for the entity class [class gov.llnl.nif.cmt.tsm.domain.entity.impl.TargetGasImpl] is being defaulted to: TargetGasImpl.
[EL Config]: 2010-07-06 10:40:46.052--ServerSession(13163803)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The column name for element [field id] is being defaulted to: ID.
[EL Config]: 2010-07-06 10:40:46.052--ServerSession(13163803)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The alias name for the entity class [class gov.llnl.nif.cmt.tsm.domain.entity.impl.GasImpl] is being defaulted to: GasImpl.
[EL Config]: 2010-07-06 10:40:46.052--ServerSession(13163803)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The column name for element [field id] is being defaulted to: ID.
[EL Config]: 2010-07-06 10:40:46.052--ServerSession(13163803)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The alias name for the entity class [class gov.llnl.nif.cmt.tsm.domain.entity.impl.TargetSerialImpl] is being defaulted to: TargetSerialImpl.
[EL Config]: 2010-07-06 10:40:46.052--ServerSession(13163803)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The primary key column name for the mapping element [field target] is being defaulted to: TID.
[EL Config]: 2010-07-06 10:40:46.052--ServerSession(13163803)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The primary key column name for the mapping element [field target] is being defaulted to: TID.
[EL Config]: 2010-07-06 10:40:46.052--ServerSession(13163803)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The primary key column name for the mapping element [field gas] is being defaulted to: ID.
[EL Config]: 2010-07-06 10:40:46.052--ServerSession(13163803)--Thread(Thread[[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The foreign key column name for the mapping element [field gas] is being defaulted to: GAS_ID.
10:40:46 INFO ContextLoader.initWebApplicationContext Root WebApplicationContext: initialization completed in 1141 ms
starting application javax.servlet.ServletContextEvent[source=ServletContext@15807522[app:_auto_generated_ear_ module:targetSelectionManager-web path:/targetSelectionManager-web spec-version:2.5]]
10:40:46 WARN CMTStartupServletContextListener.contextInitialized b4 intit log4j
10:40:46 DEBUG CMTStartupServletContextListener.initHostName conrad.nif.llnl.gov
Log4J Configured. Current logLevel DEBUG
10:40:46 WARN CMTStartupServletContextListener.initLog4J Log4J Configured. Current logLevel DEBUG
10:40:46 WARN CMTStartupServletContextListener.contextInitialized after intit log4j
10:40:46 INFO XMLJFigParser.parse Process file conrad.config.xml
10:40:46 INFO XMLJFigParser.parse Process file dev.config.xml
10:40:46 INFO XMLJFigParser.parse Process file app.config.xml
10:40:46 INFO JFigDictionary.print --------------------------------------
10:40:46 INFO JFigDictionary.print
10:40:46 INFO JFigDictionary.print Section: application
10:40:46 INFO JFigDictionary.print Key: build Value: 7/06/10 0930
10:40:46 INFO JFigDictionary.print Key: version Value: ${version}
10:40:46 INFO JFigDictionary.print Key: versionNumber Value: 1.03
10:40:46 INFO JFigDictionary.print
10:40:46 INFO JFigDictionary.print Section: external_links
10:40:46 INFO JFigDictionary.print Key: auth.namespaceuri Value: http://server.webservices.security.nif.llnl.gov/
10:40:46 INFO JFigDictionary.print Key: auth.servicename Value: SecurityServiceImplService
10:40:46 INFO JFigDictionary.print Key: auth.url Value: http://nifitint.llnl.gov/sec-ws2?WSDL
10:40:46 INFO JFigDictionary.print
10:40:46 INFO JFigDictionary.print Section: logging
10:40:46 INFO JFigDictionary.print Key: from Value: tsm@llnl.gov
10:40:46 INFO JFigDictionary.print Key: isSendingEmail Value: true
10:40:46 INFO JFigDictionary.print Key: logFile Value: tsm.null.log
10:40:46 INFO JFigDictionary.print Key: logLevel Value: DEBUG
10:40:46 INFO JFigDictionary.print Key: logLevelSQL Value: WARN
10:40:46 INFO JFigDictionary.print Key: logOutput Value: CONSOLE, FILE
10:40:46 INFO JFigDictionary.print Key: smtpHost Value: smtp.llnl.gov
10:40:46 INFO JFigDictionary.print Key: subject Value: TSM - Instance null
10:40:46 INFO JFigDictionary.print Key: to Value: bconrad@llnl.gov
10:40:46 INFO JFigDictionary.print Key: xlogDirectory Value: null/logs/
10:40:46 INFO JFigDictionary.print
10:40:46 INFO JFigDictionary.print Section: properties
10:40:46 INFO JFigDictionary.print Key: from Value: tsm@llnl.gov
10:40:46 INFO JFigDictionary.print Key: logFile Value: tsm.null.log
10:40:46 INFO JFigDictionary.print Key: logLevel Value: DEBUG
10:40:46 INFO JFigDictionary.print Key: logLevelSQL Value: WARN
10:40:46 INFO JFigDictionary.print Key: subject Value: TSM - Instance null
10:40:46 INFO JFigDictionary.print Key: to Value: bconrad@llnl.gov
10:40:46 INFO JFigDictionary.print
10:40:46 INFO JFigDictionary.print Section: sp_settings
10:40:46 INFO JFigDictionary.print Key: sp.port Value: 80
10:40:46 INFO JFigDictionary.print Key: sp.url Value: nifitint.llnl.gov
10:40:46 INFO JFigDictionary.print --------------------------------------
10:40:46 WARN CMTStartupServletContextListener.reInitLog4JAfterJFig Reinitialize Log4J with values from JFig.
10:40:46 DEBUG CMTStartupServletContextListener.initHostName conrad.nif.llnl.gov
Log4J Configured. Current logLevel DEBUG
10:40:46 WARN CMTStartupServletContextListener.initLog4J Log4J Configured. Current logLevel DEBUG
10:40:46 INFO CMTStartupServletContextListener.notifySupport

Instance UNKNOWN: Application Startup Host: conrad Time: Tue Jul 06 10:40:46 PDT 2010


<Jul 6, 2010 10:40:46 AM PDT> <Error> <HTTP> <BEA-101362> <[ServletContext@15807522[app:_auto_generated_ear_ module:targetSelectionManager-web path:/targetSelectionManager-web spec-version:2.5]] could not deserialize the servlet-context scoped attribute with name: "com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet"
java.io.NotSerializableException: weblogic.servlet.internal.WebAppServletContext
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
Truncated. see log file for complete stacktrace
>
<Jul 6, 2010 10:40:46 AM PDT> <Error> <HTTP> <BEA-101020> <[ServletContext@15807522[app:_auto_generated_ear_ module:targetSelectionManager-web path:/targetSelectionManager-web spec-version:2.5]] Servlet failed with Exception
java.lang.NullPointerException
at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
Truncated. see log file for complete stacktrace
>
<Jul 6, 2010 10:40:46 AM PDT> <Error> <HTTP> <BEA-101020> <[ServletContext@15807522[app:_auto_generated_ear_ module:targetSelectionManager-web path:/targetSelectionManager-web spec-version:2.5]] Servlet failed with Exception
java.lang.ClassCastException: com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet cannot be cast to com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet
at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:55)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
Truncated. see log file for complete stacktrace
>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 24 2011
Added on Jul 6 2010
7 comments
3,822 views