Cannot create L7 Class

My load balancing is not working, I believe it is due to the fact that the class map i have created for L7 is not being treated as an L7 class map.
From doc: "The ACE treats as a Layer 3 and Layer 4 policy any policy map that ... has the default class configured as the class map, and there are no Layer 7 policy actions configured"
This is what I have configured so I must change it. However, it is not http or ftp (it's LDAP). Here is my attempt..
class-map match-any L7_Class
description L7 class map for VIP-A
2 match port tcp eq xxx
ace/Context1(config)# policy-map type loadbalance first-match L7_Policy
ace/Context1(config-pmap-lb)# class ?
class-default Specify actions for default class-map
ace/Context1(config-pmap-lb)# class L7_Class
Error: Specified class-map is not consistent with the policy-map type
ace/Context1(config-pmap-lb)# exit
ace/Context1(config)# class-map type ?
ftp Configure ftp class-map
http Configure http class-map
management Configure management traffic class-map
How can I get this to work?

Hi Gilles,
As far as I can tell that is what I have, but it is not working.
rserver host M-Old
ip address 1.1.8.11
inservice
rserver host M-Old-2
ip address 1.1.8.12
inservice
rserver host S
serverfarm host A
rserver M-Old 389
backup-rserver M-Old-2 389
inservice
rserver M-Old-2 389
class-map match-any Class
2 match virtual-address 1.1.3.13 tcp eq 389
! not in use
class-map match-any L7_Class
description L7 class map for VIP-A
2 match port tcp eq 389
policy-map type loadbalance first-match A_L7_Policy
class class-default
serverfarm A
policy-map multi-match VIP-A
class Class
loadbalance vip inservice
loadbalance policy A_L7_Policy
loadbalance vip icmp-reply active
loadbalance vip advertise active
interface vlan 500
ip address 1.1.2.7 255.255.255.240
no shutdown
interface vlan 511
ip address 1.1.3.12 255.255.255.248
service-policy input VIP-A
no shutdown
ip route 0.0.0.0 0.0.0.0 1.1.2.3
ip route 1.1.8.0 255.255.255.0 1.1.3.11 (real server subnet)
ip route 1.1.7.0 255.255.255.0 1.1.3.11 (source of request)
vcp-sd-ace-1/CUR# sh service-policy
Policy-map : IDV_VIP-A
Status : ACTIVE
Interface: vlan 511
service-policy: IDV_VIP-A
class: IDV_Class
loadbalance:
L7 loadbalance policy: IDV-A_L7_Policy
VIP Route Metric : 77
VIP Route Advertise : ENABLED-WHEN-ACTIVE
VIP ICMP Reply : ENABLED-WHEN-ACTIVE
VIP State: INSERVICE
curr conns : 0 , hit count : 0
dropped conns : 0
client pkt count : 0 , client byte count: 0
server pkt count : 0 , server byte count: 0
vcp-sd-ace-1/CUR# sh stat
+------------------------------------------+
+------- Connection statistics ------------+
+------------------------------------------+
Total Connections Created : 184
Total Connections Current : 0
Total Connections Destroyed: 0
Total Connections Timed-out: 184
Total Connections Failed : 0
vcp-sd-ace-1/CUR# sh tcp stat
TCP statistics:
Rcvd : 822 total, 0 errors
Sent : 0 total, 0 RST flag segments
0 active opens, 0 passive opens
Connections: 0 attempts-failed, 0 established resets, 0 currently establised
the real server has nothing in it's tcp dump for the connection. The session in in SYN_SENT. The client can ping the VIP, and i can ping the real server from the context. Is it not binding (LDAP) because of something to do with NAT? It NATs by default right? and you turn it off with transparent command? The client must get the response from the VIP, not the real, for the bind to occur.
And yes, I am confused (and tired)! :)
Any thoughts?

Similar Messages

  • Deserialize works fine. Now I cannot create my class instance

    When I deserialize my object a can get the object. Ok.
    ObjectInputStream ois = new ObjectInputStream(new FileInputStream(fichero));     
                   aux = ois.readObject();                
                   System.out.println(aux);
    And I see :
    mypackage.myclass (This class is a Jpanel based and some references to another classes)
    Now I have 3 questiosn - problems:
    1.- I dont know the class name (or I want that my code works with every kind of object) ,so... Is it neccesary to CAST the object?
    2.- In this case.... it can be done by mean of string name ? aux = (the_cast) .... ( when the_cast = "MYclass")
    3.- Finally I dont know how to create an instance of my new class
    ((MY_CAST) aux.getclass()).newinstance(); throws an error of "java.lang.Class cannot be cast ..."
    Any help?

    tonnot wrote:
    Now I have 3 questiosn - problems:
    1.- I dont know the class name (or I want that my code works with every kind of object) ,so... Is it neccesary to CAST the object? No, it's not necessary usually and when you don't know the type at compile time, then it's not possible either.
    2.- In this case.... it can be done by mean of string name ? aux = (the_cast) .... ( when the_cast = "MYclass")No, that's not possible. Since casting doesn't change anything about the object but only about the reference, casting "to a dynamic type" is meaningless, since you couldn't have a reference variable "of a dynamic type" to hold the newly-cast object anyway.
    3.- Finally I dont know how to create an instance of my new class
    ((MY_CAST) aux.getclass()).newinstance(); throws an error of "java.lang.Class cannot be cast ..."The problem is that you're trying to cast the Class object to MY_CAST (which I assume is your class), while it should in fact be a Class<? extends MY_CAST>.
    I'm unclear what you want to achieve here and what you know about the object: Why do you want to create a new instance of an object you know nothing about?

  • Cannot create proxy class

    Hi all,
    Why are my BAPIs and RFC FMs not being exposed under my application server node? I already referenced the sap.connector dll and sap.connector.rfc dll. did i miss something?
    Appreciate your immediate response. Thanks!

    I am using Visual Studio 2003, Microsoft .NET Framework 1.1, Java Runtime Environment version 1.5
    I have installed the SAP .NET Connector version 2.0.1.
    Did i miss out on anything?
    Message was edited by: Winnie Chan

  • Cannot create complib - no BeanInfo generated!

    Hello,
    I�m trying to create a complib following the steps on http://wiki.java.net/bin/view/Javatools/CustomComponentLibraries.
    When I run the build.xml file, I get an error in the targets gen-component, gen-taglib, gen-beaninfo:
    Exception in thread "main" java.lang.IllegalArgumentException: und
    at com.sun.rave.jsfmeta.generators.Main.run(Main.java:521)
    at com.sun.rave.jsfmeta.generators.Main.main(Main.java:279)
    At the end I also get a warning:
    Warning: skipping zip archive C:\Dokumente und Einstellungen\katsarova\Eigene Dateien\Creator\Projects\TestCreateComplib\build\complib\dkaTag-src.zip because no files were included.
    BUILD SUCCESSFUL
    No BeanInfo classes have been generated, so I cannot create the classes as described in section " Runtime: Final Steps".
    Does anyone have any ideas?
    Thanks

    Hi, G. Lakshmipathi,
    very thanks, I found note as below,
    Solution
    Implement changes marked below with '<--'.
    In Releases < 3.0D, define the exception 'CALC_ERROR' beforehand for the
    function module 'COPA_READ_CALCULATION':
    1. Start transaction 'SE37' for function module 'COPA_READ_CALCULATION'.
    2. Select object component 'Table parameters/exceptions interface' and
    choose 'Change'.
    3. Enter the new exception:
    CALC_ERROR   <--ins
    NO_CALC_FOUND
    4. Save function module
    This means is modify stand function 'COPA_READ_CALCULATION' and delete "CALC_ERROR" exception ?
    And  "calc_error"  of Source code also be marked ?
    if do this,it could affect the whole  system?
    Edited by: andy1982999 on Jan 31, 2012 2:26 PM

  • 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

  • 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;

  • Cannot create class in system package

    Hello,
    I wrote a J2ME game for nokia S40 phones. It compiles without any errors, but when I'm trying to run in on the Nokia 7210 phone emulator I receive the following message:
    Cannot create class in system package.
    Howerver running on the Nokia 6230 phone emulator is ok.
    I have obfuscated my applet as I read in previous topics, but still it does not work.
    Can anyone help me?
    Thanks,
    Alexander.

    You get that error when you try to reference a class that is part of the MIDP framework but isn't installed on the phone.
    The 7210 doesn't support MMAPI or WMA or MIDP 2.0, while the 6230 does, so check that you don't have any references (even an import statement), to classes from those packages (like the javax.microedition.media.*, javax.microedition.lcdui.game.*,javax.wireless.messaging.*, etc. packages hierarchies).
    shmoove

  • Cannot create class in system package while Using Sprite class

    Hi i developed a game using Sprite class & imported
    javax.microedition.lcdui.game.*; package. But when i tried to build this project it gave me "Cannot create class in system package" error. Worst thing is that now again if i build, then it displays error "package javax.microedition.lcdui.game.*; does not exist" . Pls help me

    First exception means that you tried to create a class with the package name equaling one from the predefined libraries in midp/cldc.
    For your second error, add all the jars you are using into the project's classpath.
    Mihai

  • 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 class of type 'flex.samples.factories.SpringFactory'

    I have an application that is trying to use BlazeDS.  I am using Flash Builder 4 Plug-in on RSA 7.5.5.  Any help would be apprecialted!
    Here is the relevant lines in the services-config.xml:
    <factories>
    <factory id="spring" class="flex.samples.factories.SpringFactory"/>
    </factories> 
    I have the flex.samples.factories.SpringFactory in the web projects src folder and verified that it is getting compiled and the class exists in the WEB-INF/classes folder.
    Here is the full stack trace:
    [5/31/11 8:54:44:530 CDT] 00000018 SystemErr     R **** MessageBrokerServlet failed to initialize due to runtime exception: [1]flex.messaging.MessageException: Cannot create class of type 'flex.samples.factories.SpringFactory'. Type 'flex.samples.factories.SpringFactory' not found.
    at flex.messaging.util.ClassUtil.createClass(ClassUtil.java:65)
    at flex.messaging.util.ClassUtil.createClass(ClassUtil.java:47)
    at flex.messaging.config.FactorySettings.createFactory(FactorySettings.java:55)
    at flex.messaging.config.MessagingConfiguration.createFactories(MessagingConfiguration.java: 114)
    at flex.messaging.config.MessagingConfiguration.configureBroker(MessagingConfiguration.java: 93)
    at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:125)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:220)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:328)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1252)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:161)
    at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtens ionProcessor.java:99)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:882)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:804)
    at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:522)
    at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:359)
    at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:337)
    at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:92)
    at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:666)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:619)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:395)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:611)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1304)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedAppl icationImpl.java:1165)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:587)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:8 32)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java: 950)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.jav a:2131)
    at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.ja va:342)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
    [0]flex.messaging.config.ConfigurationException: An error occurred trying to construct FlexFactory 'flex.samples.factories.SpringFactory'.   The underlying cause is: 'flex.messaging.MessageException: Cannot create class of type 'flex.samples.factories.SpringFactory'. Type 'flex.samples.factories.SpringFactory' not found.'.
    at flex.messaging.config.FactorySettings.createFactory(FactorySettings.java:72)
    at flex.messaging.config.MessagingConfiguration.createFactories(MessagingConfiguration.java: 114)
    at flex.messaging.config.MessagingConfiguration.configureBroker(MessagingConfiguration.java: 93)
    at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:125)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:220)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:328)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1252)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:161)
    at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtens ionProcessor.java:99)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:882)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:804)
    at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:522)
    at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:359)
    at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:337)
    at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:92)
    at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:666)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:619)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:395)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:611)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1304)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedAppl icationImpl.java:1165)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:587)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:8 32)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java: 950)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.jav a:2131)
    at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.ja va:342)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
    Caused by: flex.messaging.MessageException: Cannot create class of type 'flex.samples.factories.SpringFactory'. Type 'flex.samples.factories.SpringFactory' not found.
    at flex.messaging.util.ClassUtil.createClass(ClassUtil.java:65)
    at flex.messaging.util.ClassUtil.createClass(ClassUtil.java:47)
    at flex.messaging.config.FactorySettings.createFactory(FactorySettings.java:55)
    ... 27 more

    You can download it here:
    http://code.google.com/p/rapid-framework/source/browse/trunk/rapid-framework/src/rapid_fra mework_common/cn/org/rapid_framework/flex/messaging/factories/SpringFactory.java
    Am 16.08.2010 um 21:42 schrieb ZéSóZé:
    Sorry http://forums.adobe.com/people/PHANTOMIASA,
    >
    but I need to write what?
    >
    Where is the attached file?
    >
    Thanks for quick answer...
    >
    Best regards..
    >
    José.
    >

  • 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 ?

  • 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;
    }

  • "cannot create jbcd driver of class " for connect URL 'null'" error

    I am trying to get an application that is currently working fine on a Windows platform to work in a Linux environment.
    One thing that is different from my setup in Windows, and also one that I have no experience with, is the Linux-Ubuntu default install of Apache uses Virtual Hosts and Tomcat's equivalent multiple sessions.
    I'm running the app out of the usr/share/tomcat6/webapps/msgboard instance of Tomcat vs var/lib/tomcat6.
    I am calling the application from Apache Virtual Host port 80 using mod_jk. The application cannot run under native Tomcat because of the extensive use of PHP. Everything else in the application is working correctly including a DWR (Ajax) servlet. However I also tried a simple test app from native Tomcat and got the same results.
    I also tried connecting with jdbc:mysql://localhost:3306/msgboard?autoreconnect=true&user=root&password=password at the terminal prompt and got
    bash: jdbc:mysql://localhost/msgboard?autoreconnect=true: No such file or directory
    [1]7074
    [2] 7048
    [1] Exit 127 jdbc:mysql://localhost/msgboard?autoreconnect=true
    [2]+ Donesyslog error is
    Feb 23, 2009 3:01:51 PM org.directwebremoting.util.CommonsLoggingOutput info INFO: Exec: Online.getPosts()
    Feb 23 15:01:51 ubuntu jsvc.exec[6779]: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Feb 23 15:01:51 ubuntu jsvc.exec[6779]: Caused by: java.sql.SQLException: No suitable driverFollowing is all the pertinent setup info for reference and critique. Any suggestions would be greatly appreciated.
    Apache2.2
    Tomcat6
    JDBC
    mod_jk
    Java (not sure what ver, it's the default Ubuntu install ver.)
    PHP
    Currently I am pointing to mysql-connector-java.jar in my CLASSPATH at /usr/share/java/mysql-connector-java.jar added symlinks commons-dbcp.jar, commons-logging.jar to usr/share/tomcat6/lib
    Application is deployed from usr/share/tomcat6/webapps/msgboard
    The basic code snippet in class calling the jdbc
    WEB-INF/classes/dbLink.class
    Context ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/msgboardDB");
    WEB-INF/web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!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 id="msgboard">
    <display-name>Message Board</display-name>
    <resource-ref>
    <description>DB Connection</description>
    <res-ref-name>jdbc/msgboardDB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    META-INF/context.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <Context path="/msgboard" docBase="msgboard"
    debug="5" reloadable="true" crossContext="true">
    <Resource name="jdbc/msgboardDB"
    auth="Container"
    type="javax.sql.DataSource"
    maxActive="100"
    maxIdle="30"
    maxWait="10000"
    username="root"
    password="thePassword"
    driverClassName="com.mysql.jdbc.Driver"
    url="jdbc:mysql://localhost:3306/msgboard?autoReconnect=true"/>
    </Context>
    I also included a symlink to this in var/lib/tomcat6/config named msgboard.xml
    per instruction at http://ubuntuforums.org/showthread.php?t=430133 and have since removed it.
    my.cnf
    [client]
    port = 3306
    bind-address = 127.0.0.1
    permissions set in /etc/tomcat6/policy.d/04webapps.policy
    permission java.net.SocketPermission "127.0.0.1:3306", "connect,resolve,listen,accept";
    per instruction at http://ubuntuforums.org/showthread.php?t=430133
    other permiissions set /etc/tomcat6/policy.d/50local.policy
    grant codeBase "file:/usr/share/tomcat6/webapps/msgboard/-" {
    permission java.net.SocketPermission "127.0.0.1:3306", "connect,resolve,listen,accept";
    grant codeBase "file:/usr/share/tomcat6/webapps/msgboard/WEB-INF/classes/-" {
    permission java.io.FilePermission "/usr/share/tomcat6/webapps/msgboard/WEB-INF/classes/logging.properties", "read";
    grant codeBase "jar:file:/usr/share/tomcat6/webapps/msgboard/WEB-INF/lib/mysql-connector-java-5.1.6.jar!/-" {
    permission java.net.SocketPermission "127.0.0.1:3306", "connect,resolve,listen,accept";
    I even tried setting Tomcat Security to "no" per instruction at
    http://webui.sourcelabs.com/ubuntu/mail/user/threads/Tomcat_connecting_to_MySQL_-Ubuntu8.10_Server.meta
    http://ubuntuforums.org/showthread.php?t=1034957&highlight=apache+tomcat+jdbc
    http://ubuntuforums.org/showthread.php?t=66615
    http://ubuntuforums.org/showthread.php?t=33601&highlight=java+mysql
    http://ubuntuforums.org/showthread.php?t=430133
    http://programminglinuxblog.blogspot.com/2008/03/connection-pooling-with-java-all.html
    http://webui.sourcelabs.com/ubuntu/mail/user/threads/Tomcat_connecting_to_MySQL_-Ubuntu8.10_Server.meta

    SOLUTION
    I had to add
    <Resource name="jdbc/webappDB"
         auth="Container"
         type="javax.sql.DataSource"
            maxActive="100"
         maxIdle="30"
         maxWait="10000"
            username="root"
         password="password"
         driverClassName="com.mysql.jdbc.Driver"
            url="jdbc:mysql://localhost:3306/webapp?autoReconnect=true"/>into /var/lib/tomcat6/conf/Catalina/localhost/ webapp.xml
    Note: the above context file was created automatically after deploying the webapp. I had to add the <resource> to it.
    The context I created in usr/share/tomcat_home/webapp/META_INF/context.xml is still there and has the same <resource>.defined in it. I did not verify whether or not it still needs to be there.
    After that I had to add two policies
    /var/lib/tomcat6/conf/policy.d/03catalina.policy
    grant {
    permission java.lang.RuntimePermission "accessClassInPackage.org.apache.tomcat.dbcp.*";
    and 04webapps.policy
    permission java.net.SocketPermission "127.0.0.1:3306", "connect,resolve,listen,accept";
    That did the trick!
    Other things that were done but have not been verified as to have any bearing on this issue.
    I changed the active java from openjdk to java-sun
    I added $tomcat_home/lib:$tomcat_home/lib/mysql-connector.jar:$tomcat_home/lib/commons-dbcp.jar to PATH
    Changed CLASSPATH=usr/share/classpath:usr/share/java/commons-dbcp.jar:usr/share/java/mysql-connector.jar
    Edited by: wlbragg on Feb 25, 2009 12:58 AM
    Edited by: wlbragg on Feb 25, 2009 12:59 AM
    Edited by: wlbragg on Feb 25, 2009 1:11 AM

  • "cannot find this class" erro while creating Background Callable Object.

    Hi All,
    I am facing "cannot find this class" while creating Background Callable Object.
    I followed the following document for Creating Background Callable Object.
    [Creating Callable Objects for Background Execution|http://help.sap.com/saphelp_nwce10/helpdata/en/53/cde385301f4aa3b8e77a92cd46bff3/frameset.htm]
    After giving the fully qualified java class name in the Implementation Class Name when i press next i am getting the error.
    Please suggets me in solving this issue.
    Regards,
    S.V.Satish Kumar
    Edited by: Sathish Kumar SV on Apr 4, 2009 10:34 AM

    Hi, kavita.
    First, make sure you choosed the correct container when you created the background CO.
    Second, make sure your package name was "com.examples.bckgco" and class name was "UserDetailsCallableObject". The exception  which you got just means you entered incorrect name.
    It doesn`t relate to your program.
    Best Regards.
    Louis Huang.

  • Yet another ALERT: Cannot create class in system package

    I've searched on the forums and seen several postings and none that really explained a solution, just the initial poster replying they fixed the problem. I am new to J2ME and java in general, I'm going off a book and my first test worked fine but this one gives me the the ALERT: Cannot create class in system package, when I select the GO command. The error occurs in the commandAction method where command == go trying to create an alert message. I am using MIDP 2.0 and as I stated new to this whole thing so a detail response would be greatly appreciated and what I need to do to resolve this for now and the future.
    Source code for TextBoxTest.java :
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class TextBoxTest extends MIDlet implements CommandListener
       private TextBox textBox;
       private Alert alert;
       private Command quit;
       private Command go;
       public TextBoxTest()
          // Setup the UI
          textBox = new TextBox("Enter Name", "", 20, TextField.ANY);
          go = new Command("Go", Command.SCREEN, 1);
          quit = new Command("Quit", Command.EXIT, 2);
          textBox.addCommand(go);
          textBox.addCommand(quit);
          textBox.setCommandListener(this);
       protected void startApp() throws MIDletStateChangeException
          Display.getDisplay(this).setCurrent(textBox);
       protected void pauseApp()
       protected void destroyApp(boolean unconditional)
            throws MIDletStateChangeException
       public void commandAction(Command command, Displayable displayable)
          try
             if (command == quit)
                destroyApp(true);
                notifyDestroyed();
             if (command == go)
                alert = new Alert("", "Greetings " + textBox.getString(), null,
    AlertType.CONFIRMATION);
                Display.getDisplay(this).setCurrent(alert);
          catch (MIDletStateChangeException me)
             System.out.println(me + " caught.");
    }

    Ok so my problem isn't with the code it's with the build order. I guess I needed to state that I was following a book and trying to compile and preverify through command line and not using the toolkit or an IDE. So if I use NetBeans 5.0 or the Wireless Toolkit 2.5 I can compile fine.
    So my new question is, can someone show me the steps to build through command line? This is MIDP 2.0.

Maybe you are looking for

  • Network Security IIS 7.5 FTP & Managed Firewall

    Hello The scenario is that we have an IIS 7.5 Windows 2008 R2 box ("IIS Box"), and on that box we want to configure a single FTP site. The FTP site will use the Basic Security option (no Anonymous access) The IIS Box sits behind a wholly-independent

  • FCP 5 on mac mini

    Hi -- can I run FCP 5 on a 2.26Ghz Intel Core 2 Duo Mac Mini w/Snow Leopoard?

  • Trouble downloading Java Studio Enterprise

    Hi. I am trying to download the software, but the browser hangs everytime I click download. I tried using Firefox, IE and Netscape 4.7. Anyone have any ideas? I would like to work in the Window IDE, but could move ot a Sun box if this is a problem. T

  • InDesign Missing JBX and other plug ins?

    Downloads fine and CC tells me all up to date but at launch InDesign says it is missing JBX. The plugin folder is almost empty. I have unistalled and re-installed several times. Can't find the plugins.

  • Made Link with iTunes Link Maker. Want link to appear in Google search results. What next?

    Hey all, Just a quick question following some exposition. I have a book sitting in the iTunes store, and just came across the Link Maker feature to, well, make a link for it. I made a link, which I'd like to have appear in Google search results. In o