Cannot create bean of class...using TOMCAT 3.1

my root is: "notwww.ucsd.edu/somesub/"
my beans are in .../WEB-INF/classes/aseBeans/
the error msg:
Error: 500
Location: /studentaffairs/aseAppValidate.jsp
Internal Servlet Error:
javax.servlet.ServletException: Cannot create bean of class aseBeans.AseApplicationBean
     at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:386)
     at _0002faseAppValidate_0002ejspaseAppValidate_jsp_0._jspService(_0002faseAppValidate_0002ejspaseAppValidate_jsp_0.java:138)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)
     at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
     at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
     at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
     at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:156)
     at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
     at java.lang.Thread.run(Thread.java:496)
Root cause:
javax.servlet.ServletException: Cannot create bean of class aseBeans.AseApplicationBean
     at _0002faseAppValidate_0002ejspaseAppValidate_jsp_0._jspService(_0002faseAppValidate_0002ejspaseAppValidate_jsp_0.java:71)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)
     at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
     at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
     at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
     at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:156)
     at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
     at java.lang.Thread.run(Thread.java:496)
I think I have all the necessary elements:
package aseBeans;
pickled my beans
<jsp:useBean id="app" scope="session" class="aseBeans.AseApplicationBean" >
<jsp:setProperty.../>
</jsp:useBean>
MANIFEST.MF was created, are the name/attribute pairs necessary?
Name: AseApplicationBean.class
Java-Bean: true
THANK YOU

hubertn I modified the jsp file and the bean: here's the code:<!--
Copyright (c) 1999 The Apache Software Foundation. All rights
reserved.
Number Guess Game
Written by Jason Hunter, CTO, K&A Software
http://www.servlets.com
-->
<%@ page import = "num.NumberGuessBean" %>
<jsp:useBean id="numguess" class="num.NumberGuessBean" scope="session"/>
<jsp:setProperty name="numguess" property="*"/>
<html>
<head><title>Number Guess</title></head>
<body bgcolor="white">
<font size=4>
<% if (numguess.getSuccess()) { %>
Congratulations! You got it.
And after just <%= numguess.getNumGuesses() %> tries.<p>
<% numguess.reset(); %>
Care to try again?
<% } else if (numguess.getNumGuesses() == 0) { %>
Welcome to the Number Guess game.<p>
Play with default limits ( a number between 0 and 100)<p>
or enter upper and lower limits.<p>
<form method=get>
Play with defaults?: <input type=radio name=default value="yes">Yes
<input type=radio name=default value="no">No
</form>
<% if (numguess.getRadio().equals("no")) { %>
<form method=get>
Enter upper limit:<input type=text name=upperLimit>
Enter lower limit:<input type=text name=lowerLimit>
</form>
<% numguess.reset(); %>
<% } %>
<form method=get>
What's your guess? <input type=text name=guess>
<input type=submit value="Submit">
</form>
<% } else { %>
Good guess, but nope. Try <b><%= numguess.getHint() %></b>.
You have made <%= numguess.getNumGuesses() %> guesses.<p>
I'm thinking of a number between <jsp:getProperty name="numguess" property="lowerLimit"/> and <jsp:getProperty name="numguess" property="upperLimit"/>.<p>
<form method=get>
What's your guess? <input type=text name=guess>
<input type=submit value="Submit">
</form>
<% } %>
</font>
</body>
</html>
and the bean:
* Originally written by Jason Hunter, http://www.servlets.com.
package num;
import java.util.*;
public class NumberGuessBean {
int answer;
boolean success;
String hint;
int numGuesses;
String radiochoice;
int lowerLimit=0;
int upperLimit=100;
String error;
public NumberGuessBean() {
reset();
public void setGuess(String guess) {
numGuesses++;
int g;
try {
g = Integer.parseInt(guess);
catch (NumberFormatException e) {
g = -1;
if (g == answer) {
success = true;
else if (g == -1) {
hint = "a number next time";
else if (g < answer) {
hint = "higher";
else if (g > answer) {
hint = "lower";
public void setRadio(String s) {
     radiochoice=s;
public String getRadio() {
     return radiochoice;
public void setLowerLimit( int lowerLimit) {
     this.lowerLimit=lowerLimit;
public int getLowerLimit() {
     return lowerLimit;
public void setUpperLimit(int upperLimit) {
     this.upperLimit=upperLimit;
public int getUpperLimit() {
     return upperLimit;
public boolean getSuccess() {
return success;
public String getHint() {
return "" + hint;
public String getError() {
     return ""+error;
public int getNumGuesses() {
return numGuesses;
public void reset() {
     if (getRadio().equals("yes")) {
          answer = (int)(Math.random()*100);
     else {
          int i;
          i=(int)(Math.random()*upperLimit);
          if (i<lowerLimit) {
               i=i+lowerLimit;
          answer=i;
     success = false;
numGuesses = 0;
}

Similar Messages

  • Javax.servlet.ServletException: Cannot create bean of class

    People,
    HELP!! I am getting desperate!!!
    I am a newbie when it comes to TOMCAT, but i have been using Blazix before.
    My current system is using APACHE/TOMCAT on a Solaris machine and I keep hitting the same problem. I have gone through the archives but the only thing it states is to check the directory which i have done.
    I keep getting:
    Error 500
    Internal Error
    javax.servlet.ServletException: Cannot create bean of class MyClass
    The code used to work on the Blazix server so i am assuming it is something to do with a config parameter somewhere - but i do not know where. I have checked the directory/package structure and they seem to work. It even serves it when they are html pages not jsp, but obviously wont use the bean. :(
    I can post code if necessary.
    Please help
    Steve

    The FormData.class file is in examples/WEB-INF/classes/ directory.
    Is this wrong? then should it be in a package called examples.steve???
    <TITLE> Poc </TITLE>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <META NAME="Generator" CONTENT="Mozilla/4.61 [en] (WinNT; I) [Netscape]">
    <META NAME="Author" CONTENT="Steve Brodie">
    <META NAME="Proof of Concept order entry system" CONTENT="">
    <META NAME="PROOF OF CONCEPT ORDER ENTRY SYSTEM " CONTENT="">
    </HEAD>
    <%@ page import="steve.FormData" %>
    <jsp:useBean id="user" class="steve.FormData"/>
    <jsp:setProperty name="user" property="*"/>
    <FORM METHOD=POST ACTION="SaveDetails.jsp">
    <CENTER>
    <H1>     
    POC CNS demo <BR>
    POC Order Entry System <BR></H1>
    <H2><CENTER>PROOF OF CONCEPT ORDER ENTRY SYSTEM <BR>
    in order to illustrate the use of an new product<BR></H1>
    </CENTER>
    <BODY>
    Please enter the following details: <BR>
    Second name <INPUT TYPE=TEXT NAME=secondName SIZE=20><BR>
    First name <INPUT TYPE=TEXT NAME=firstName SIZE=20><BR>
    Address <INPUT TYPE=TEXT NAME=address1 SIZE=20><BR>
    Address <INPUT TYPE=TEXT NAME=address2 SIZE=20><BR>
    Post Code <INPUT TYPE=TEXT NAME=postCode SIZE=10><BR>
    Phone NO. <INPUT TYPE=TEXT NAME=phone SIZE=10><BR>
    <BR>
    Credit Card<INPUT TYPE=TEXT NAME=credit SIZE=15><BR>
    <BR>
    Quality of Service:
    <SELECT TYPE=TEXT NAME="QoS">
    <OPTION SELECTED TYPE=TEXT NAME=Gold>Gold <BR>
    <OPTION TYPE=TEXT NAME=Silver>Silver <BR>
    <OPTION TYPE=TEXT NAME=Bronze>Bronze <BR>
    </SELECT>
    <BR>
    <BR>
    <INPUT TYPE=RESET>
    <P><INPUT TYPE=SUBMIT>
    <BR>
    <BR>
    <IMG SRC=../images/Cisco.gif>
    </FORM>
    </BODY>
    </HTML>
    package steve;
    * @author Steven Brodie
    * @date
    * @version 0.0
    import java.io.*;
    import java.lang.*;
    import java.util.*;
    public class FormData {
         String secondName = null;
         String firstName = null;
         String address1 = null;
         String address2 = null;
         String postCode = null;
         int credit = 0;
         int phone = 0;
         String qos = null;
         String file = "out";
         String filex = "xout";
         PrintWriter pout = null;
         PrintWriter xout = null;
         FormData() {
              try {
                   pout = new PrintWriter(new BufferedWriter(new FileWriter(file + ".txt")));
                   xout = new PrintWriter(new BufferedWriter(new FileWriter(filex + ".xml")));
              xout.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
              xout.println("<OrderEntry xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"");
              xout.println("xsi:noNamespaceSchemaLocation=\"http://machine2.com:8080/xml/xsd/OrderEntry.xsd\">");
              } catch (IOException ioe) {
                   System.err.println("DataFileWriter error ioe on init");
                   ioe.printStackTrace();
                   System.exit(1);
    public void setFirstName( String value ) {
    firstName = value;
              System.out.println(firstName);
              pout.println(firstName);
              xout.println("<firstname value= \"" + firstName + "\"/>");
    public void setSecondName( String value ) {
    secondName = value;
              System.out.println(secondName);
              pout.println(secondName);
              xout.println("<secondname value= \"" + secondName + "\"/>");
    public void setAddress1( String value ) {
    address1 = value;
              System.out.println(address1);
         pout.println(address1);
              xout.println("<address1 value= \"" + address1 + "\"/>");
    public void setAddress2( String value ) {
    address2 = value;
              System.out.println(address2);
              pout.println(address2);
              xout.println("<address2 value= \"" + address2 + "\"/>");
    public void setPostCode( String value ) {
    postCode = value;
              System.out.println(postCode);
              pout.println(postCode);
              xout.println("<postCode value= \"" + postCode + "\"/>");
    public void setCredit( int value ) {
    credit = value;
              System.out.println(credit);
              pout.println(credit);
              xout.println("<creditCard value= \"" + credit + "\"/>");
         public void setPhone( int value) {
              phone = value;
              System.out.println("0" + phone);
              pout.println("0" + phone);
              xout.println("<phoneNo value= \"0" + phone + "\"/>");
    public void setQoS( String value ) {
    qos = value;
              System.out.println(qos);
              pout.println(qos);
              xout.println("<QoS value= \"" + qos + "\"/>");
              xout.println("</OrderEntry>");
              pout.flush();
              pout.close();
              xout.flush();
              xout.close();
    public String getFirstName() {
              return firstName;
    public String getSecondName() {
              return secondName;
    public String getAddress1() {
              return address1;
    public String getAddress2() {
              return address2;
    public String getPostCode() {
              return postCode;
    public int getCredit() {
              return credit;
         public int getPhone() {
              return phone;
         public String getQoS() {
              return qos;

  • Error: 500    Cannot create bean of class Simulation

    Hello, I was working with J2ee 1.2 and suddenly I got this error. Any one has an idea about it?, I can't continue working.
    Thanks...
    Error: 500
    Internal Servlet Error:
    javax.servlet.ServletException: Cannot create bean of class Simulation
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:384)
         at _0005csimulation_0002ejspsimulation_jsp_325._jspService(_0005csimulation_0002ejspsimulation_jsp_325.java:215)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
         at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)
         at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:247)
         at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:352)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
         at org.apache.tomcat.core.ServiceInvocationHandler.method(ServletWrapper.java:626)
         at org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java:534)
         at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:378)
         at org.apache.tomcat.core.Context.handleRequest(Context.java:644)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:440)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:144)
         at org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:310)
         at java.lang.Thread.run(Thread.java:484)
    Root cause:
    javax.servlet.ServletException: Cannot create bean of class Simulation
         at _0005csimulation_0002ejspsimulation_jsp_325._jspService(_0005csimulation_0002ejspsimulation_jsp_325.java:79)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
         at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)
         at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:247)
         at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:352)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
         at org.apache.tomcat.core.ServiceInvocationHandler.method(ServletWrapper.java:626)
         at org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java:534)
         at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:378)
         at org.apache.tomcat.core.Context.handleRequest(Context.java:644)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:440)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:144)
         at org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:310)
         at java.lang.Thread.run(Thread.java:484)

    This is the code for the simulatin class.
    I think nothing special.
    Begin --- Simulation.java
    import java.io.*;
    import java.util.*;
    public class Simulation
    private int lastMessage;
    private int transactions;
    private int transaction_prospere;
    /* Creation des variables du system */
         private String Quantite_acheteurs;
         private String Quantite_vendeurs;
         private String Argent_initiale;
         private String Articles_initiales;
         private String Prix_initial;
         private String Mechants_acheteurs;
         private String Mechants_vendeurs;
         private String Cycles_simulation;
         private String Choisir_strategie;
         private String Choisir_formule;
         private String Afficher_resultats;
    int iAfficher_resultats = (new Integer(Afficher_resultats)).intValue();
         /* Section de declaration des constants */
         private int OFFRE_DE_VENTE = 0;
         private int DEMANDE_ACHAT = 1;
         private int BROADCAST = -1;
    private int TRICHEUR = -1;
         private int PROSPERE = 1;
         private int VRAI = 1;
         private int FAUX = 0;
    private int ACHETEUR = 0;
    private int VENDEUR = 1;
         private int GENTIL = 0;
         private int MECHANT = 1;
         private double SEUIL_MECHANT = 0.87;
    Messages message_anterieur= null;
    /*** PADOVAN ********************************/
         public String Padovan_alpha;
    Begin --- Creation des agents...
    Pour la creation des agents il y a une generation des chiffres aleatoires
         pour repartir les vendeurs et les acheteurs, ainsi que les gentils et les
         mechants dans le vecteur d'agents
         public Vector Creation_des_agents(){
    System.out.println ("<<<<<<<<<<Executing...Creation_des_agents>>>>>>>>");
    /* Le vector avec des agents....*/
              Vector agents = new Vector();
    lastMessage = 0; /* Le derni�re message ajout� au tableau */
              transactions = 0; /* Compteur pour les transactions */
              transaction_prospere = 0; /* Compteur pour les transaction prosp�res*/
              /* Conversion de variables de string a int */
    int iQuantite_acheteurs = (new Integer(Quantite_acheteurs)).intValue();
    int iQuantite_vendeurs = (new Integer(Quantite_vendeurs)).intValue();
    int iArgent_initiale = (new Integer(Argent_initiale)).intValue();
    int iArticles_initiales = (new Integer(Articles_initiales)).intValue();
    int iPrix_initial = (new Integer(Prix_initial)).intValue();
    int iMechants_acheteurs = (new Integer(Mechants_acheteurs)).intValue();
    int iMechants_vendeurs = (new Integer(Mechants_vendeurs)).intValue();
    int i; /* Compteur pour la generation des agents */
              double agent_type; /* Pour generation aleatoire et savoir si est acheteur ou vendeur */
              int iagent_type; /* Type d'agent acheteur=0, vendeur=1 */
              double agent_comportement; /* Pour generation aleatoire et savoir si est gentil ou mechant */
              int iagent_comportement; /* Comportement de l'agent 0=gentil, 1=mechant, gentil par default */
    int total=iQuantite_acheteurs+iQuantite_vendeurs;
              /* Pour les agents......... */
              int j=0;
              for (i=0;i<total;)
                   iagent_comportement = 0;
    j++;
                   agent_type=Math.random(); /* Pour repartir les agentes vendeurs et acheteurs aleatoirement. */
    iagent_type=(agent_type<0.5?0:1); /* 0-> acheteur, 1-> vendeur */
                   if (iagent_type==0){   /*Creation des acheteurs.... */
    if(iQuantite_acheteurs>0)
    iQuantite_acheteurs--; /* un acheteur de moins */
    /* Generation du comportement */
                             if (iMechants_acheteurs>0) /* Faltan generar agentes mechantes */
                             if ((iQuantite_acheteurs > iMechants_acheteurs))
    agent_comportement = Math.random(); /* Pour repartir les comportement de l'agent */
    iagent_comportement=(agent_comportement<0.5?0:1);     /* 0->gentil, 1->mechant */
                             else
                                  iagent_comportement=1;
                             if (iagent_comportement==1) /* S'il est mechante... */
    iMechants_acheteurs --;
                             Agents agent = new Agents(i,ACHETEUR,0,0,iArgent_initiale,iagent_comportement, total);
                             agent.setPadovan_alpha(Padovan_alpha);
                   i++;
    agents.addElement(agent);
                   else{                  /* Creation des vendeurs... */
    if(iQuantite_vendeurs>0)
                             iQuantite_vendeurs--; /* un vendeur de moins */
    /* Generation du comportement */
                             if (iMechants_vendeurs>0) /*Faltan generar agentes mechantes */
                             if ((iQuantite_vendeurs > iMechants_vendeurs))
    agent_comportement = Math.random(); /* Pour repartir les comportement de l'agent */
    iagent_comportement=(agent_comportement<0.5?0:1);     /* 0->gentil, 1->mechant */
                             else
                                  iagent_comportement=1;
                             if (iagent_comportement==1) /* S'il est mechante... */
    iMechants_vendeurs --;
    Agents agent = new Agents(i,VENDEUR,iArticles_initiales,iPrix_initial,0,iagent_comportement,total);
                             agent.setPadovan_alpha(Padovan_alpha);
                   i++;
    agents.addElement(agent);
         }/* End for */
    System.out.println ("<<<<<<<<<<Ending...Creation_des_agents>>>>>>>>>>");
    return agents;
         } /* End Creation_des_agents */
    End --- Creation des agents...
    Begin --- Setters and getters.........
    public void     setQuantite_acheteurs(String Quantite_acheteurs) {
              this.Quantite_acheteurs= Quantite_acheteurs;
    public void     setQuantite_vendeurs(String Quantite_vendeurs) {
              this.Quantite_vendeurs= Quantite_vendeurs;
    public void     setArgent_initiale(String Argent_initiale) {
              this.Argent_initiale= Argent_initiale;
    public void     setArticles_initiales(String Articles_initiales) {
              this.Articles_initiales= Articles_initiales;
    public void     setPrix_initial(String Prix_initial) {
              this.Prix_initial= Prix_initial;
    public void     setMechants_acheteurs(String Mechants_acheteurs) {
              this.Mechants_acheteurs= Mechants_acheteurs;
    public void     setMechants_vendeurs(String Mechants_vendeurs) {
              this.Mechants_vendeurs= Mechants_vendeurs;
    public void     setCycles_simulation(String Cycles_simulation) {
              this.Cycles_simulation= Cycles_simulation;
    public void     setChoisir_strategie(String Choisir_strategie) {
              this.Choisir_strategie= Choisir_strategie;
    public void     setChoisir_formule(String Choisir_formule) {
              this.Choisir_formule= Choisir_formule;
    public void     setPadovan_alpha(String Padovan_alpha) {
              this.Padovan_alpha= Padovan_alpha;
    public void     setAfficher_resultats(String Afficher_resultats) {
              this.Afficher_resultats= Afficher_resultats;
    public String getPadovan_alpha( ){
    return this.Padovan_alpha;
    } // End of the class Simulation
    End --- Simulation

  • Cannot create bean of class Error

    Ok first off I realize several people have post messages similar to this - but the replys to those messages didn't help me:
    Today the webserver I had my code on crashed - and was restarted.
    Everything is working except for 1 page.
    When I load it I get this error:
    Error: 500
    Location: /dynamic/VOTE_chart.jsp
    Internal Servlet Error:
    javax.servlet.ServletException: Cannot create bean of class update.VoteBean
         at _0002fVOTE_0005fchart_0002ejspVOTE_0005fchart_jsp_6._jspService(_0002fVOTE_0005fchart_0002ejspVOTE_0005fchart_jsp_6.java:71)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
         at org.apache.tomcat.core.Handler.service(Handler.java:286)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
         at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
         at java.lang.Thread.run(Thread.java:484)
    This tells my sod all what's actually wrong - I've tried renaming the jsp, I've tried renaming and recompiling the bean but that didn't help either (yes I redirected towards page to the new bean).
    No-one here has a clue what the hell has gone wrong with this - especially cos I have at least 15 other beans in exactly the same place and they all work fine.
    If you wish I'll post the code of the relevant jsp here.
    Any suggestions?

    most of this is irrelevent but you should be able to find what you need
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta Http-Equiv="Cache-Control" Content="no-cache">
    <meta Http-Equiv="Pragma" Content="no-cache">
    <script language="JavaScript">
    <!--
    function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v3.0
    var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
    function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    </head>
    <body bgcolor="#000066" onLoad="MM_preloadImages('images/previousOver.jpg','images/backOver.jpg')" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <jsp:useBean id="myBean" class= "update.VoteBean" scope="page" /> <jsp:setProperty name="myBean" property="*" />
    <%
    if (!myBean.isDone())
    {%>
    <form method="post">
    <table width="422" border="0" cellspacing="0" cellpadding="0" align="center" height="225">
    <tr>
    <td colspan="3" height="32"><img src="images/vote.jpg" width="480" height="42"></td>
    </tr>
    <tr bgcolor="#000066">
    <td colspan="3" height="32">
    <div align="left"><b><font face="Arial, Helvetica, sans-serif" size="4" color="#cc0033">previous
    results </font></b></div>
    </td>
    </tr>
    <tr>
    <td colspan="3" height="69">
    <div align="center"><img name="Image9" border="0" src="images/previous.jpg" width="160" height="23"></div>
    </td>
    </tr>
    <tr>
    <td colspan="3" height="32"><b><font face="Arial, Helvetica, sans-serif" size="4" color="#cc0033">this
    months vote</font></b></td>
    </tr>
    <tr>
    <td colspan="3" height="54">
    <div align="left"> <font face="Arial, Helvetica, sans-serif" size="2" color="ffcc00"><%=myBean.getQuestion()%>
    </font></div>
    </td>
    </tr>
    </table>
    <table width="474" border="0" cellspacing="1" cellpadding="1" align="center" height="68">
    <tr>
    <td width="206">
    <div align="left"> <font face="Arial, Helvetica, sans-serif" size="1" color="#FFFFFF">
    <input type="radio" name="radiobutton" value="ONE">
    <%=myBean.getOption1()%></font> </div>
    </td>
    <% double thisVote=Double.parseDouble(myBean.getVotes1());
              double overall=myBean.getTotalVotes();
              double ans=(thisVote/overall)*100*3;
                   int intAns=(int)Math.round(ans);
              %>
    <td width="253"><font face="Arial, Helvetica, sans-serif" size="1" color="#FFFFFF"><img src="images/bar_white.jpg" width="<%=intAns%>" height="10">
    <%=intAns/3%>%</font> </td>
    </tr>
    <tr>
    <td width="206" height="2">
    <div align="left"> <font face="Arial, Helvetica, sans-serif" size="1" color="#FFFFFF">
    <input type="radio" name="radiobutton" value="TWO">
    <%=myBean.getOption2()%></font> </div>
    </td>
    <% thisVote=Double.parseDouble(myBean.getVotes2());
              overall=myBean.getTotalVotes();
              ans=(thisVote/overall)*100*3;
                   intAns=(int)Math.round(ans);
              %>
    <td width="253" height="2"><font face="Arial, Helvetica, sans-serif" size="1" color="#FFFFFF"><img src="images/bar_white.jpg" width="<%=intAns%>" height="10">
    <%=intAns/3%>%</font> </td>
    </tr>
    <tr>
    <td width="206" height="2">
    <div align="left"> <font face="Arial, Helvetica, sans-serif" size="1" color="#FFFFFF">
    <input type="radio" name="radiobutton" value="THREE">
    <%=myBean.getOption3()%></font> </div>
    </td>
    <% thisVote=Double.parseDouble(myBean.getVotes3());
              overall=myBean.getTotalVotes();
              ans=(thisVote/overall)*100*3;
                   intAns=(int)Math.round(ans);
              %>
    <td width="253" height="2"><font face="Arial, Helvetica, sans-serif" size="1" color="#FFFFFF"><img src="images/bar_white.jpg" width="<%=intAns%>" height="10">
    <%=intAns/3%>%</font> </td>
    </tr>
    <tr>
    <td width="206" height="2">
    <div align="left"> <font face="Arial, Helvetica, sans-serif" size="1" color="#FFFFFF">
    <input type="radio" name="radiobutton" value="FOUR">
    <%=myBean.getOption4()%></font> </div>
    </td>
    <% thisVote=Double.parseDouble(myBean.getVotes4());
              overall=myBean.getTotalVotes();
              ans=(thisVote/overall)*100*3;
                   intAns=(int)Math.round(ans);
              %>
    <td width="253" height="2"><font face="Arial, Helvetica, sans-serif" size="1" color="#FFFFFF"><img src="images/bar_white.jpg" width="<%=intAns%>" height="10">
    <%=intAns/3%>%</font> </td>
    </tr>
    <tr>
    <td width="206" height="2">
    <div align="left"> <font face="Arial, Helvetica, sans-serif" size="1" color="#FFFFFF">
    <input type="radio" name="radiobutton" value="FIVE">
    <%=myBean.getOption5()%></font> </div>
    </td>
    <% thisVote=Double.parseDouble(myBean.getVotes5());
              overall=myBean.getTotalVotes();
              ans=(thisVote/overall)*100*3;
                   intAns=(int)Math.round(ans);
              %>
    <td width="253"><font face="Arial, Helvetica, sans-serif" size="1" color="#FFFFFF"><img src="images/bar_white.jpg" width="<%=intAns%>" height="10">
    <%=intAns/3%>%</font> </td>
    </tr>
    </table>
    <p align="center">
    <input type="submit" name="Submit" value="Cast a Vote">
    </p>
    <p align="center"> </p>
    <p align="center"> </p>
    <p align="center"> </p>
    <p align="center"> </p>
    <p align="center"> </p>
    <p align="center"> </p>
    <p align="center"> </p>
    <p align="center"> </p>
    <p align="center"> </p>
    </form>
    <%
    else
    myBean.setDone(false);
    String done=myBean.checkVote();
    if (done.equals("OK"))
    System.out.println("OK");
    %>
    <table width="424" border="0" cellspacing="0" cellpadding="0" align="center" height="103">
    <tr bgcolor="#000066">
    <td height="43" colspan="2"><img src="images/vote.jpg" width="480" height="42"></td>
    </tr>
    <tr bgcolor="#000066">
    <td height="43" colspan="2">
    <div align="left"><b><font face="Arial, Helvetica, sans-serif" size="4" color="#cc0033">complete
    </font></b></div>
    </td>
    </tr>
    </table>
    <table width="463" border="0" cellspacing="3" cellpadding="4" align="center">
    <tr>
    <td width="327"><font face="Arial, Helvetica, sans-serif" size="1" color="#ffcc00">Thank
    you for voting. Your vote will be instantly added to the calculations.</font></td>
    <td width="109"> </td>
    </tr>
    </table>
    <table width="461" border="0" cellspacing="3" cellpadding="4" align="center">
    <tr>
    <td height="53">
    <div align="center"> <img name="Image10" border="0" src="images/back.jpg" width="160" height="23"></div>
    </td>
    </tr>
    <tr>
    <td height="397"> </td>
    </tr>
    </table>
    <%}else{
    System.out.println("Not equal or fell over");%>
    <table width="454" border="0" cellspacing="0" cellpadding="0" align="center" height="103">
    <tr bgcolor="#000066">
    <td height="43" colspan="2"><img src="images/vote.jpg" width="480" height="42"></td>
    </tr>
    <tr bgcolor="#000066">
    <td height="43" colspan="2">
    <div align="left"><b><font face="Arial, Helvetica, sans-serif" size="4" color="#cc0033">sorry
    </font></b></div>
    </td>
    </tr>
    </table>
    <table width="469" border="0" cellspacing="3" cellpadding="4" align="center">
    <tr>
    <td width="327"><font face="Arial, Helvetica, sans-serif" size="1" color="#ffcc00">There
    has been a problem casting your vote. Please try again later.</font></td>
    <td width="115"> </td>
    </tr>
    </table>
    <table width="467" border="0" cellspacing="3" cellpadding="4" align="center">
    <tr>
    <td height="37">
    <div align="center"> <img name="Image101" border="0" src="images/back.jpg" width="160" height="23">
    </div>
    </td>
    </tr>
    <tr>
    <td height="560"> </td>
    </tr>
    </table>
    <%}
    %>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    </body>
    </html>

  • Cannot create bean of class

    Dear Friends
    My tomcat server 3.2.4 is giving following error when i am going to run my jsp.
    javax.servlet.ServletException: Cannot create bean of class dts.query.ProjectSearchResultsPage
         at jspprojects._0002fjspprojects_0002fprojectsearchresults_0002ejspprojectsearchresults_jsp_12._jspService(_0002fjspprojects_0002fprojectsearchresults_0002ejspprojectsearchresults_jsp_12.java:111)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:484)
    =====================
    Please help me, Thanx in advance

    i am not sure but maybe an explicit constructor ( with no parameters ) for the bean will solve the problem ?

  • Javax.servlet.jsp.JspException: Exception creating bean of class ProdFormFB

    Hi I am trying to deploy a struts based web application using "DynaActionForms"
    When I am trying to access the jsp page I am getting the following error.
    I am providing as much as details as it can help full to u.
    Thank u.
    FormBean class ProdFormFB.java
    ========================================================================
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import org.apache.struts.action.*;
    public class ProdFormFB extends DynaActionForm
    public void reset(ActionMapping mapping, HttpServletRequest request)
         System.out.println("reset() called. . . . ");
    set("prodId", new Integer(10));
         set("prodName", new String("XYZ"));
         set("price", new Float(22.25));
    public ActionErrors validate(ActionMapping mappings, HttpServletRequest request)
    System.out.println("=== validate() called ===");
    ActionErrors aes=new ActionErrors();
         System.out.println("aes.size() ===> "+aes.size());
         String prodName = (String)get("prodName");
         if( prodName==null || prodName.equals("") )
              System.out.println("Adding prodName.req error . . . . . . .");
              aes.add("prodName",new ActionError ("prodName.req.error"));
    return aes;
    ========================================================================
    Action Class ProdAction.java
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import org.apache.struts.action.*;
    public class ProdAction extends Action
       public ActionForward execute(ActionMapping mapping,ActionForm form, HttpServletRequest request,HttpServletResponse response)throws Exception
          ProdFormFB fb = (ProdFormFB)form;
          System.out.println("fb.get('prodId')==> "+fb.get("prodId"));
          System.out.println("fb.get('prodName')==> "+fb.get("prodName"));
          System.out.println("fb.get('price')==> "+fb.get("price"));
           return mapping.findForward("dres");
    }========================================================================
    jsp page : npform.jsp
    <%@ taglib uri = "/tags/struts-html" prefix="html"%>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <html:html>
      <head>
         <title>Product Form</title>
      </head>
      <body>
              <html:form action="/pAction">
              <center>
                <br><br>
                <center> <font color="green" style="bold" size=5>Product Form using Struts</font></center><br><br>
                <table>
                <tr>
                   <td>
                          <b> Product ID : </b>  <html:text property="prodId"/> </td><td><font color="red" style="bold"><html:errors property="prodId"/> </font>
                 </td>
             </tr>
               <tr>
                   <td>
                          <b> Prod Name : </b> <html:text property="prodName"/>  </td><td> <font color="red" style="bold"> <html:errors property="prodName"/> </font>
                 </td>
              </tr>
    <!--           <tr>
                   <td>
                          <b> Price : </b> <html:text property="price"/>  </td><td> <font color="red" style="bold"> <html:errors property="price"/> </font>
                 </td>
              </tr> -->
               <tr  colspan="2" align="center">
                   <td>
                      <html:submit property="submit" value="Store"/>
                </td>
              </tr>
              </table>
                          </center>
           </html:form>
      </body>
    </html:html>========================================================================
    Configuration in struts-config.jsp
        <form-beans>
             <form-bean name="NewProdForm" type="ProdFormFB">
                  <form-property name="prodId" type="java.land.Integer"/>
                    <form-property name="prodName" type="java.land.String"/>
                  <form-property name="price" type="java.land.Float"/>
            </form-bean>
    </form-beans>
    <action-mappings>
           <action name="NewProdForm" path="/pAction" type="ProdAction" input="/npform.jsp" validate="true" scope="request">
                  <forward name="dres" path="/dres.jsp"/>
           </action>
    </action-mappings>========================================================================
    After deploying successfully I am I am entering the following URL
    http://localhost:7001/oursapp/npform.jsp
    The following Exception on Browser: and also on the server console ......
    javax.servlet.jsp.JspException: Exception creating bean of class ProdFormFB: {1}
         at org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:463)
         at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:433)
         at jsp_servlet.__npform._jspService(__npform.java:178)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)     
    Plz... Help me out is solving the problem .......
    my email :   [email protected]

    I never used DynaActionForm, what I have noticed here is, don't you need to declare the form bean? I may be wrong.
    <form-beans>
    <form-bean name="newProdForm" type="com.package.form.NewProdForm"></form-bean>
    </form-beans>

  • You cannot create an Apple ID using a MobileMe account. If this is your email address, it is also your Apple ID

    I am dumping my Android and getting an IPhone to go along with my IPad, primarily because of the ICloud and the ease of synching all my mail, contacts etc. My original Apple ID was my gmail address. I now have the @me.com address when I put IOS 5 on my iPad. I want to dump gmail and just have one email address...the @me.com address. When I set up iCloud, I used the @me.com address. When I try to change my Apple ID to the @me.com address from the gmail address, I get this message "You cannot create an Apple ID using a MobileMe account. If this is your email address, it is also your Apple ID". Any ideas?

    I also have the same problem. Is there a solution?

  • Using java beans in jsp using tomcat

    hi i have made a form to enter user first name and last anme with html and then i have made a value javabean in which i want to store the information filled bu user. i want to display the information stored in java bean in jsp page i have made the full application and i have made class file of java bean as well as jsp file but when i try to run this web application in tomcat i am getting class not found exception.
    could anybody tell me that where i should store the bean class in tomcat and do i need to make any package in which i have to place my java bean file plz tell me complete procedure along with code if possible

    whew thats a lot of questions... All of this is pretty basic stuff. I would recommend you take a look at the web services tutorial: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/
    lets see.
    Starting a package name with com is just a generic standard which is followed.
    It is most correct when creating commercial packages to create packages like com.companyName.project
    http://java.sun.com/docs/codeconv/html/CodeConventions.doc8.html
    You should not need a page import directive unless you are using classes in scriptlets: ie <% %> tags in your JSP. Your jsp:useBean tag will automatically import necessary classes - you don't need to import classes for beans specifically
    <jsp:useBean id="myClass" scope="session" class="com.myPackage" />
    Your directory structure should be something like this
    webApplicationRootDirectory
    - page1.html
    - page2.html
    - page3.jsp
    - page4.jsp
    - WEB-INF
         - web.xml
         - classes
           - com
             - myPackage
               - myClass.classerrrm. Thats about it I think.

  • Creating A File Resource Using Tomcat JNDI

    Hi guys,
    My problem is that I am creating a web service and I cannot get to a properties file without creating an absolute reference to that file. If I was creating a servlet I would simple use getServletContext() method to get a relative reference to it. However since it is an axis web service i have to deploy my applications in the WEB-INF/services directory, and because it does not interact with the axis servlet I cannot use getServletContext(). So i thought I could create a JNDI file resource reference in the tomcatHome/conf/context.xml file, similar to how I created a JNDI connection pool. The resouce definition looks like this;
    <Resource name="resource/dialogueEngineConfig" auth="Container"
                      type="java.io.File"
                      url="file:/Applications/apache-tomcat-5.5.1/webapps/axis2/META-INF/DialogueEngine.properties">
    </Resource>now I tried to access the resource in my code like this;
    // Obtain our environment naming
    Context envCtx = (Context) new InitialContext().lookup("java:comp/env");
    // Look up our file
    File  f = (File) envCtx.lookup("resource/dialogueEngineConfig");However I get a NamingException; 'Cannot create resource instance'
    I don't understand why I cant create a file resource in JNDI, it seems like a simple enough thing to do. Am I doing something wrong or missing something? Any help would be greatly appreciated.
    Thanks

    Hello xalien,
    I have the same problem. I need to access external xml config file via JNDI from my servlet, running on Tomcat 5.0.28. Have you manage to define an URL resource? If so, please provide an example how to do it. Many thanx.

  • Creating a new class using a template class

    I am very new to Java.
    I need to make a new class by using a template class that was given to us.
    I go to File / New / Class but cannot find how to select a template class to create a new class.
    Thanks,
    gs

    gs2010 wrote:
    I am very new to Java.
    I need to make a new class by using a template class that was given to us.
    I go to File / New / Class but cannot find how to select a template class to create a new class.
    Thanks,
    gsYou need to be much more specific as to what you are trying to do.
    What is a "template class"?
    How are you trying to "go to" and "select" the template?
    Etc.

  • Problem in compiling servlet class - using Tomcat

    Hi,
    I have a servlet pgm that I'm trying to compile.I using Tomcat application server.I have my servlet class in D:\servlet_wrk\project1\src
    and my deployment descriptor in D:\servlet_wrk\project1\etc
    my CLASSPATH var is set to C:\Sun\AppServer\jdk\bin
    and
    my PATH var is set to C:\Sun\AppServer\bin.
    When I compile my servlet class Ch1Servlet.java in the command line from the directory
    D:\servlet_wrk\project1 using the command
    javac -classpath D:\applications\tomcat-5.5.12\common\lib\servlet-api.jar -d classes src/Ch1Servlet.java,
    it says error:cannot read: src/Ch1Servlet.java
    Can somebody help me to solve this problem and help me to compile my servlet class.
    Thanks.

    Thanks...as u said I tried putting dir & found that
    my file was saved as Ch1Servlet.java.txt instead for
    Ch1Servlet.java......So that was a problem.Now I'm
    able to compile.Oh, yeah. Notepad will do that to you. I think when you save in Notepad if you put quotes around the name "Whatever.java" then it won't add the .txt.
    But on compiling I'm getting the following error
    package java.servlet.* does not exist
    package java.servlet.http.* does not exist
    package java.io.* does not exist
    Do u the reason for this??? The servlet stuff is java[b]x.servlet. For the io stuff, I don't know, I'd have to see your code. Either you have a typo or a corrupt installation.

  • Tool to create Java Object classes using the Database Tables

    Hi,
    Is their any tools or utility available to create the Java Object Classes using the Database Tables as input.
    Lets Say I am having the Employee, Employee_Salary tables in the Database.The utility has to create the Java Object classes with the relation.
    Please Help...
    Thx..

    Hm, for generating regular Java classes I wouldn't know one from memory. But I suggest you start searching in for example the Eclipse marketspace for a third party plugin that can do it. If all fail, you could always use Hibernate Tools from the Jboss Tools Eclipse plugin set to generate Hibernate/JPA entities and then strip the annotations from them to turn them into regular POJO classes.
    How many tables are we talking about anyway? It might be less effort to just create the classes with properties and then use an IDE to generate getters and setters for them.

  • Cannot creat pdf from Powerpoint using Acrobat Pro X

    I cannot create pdf files from Powerpoint 2010 using Acrobat Pro X.  I am using Windows 7 32-bit. There are no updates for my Acrobat Pro X and so the PDFMaker is up to date.  When trying to save to a pdf, the program will crash.  The problem signature from Powerpoint states that the problem name is "APPCRASH" and that the fault module named MPS.dll.  HELP!

    Here's a slightly better version.
    set urllist to {"http://www.cnn.com", "http://www.apple.com", "http://www.macintouch.com"}
    set numURLs to (count urllist)
    on pageloaded(timeoutvalue) -- in seconds
    delay 2
    repeat with i from 1 to timeout_value
    tell application "Safari"
    if (do JavaScript "document.readyState" in document 1) is "complete" then
    return true
    else if i is timeout_value then
    return false
    else
    delay 1
    end if
    end tell
    end repeat
    return false
    end page_loaded
    tell application "Safari"
    activate
    end tell
    tell application "System Events"
    tell process "Safari"
    set frontmost to true
    repeat with i from 1 to (numURLs)
    tell application "Safari"
    set URL of document 1 to item i of urllist
    end tell
    my page_loaded(5)
    keystroke "p" using {command down}
    click menu button "PDF" of sheet 1 of window 1
    click menu item 2 of menu 1 of menu button "PDF" of sheet 1 of window 1
    keystroke return
    end repeat
    end tell
    end tell
    Eric

  • Cannot Create a ReportDocument Class on Win 7/VS 2008/Crystal 2008

    I recently installed Crystal 2008 (CR Developer) on my Win7/64bit dev. PC, then switched all .NET crystal references from v10 to v12. When I try to run a simple project containing a single report and crystal viewer, I am unable to create a ReportDocument Class. ERROR:  "Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly". The CrystalDecisions.CrystalReports.Engine.ReportDocument exception occurs in the auto generated 'code behind' form of the Crystal report. Stand alone CR 2008 works fine, and the older VS.NET project, with CR10 references, also worked. Please advise. Thanks

    Is this a windows or web app?  Windows app, part of the compiler options is what type of CPU that you are targeting.  If it is web, you have to set this within IIS.

  • Problem: Applets cannot Create SOAP Message Objects using JAX Pack

    Hi all
    I want to invoke a simple webservice located at a url.
    I wish to send a SOAP Message . The Message is creating using
    javax.xml.soap package
    Here is the code
    public void init(){
    try{
    MessageFactory MF = MessageFactory.newInstance();
    SOAPMessage message = MF.createMessage();
    SOAPPart SP = message.getSOAPPart();
    SOAPEnvelope SE = SP.getEnvelope();
    SOAPHeader SH = SE.getHeader();
    SOAPBody SB = SE.getBody();
    Name bodyName = SE.createName
    ("testString","L","http://tempuri.org/");
    SOAPBodyElement SBE = SB.addBodyElement(bodyName);
    }catch(Exception e){}
    When I run the applet in a browser I am getting ExceptionInInitializerError or NullPointer Exception.
    The same application works when i run as a standalone application. But not in APPLET.
    Can somebody help me in this regard

    Im trying to do the same thing !!, i have a servlet that processes SOAP messages, and return SOAP messages back.
    Like you i have a implementation running with a stand alone client instead of an applet, which runs fine (there are several .jar files that have to be included in the jre/lib/ext directory, in total about a meg!).
    Im now looking to incorporate this client into an applet, but it moans about cannot find classes (the JAXM and SOAP classes).
    Have you found a solution to this yet ?? Surely you cannot expect the user to download all the required jar files along with the applet??
    With regards to your problem try setting up a button that fires off the SOAP Msg and processes the response, i read on the Sun Java Applet tutorials that some code should stay out of the init method(its a bit vague about WHAT should stay out..), maybe this is an example.
    Thanks,
    (i dont really expect a response as you posted this ages ago !!, but it would be nice.)

Maybe you are looking for

  • Values from Search help not returned to UI

    Hi, For a field on Web UI, i have to open a popup which would be configured from a search help created in transaction SE11. The search help uses a Searchhelp Exit. On the UI, I am getting the popup but the value i select is not reflecting on the UI.

  • OID 10.1.4 / eBS 12.0.6 integration - provisioning profiles vanishing

    We have, after a bit of thrashing, managed to get our OID working with SSO on eBS (lots of alphabet soup there!). We're on OID 10.1.4 and eBS 12.0.6. We're seeing an issue where, periodically, the connection profiles in OID, under the provisioning pr

  • Best practice to reclaim the recovery partition?

    Hi all, I'm hoping some folks here might have some suggestions on how to best reclaim the recovery partition. I don't actually have a DVD burner, so I thought I might never get around to reclaiming the recovery partition. But I just saw somebody ment

  • Linking transaction in workitem

    Hi Gurus, I would like to know if it's possible and how I can link a transaction in a Business Workflow. The requirement is to have a workitem in which the user has 4 link to 4 transaction and based on his choice the system has to open the choosen tr

  • Darstellungsfehler bei PSE 4

    Hallo, wenn ich eine Ebene dubliziere und auf diese den Hochpassfilter anwende (Empfehlung aus dem Buch "PSE 4- der Meisterkurs") führt dies dazu, dass ich ein Bild im Bild bekomme. Im Listeneintrag der Ebenenpalette habe ich hierbei "ineinanderkopie