• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Spring Error 500

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi I am getting following error Please help to solve it.

http://localhost:8080/pwdmanager/smpc/changePassword

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet smpc threw exception
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:908)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:613)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:164)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:139)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2460)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:119)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:157)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:534)


root cause

org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'smpcConfig' defined in ServletContext resource [/WEB-INF/smpc-servlet.xml]: Could not resolve placeholder 'pwdmanager.security.rootFolder'
at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:244)
at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:378)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:300)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:305)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:250)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:219)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:112)
at javax.servlet.GenericServlet.init(GenericServlet.java:213)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:880)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:613)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:164)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:139)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2460)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:119)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:157)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:534)


web.xml File Contents:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>

<web-app>
<servlet>
<servlet-name>smpc</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>smpc</servlet-name>
<url-pattern>/smpc/*</url-pattern>
</servlet-mapping>

<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

<taglib>
<taglib-uri>/spring</taglib-uri>
<taglib-location>/WEB-INF/spring.tld</taglib-location>
</taglib>
</web-app>


smpc-servlet.xml:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<beans>

<!--
Define the properties files for external configuration of the
application context.
-->
<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE"/>
<property name="locations">
<list>
<value>/WEB-INF/pwdmanager.properties</value>
</list>
</property>
</bean>

<!--
Define the resource bundles to use.
-->
<bean id="messageSource"
class="org.springframework.context.support.ResourceBundleMessageSource">
<property name="basenames">
<list>
<value>ui-messages</value>
</list>
</property>
</bean>

<!--
Simple ViewResolver for JSPs, prepending "/WEB-INF/views"
and appending ".jsp" to logical view names.
-->
<bean id="viewResolver"
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/views/" />
<property name="suffix" value=".jsp" />
<property name="viewClass"
value="org.springframework.web.servlet.view.JstlView" />
</bean>

<!--
Map exception names that are thrown by the controllers to view names.
The defaultErrorView handles exceptions that do not have a specific
mapping.
-->
<bean id="exceptionMapping"
class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver">
<property name="defaultErrorView" value="${pwdmanager.service.errorRedirect.url}" />
</bean>

<!--
This is a singleton bean which contains globalised configuration
information that can be accessed by all views on the application
-->
<bean id="smpcConfig"
class="com.creditsuisse.smpasswordchanger.config.Config"
singleton="true"
init-method="init" >

<!-- PROPERTY: ENTRUST SETTINGS -->
<property name="entrustFile" value="${pwdmanager.security.entrust.file}" />
<property name="entrustIni" value="${pwdmanager.security.entrust.ini}" />
<property name="entrustPassword" value="${pwdmanager.security.entrust.pwd}" />
<property name="entrustUal" value="${pwdmanager.security.entrust.ual}" />
<property name="entrustPch" value="${pwdmanager.security.entrust.pch}" />

<!-- PROPERTY: AES SECURITY DATA -->
<!-- KEY DATA FILE IS PASSED AS ARG -->
<property name="aesKey" value="${pwdmanager.security.aes.file}" />

<!-- PROPERTY: GML WS CONNECT INFO -->
<property name="gmlWSEndPoint" value="${pwdmanager.gmlWS.endPoint}" />
<property name="gmlWSKey" value="${pwdmanager.gmlWS.key}" />
<property name="gmlWSUser" value="${pwdmanager.gmlWS.user}" />
<property name="gmlWSPassword" value="${pwdmanager.gmlWS.password}" />
<property name="gmlWSCallback" value="${pwdmanager.gmlWS.callBackClass}" />
<property name="gmlWSConfig" value="${pwdmanager.gmlWS.config}" />

<!-- PROPERTY: GML SERVICE STATUS ACCOUNTS -->
<property name="gmlServiceUser" value="${pwdmanager.service.user}" />
<property name="gmlServiceOldPwd" value="${pwdmanager.service.oPwd}" />
<property name="gmlServiceNewPwd" value="${pwdmanager.service.nPwd}" />

<!-- PROPERTY: INFRASTRUCTURE UNAVAILABLE -->
<property name="infrastructureUnavailableEnabled" value="${pwdmanager.service.infrastructureUnavailable.enabled}" />
<property name="infrastructureUnavailableUrl" value="${pwdmanager.service.infrastructureUnavailable.url}" />

<!-- PROPERTY: ERROR REDIRECT -->
<property name="errorRedirectEnabled" value="${pwdmanager.service.errorRedirect.enabled}" />
<property name="errorRedirectUrl" value="${pwdmanager.service.errorRedirect.url}" />

<!-- PROPERTY: ACCESS DENIED-->
<property name="accessDeniedUrl" value="${pwdmanager.service.accessDenied.url}" />

<!-- PROPERTY: CHANGE PASSWORD -->
<property name="changePasswordEntryUrl" value="${pwdmanager.service.changePassword.url.entry}" />
<property name="changePasswordSuccessUrl" value="${pwdmanager.service.changePassword.url.success}" />
<property name="changePasswordErrorUrl" value="${pwdmanager.service.changePassword.url.error}" />

<!-- PROPERTY: SERVICE STATUS -->
<property name="serviceStatusUrl" value="${pwdmanager.service.serviceStatus.url}" />
</bean>

<!--
This is the bean that calls the GML web service to manage accounts. The
end point must be set correctly. The init method gets called to
initialize the bean once all parameters have been 'injected'.
-->
<bean id="gmlpcBean"
class="com.creditsuisse.smpasswordchanger.wsc.GMLPCBean"
init-method="init">
<property name="smpcConfig" ref="smpcConfig" />
</bean>

<!-- This bean manages is a callback function that manages all
calls to the web service. It is provided here to ensure that data like
user/passwords can be passed to the required system
-->
<bean id="wspwdcbBean"
class="com.creditsuisse.smpasswordchanger.wsc.WSPwdCallbackBean"
init-method="init">
<property name="smpcConfig" ref="smpcConfig" />
</bean>

<!--
Determines the current state of the service by attempting to
perform a change operation.
-->
<bean name="/serviceStatus"
class="com.creditsuisse.smpasswordchanger.ui.ServiceStatus">
<property name="smpcConfig" ref="smpcConfig" />
<property name="gmlpcBean" ref="gmlpcBean" />
</bean>

<!--
Displays the access denied error messages
-->
<bean name="/accessDenied"
class="com.creditsuisse.smpasswordchanger.ui.AccessDenied">
<property name="smpcConfig" ref="smpcConfig" />
</bean>

<!--
Displays the maintenance page
-->
<bean name="/infrastructureUnavailable"
class="com.creditsuisse.smpasswordchanger.ui.InfraUnavailable">
<property name="smpcConfig" ref="smpcConfig" />
</bean>

<!--
Displays the password change page
-->
<bean name="/changePassword"
class="com.creditsuisse.smpasswordchanger.ui.ChangePasswordController" >
<property name="sessionForm" value="true" />
<property name="synchronizeOnSession" value="true" />
<property name="commandName" value="changePassword" />
<property name="commandClass"
value="com.creditsuisse.smpasswordchanger.ui.ChangePassword" />
<property name="validator" ref="changePasswordValidator" />
<property name="formView" value="${pwdmanager.service.changePassword.url.entry}" />
<property name="gmlpcBean" ref="gmlpcBean" />
<property name="smpcConfig" ref="smpcConfig" />
</bean>

<!-- Validator for the 'change password' page. -->
<bean id="changePasswordValidator"
class="com.creditsuisse.smpasswordchanger.ui.ChangePasswordValidator" >
</bean>
</beans>

index.jsp:

<%
response.sendRedirect("smpc/changePassword");
%>

Please reply immediately.

Thanks in advance !!!
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic