Gajanan Bandale

Greenhorn
+ Follow
since May 09, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Gajanan Bandale

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 !!!

Originally posted by subhadeep chakraborty:
Hi,
Your advice has always helped me.I am in really need of the book(struts and Spring).Hoping that you will help me this time.
Thanks,
subhadeep



Use Mannin Publications Struts in Action & Spring in Action for Struts & Spring resp. Enjoy !!!

Originally posted by Khadija Lokhandwala:
Hibernate is
1.A ORM Tool
2.It saves you from the database mapping as in EJB 2.0 by just deefining the table structure in .xml files.
3.Can be used whenever you need to work with database.
4.Has its own query Language (Hibernate Query Language) which makes it easier to fetch data.




Thanks Dude!!

Actually i know Hibernat little bit also i have some hands on experience with Hibernate coding but actually i want to know that

What is the need of Using Hibernate? I mean to say we use JDBC for connection, they what about Hibernate? What is its role in any project? I would like to know about its Basic......... such questions like

What? Why? Where?



Hi Friends, Here, I want to know one basic thing about Hibernate.
1) Why Hibernate?
2) What is the need/use of Hibernate in Project?
3) In which condition we use Hibernate?
4) Is it the replacement of JDBC or EJB (Entity Bean)?
5) Exactly where we use Hibernate?

Originally posted by smita mishra:
it seems no one is really interested to help me.
:roll:



Hey Smita,
U can use Hibernate : Novice to Professional a Best learning book which i found. Or send a mail to me i will forward some PDF books which i have, which may helpful 2 U To Learn Hibernate.............

Originally posted by Gajanan Bandale:


Hi I already Import the required but not any effect.



I made some changes in my code as follows then also i find one error :


import java.util.*;
import org.hibernate.*;
import org.hibernate.cfg.Configuration;
//import javax.security.auth.login.Configuration;

public class MyUsersTest
{
public static final String Object = null;
public static void main(String[]args) throws Exception
{

Configuration config = new Configuration();
SessionFactory sessions = config.buildSessionFactory();
config.addClass(MyUsers.class);
Session session = session.openSession(null);

//Object config;

//((Object)config).addClass(MyUsers.class);
//((Object)config).getClass();
//Class SessionFactory = ((Object)config).getClass();
//Session session = SessionFactory.openSession();

try{
MyUsers newUser = new MyUsers();
newUser.setID("Wipro");
newUser.setUserName("Wipro Technolgoeis");
newUser.setPassword("wipro");
newUser.setEmailAddress("[email protected]");
newUser.setLastLogin(new Date());

session.save(newUser);
}
finally
{
session.flush();
session.close();
}
Object object2 = SessionFactory.close();
}
}


Then i am getting error :

Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Cannot make a static reference to the non-static method close() from the type SessionFactory
Type mismatch: cannot convert from void to Object

at MyUsersTest.main(MyUsersTest.java:39)

Originally posted by mano ranjan:
Hi
Use
import org.hibernate.*;
import org.hibernate.cfg.Configuration;
these import and then try;



Hi I already Import the required but not any effect.

Originally posted by Paul Sturrock:
Looks like a classpath issue. Have you got all the hibernate jars in your classpath?



Thanks Paul, But i added all required Jar Files in my Eclipse Build Path Here is MyUsresTest.java Code

import java.util.*;
import org.hibernate.*;
import javax.security.auth.login.Configuration;

public class MyUsersTest
{
public static final String Object = null;
public static void main(String[]args) throws Exception
{
//Configuration config = new Configuration();

Object config;

//((Object)config).addClass(MyUsers.class);
((Object)config).getClass();
Class SessionFactory = ((Object)config).getClass();
Session session = SessionFactory.openSession();

try{
MyUsers newUser = new MyUsers();
newUser.setID("Wipro");
newUser.setUserName("Wipro Technolgoeis");
newUser.setPassword("wipro");
newUser.setEmailAddress("[email protected]");
newUser.setLastLogin(new Date());

session.save(newUser);
}
finally
{
session.flush();
session.close();
}
Object object2 = SessionFactory.clone();
}
}

Now its give some compilation error

Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The method openSession() is undefined for the type Class
The method clone() from the type Object is not visible

at MyUsersTest.main(MyUsersTest.java:17)
I am biginner for Hibernate. I create one POJO MyUsers.java, MyUsersTest.java program to run, a table myusers in MySql also one mapping file MyUsers.hbm.xml & hibernate.proprties and all placed in src folder of the application. But when i tried to run the program file MyUsersTest.java i am getting error mentioning

Configuration cannot be resolved to a type
Configuration cannot be resolved to a type
Sessionfactory cannot be resolved to a type
Session cannot be resolved to a type


Please let me know why i am gettign this error. Where i am going wrong? Please help to solve the problem.
I want to call a Java Script Function in JSP Page without any event active.... But it should not at OnLoad Event


Thanks in Advance....
Hi Friends, I got interview call from Persistent Pune. Is there any one who knows about persistent test? What are the test contents? It means is there aptitude test?

I came to know that First roued is of Aptitude test after it technical for Java or c language....... Is it so that? Please guide me for more information if any.................

Thanks in advance.............
19 years ago

Originally posted by rathi ji:
Hi,

My friend is having 1 year testing experience from a small company. He left job because of salary without getting new one and now his gap is around 3 month. He is still searching job in Pune. He is really going through tough time. Could any body please help him.

One more thing he would like to know, what is the better place for job searching for 1 year testing experience guy? presently he is in Pune.

Thank you very much.




Hi Friend,
Do u know in pune most candidates are searching the job in Testing who has more than one and two year exp but they dont left the job do u know why?
Because they dont confident to get another.
So really it is very tough to find a job at least in testing as in Pune city.

Here some review of serching candidates........
Most guys trying for testing
then comes .net development
and then come java development
19 years ago
What is diff between extend and Implement keyword?
When one use extend or implement?
As i am planning SCJP in Sep. I need some Mock Exams question for practise purpose. But i am financially not stron so can not access net more time. So can any one know how will i get the papers for solve? or any site from i can download the questions? Or any suggestions for resources?

ThanX :roll:
hi Friends, I want ur help. I have one yr exp in J2ee and currently i am drawing 8000 Per month salary from a company. But now i want to change my company as from last one year i am working here. So i want to know how much salary will give a company of one year exp?

What is the current market trend for one yr exp?

Plz help to solve my query
19 years ago