This discussion is archived
0 Replies Latest reply: Jan 26, 2013 9:23 PM by 987353 RSS

Error 500--Internal Server Error

987353 Newbie
Currently Being Moderated
I am learning web development through setting up Eclipse - Spring - Weblogic Server - mySQL envrionment and the tutorial example on Oracle website: http://www.oracle.com/webfolder/technetwork/eclipse/spring-jpa-tutorial/jpatutorial.html

Here are the environment I have set up:
Eclipse: Release 4.2.0
JDK: 7u10
Spring Framework: 2.5.6
JSF 2.0
Weblogic Server: 12c
MySQL: 5.1.22

I have got the following errors when I follow the instructions to build and run the sample web applications on the website with the above link.

Error 500--Internal Server Error


java.lang.NullPointerException
     at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:75)
     at jsp_servlet._pages.__addcustomer._jspService(__addcustomer.java:127)
     at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:338)
     at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:453)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:364)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:221)
     at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:567)
     at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:263)
     at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:546)
     

Here are the error log file entries:


SEVERE: Faces config resource /WEB-INF/faces-config-1.xml not found
<27/01/2013 3:46:44 PM EST> <Error> <org.apache.myfaces.config.FacesConfigurator> <BEA-000000> <Faces config resource /WEB-INF/faces-config-1.xml not found>
Jan 27, 2013 3:46:44 PM org.apache.myfaces.webapp.StartupServletContextListener initFaces
INFO: ServletContext 'C:\Users\Gang\workspace\oepe-jpa-sale\WebContent\' initialized.
Jan 27, 2013 3:46:44 PM org.apache.myfaces.webapp.StartupServletContextListener initFaces
INFO: MyFaces already initialized
Jan 27, 2013 3:46:44 PM org.apache.myfaces.webapp.StartupServletContextListener initFaces
INFO: ServletContext 'C:\Users\Gang\workspace\oepe-jpa-sale\WebContent\' initialized.
Jan 27, 2013 3:46:44 PM org.apache.myfaces.webapp.MyFacesServlet init
INFO: MyFacesServlet for context 'C:\Users\Gang\workspace\oepe-jpa-sale\WebContent\' initialized.
<27/01/2013 3:46:47 PM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN.>
<27/01/2013 3:46:50 PM EST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING.>
<27/01/2013 3:46:50 PM EST> <Notice> <Security> <BEA-090171> <Loading the identity certificate and private key stored under the alias DemoIdentity from the jks keystore file C:\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\DemoIdentity.jks.>
<27/01/2013 3:46:52 PM EST> <Warning> <Log Management> <BEA-170011> <The LogBroadcaster on this server failed to broadcast log messages to the Administration Server. The Administration Server may not be running. Message broadcasts to the Administration Server will be disabled.>

<27/01/2013 3:47:04 PM EST> <Error> <javax.enterprise.resource.webcontainer.jsf.config> <BEA-000000> <Unexpected exception when attempting to tear down the Mojarra runtime
java.lang.IllegalStateException: Could not find backup for factory javax.faces.application.ApplicationFactory.
     at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1004)
     at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:316)
     at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:131)
     at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:328)
     at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:583)
     Truncated. see log file for complete stacktrace



[EL Finest]: 2013-01-27 15:47:04.459--ServerSession(1550320739)--Thread(Thread[[ACTIVE] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Begin undeploying Persistence Unit oepe-jpa-sale; session file:/C:/Users/Gang/workspace/oepe-jpa-sale/build/classes/_oepe-jpa-sale; state Predeployed; factoryCount 1
[EL Finest]: 2013-01-27 15:47:04.459--ServerSession(1550320739)--Thread(Thread[[ACTIVE] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--End undeploying Persistence Unit oepe-jpa-sale; session file:/C:/Users/Gang/workspace/oepe-jpa-sale/build/classes/_oepe-jpa-sale; state Undeployed; factoryCount 0
Jan 27, 2013 3:47:04 PM org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
INFO: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@625b9066: defining beans [org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,entityManagerFactory,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,CustomerService]; root of factory hierarchy
Jan 27, 2013 3:47:04 PM org.springframework.orm.jpa.AbstractEntityManagerFactoryBean destroy
INFO: Closing JPA EntityManagerFactory for persistence unit 'oepe-jpa-sale'
Jan 27, 2013 3:47:13 PM org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization started
Jan 27, 2013 3:47:13 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.XmlWebApplicationContext@5400dbbf: display name [Root WebApplicationContext]; startup date [Sun Jan 27 15:47:13 EST 2013]; root of context hierarchy
Jan 27, 2013 3:47:13 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [WEB-INF/applicationContext.xml]
Jan 27, 2013 3:47:14 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@5400dbbf]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1f7e961a
Jan 27, 2013 3:47:14 PM org.springframework.orm.jpa.LocalEntityManagerFactoryBean createNativeEntityManagerFactory
INFO: Building JPA EntityManagerFactory for persistence unit 'oepe-jpa-sale'
[EL Finer]: 2013-01-27 15:47:14.23--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--fixUNC: before fixing: url = file:/C:/Users/Gang/workspace/oepe-jpa-sale/build/classes/, authority = , file = /C:/Users/Gang/workspace/oepe-jpa-sale/build/classes/ (There is no English translation for this message.)
[EL Finer]: 2013-01-27 15:47:14.23--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--fixUNC: after fixing: url = file:/C:/Users/Gang/workspace/oepe-jpa-sale/build/classes/, authority = null, file = /C:/Users/Gang/workspace/oepe-jpa-sale/build/classes/ (There is no English translation for this message.)
[EL Finer]: 2013-01-27 15:47:14.245--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--JavaSECMPInitializer - predeploying oepe-jpa-sale.
[EL Finest]: 2013-01-27 15:47:14.245--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Begin predeploying Persistence Unit oepe-jpa-sale; session file:/C:/Users/Gang/workspace/oepe-jpa-sale/build/classes/_oepe-jpa-sale; state Initial; factoryCount 0
[EL Finest]: 2013-01-27 15:47:14.245--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.orm.throw.exceptions; default value=true
[EL Finest]: 2013-01-27 15:47:14.245--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.multitenant.tenants-share-emf; default value=true
[EL Finest]: 2013-01-27 15:47:14.245--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.multitenant.tenants-share-cache; default value=false
[EL Finest]: 2013-01-27 15:47:14.245--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--property=eclipselink.metadata-source; default value=null
[EL Finer]: 2013-01-27 15:47:14.245--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Searching for default mapping file in file:/C:/Users/Gang/workspace/oepe-jpa-sale/build/classes/
[EL Finer]: 2013-01-27 15:47:14.245--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Searching for default mapping file in file:/C:/Users/Gang/workspace/oepe-jpa-sale/build/classes/
[EL Config]: 2013-01-27 15:47:14.261--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The access type for the persistent class [class oracle.beans.Contact] is set to [PROPERTY].
[EL Config]: 2013-01-27 15:47:14.261--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The target entity (reference) class for the many to one mapping element [method getCustomer] is being defaulted to: class oracle.beans.Customer.
[EL Config]: 2013-01-27 15:47:14.261--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The access type for the persistent class [class oracle.beans.Customerid] is set to [PROPERTY].
[EL Config]: 2013-01-27 15:47:14.261--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The target entity (reference) class for the one to one mapping element [method getCustomer] is being defaulted to: class oracle.beans.Customer.
[EL Config]: 2013-01-27 15:47:14.261--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The access type for the persistent class [class oracle.beans.OrderData] is set to [PROPERTY].
[EL Config]: 2013-01-27 15:47:14.261--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The target entity (reference) class for the many to one mapping element [method getCustomer] is being defaulted to: class oracle.beans.Customer.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The target entity (reference) class for the one to many mapping element [method getLineitems] is being defaulted to: class oracle.beans.Lineitem.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The access type for the persistent class [class oracle.beans.Lineitem] is set to [PROPERTY].
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The target entity (reference) class for the many to one mapping element [method getProduct] is being defaulted to: class oracle.beans.Product.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The target entity (reference) class for the many to one mapping element [method getOrder] is being defaulted to: class oracle.beans.OrderData.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The access type for the persistent class [class oracle.beans.Product] is set to [PROPERTY].
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The access type for the persistent class [class oracle.beans.Customer] is set to [PROPERTY].
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The target entity (reference) class for the one to one mapping element [method getCustomeridBean] is being defaulted to: class oracle.beans.Customerid.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The target entity (reference) class for the one to many mapping element [method getContacts] is being defaulted to: class oracle.beans.Contact.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The target entity (reference) class for the one to many mapping element [method getOrders] is being defaulted to: class oracle.beans.OrderData.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The alias name for the entity class [class oracle.beans.Contact] is being defaulted to: Contact.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The alias name for the entity class [class oracle.beans.Customerid] is being defaulted to: Customerid.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The table name for entity [class oracle.beans.Customerid] is being defaulted to: CUSTOMERID.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The column name for element [getCustomerid] is being defaulted to: CUSTOMERID.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The alias name for the entity class [class oracle.beans.OrderData] is being defaulted to: OrderData.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The column name for element [getAmount] is being defaulted to: AMOUNT.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The column name for element [getOrderdate] is being defaulted to: ORDERDATE.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The column name for element [getOrderid] is being defaulted to: ORDERID.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The alias name for the entity class [class oracle.beans.Lineitem] is being defaulted to: Lineitem.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The table name for entity [class oracle.beans.Lineitem] is being defaulted to: LINEITEM.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The column name for element [getOrderline] is being defaulted to: ORDERLINE.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The column name for element [getQuantity] is being defaulted to: QUANTITY.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The alias name for the entity class [class oracle.beans.Product] is being defaulted to: Product.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The table name for entity [class oracle.beans.Product] is being defaulted to: PRODUCT.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The column name for element [getUnitprice] is being defaulted to: UNITPRICE.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The column name for element [getProductid] is being defaulted to: PRODUCTID.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The column name for element [getName] is being defaulted to: NAME.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The column name for element [getCode] is being defaulted to: CODE.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The alias name for the entity class [class oracle.beans.Customer] is being defaulted to: Customer.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The table name for entity [class oracle.beans.Customer] is being defaulted to: CUSTOMER.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The column name for element [getCustomerid] is being defaulted to: CUSTOMERID.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The column name for element [getName] is being defaulted to: NAME.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The primary key column name for the mapping element [method getCustomeridBean] is being defaulted to: CUSTOMERID.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The primary key column name for the mapping element [method getCustomer] is being defaulted to: CUSTOMERID.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The primary key column name for the mapping element [method getProduct] is being defaulted to: PRODUCTID.
[EL Config]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--The primary key column name for the mapping element [method getOrder] is being defaulted to: ORDERID.
[EL Finest]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--End predeploying Persistence Unit oepe-jpa-sale; session file:/C:/Users/Gang/workspace/oepe-jpa-sale/build/classes/_oepe-jpa-sale; state Predeployed; factoryCount 0
[EL Finer]: 2013-01-27 15:47:14.276--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--JavaSECMPInitializer - transformer is null.
[EL Finest]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Begin predeploying Persistence Unit oepe-jpa-sale; session file:/C:/Users/Gang/workspace/oepe-jpa-sale/build/classes/_oepe-jpa-sale; state Predeployed; factoryCount 0
[EL Finest]: 2013-01-27 15:47:14.276--ServerSession(98844490)--Thread(Thread[[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--End predeploying Persistence Unit oepe-jpa-sale; session file:/C:/Users/Gang/workspace/oepe-jpa-sale/build/classes/_oepe-jpa-sale; state Predeployed; factoryCount 1
Jan 27, 2013 3:47:14 PM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'entityManagerFactory' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Jan 27, 2013 3:47:14 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1f7e961a: defining beans [org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0,org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0,entityManagerFactory,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,CustomerService]; root of factory hierarchy
Jan 27, 2013 3:47:14 PM org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization completed in 737 ms
<27/01/2013 3:47:14 PM EST> <Warning> <javax.enterprise.resource.webcontainer.jsf.config> <BEA-000000> <JSF1067: Resource /WEB-INF/faces-config-1.xml specified by the javax.faces.CONFIG_FILES configuration option cannot be found. The resource will be ignored.>
Jan 27, 2013 3:47:15 PM org.apache.myfaces.config.FacesConfigurator feedStandardConfig
INFO: Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
Jan 27, 2013 3:47:15 PM org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations
INFO: Reading config zip:C:/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/_auto_generated_ear_/yplf59/war/WEB-INF/lib/tomahawk-1.1.3.jar!/META-INF/faces-config.xml
Jan 27, 2013 3:47:15 PM org.apache.myfaces.config.FacesConfigurator feedContextSpecifiedConfig
INFO: Reading config /WEB-INF/config/faces-config.xml
Jan 27, 2013 3:47:15 PM org.apache.myfaces.config.FacesConfigurator feedContextSpecifiedConfig
SEVERE: Faces config resource /WEB-INF/faces-config-1.xml not found
<27/01/2013 3:47:15 PM EST> <Error> <org.apache.myfaces.config.FacesConfigurator> <BEA-000000> <Faces config resource /WEB-INF/faces-config-1.xml not found>
Jan 27, 2013 3:47:15 PM org.apache.myfaces.webapp.StartupServletContextListener initFaces
INFO: ServletContext 'C:\Users\Gang\workspace\oepe-jpa-sale\WebContent\' initialized.
Jan 27, 2013 3:47:15 PM org.apache.myfaces.webapp.StartupServletContextListener initFaces
INFO: MyFaces already initialized
Jan 27, 2013 3:47:15 PM org.apache.myfaces.webapp.StartupServletContextListener initFaces
INFO: ServletContext 'C:\Users\Gang\workspace\oepe-jpa-sale\WebContent\' initialized.
Jan 27, 2013 3:47:15 PM org.apache.myfaces.webapp.MyFacesServlet init
INFO: MyFacesServlet for context 'C:\Users\Gang\workspace\oepe-jpa-sale\WebContent\' initialized.
Jan 27, 2013 3:47:19 PM org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getStringInitParameter
INFO: No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value org.apache.myfaces.renderkit.html.util.DefaultAddResource
Jan 27, 2013 3:47:19 PM org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using default value true
<27/01/2013 3:47:19 PM EST> <Error> <HTTP> <BEA-101017> <[ServletContext@1780120130[app:_auto_generated_ear_ module:oepe-jpa-sale path:null spec-version:3.0], request: weblogic.servlet.internal.ServletRequestImpl@59b7ebdd[
GET /oepe-jpa-sale/faces/pages/addCustomer.jsp HTTP/1.1
Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, */*
Accept-Language: en-AU
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
UA-CPU: AMD64
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

]] Root cause of ServletException.
java.lang.NullPointerException
     at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:75)
     at jsp_servlet._pages.__addcustomer._jspService(__addcustomer.java:127)
     at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216)
     Truncated. see log file for complete stacktrace
>

I would be appreciated if anyone can help me.

Thanks

John

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points