Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

Bob Pettit

Greenhorn
+ Follow
since Feb 18, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Bob Pettit

I have this included in my web.xml file. The

<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>validate</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet>
<servlet-name>FindModels</servlet-name>
<display-name>FindModels</display-name>
<servlet-class>com.dealer.web.ajax.FindModels</servlet-class>
</servlet>

This is the full stack trace

org.apache.jasper.JasperException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
org.apache.jsp.pages.login_jsp._jspService(login_jsp.java:93)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:747)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:443)
org.apache.jsp.pages.login_jsp._jspx_meth_html_form_0(login_jsp.java:109)
org.apache.jsp.pages.login_jsp._jspService(login_jsp.java:83)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


This project is working with no problems on websphere. So I'm pretty sure I have all the files I need and web.xml and struts-config files are structred properly.
Thanks for the help
14 years ago
I just installed Tomcat and deployed my struts application (which works with Websphere) and now I'm getting
Cannot find ActionMappings or ActionFormBeans collection.
I am confident that this is happening because the struts jar files can not be located.

I have all the struts jar file in the lib directory under the WEB-INF folder.

Thanks for the help
14 years ago
I am trying to generate a new session id everytime someone logs in to my application. Is this the best way to do it...

con.setAutoCommit(false);
stmt = con.createStatement();

stmt.execute("LOCK TABLE SYSADMA.DL_COUNTER IN EXCLUSIVE MODE;");
int currentID = 0;

rs = stmt.executeQuery("SELECT COUNTER_ID FROM SYSADMA.DL_COUNTER WHERE COUNTER_LABEL='SESSION_ID';");

if (rs.next())
{
currentID = rs.getBigDecimal("COUNTER_ID").intValue();
}

currentID++;

stmt.executeUpdate("UPDATE SYSADMA.DL_COUNTER SET COUNTER_ID = " + currentID + " WHERE COUNTER_LABEL='SESSION_ID'");

con.commit();


The table in the DB2 database looks like this
===========================================

COUNTER_LABEL COUNTER_ID
------------------------------ --------------
SESSION_ID 48754.
PC_ID 1000704.

Thanks a lot guys.....
When I type the URL (https://xml-test:8443/CCTranslator/servlet) in a browser it works fine. The program crashes and never prints the number 3 (it prints number 2). I get an 'unknow certificate error'.
My code looks like this:
-------------------------
System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
System.out.println("before.");
url = new URL ("https://xml-test:8443/CCTranslator/servlet";);
HttpURLConnection urlConn;
urlConn = (HttpURLConnection)url.openConnection();
System.out.println("after");
urlConn.setRequestMethod("POST");
urlConn.setDoInput (true);
urlConn.setDoOutput (true);
urlConn.setUseCaches (false);
urlConn.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
String xmlString = "xmlRequest=" + URLEncoder.encode ( "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?> bla bla bla"
System.out.println("2");
DataOutputStream printout = new DataOutputStream (urlConn.getOutputStream ());
System.out.println("3");
printout.writeBytes (xmlString);
System.out.println("4");
printout.flush ();
printout.close ();
input = new BufferedReader(new InputStreamReader(urlConn.getInputStream()));
System.out.println("5");

When I type the URL (https://xml-test:8443/CCTranslator/servlet) in a browser it works fine. The program crashes and never prints the number (it prints number 2). I get an 'unknow certificate error'.
I wrote the code for the servlet but the session bean that I call is written by the credit card company and I don't think it would be possible to have them change their code.
15 years ago
I have this servlet that calls this session bean that is located on a different machine. I know that the call is an RMI call. Does anyone know if the call is encrypted. when I call the session bean method and I pass it an object, can someone, somehow, look into that data. The servlet actually passes credit card information to the session bean which processes the payment. I wanna make sure that the call between the servlet and the session bean is encrypted.

Thanks a lot for your help
15 years ago
I have this servlet that calls this session bean that is located on a different machine. I know that the call is an RMI call. Does anyone know if the call is encrypted. when I call the session bean method and I pass it an object, can someone, somehow, look into that data. The servlet actually passes credit card information to the session bean which processes the payment. I wanna make sure that the call between the servlet and the session bean is encrypte.

Thanks a lot for your help
I am located in Louisiana and I already have a job. I am looking for a second job for which I can work from home. My main skills are around J2ee (EJB/Struts/Taglibs/Design Patters/Websphere).
15 years ago
would you please tell me what materials you used to study for the exam.

Thanks
15 years ago
I am a SCBCD and I have no knowledge about web services. Do you think if I study hard enough for the test i can pass it. or do you think having expericense is a must?
Thank you for your feedback.
I am a SCBCD and I have no knowledge about web services. Do you think if I study hard enough for the test i can pass it. or do you think having expericense is a must?
Thank you for your feedback.
15 years ago
how much experience did you have with web services before you take the exam. do you think i can pass it even though my experience is in the J2EE (EJBs) field and i don't have any experience with web services?
15 years ago
what's the name of the book.
Thanks
Is it really worth getting certified ?? wouldn't your experience speak for you? and also technology is changing so fast so even if you get certified today and a new version comes out in 6 months your certification is worth almost nothing?
Can somebody please tell me if I should do it?