Servlet giving classnotfoundexception

          hello all
          i have a servlet(xmlservlet.java) that picks up a xml fil and calls another java class to parse it(xmlparser.java). i am calling the servlet froma html file. every time i call it i get the following errors :
          Error loading servlet: myserver.servletclasses.XmlServlet
          java.lang.ClassNotFoundException: myserver.servletclasses.XmlServlet
               at weblogic.boot.ServerClassLoader.findLocalClass(ServerClassLoader.java, Compiled Code)
          Servlet failed with Exception
          javax.servlet.ServletException: Servlet class: myserver.servletclasses.XmlServlet could not be loaded - the requested class wasn't found in the classpath
          C:\weblogic\myserver\servletclasses
          i have included the weblogic bin dir. in my classpath. any ideas??
          

If your servlet class file is named "xmlservlet.class", but you are
          requesting "XmlServlet" in your code, it won't find it.
          Compare the location of the class file against your class path. Also, did
          you register the servlet in weblogic.properties?
          "venkat" <[email protected]> wrote in message
          news:39db045f$[email protected]..
          >
          > hello all
          > i have a servlet(xmlservlet.java) that picks up a xml fil and calls
          another java class to parse it(xmlparser.java). i am calling the servlet
          froma html file. every time i call it i get the following errors :
          > Error loading servlet: myserver.servletclasses.XmlServlet
          > java.lang.ClassNotFoundException: myserver.servletclasses.XmlServlet
          > at weblogic.boot.ServerClassLoader.findLocalClass(ServerClassLoader.java,
          Compiled Code)
          >
          > Servlet failed with Exception
          > javax.servlet.ServletException: Servlet class:
          myserver.servletclasses.XmlServlet could not be loaded - the requested class
          wasn't found in the classpath
          > C:\weblogic\myserver\servletclasses
          >
          > i have included the weblogic bin dir. in my classpath. any ideas??
          

Similar Messages

  • Calling a servlet giving an XML stream

    Hi,
    Can you tell me the different ways to call a java servlet giving a <XML> stream ?
    Thanks

    Can you tell me if the following code is in the right way ?
    XMLTest( HttpServletRequest requete ){
    SAXParser parser = new SAXParser( );
    parser.setContentHandler (this);
    try {
    parser.parse( new InputSource( requete.getReader() ) );
    catch (SAXException e) {
    System.err.println (e);
    catch (IOException e) {
    System.err.println (e);
    And can you tell me how to test ? I mean, how to send a http post or get th the servlet that will include the parser ?

  • Urgent PTG on APACHE/NT Servlet Error: ClassNotFoundException: oracle.jsp.JSPServlet

    Hi all,
    I try to install PTG 1.0.2 with apache server (version 1.3.9 with jserv 1.1) on windows NT. I follow install instructions and when I try to access test page (test.jsp), the page colud not be displayed, and the following error is added in the mod_jserv.log file :
    (error) ajp12: Servlet Error : ClassnotFoundException : oracle.jsp.JSPservlet.
    All input are welcome ?
    null

    Hello!
    I've got the same problem and I think it has something to do with the jserv.conf file.
    According to the installation guide, the following line should be added:
    ApJServAction .jsp /servlets/oracle.jsp.JspServlet
    In the same file I have the following line:
    ApJServMount /servlets /root
    So /servlets is mounted on /root. I don't knoww what this /root pints to, but I think the problem is that this path does not lead to oracle.jsp.JspServlet.
    Has ANYONE yet solved this problem?

  • Servlet Error: ClassNotFoundException: oracle.jsp.JSPServlet

    Hi,
    I try to install PTG 1.0.2 with apache server (1.3.9 with jserv 1.1) on windows NT. I follow install instructions and when I try to access test page (test.jsp), the page colud not be displayed, and the following error is added in the mod_jserv.log file :
    (error) ajp12: Servlet Error : ClassnotFoundException : oracle.jsp.JSPservlet.
    What can I do ?
    All input are welcome ?

    Hello!
    I've got the same problem and I think it has something to do with the jserv.conf file.
    According to the installation guide, the following line should be added:
    ApJServAction .jsp /servlets/oracle.jsp.JspServlet
    In the same file I have the following line:
    ApJServMount /servlets /root
    So /servlets is mounted on /root. I don't knoww what this /root pints to, but I think the problem is that this path does not lead to oracle.jsp.JspServlet.
    Has ANYONE yet solved this problem?

  • Ajp12: Servlet Error: ClassNotFoundException:

    I get this error in the mod_jserv.log
    "(ERROR) ajp12: Servlet Error: ClassNotFoundException: BONDS.MENU_BONDS.show"
    This error is caused by http://www.myserver.com/servlet/BONDS.MENU_BONDS.show
    which returns "The page cannot be found".
    Then when I try http://www.myserver.com/pls/portal30/BONDS.MENU_BONDS.show?
    it works.
    I really need to have the servlet working because I lost some functionality.
    Any help would great!
    Thanks.

    I suppose you have to check your NT CLASSPATH variable. It should contain all the classpaths for JDK, JAR & ZIP files correctly.
    If it doesn't mail me.
    APK

  • (ERROR) ajp12: Servlet Error: ClassNotFoundExcept

    When i try to reach an URL http://10.20.108.3/servlets/ThreeParamsForm.htm, i receive the following error : [05/11/2002 15:27:53:211] (ERROR) ajp12: Servlet Error: ClassNotFoundException: ThreeParamsForm.htm.
    Can anyone help me ?
    Thanks in advance

    I am assuming you are using apache/tomcat.
    The url doesn't look right. Usually they look like
    http://[ip address]/[web app]/servlet/[servlet name]
    If you have used servlet-mapping to map ThreeParamsForm.htm to a servlet then you should be able to use
    http://[ip address]/[web app]/ThreeParamsForm.htm
    where [web app] is a directory under TOMCAT_HOME/webapps

  • Servlet filter - ClassNotFoundException

    Hi,
    I am trying to create and deploy a servlet filter in portal irj.
    Here is what I have done:
    1. Created filter class(TestFilter.java).
    2. Created a jar file for the above TestFilter.class.
    3. Copied the jar file to C:\usr\sap\DW1\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\lib folder
    4. Modified the web.xml file under C:\usr\sap\DW1\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF folder with the following lines:
    <filter>
    <filter-name>TestFilter</filter-name>
    <display-name>TestFilter</display-name>
    <description>
    </description>
    <filter-class>com.test.TestFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>TestFilter</filter-name>
    <url-pattern>/irj/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>TestFilter</filter-name>
    <servlet-name>prt</servlet-name>
    </filter-mapping>
    5.  I did reference the library in Visual Admin:  library:TestFilter
    6.  Also created the directory under ext/TestFilter and copied the jar file here.
    7. Restarted the engine.
    Exception the logs
    Cannot load filter <TestFilter>  The error is java.lang.ClassNotFoundException:  com.test.TestFilter
    Loader Info----
    I don't see my .jar displayed in the loader info.  irj didn't like my .jar.
    Any additional changes for irj to make it understand the new .jar file for classloader. 
    Appreciate your response.
    Message was edited by:
            Anant

    Hi I was wondering if you had any luck with this issues.
    Thank you.

  • Servlet applet  : ClassNotFoundException

    i m using jrun for testing servlet
    i have created a servlet and it prints the following
    out.println("<html>");
    out.println("<body>");
    out.println("<applet code=\"MyApplet\" width=\"200\" height=\"200\"></applet>");
    out.println("</body>");
    out.println("</html>");
    but when this page load in browser it shows an error
    ClassNotFoundException is throwns
    i have place MyApplet.class in root directory of jrun as well as root\web-inf\classes
    but it didn't work

    Specify the codebase in the applet tag.

  • SQL statement in servlet giving error

    Please let me know if I need to post this on a different forum, but I thought it was applicable to here.
    First, let me preface this post by saying I've inserted hardcoded values at the DB (Oracle) level and it worked just fine, so most of the statement is sound. All the values inserted properly when testing it that way. Also, I've printed the SQL statement to the console and all looks ok there, too.
    Out of this, I'm getting an error citing the following:
    java.lang.ArrayIndexOutOfBoundsException
    also occasionally getting the following error:
    java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state
    In my servlet, I'm attempting the following:
    prior to the insert statement, I'm retrieving the last row number to start the increment from as in:
    Statement stmt = connection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
    ResultSet rst = stmt.executeQuery("select CHANGE_CTRL_ID from CHANGE_CONTROL_USER order by CHANGE_CTRL_ID");
         rst.last();
         int lastRowNum = Integer.valueOf(rst.getString("CHANGE_CTRL_ID")).intValue();
         rst.close();
         stmt.close();
    ------------ then ------------------------------------------------
    String preparedQuery = "INSERT ALL " +
    "INTO CHANGE_CONTROL_USER " +
    "(CHANGE_CTRL_ID,REQUESTOR_NAME,REQUESTOR_EMAIL,BUS_CONTACT,DEPT,LOCATION,PHONE_NUM,DATE_REQ," +
    "BUSVP,VP_PHONE,VP_DATE,BRANCH,PRIORITY,OPS_MAN_CHG,OPS_MAN_PPCHAP,TRAIN_REQ," +
    "EXIST_SYS_FLD_CHG,BUS_RULES_CHG,NEW_CODING,NEW_BUS_RULE,NEW_SYS_FIELD,REQ_TYPE_OTHER,REQ_OTHER_SPECIFY,IMPACT_RE_COLL," +
    "IMPACT_DEF_LM,IMPACT_DEF_REC_NRE,IMPACT_AUDIT,IMPACT_PERS_COLL,IMPACT_DEF_FCL,IMPACT_BUS_TECH,IMPACT_LEGAL,IMPACT_PRIV_COLL," +
    "IMPACT_DEF_BKRUP_RE,IMPACT_DEC_SUPT,IMPACT_RISK_MGT,IMPACT_DEF_REO,IMPACT_DEF_BKRUP_NRE,IMPACT_QUALSVCS,IMPACT_INTERNAL_CTRL,IMPACT_DEF_WKFL," +
    "IMPACT_DEF_WKOUT,IMPACT_TRAIN_TPI,IMPACT_OTHER,IMPACT_DEF_MGT,IMPACT_DEF_TAX,IMPACT_VEND_MGT,IMPACT_DEF_CTRL,IMPACT_DEF_REC_RE," +
    "IMPACT_BUS_ADMIN,IMPACT_OTHER_SPECIFY,CHANGE_IN_KPMG,CHANGE_IN_OTS,CHANGE_IN_NFR,CHANGE_IN_ARR,CHANGE_IN_BRR, CHANGE_IN_PROC_IMP," +
    "CHANGE_IN_INT_CITI_POL,CHANGE_IN_OTHER,CHANGE_IN_OTHER_SPECIFY, CHANGE_INIT_DETAILS,REQ_INFO_DESCRIPT,REQ_INFO_EXPLAIN_CURRBUS,REQ_INFO_EXPLAIN_PROPOSED,REQ_BEN_PROP_BENEFIT,REQ_BEN_FIN_IMPLEMENT," +
    "REQ_BEN_OPS_IMPLEMENT,YES_FORM,VULN_ASSESS, CBA_CHG, RISK_ACCEPT,MARSITEM, GCCRFP, APP_COMPL_QUES,CAP_EXPEND)" +
    " VALUES (changecontrol_user_seq.nextval,?,?,?,?,?,?,to_date(?,'YYYY-MON-DD HH:MI:SS'),?,?,to_date(?,'YYYY-MON-DD HH:MI:SS'),?,?," + "?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,"
    + "?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"
    + "INTO CHANGE_CONTROL_ADMIN "
    + "(AID,CHANGE_CTRL_ID,ADMNAME,CLOSEDATE,ACTIVE)"
    + "VALUES (changecontrol_admin_seq.nextval, changecontrol_user_seq.currval,NULL, NULL, -1)"
    + "SELECT object_name AS REQUESTOR_NAME FROM all_objects where rownum <= 1;";     
    also I've declared all the respective strings for the PreparedQuery statement.
    If you need to see those, here they are:
    PreparedStatement pstmt = connection.prepareStatement(preparedQuery);
                   // stmt = connection.stmt("INSERT INTO RMIS_USER VALUES (?,?,?,?,to_date(?,'YYYY-MON-DD HH:MI:SS'),?,?,?,?,to_date(?,'YYYY-MM-DD HH:MI:SS')");
              pstmt.setInt(1,++lastRowNum);
              pstmt.setString(2,reqName);
              pstmt.setString(3,reqemail);
              pstmt.setString(4,buscont);
              pstmt.setString(5,reqDept);
              pstmt.setString(6,reqLocale);
              pstmt.setString(7,phone_num);
              pstmt.setDate(8,dtreq);
              //pstmt.setCalendar(8,rtnow);
              pstmt.setString(9,busvp_email);
              pstmt.setString(10,vpphone);
              pstmt.setDate(11,dt);
              pstmt.setString(12,branch);
              pstmt.setString(13,priority);
              pstmt.setString(14,opsmanchg);
              pstmt.setString(15,opsmanppchap);
              pstmt.setString(16,train_req);
              pstmt.setString(17,reqexist_sys_fld_chg);
              pstmt.setString(18,reqbus_rules_chg);
              pstmt.setString(19,reqnew_coding);
              pstmt.setString(20,reqnewbus_rule );
              pstmt.setString(21,reqnew_sys_fld);
              pstmt.setString(22,reqother);
              pstmt.setString(23,req_other_specify);
              pstmt.setString(24,imp_recoll);
              pstmt.setString(25,imp_deflm);
              pstmt.setString(26,imp_defrecnre);
              pstmt.setString(27,imp_audit);
              pstmt.setString(28,imppers_coll);
              pstmt.setString(29,imp_deffcl);
              pstmt.setString(30,imp_bustech);
              pstmt.setString(31,imp_legal);
              pstmt.setString(32,imp_privcoll);
              pstmt.setString(33,imp_defbkre);
              pstmt.setString(34,imp_decsupt);
              pstmt.setString(35,imp_riskmgt);
              pstmt.setString(36,imp_defreo);
              pstmt.setString(37,imp_defbknre);
              pstmt.setString(38,imp_qualsvc);
              pstmt.setString(39,imp_intlctrl);
              pstmt.setString(40,imp_defwkfl);
              pstmt.setString(41,imp_defwkout);
              pstmt.setString(42,imp_trtpi);
              pstmt.setString(43,impact_other);
              pstmt.setString(44,imp_defmgt);
              pstmt.setString(45,imp_deftax);
              pstmt.setString(46,imp_vendmgt);
              pstmt.setString(47,imp_defctrl);
              pstmt.setString(48,imp_defrecre);
              pstmt.setString(49,imp_busadm);
              pstmt.setString(50,impact_other_specify);
              pstmt.setString(51,change_in_kpmg);
              pstmt.setString(52,change_in_ots);
              pstmt.setString(53,change_in_nfr);
              pstmt.setString(54,change_in_arr);
              pstmt.setString(55,change_in_brr);
              pstmt.setString(56,change_in_proc_imp);
              pstmt.setString(57,change_inter_citpol);
              pstmt.setString(58,change_in_other);
              pstmt.setString(59,change_in_other_specify);
              pstmt.setString(60,change_init_details);
              pstmt.setString(61,req_info_descript);
              pstmt.setString(62,req_info_explain_currbus);
              pstmt.setString63,req_info_explain_proposed);
              pstmt.setString(64,req_ben_prop_benefit);
              pstmt.setString(65,req_ben_fin_implement);
              pstmt.setString(66,req_ben_ops_implement);
              pstmt.setString(67,projyes);
              pstmt.setString(68,vulnass);
              pstmt.setString(69,cbachg);
              pstmt.setString(70,riskacc);
              pstmt.setString(71,marsitem);
              pstmt.setString(72,gccrfp);
              pstmt.setString(73,applcomp);
              pstmt.setString(74,capexpend);
              pstmt.executeUpdate();
    if anyone sees anything flawed here, please let me know!
    Thanks!
    Message was edited by:
    bpropes20
    Message was edited by:
    bpropes20
    Message was edited by:
    bpropes20

    What a mess. First off, the line pstmt.setInt(1,++lastRowNum); just needs to go away. You're already using a sequence to set the value for the primary keys, you don't need to add a mistake like this.
    I then count 73 question marks (you can verify, I'm not counting again.) That would mean that your indices are off by one, and the ArrayIndexOutOfBounds is probably coming from pstmt.setString(74,capexpend); Dump the ++lastRowNum line, change all of your indices (after verifying the bind count!) and try it again.
    You can see an inherent weakness in the PreparedStatement clauses - one change means manually rewriting all of the indices. A solution is dumping all of your bind values into a List, then loop through the list to do your setXXX statements. If all binds are not of the same type, you can bind the values to some object that identifies type and use those objects in the list instead of the values. A little more complex, but easier to maintain in my opinion.

  • WL6.1sp1,Deploy war Success,run servlet meet ClassNotFoundException

              this error i've seen in this newsgroup several times,i tried on some advices but
              not settleed the problem.
              i use WL6.1sp1,win2000.
              use ant to build a war,put it under the applications directory.
              error:
              some servlet classes can't find.
              1.some glabal servlet classes declared in web.xml can find
              2.use jar command to build a war,not work.
              3.declare servlet classes in classpath,work.
              4.modify menifest.mf,add class path entry,not work.
              5.in bea\wlserver6.1config\mydomain\applications\.wlnotdelete\wlap49531\WEB-INF\,
              there is a jar made by weblogic himself has all servlet classes.so it means weblogic
              GOT those classes but he can't find them.
              any ideas?
              br
              erric
              

    hi John,
    you are correct. I would like to ask you something else if I can, becouse programming these days is a matter of time, and you may know how much that cost to a company. Our other option, instead of working with Tomcat, it is an Oracle IAS server we have here, but I do not know if that is supported with ADF components. We need to deploy our recently made application from jDeveloper 11g, and we need to have the production server online next week to start working on.
    Something else I would like to comment, just to talk about, java is made for people, and it is really powerfull. Java enterprise web applications also, and it would be good, if you are developing with ADF, to be able to transport those applications to be used under different web servers. Just to make them "academical" and ease to learn. This last quote is just my own opinion as a java developer and learner on web development using powerfull jsf components like adf.
    sincerely
    Israel

  • Why servlet cannot work?

    I change from using tomcat to Apache. And I have the same problem when I first install tomcat. the error message is "package javax.servlet does not exist"
    I have already set the classpath as
    C:\Program Files\Apache JServ 1.1.2\ApacheJServ.jar;
    C:\JSDK2.0\lib\jsdk.jar;C:\jdk1.3.1_02;
    C:\JSDK2.0\servlet.jar
    and the path as
    %SystemRoot%\system32;%SystemRoot%;
    %SystemRoot%\System32\Wbem;
    C:\jdk1.3.1_02\bin;%CLASSPATH%;
    C:\JSDK2.0\bin;%PATH%
    but still doesn't work. and i have also installed apache jserv. however i am able to view the servlet file,"IsItWorking" in the browser. but when i place my servlets into the same file, it doesn't work.
    I check the logs file and receive the following error
    (ERROR) ajp12: Servlet Error: ClassNotFoundException: HelloWorldServlet
    and
    ApacheJServ/1.1.2: Exception creating the server socket: java.net.BindException: Address in use: JVM_Bind
    can someone with a kind soul please help me out...
    i'm really stuck!
    thx in advance!

    win2000 + apache2.0.44 + tomcat5.0(servlet2.4) + j2sdk1.4.1(java.exe)
    QUESTION? is to run servlet pages i need also to install
    ApacheJServ-1.1.2-2.exe latest but wants jsdk2.0
    jsdk2.0.exe(jsdk.jar) n 2.1 is obsolet so j2sdkee.exe(is servlet2.4, various jar inside the installation but no jsdk.jar, so fucking sun)
    now C:\Programmi\Apache JServ 1.1.2\(fucking sun)miss of 4 files
    Win9xConHook.dll
    ApacheCore.dll
    xmlparse.dll
    xmltok.dll
    that can be found in apache old release not 2.0.44
    try to start and load jserv_module but still return
    ApacheModuleJServ.dll is garbled
    is garbled oooh shit give me the right dll sun or i'll start crazy
    so for the last time fucking sun!
    reply at
    [email protected]

  • How to show progress - Applet - Servlet

    Hi,
    I am new to applet-servlet communication. I have to show the progress at the applet front-end using a JProgressBar for a task being done at the servlet end. I request the gurus on the forum to post any example code for the above situation.

    Hi,
    U will have to use the SwingWorker to popup the JProgressBar, but in here i dont think u will be getting any input from servlet giving the job completed, if u are using jdk1.4.1 u can use
    setIndeterminate(true);
    I am attaching 2 methods below which i use to display the JProgressBar
    Method long task is where i actually call the servlet and in method buildData i create the URLConnection etc
    //appletData must implement Serializable
    public void buildData(Object appletData)throws Exception
    //define servlet name here
    ObjectInputStream inputFromServlet = null;
    URL          studentDBservlet = new URL("MyServlet");
    URLConnection servletConnection = studentDBservlet.openConnection();
    servletConnection.setDoInput(true);
    servletConnection.setDoOutput(true);
    servletConnection.setUseCaches(false);
    servletConnection.setRequestProperty("Content-Type", "application/octet-stream");
    ObjectOutputStream outputToServlet =
              new ObjectOutputStream(servletConnection.getOutputStream());
         // serialize the object
         if (!SwingUtilities.isEventDispatchThread())
              outputToServlet.writeObject(input);
              outputToServlet.flush();
              outputToServlet.close();
              inputFromServlet = new ObjectInputStream(servletConnection.getInputStream());
         else
              inputFromServlet = longTask(servletConnection, outputToServlet, appletData);
    private ObjectInputStream longTask(final URLConnection servletConnection,
                        final ObjectOutputStream outputToServlet,
                        final Object appletData)
         final JDialog dialog = new JDialog(PlanApplet.appletFrame, "Please Wait", true);
    isProcess = true;
         MapsPanel panel = new MapsPanel();
         panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
         //MapsLabel label = new MapsLabel("Work in process....");
    //label.setFont(Constant.bigFont);
         //label.setPreferredSize(new Dimension(230, 40));
         JProgressBar progressBar = new JProgressBar();
         progressBar.setIndeterminate(true);
         progressBar.setPreferredSize(new Dimension(140, 30));
    // final JugglerLabel jugLabel = new JugglerLabel();
    // jugLabel.startAnimation();
    // panel.setPreferredSize(new Dimension(175, 175));
         MapsPanel progressPanel = new MapsPanel(new FlowLayout(FlowLayout.CENTER, 5, 5));
         progressPanel.setPreferredSize(new Dimension(140, 80));
    progressPanel.add(progressBar);
    //     progressPanel.add(jugLabel);
    //     panel.add(Box.createVerticalStrut(5));
         //panel.add(label);
         panel.add(Box.createVerticalStrut(15));
         panel.add(progressPanel);
         panel.add(Box.createVerticalStrut(15));
         dialog.setSize(150, 115);
         dialog.setResizable(false);
    //     dialog.getContentPane().add(jugLabel);
    dialog.getContentPane().add(panel);
    dialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
    dialog.setLocation(ScreenSize.getDialogLocation(dialog));
    //      final javax.swing.Timer popupTimer = new javax.swing.Timer(2000, new TimerListener(dialog));
         final SwingWorker worker = new SwingWorker()
         public Object construct()
              try
              PlanApplet.applet.setCursor(new Cursor(Cursor.WAIT_CURSOR));
              outputToServlet.writeObject(appletData);
              outputToServlet.flush();
              outputToServlet.close();
              return new ObjectInputStream(servletConnection.getInputStream());
              catch (Exception exc)
              return null;
         public void finished()
    // jugLabel.stopAnimation();
              dialog.dispose();
    Toolkit.getDefaultToolkit().beep();
    isProcess = false;
              LogWriter.out("the long process is finished", LogWriter.BASIC);
         worker.start();
    // popupTimer.start();
         //System.out.println("Process complete");
         dialog.show();
    // while(isProcess)
         return (ObjectInputStream) worker.getValue();

  • External servlets cannot find initialize

    I'm trying to get the Portal to execute servlets for external providers and I'm having difficulties.
    The instructions from the provider had me change the zone.properties to include an alias for the servlet and init parameters for the alias
    servlet.webexportlet.code=oracle.portal.provider.v1.http.HttpProvider
    servlet.webexportlet.initArgs=provider_root=<path to directory containing provider.xml>,sessiontimeout=180000
    When I go to test the portlet, I get an exception in jserv.log
    (ERROR) ajp12: Servlet Error: ClassNotFoundException: oracle.portal.provider.v1.http.HttpProvider
    It couldn't find the HttpProvider class
    Found a directory path ..../oracle/portal/provider/v1 that contained a provider.jar file. This may not be the correct one though. It's path doesn't seem to relate to the portal.
    Created wrapper.classpath=<above path to provider.jar file > in jserv.properties.
    Then when I test it, it seems to find the HttpProvider class. I then get the following error.
    webexportlet/oracle.portal.provider.v1.http.HttpProvider: init
    (ERROR) ajp12: Servlet Error: Initialization error while loading the servlet: No Provider class defined via this servlet's initArgs
    The first line of the provider.xml file in the directory pointed to as the provider_root in the initArgs contains the following:
    <provider class="oracle.portal.provider.v1.http.DefaultProvider" session="true">
    so it does look like the provider class is defined. May not be finding it in provider.jar file though. Not sure. Certain it's not a typo in the path to the provider.xml file.
    There are three different servlets we're trying to add with the provider.xml file in different directories and they all give the same error.
    Stuck from here. Any help you can provide will be a great assistance.

    what version of the portal are you using?
    What version of the JPDK are you using?

  • JPDK and Viewing portal pages?

    Windows 2000
    Hi All!
    I installed the Oracle app server 9iAS 1.0.2.2.2 and got the Oracle portal 3.0.9.8.2 up and running on my local machine.
    I can access portal page on my machine, giving url path
    http://mylocalIP/pls I sign-on and view the portal30 page.
    Question:
    I have written sample portlets sample1.jsp, sample2.jsp. I want both portlets to appear on same jsp page. and I be able to view these portlets in my locally installed portal.
    Please can anyone guide me what are the steps that i should take to achieve this.?
    1>Which directory would I keep these .jsp pages in my local machine?
    2>Where(directory) would I keep my provider.xml. what would be the structure of xml file in order to achieve above?
    3>what url can I give to view these portal pages? Mine signon is portal30 portal30
    4>Can I also use the latest JPDK API to write portlet pages(keeping current 9iAS version same?) If yes where do I have to install the jar files of latest JPDK. I mean the classpath location so my pages can use those APIS, without giving "ClassNotFoundException".
    5>What else do I have to do?
    regards,
    sa pa

    If you are new to the concept of providers and portlets then the
    link http://portalstudio.oracle.com/servlet/page?_pageid=827&_dad=ops&_schema=OPSTUDIO
    will serve as a good starting point.
    To answer your specific questions, first of all JPDK needs to be
    installed. It can be downloaded from
    http://otn.oracle.com/software/htdocs/devlic.html?http://download.oracle.com/otn/other/PDK.zip
    Other reference information such as Installation instructions
    and how to create basic pdk samples can be obtained from
    http://portalstudio.oracle.com/servlet/page?_pageid=468&_dad=ops&_schema=OPSTUDIO
    Hope it hepls.
    -aMJAD.

  • Unable to load classes from jar files inside APP-INF/lib in EAR.

    Weblogic version: 10.3.3
    Platform: Linux x86-64 bit
    We deployed an ear packaged with all the common library jars inside APP-INF/lib. Deployment was successful.
    for some reason, it is always giving ClassNotFoundException for the classes inside the jars. This does not happen
    in 10.3.2 version of weblogic.
    We tried to add them to domain/lib directory (instead of APP-INF/lib) but still it is not able to resolve the classes.
    Any pointers would be appreciated.

    try using prefer-web-inf-classes in the weblogic.xml file in your WAR file
    or using prefer-application-packages in the weblogic-application.xml file in your EAR.

Maybe you are looking for

  • Printing document with table to PDF - file disappears

    When I print a document to PDF from either AppleWorks or MS Word, it is saved to the location as PDF and works as would be expected. If the file contains a table, the PDF file initially appears where saved but disappears when I attempt to access it.

  • Write to measuremen​t file resets to 1904

    LV 2014 Windows 7 Professional 64 bit OS The first run of this vi creates an excel file that is time stamped correctly. The second and subsequent runs, the time stamp is reset to 1/1/1904 00:00:00.000. When I click the state 1 button, the USB DAQ's m

  • C4 Page Properties Problem

    I use a table for my navigation links, one cell per link. I set page properties-link to Never Underline, and change the color for Rollover. Then published the page. I copied the cells from one page to the next. The first page http://www.essentialthea

  • How do i get pdf on my 12.04 Ubuntu computer

    after installing updates on my computer I cannot open pdf files. What do I have to do to get it working on 12.04 Ubuntu I am limited in my computer skills, need detailed instructions thanks

  • Wrt160N won't connect to my hp L7880

    Just hooked up a wrt160N to replace an existinfgD-Link router. Every laptop connects seemlessly, the only issue is that I can't get my HP L7880 to conect. It appears in the detected device menu but it is not highlighted like the laptops which are abl