Mxml Servlet initialisation problem

Having installed the flex data services express edition with
tomcat5.5, the following exception occurs every time I attempt a
*.mxml request:
java.lang.NoClassDefFoundError
flex.webtier.util.ServiceUtil.setupFlexService(ServiceUtil.java:63)
flex.webtier.server.j2ee.MxmlServlet.init(MxmlServlet.java:57)
flex.bootstrap.BootstrapServlet.init(BootstrapServlet.java:87)
It might help in tracing the problem to know what class is
being referred to that cannot be found. Any ideas?

It sounds like you don't have the webtier correctly
installed... the /WEB-INF/flex-bootstrap.jar
looks for classes in the /WEB-INF/flex/jars/... folder. Did
you perhaps try
to upgrade and old Flex application and only copied
/WEB-INF/lib?
Hello Tomsky01,
> Having installed the flex data services express edition
with
> tomcat5.5, the following exception occurs every time I
attempt a
> *.mxml request:
>
> java.lang.NoClassDefFoundError
>
flex.webtier.util.ServiceUtil.setupFlexService(ServiceUtil.java:63)
>
flex.webtier.server.j2ee.MxmlServlet.init(MxmlServlet.java:57)
>
flex.bootstrap.BootstrapServlet.init(BootstrapServlet.java:87)
> It might help in tracing the problem to know what class
is being
> referred to that cannot be found. Any ideas?
>

Similar Messages

  • Servlet initialisation problem

    Hi! I am very new to servlet and would appreciate your assistance in this problem.
    I am using j2sdk1.3.1_08, Tomcat 4.1.27, Log4j 1.2.28
    I would like to initialise log4j using servlet. Following are the codes I used. Somehow, this servlet does not get initialised as there are no logs generated. But if I run runLog.jsp following by test.jsp, it works. Do you know why?
    ------ runLog.jsp ---
    <%@ page import="org.apache.log4j.*"%>
    <%
    Logger logger = Logger.getLogger(getClass());
    String LogConfigFilePath = getServletContext().getRealPath("/")+"WEB-INF/classes/config/log4j.properties";
    BasicConfigurator.resetConfiguration();
    PropertyConfigurator.configure(LogConfigFilePath);
    logger.info("runLog successful");
    %>
    ------ WEB-INF/class/com/log/Log4jInit.java ----
    package com.log;
    import org.apache.log4j.*;
    import javax.servlet.http.*;
    public class Log4jInit extends HttpServlet {
    public void init() {
    String LogConfigFilePath = getServletContext().getRealPath("/") + "config//log4j.properties";
    BasicConfigurator.resetConfiguration();
    PropertyConfigurator.configure(LogConfigFilePath);
    public void doGet(HttpServletRequest req, HttpServletResponse res) {}
    --- web.xml ---
    <servlet>
    <servlet-name>log4j-init</servlet-name>
    <servlet-class>com.log.Log4jInit</servlet-class>
    <init-param>
    <param-name>log4j</param-name>
    <param-value>WEB-INF/classes/config/log4j.properties</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    --- test.jsp ---
    <%@ page import="org.apache.log4j.*" %>
    <% Logger logger = Logger.getLogger("test.jsp");
    logger.info("befor say hi");
    %>
    <h3> Hi</h3>
    <% logger.info("after say hi");%>

    Thank you. I have found the problem. It's the extra info in the path which is not required.

  • Servlet Compilation Problem !

    Hi,
    I am just starting to learn servlets and I got problem in compiling them. I got compilation error in
    import javax.servlet.*;statement. Seems that the compiler cannot find the servlet package. I got J2EE 1.4 beta installed on my machine but there is no servlet.jar package. I am using J2SDK 1.4.1_02, J2EE 1.4 beta and Tomcat 4.1.24.
    Can anyone help me with my servlet compilation problem?
    Thanks in advance!
    Josh

    servlet.jar is here :
    <tomcatdir>\common\lib
    add it to your compiler classpath

  • Servlet chaining problem..

    import java.io.*;
        import javax.servlet.*;
        import javax.servlet.http.*;
        public class Deblink extends HttpServlet {
          public void doGet(HttpServletRequest req, HttpServletResponse res)
                                       throws ServletException, IOException {
            String contentType = req.getContentType();  // get the incoming type
            if (contentType == null) return;  // nothing incoming, nothing to do
            res.setContentType(contentType);  // set outgoing type to be incoming type
            PrintWriter out = res.getWriter();
            BufferedReader in = req.getReader();
            String line = null;
            while ((line = in.readLine()) != null) {
              line = replace(line, "<BLINK>", "");
              line = replace(line, "</BLINK>", "");
              out.println(line);
          public void doPost(HttpServletRequest req, HttpServletResponse res)
                                        throws ServletException, IOException {
            doGet(req, res);
          private String replace(String line, String oldString, String newString) {
            int index = 0;
            while ((index = line.indexOf(oldString, index)) >= 0) {
              // Replace the old string with the new string (inefficiently)
              line = line.substring(0, index) +
                     newString +
                     line.substring(index + oldString.length());
              index += newString.length();
            return line;
    What is pre request fo above code to work.
    I had tried this many time but it is not working, what will be calling servlet look like

    And can you explain why your title is "Servlet chaining problem"?

  • Testo 176 - Serial initialisation problem

    I am trying to get the Testo 176P1 talking with labview 2011.
    I have downloaded the TestoToolbox and also got an update from the German support with a Toolbox2.exe installer.
    Anyhow I am unable to get through the initialisation process with the tcddka.dll from Testo (V1.2).
    I do have a simple question: What device name do you feed to the Init procedure?
    1) the name you can see in devicemanager?  in my case "testo 175-176-2010" --> Exception occured in tcddka: Invalid DeviceName in testo serial init.vi
    2) but "testo175-176-2010" gives me --> "Exception occured in tcddka: The instrument is not responding in testo serial init.vi"
    3) or the general "testo175-177" results in  "Exception occured in tcddka: The instrument is not responding in testo serial init.vi"
    Seems I did set the COM-port correctly!
    + the testo software is able to connect with the device without a problem.
    in earliers posts about a Testo Gas detector, I saw characters being added and modifications being made in comsoft.cat file... ?
    Any suggestions are welcome!
    Solved!
    Go to Solution.
    Attachments:
    testo_init.GIF ‏9 KB

    These are most likely the possible devicenames which can be connected:
    Type
    Communication library
    testo174
    ftd2xx
    testo174-2010
    ftd2xx
    testo175-176-2010
    ftd2xx
    testo175-177
    usbser
    testo435-635-735
    ftd2xx
    My initialisation problem was resolved after unplugging & reconnecting the device!
    Attached Vi works without error reporting but I still do not get the pressure value displayed on the screen of the Testo 176...
    Attachments:
    testo test.vi ‏38 KB

  • Tomcat Servlet Security Problem? : Start Excel with NJAWIN - COMObjects

    I get an exception when I start my programm as servlet , as application it works just fine (when I start it as Servlet in the internal Tomcat from JBuilder it also works fine).
    Application app = new Application(Application.progID); // interfaces built with java2com for Excel
    com.develop.jawin.COMException: 8000ffff: CoCreateInstance for "{024500-00-0000-c000-000000000046}" failed
    at com.develop.jawin.win32.Ole32.CoCreateInstance(Unknown Source)
    at com.develop.jawin.win32.Ole32.GetFromProgID(Unknown Source)
    at com.develop.jawin.DispatchPtr.<init>(Unknown Source)
    at excel2pdf.Excel._Application.<init>(_Application.java:31)
    Actually Excel is started but as SYSTEM and not as my Username. Perhaps there's a problem with the security policy, I already gave all rights to catalina for my whole projekt( each directory of it). Have smb already had this problem? Any Ideas?

    Thanks for answering
    In my case I think I cannot use POI because I need Excel
    and a Virtual Printer , so I can convert excel files with exactly the same
    format to PDF. POI is suppose better idea for creating or manipulating
    OpenOffice files (they are working together with OO on file formats),
    and unfortunately OpenOffice doesnt work fine with charts (I already had
    this solution, openoffice-server and Uno ).
    It must be smth with Tomcat-Configuration or security, because my
    programm is working with the internal tomcat-server of JBuilder, and
    as application too. In both cases Excel is started with my username and
    not SYSTEM (my tomcat server is started as service, perhaps thats why
    by starting excel from my servlet Excel is by user - SYSTEM).

  • Applet-Servlet Communication problem EOFException

    Hi! i´ve been searching and searching through forums because it seems this problem is very common, but none of the solutions i´ve seen so far suits me, so i´m here looking for some help because i´ve been stuck one week with this. First of all sorry if my english isn´t the best... i´m a bit rusty...
    Well, i had some code that worked perfectly, but i needed to perform some changes because i needed the servlet to send more info to the applet, and here started the problems, when i made the changes it started to throw EOFException when i was trying to read the InputStream, and furthermore when i came back to the original code it started to throw the exception in the same place too
    So here i am... don´t know what to do now and i entrust to you to give me some tips.
    Here comes some code. This is the original code, the one that runned but it doesn´t run right now
    Applet:
    public ListasComponentesSeleccionables cargarListasComponentes( ) throws IOException, ClassNotFoundException {
              String serv = "/Desaladora/cargarListasComponentesApplet.do";
              String host = Principal.documentBase.getHost( );
              URL direccion = new URL( "http", host, 8080, serv );
              // Create conection
              URLConnection connection = direccion.openConnection( );
              connection.setDoInput( true ); 
              connection.setDoOutput( true );
              connection.setUseCaches( false );
              connection.setRequestProperty( "Content-Type", "application/x-java-serialized-object" );
              ObjectOutputStream output;
              output = new ObjectOutputStream( connection.getOutputStream( ) );
              output.writeObject( new Boolean(true) );
              output.flush( );
              output.close( );
              ObjectInputStream input = new ObjectInputStream( connection.getInputStream( ) ); //<-- Here is the problem
              ListasComponentesSeleccionables response = new ListasComponentesSeleccionables( );
              response = ( ListasComponentesSeleccionables ) input.readObject( );
              return response;
         }Servlet:
    ublic class CargarListasComponentesAppletAction extends Action {
    public ActionForward execute(     ActionMapping mapping,
                                                     ActionForm form,
                                                     HttpServletRequest request,
                                                     HttpServletResponse response )
                            throws ServletException, IOException, Exception  {
              InitialContext context = new InitialContext();
              SensorManagerService sensor_service;
              ActuatorManagerService actuator_service;
              Globals.LOGGER_SECURITY.debug( "Entering ACTION 'CargarListasComponentesAppletAction'" );
              response.setContentType("application/x-java-serialized-object");
              try
                   ObjectInputStream bufferentrada = new ObjectInputStream(request.getInputStream());
                   Boolean peticionOK = (Boolean)bufferentrada.readObject();
                   ObjectOutputStream buffersalida = new ObjectOutputStream(response.getOutputStream());
                   sensor_service = ( SensorManagerService ) context.lookup( "desaladora/SensorManagerServiceBean/local" );
                   ArrayList<AlarmConnectedSensorDTO> sensorList = sensor_service.findAllSensorsToAlarms();
                   actuator_service = ( ActuatorManagerService ) context.lookup( "desaladora/ActuatorManagerServiceBean/local" );
                   ArrayList<AlarmConnectedActuatorDTO> actuatorList = actuator_service.findAllActuatorsToAlarms();
                   buffersalida.writeObject( crearListasSeleccionables(sensorList, actuatorList) );
                   buffersalida.flush();
              catch(Exception e)
                   System.out.println("Error en la trasmision de datos");
              return null;
         private ListasComponentesSeleccionables crearListasSeleccionables(ArrayList<AlarmConnectedSensorDTO> sensorList,
                    ArrayList<AlarmConnectedActuatorDTO> actuatorList) {
              Vector<Integer> vectorSensores = new Vector<Integer>();
              Vector<Integer> vectorActuadores = new Vector<Integer>();
              for(AlarmConnectedSensorDTO sensor : sensorList) {
                   vectorSensores.add(sensor.getIdSensor( ));
              for(AlarmConnectedActuatorDTO actuator : actuatorList) {
                   vectorActuadores.add(actuator.getIdActuator( ));
              ListasComponentesSeleccionables listasComponentesSeleccionables =
                                  new ListasComponentesSeleccionables(vectorSensores, vectorActuadores);
              return listasComponentesSeleccionables;
    }i´ve been running some test in another computer, and this code simply works, but it doesn´t work in the machine i usually work.
    Maybe someway the stream get corrupt? the info i´ve been trying to send and started throwing the exception may still be in the stream? I don´t know what to think right now.
    Hope someone has any idea, thankyou.

    I dont see the problem. However, I suggest you change this;
    System.out.println("Error en la trasmision de datos"); t
    to e.printStackTrace() to see what it is doing when it stops working.
    I also suggest peppering your code with System.out.println() statements to see what it is doing just before stopping.
    Also, try your code with a brand new file with only a few characters in it. If it works, add to it some of your originial file content until it stops working. This way, you can determine if its the file size that is causing the crash or something in the file content. If all else fails, study java I/O and try some other way to read/write the file. You can also try a different browser. If it works, its the browser. Still having problems? Create a new project with a simple applet and file read/write program and get that working. That way, all the other stuff in your original project isn't in the way.

  • Servlet mapping problem in Resin, very weird!

    ENV: resin 2.1.6 on windows 2000
    1, I copied all the files and folders in $resin/doc/java_tut to $resin/webapps
    2, I did a little change to $resin/conf/resin.conf
    In the old resin.conf, there is a lot about the '/' webapp.
    <web-app id='/'>
    <classpath id='WEB-INF/classes'
    source='WEB-INF/classes'
    compile='true'/>
    </web-app>
    I replaced it just with
    <web-app id='/'/>
    3, I tested the 'java_tut' webapp
    http://localhost:8080/java_tut/servlet/example.servlet.basic.MappingServlet
    works well.
    http://localhost:8080/java_tut/exact
    works well, too.
    4, Then I tested the '/' webapp
    http://localhost:8080/servlet/example.servlet.basic.MappingServlet
    works well.
    but
    http://localhost:8080/java_tut/exact
    returns error code 404
    what's the problem?

    don't you need to get rid of the java_tut bit?

  • How to send Oracle rowid to servlet? | Problem with national characters.

    There is same possibility how to send rowid to servlet?
    I have now definition like this:
    <af:image source="/imageservlet?Par1=#{bindings.Col1.inputValue}"/>
    But If column contents national characters, servlet methods obtained changed these characters.
    My idea is to use not primary key for row, but use oracle rowid. It is simply possible?
    Use something like this:
    <af:image source="/imageservlet?Rowid=#{bindings.Rowid}"/
    Or Do you have ideas how to solve problem with national characters ?
    Thanks
    FiL

    Hi,
    Although your workaround works.
    I think this is a simple encoding problem.
    I simply need to make sure all parameters and pages are encoded with a char set which contains the national characters you mentioned.
    This is a bit dependent on the exact technology your using, but most can be done via the web.xml:
      <jsp-config>
          <jsp-property-group>
              <url-pattern>*.jsp</url-pattern>
              <page-encoding>UTF-8</page-encoding>
          </jsp-property-group>
      </jsp-config>     This forces all JSP pages to be encoded in UTF-8
    Adding the following parameter sometimes helps as well, although I think this one is a bit dated:
    You said your using a servlet so your servlet needs a similar block for its pattern
      <context-param>
        <param-name>PARAMETER_ENCODING</param-name>
        <param-value>UTF-8</param-value>
      </context-param>If you want to be 100% sure the encoding is set right make sure thepages contain:
    <%@ page contentType="text/html;charset=utf-8"%>Or depending on your view technology the syntax can be a bit different
    -Anton

  • Servlet configuration problems ..

    Hi
    I am a new member starting with Java Servlets:
    I have a problem with Configuring the Servlet on the J2EE Application server.
    Here is the Servlet code ...
    package mypackage;
    public class ShowParameters extends HttpServlet {
        public void doGet(HttpServletRequest request, HttpServletResponse response)         throws ServletException, IOException { .... }And this is the web.xml file
        <servlet>
            <servlet-name>ShowParameters</servlet-name>
            <servlet-class>mypackage.ShowParameters</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>ShowParameters</servlet-name>
            <url-pattern>/ShowParameters</url-pattern>
        </servlet-mapping>And the HTML file is ....
    <FORM ACTION="ShowParameters">
        First Parameter: <INPUT TYPE="TEXT" NAME="param1"><BR>
        Second Parameter: <INPUT TYPE="TEXT" NAME="param2"><BR>
        Third Parameter: <INPUT TYPE="TEXT" NAME="param3"><BR>
        <CENTER>
            <INPUT TYPE="SUBMIT">
        </CENTER>
    </FORM>I have set the CLASSPATH variable t /build/mypackage/
    I get two erros:
    Wrapper cannot find servlet class ..
    ClassNotFound exception ...
    Also, how do I compile " the servlet class file with the line; package hello; " with the package name
    I would appreciate any help ..
    Thanks
    N

    I am trying to invoke a servlet from an HTML page.
    Method 1
        <FORM ACTION="ThreeParams" METHOD="GET">
            First Parameter: <INPUT TYPE="TEXT" NAME="param1"><BR>
               <CENTER>
            <INPUT TYPE="SUBMIT">
        </CENTER>
        </FORM>Method 2
    <td><a href="Threeparams">Execute</a></td>Method 1 does not work but Method 2 does. But Method 2 does not transmit param1 to the server.
    Any thought on how to get it correct?
    Rgds
    N

  • Servlet side problem

    hi there,
    i have managed to get my mipd program talking 2 a tomcat server, but i have run into the following problem:
    the servlet has at initiation a buffer called int l = 0; and increment the l value by 1 , this is fine but when i get another phone 2 connect to the server, i want the value of l to increment to 2, instead the value resets to 0 and then increments by 1 giving me the final value of 1 yet again on the second phone
    here is the code:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class testing3 extends HttpServlet{
    int l;
    public testing3(){ l=0;}
    public void doPost(HttpServletRequest req,HttpServletResponse res) throws IOException,ServletException{
    InputStream in = req.getInputStream();
    PrintWriter out = res.getWriter();
    String rankstring = "sent by server";
    int requestlength = req.getContentLength();
    if(l==0){
    if(requestlength > 0 ){
    for(int i=0;i<requestlength;i++){
    int c = in.read();
    if(c==-1)break;
    l++;
    else if(l==2)
    out.write(rankstring);
    System.out.println("l value is" + l);
    public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException,ServletException{
    doPost(req,res);
    how do i get around this problem?advice will be greatly appreciated
    regards

    i think you want to number of hits kind of value...
    make that variable static
    you should get the value that you want
    [email protected]

  • Servlet intercommunication problem

    Hi,
    I have a problem regarding servlet intercommunication.
    What I m doing is : I have an HTML form in which user enters some data and submits it. Servlet_1 is called , it gets all the parameters and displays all data in the form of an html form again. Now, if the user clicks on "SAVE" button , only then Servlet_2 should get called and that data should be stored in database .
    I m having problem while saving data.I just lose track of data entered by the user somewhere between the servlets.
    How should I get the data enetered by the user previously, and in what form I should store it to access it later on through any servlet?
    Please help.
    Regards
    Shweta

    I suggest other than showing the data on the HTML returned by Servlet_1, you created hidden values of the data submitted into the displayed form. In this way, the data would be resent to Servlet_2 when Save is pressed.
    Alternatively, you can use a Session to store the contents of the submitted information. (this will enable you to access it later on any servlet)

  • Servlet Execution Problem

    I have installed Apache Tomcat/6.0.10. Can you please tell me what is the process for running servlet in it. There is no any problem in the compilation of servlet.
    Rakesh Kumar

    see this thread
    Don't just re-post the question because you didn't like the answer you got before. Looks like a perfectly acceptable answer to me

  • Servlet declaration problem

    i've got 2 servlets declared in my web.xml
    <servlet-mapping>
        <url-pattern id='/FindPictureServlet'/>
        <servlet-name id="be.econocom.ecopeople.http.FindPictureServlet"/>
      </servlet-mapping> 
    <servlet-mapping>
        <url-pattern id='/FindRouteServlet'/>
        <servlet-name id="be.econocom.ecopeople.http.FindRouteServlet"/>
      </servlet-mapping>FindPictureServlet on the detailperson.jsp was already done by someone else.
    I have to use a same servlet to find a route on another page.
    i implement it.
    I put the 2 servlet calls on the detailperson.jsp and they work.
    on my new page not ...
    From where comes this problem ??
    THX vinch

    servlet.jar is here :
    <tomcatdir>\common\lib
    add it to your compiler classpath

  • Servlet/jsp problem

    hello i am using netbeans to create a simple login system using a servlet and a jsp. the jsp has the following code:
    <form action="login" method="get">
    <br>UserID <input type="text" name="userID" size="20" maxlength="20">
    <br>Password <input type="password" name="password" size="20" maxlength="20">
    <br><input type="submit" value="Login">
    </form>
    the servlet name is login and located under src/java/login.java
    however when i run it its just giving me this msg that it cannot find the servlet:
    type Status report
    message Servlet login is not available
    description The requested resource (Servlet login is not available) is not available.
    does anyone know what the problem might be?

    How have you defined this servlet in your web.xml ?
    For example it should be something like this:
        <servlet>
            <servlet-name>SomeServletAlias</servlet-name>
            <servlet-class>servletpackagename.ServletClassName</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>SomeServletAlias</servlet-name>
            <url-pattern>/servleturlpattern</url-pattern>
        </servlet-mapping>If you have the URL Pattern as: /servleturlpattern , then in your form's action put action="/servleturlpattern" and not action="servleturlpattern"
    Where ever you reference the servlet, the URL for the servlet should match exactly as you specify it in the URL-Pattern. Otherwise it wont work.

Maybe you are looking for

  • Photos from an Ipod to computer harddrive

    Hi Everyone, First time on here, I have an IPOD 5 gen, My IPOD and ITUNES were on another computer which has crashed. I have uploaded ITUNES on my new computer but having problems transfereing the songs and photo's from IPOD to new ITUNES libary, Can

  • "Call Activity" task not available in Jdeveloper BPM 11G Beta2 ?

    Hi, The "Call Activity" task is no longer available in Jdeveloper component palette (as of 11.1.1.3.PS2_GENERIC_100302.2020.5629) But this task is still available in BPM Composer (BPM 11G Beta 2 same delivery as Jdeveloper). We are currently in the m

  • My photos wrer gone from my iphone

    The photos have been gone from the album but  I can see them taking place from the memory. How can get them back to the album?? Thanks Sulaiman

  • System Crashed and I lost iTunes Playlist

    After all my items were restored on my computer and I downloaded iTunes again my playlists disappeared.  Unfortunately my iPod Nano was new and I did not have the opportunity to transer to my iPod.  Can the playlist be recovered or must I start from

  • Dynamic select with select-opitons

    Hi all, i have a selction screen with a Select-options : S_monat for bkpf-monat. Depending on what the user has entered in that selection i need to select the field WOG001 to WOG016 from table COSP. for example if user has entered Period '01' to Peri