Odd fail with com.oreilly.servlets on tomcat 4.1

I've got a page that uses the com.oreilly.servlets package on tomcat 4.1. It is failing at the point where I first create my MultipartRequest but the error stack doesn't make any reference to the com.oreilly.servlets package, it just says:
root cause
javax.servlet.ServletException: javax/servlet/ServletRequest
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
at org.apache.jsp.imageUploader1_jsp._jspService(imageUploader1_jsp.java:102)
and back through the org.apache.jsp stuff.
I definitely have the enctype on the form set up correctly and the same code was working fine on another server running tomcat 3.2. I just cannot seem to find any good reason for it.

Alright, here is the source of a page that will fail on my server (but doesn't seem to have a problem on my development box)
<%@page contentType="text/html"%>
<%@page import="org.apache.commons.fileupload.*"%>
<%
try
    System.out.println("is it multipart?");
    System.out.println( FileUpload.isMultipartContent(request) );
catch (Exception e)
    System.out.println("Error caught.<br/>");
    System.out.println(e.getMessage()+"<br>");
    e.printStackTrace();
%>
<html>
<head><title>Test Page</title></head>
<body>
<p>Multipart test, see catalina.out for more information.</p>
</body>
</html>The error stack, for what it's worth, looks a lot like this:
exception
org.apache.jasper.JasperException: javax/servlet/ServletInputStream
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:324)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:395)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
root cause
javax.servlet.ServletException: javax/servlet/ServletInputStream
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
at org.apache.jsp.imageUploader1_jsp._jspService(imageUploader1_jsp.java:119)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:324)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:395)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
Apache Tomcat/4.1.30

Similar Messages

  • Change upload file name with com.oreilly.servlet.MultipartRequest to handle the file upload

    1. when use com.oreilly.servlet.MultipartRequest to handle the file upload, can I change the upload file name .
    2. how com.oreilly.servlet.MultipartReques handle file upload? do it change to byte ?
    what  different?  if I use the following method?
       File uploadedFile = (File) mp.getFile("filename");
                   FileOutputStream fos = new FileOutputStream(filename);
                    byte[] uploadedFileBuf = new byte[(int) uploadedFile.length()];
                   fos.write(data);
                 fos.close();

    My questions are
    1) when use oreilly package to do file upload , it looks like i line of code is enough to store the upload file in the
    file direction.
    MultipartRequest multi =
            new MultipartRequest(request, dirName, 10*1024*1024); // 10MB
    why some example still use FileOutputStream?
    outs = new FileOutputStream(UPLOADDIR+fileName); 
        filePart.writeTo(outs); 
       outs.flush(); 
      outs.close();
    2) can I rename the file name when I use oreilly package?

  • Com.oreilly.servlet.multipart writeTo() question

    I am trying to write a upload servlet with com.oreilly.servlet.multipart.
    The problem I am having is specifiying the name of file on the server's side.
    When I looked at the documentation for FilePart.writeTo() ...
    com.oreilly.servlet.multipart
    Class FilePart
    java.lang.Object
    |
    --com.oreilly.servlet.multipart.Part
    |
    --com.oreilly.servlet.multipart.FilePart
    writeTo
    public long writeTo(java.io.File fileOrDirectory) throws java.io.IOException
    Write this file part to a file or directory. If the user supplied a file, we write it to that file, and if they supplied a directory, we write it to that directory with the filename that accompanied it. If this part doesn't contain a file this method does nothing.
    Returns: number of bytes written
    Throws: java.io.IOException - if an input or output exception has occurred.
    ... I figured all I had to do was supply a file to writeTo(), so that writeTo() would write to that file.
    So I modified the example servlet code (DemoParserUploadServlet.java) to do this ...
    code:
         String outFileName = dirName + "/" + xyz_UpLoadUser + "/" + name + "_" + getTS() + ".dat";
         file = new File( outFileName );
         size = filePart.writeTo(file);
    ... and I get the error ...
    javax.servlet.ServletException: Supplied uploadDir ./TEST001/FILE_1_20040220085207.dat is invalid
    I took a look at DemoRequestUploadServlet.java but that only shows me would to write files to the /tmp directory not how to change the file's name from what the user supplied in the form.
    Please help!

    Thanks for your reply :)
    I just resorted to doing something like this ...
    public void init ( ...
    dir = new File ( dirName );
    public void doPost ( ...
    String oldFileName = filePart.getFileName();
    String newFileName = dirName + "/" + xyz_UpLoadUser + "/" + name + "_" + getTS() + ".dat";
    size = filePart.writeTo(dir);
    File oldFile = new File( oldFileName );
    File newFile = new File( newFileName );
    boolean rc = oldFile.renameTo( newFileName );

  • URGENT!! where to put com.oreilly.servlet package??

    hi all,
    i am now using tomcat.
    i put the com.oreilly.servlet classes in the following path:
    c:\jakarta-tomcat-4.0.3\webapps\temp\web-inf\classes\com\oreilly\servlet\..
    and i put my servlet file in the path
    c:\jakarta-tomcat-4.0.3\webapps\temp\web-inf\classes\testing.java
    i have also put the the cos.jar file in
    c:\jakarta-tomcat-4.0.3\webapps\temp\web-inf\lib\cos.jar
    but when i compile testing.java, i gives error for import com.oreilly.servlet.*
    saying can't resolve symbol
    can somebody tell me how can i fix it?
    thx a lot

    hi,
    are you sure you have set the package com.oreilly.servlet in your system's classpath?

  • Uploading a file using jsp and com.oreilly.servlet lib package

    Sorry to bother you but I need your help folks
    I am developing an application to pick up files from a database and sent to a specified location on a different system.
    I am presently trying to run this code,I have placed this lib package from oreilly which is supposed to encapsulate the usage of file uploads,which is a jar file called cos.jar into C:\Program Files\Java\jdk1.5.0_03\jre\lib\ext folder .I have a jsp page that calls the bean which does the upload and implement the classes in the oreilly package.I am using tomcat 5
    [b]the jsp page that acts as the user interface
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title>Please Choose The File</title>
    </head>
    <body bgcolor="#ffffff">
    <table border="0"><tr>
    <form action="Upload.jsp" method="post"
    enctype="multipart/form-data">
    <td valign="top"><strong>Please choose your document:</strong><br></td>
    <td> <input type="file" name="file1">
    <br><br>
    </td></tr>
    <tr><td><input type="submit" value="Upload File"></td></tr>
    </form>
    </table>
    </body>
    </html>
    this is the jsp page that calls the bean
    <jsp:useBean id="uploader" class="com.UploadBean" />
    <jsp:setProperty name="uploader" property="dir" value="<%=application.getInitParameter(\"save-dir\")%>" />
    <jsp:setProperty name="uploader" property= "req" value="${pageContext.request}" />
    <html>
    <head><title>file uploads</title></head>
    <body>
    <h2>Here is information about the uploaded files</h2>
    <jsp:getProperty name="uploader" property="uploadedFiles" />
    </body>
    </html>
    [b]this is the bean class
    package com;
    import java.util.Enumeration;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.ServletRequest;
    import com.oreilly.servlet.MultipartRequest;
    import com.oreilly.servlet.multipart.DefaultFileRenamePolicy;
    import javax.servlet.*;
    public class UploadBean {
    private String webTempPath;
    private HttpServletRequest req;
    private String dir;
    // private ServletRequest request;
    public UploadBean( ) {}
    public void setDir(String dirName) {
    if (dirName == null || dirName.equals(""))
    throw new IllegalArgumentException("invalid value passed to " + getClass( ).getName( )+".setDir");
    //webTempPath = dirName;
    dir = dirName;
    /* public String getDir()
    return webTempPath;
    public void setReq(ServletRequest request) {
    if (request != null && request instanceof HttpServletRequest)
    req = (HttpServletRequest) request;
    } else {
    throw new IllegalArgumentException("Invalid value passed to " + getClass( ).getName( )+".setReq");
    public String getUploadedFiles( ) throws java.io.IOException{
    //file limit size of 5 MB
    MultipartRequest mpr = new MultipartRequest(req,dir,5 * 1024 * 1024,new DefaultFileRenamePolicy( ));
    Enumeration enume = mpr.getFileNames( );
    StringBuffer buff = new StringBuffer("");
    for (int i = 1; enume.hasMoreElements( );i++){
    buff.append("The name of uploaded file ").append(i).append(" is: ").append(mpr.getFilesystemName((String)enume.nextElement( ))).append("<br><br>");
    }//for
    //return the String
    return buff.toString( );
    } // getUploadedFiles
    On running the code I find this error messages
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: javax/servlet/ServletRequest
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
         org.apache.jsp.jsp.Upload_jsp._jspService(org.apache.jsp.jsp.Upload_jsp:73)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
         com.oreilly.servlet.MultipartRequest.<init>(MultipartRequest.java:222)
         com.oreilly.servlet.MultipartRequest.<init>(MultipartRequest.java:151)
         com.UploadBean.getUploadedFiles(UploadBean.java:49)
         org.apache.jsp.jsp.Upload_jsp._jspService(org.apache.jsp.jsp.Upload_jsp:63)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.
    Apache Tomcat/5.5.9
    tanks

    Hi,
    Looks like you are missing a file from the classpath. Make sure servlet.jar is available in your classpath. Ordinarily files in <tomcat_home>/lib directory should be added automatically. You need to check why it hasn't been added in your case. A good place to start would be the bat files in the bin directory viz startup.bat, catalina.bat etc.
    cheers,
    vidyut

  • How to upload more than 100mb in using com.oreilly.servlet package

    hi all,
    I use com.oreilly.servlet package to upload and i use the following code to upload
    MultipartRequest mr = new MultipartRequest(request,"/tmp/saved",0x10000000);My problem is i can't upload more than 25mb, uploads upto 25mb and shows page cannot displayed err in IE,
    Pls help

    In the webserver there is most likely a configuration option for the maximum size that a request may have. So search through the manual of your particular webserver on how to change that.

  • Com.oreilly.servlet.MultipartRequest from where to download the package

    Hi all
    From where to download this package.
    com.oreilly.servlet.MultipartRequest
    and where to copy it so that I can use this package.
    Vijay

    What does Google tell you? http://www.google.com

  • Error in this statement [import="com.oreilly.servlet.MultipartRequest"]

    hai,
    iam designing jsp page where i use thi class i.e.,
    import="com.oreilly.servlet.MultipartRequest"
    for this iam using j2ee server i istalled jdk and j2ee.
    when i run the following code iam getting error " unabe to compile class import="com.oreilly.servlet.MultipartRequest" "
    what else should i do
    please help me anyone
    code is
    <%@ page language="java" %>
    <%@ page import="java.text.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="javax.servlet.http.HttpSession" %>
    <%@ page import="java.util.*" %>
    <%@ page import="javax.servlet.*" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="java.net.*" %>
    <%@ page import="com.oreilly.servlet.MultipartRequest" %>
    <%@ page import="com.oreilly.servlet.ServletUtils" %>
    <%!
    String uri="";
    Vector files=new Vector();
    String pathf="";
    %>
    <%!
    public static String FORM_ACTION = "method";
    public static String ACTION_ATTACHFORM = "Attachments";
    public static String ACTION_ATTACHFILE = "AttachtoMessage";
    public static String ACTION_FILEREMOVE = "fileRemove";
    public static String ACTION_SEND = "Send";
    %>
    <%
    pathf=DNet.getDataFilesPath()+"/ActivityManagementNew";
    pathf=pathf+"/";
    uri=request.getRequestURI();
    HttpSession ss=request.getSession(true);
    String persno=(String)ss.getAttribute("persno");
    String method = request.getParameter(FORM_ACTION);
    //System.out.println("method"+method);
    if (method ==null) {
         else if((method!=null) && (method.equals(ACTION_ATTACHFORM)))
         attachForm(request, out, files,0);
         else if((method!=null) && (method.equals(ACTION_ATTACHFILE)))
         attachFile(request, out);
         else if((method!=null) && (method.equals(ACTION_FILEREMOVE)))
         removeFile(request, out);
    %>
    <%! int inc=0; %>
    <%!
    public void attachForm(HttpServletRequest req,JspWriter out,Vector files,int size)
    throws ServletException, java.io.IOException
    out.println("<html>");
    out.println("<head><LINK href=dmail.css rel=stylesheet>");
    out.println("<title> Attach File </title>");
    out.println("<Script Language=JavaScript>");
    out.println("list=new Array();");
    out.println("function putattach(pos,name) {");
    out.println(" list[pos]=name; }");
    out.println("function listattach() {");
    out.println("if((window.opener.document.composeform.list)!=null)");
    out.println("window.opener.document.composeform.list.value=list;");
    out.println("window.close();}");
    out.println("</script>");
    out.println("</head>");
    out.println("<body bgcolor='#EEEEEE' text='#494949' link='#9966CC' vlink='#009999' alink='#CC0066' ><center>");
    out.println("<table>");
    out.println("<TR align=middle bgColor=#eeeecc><TD colSpan=7 align=center><FONT class=f> <B>Attachments ");
    out.println("</B> </FONT></TD></TR>");
    out.println("</table>");
    out.println("<form action="+uri+"?method="+ACTION_ATTACHFILE+"&size="+size+" ENCTYPE=multipart/form-data method=post>"+
    "<center><table width=400 border=0><tr><td><ol>"+
    "<li><p>Click the <b>Browse</b> button to select the file that"+
         " you want to attach, or type the path to the file in the box below.<br>"+
         "Attach File: <input name=attfile type=file> </p>"+
         " </li><li><p>Click the <b>Attach to Message</b> button.<br>"+
         " The transfer of an attached file may require 30 seconds to up to 10 minutes.<br>"+
         "<center><input type=submit name=method value=\""+ACTION_ATTACHFILE+"\"></center></form></p>"+
         "</li> <li><p>Repeat Steps 1 and 2 to attach additional files. Click"+
         "the <b>Done</b> button to return to your message.</p></li></ol><br>"+
         "<center><Input type=button value=Done onClick=listattach()></center>"+
         "</td></tr></table>"+
         "<form method=post action="+uri+">"+
         "<input type=hidden name=size value="+size+">"+
         "<hr width=400><table width=400 border=0>"+
         "<tr><td><select name=attachlist size=5 multiple>");
         if(files!=null)
         for(int i=0;i<files.size();i++)
         out.println( "<option value="+i+">"+(String)files.get(i)+"</option>");
    out.println("</select>");
         out.println("<Script language=JavaScript>");
         for(int i=0;i<files.size();i++)
         out.println("putattach("+i+", '"+(String)files.get(i)+"')");
         out.println("</script>");
         out.println("</td><td><input type=hidden name=method value="+ACTION_FILEREMOVE+"><input type=submit value=Remove> </td></tr>");
         }else out.println("<option value=-1>-- Message Attachments -- </option></select>");
    out.println("<tr><td><b>Current total ="+size+"K</b></td></tr>"+
    "<tr><td colspan=2>Each file size cannot exceed 20MB. To remove an attachment,"+
    "select the file from the list and click the <b>Remove</b> button. </td>"+
    "</tr> </table></form></center>");
    out.println("</body></html>");
    out.flush();
    // out.close();
    public void attachFile(HttpServletRequest req,JspWriter out)
    throws ServletException, java.io.IOException
    HttpSession session=req.getSession();
    Vector files=(Vector)session.getValue("files");
         int Fsize=0;
         try{
         String user=(String)req.getSession().getValue("PERSONALNO");
         File f=new File(pathf+"/Temp/"+user);
         if(!f.exists())
         f.mkdir();
         MultipartRequest multi =new MultipartRequest(req, pathf+"/Temp/"+user, 20 * 1024 * 1024);
         Enumeration efiles = multi.getFileNames();
         String filename=null;
         Fsize=Integer.parseInt(req.getParameter("size"));
         while (efiles.hasMoreElements())
    String name = (String)efiles.nextElement();
         filename = multi.getFilesystemName(name);
         File ft=new File(pathf+"/Temp/"+(String)req.getSession().getValue("PERSONALNO")+"/"+filename);
         long size=ft.length();
         if(filename!=null)
         if(size<1024)
         Fsize=Fsize+1;
         else
         Fsize=Fsize+java.lang.Math.round((float)size/1024);
    if(files==null)
    files=new Vector(); // to keep track of attached files
         files.add(filename);
    session.putValue("files",files);
         attachForm(req,out,files,Fsize);
    catch(Exception e)
         e.printStackTrace();
    public void removeFile(HttpServletRequest req,JspWriter out)
    throws ServletException, java.io.IOException
    HttpSession session=req.getSession();
    Vector files=(Vector)session.getValue("files");
         int j;
         int FSize=Integer.parseInt(req.getParameter("size"));
         String st[]=req.getParameterValues("attachlist");
         String user=(String)req.getSession().getValue("PERSONALNO");
         if(st!=null)
         for(int i=0;i<st.length;i++)
         j=Integer.parseInt(st);
         File f=new File(pathf+"/Temp/"+user+"/"+(String)files.get(j));
         long s=f.length();
         if(s<1024) s=1;
         else s= java.lang.Math.round((float)s/1024);
         FSize=(int)(FSize-s);
    if(files==null)
    files=new Vector(); // to keep track of attached files
         files.remove(j);
    session.putValue("files",files);
         f.delete();
         if(files.size()==0)
         files=null;
         File f=new File(pathf+"/Temp/"+user);
         f.delete();
         attachForm(req,out,files,FSize);
    %>

    WEB-INF/classes or ClassPath?I meant WEB-INF/lib ... not WEB-INF/classes

  • XI messages failed with com.sap.aii.af.ra.ms.api.ConfigException

    Hi forum experts,
    A group of POs were sent at the same time, but once a while we get one PO failed with the below error.  Could someone help me understand what the below error message mean.  Your help would be greatly appreciated.
    thanks,
    Velvet
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--
    Call Adapter
    -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
    <SAP:Category>XIAdapterFramework</SAP:Category>
    <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
    <SAP:P1 />
    <SAP:P2 />
    <SAP:P3 />
    <SAP:P4 />
    <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.ConfigException: Could not check current user (PIISUSER) against technical IS service user. Reason: Failed to read IS ServiceUser Id from EP. Reason: null</SAP:AdditionalText>
    <SAP:ApplicationFaultMessage namespace="" />
    <SAP:Stack />
    <SAP:Retry>M</SAP:Retry>
    </SAP:Error>

    Hi,
      we are facing exactly the same problem. Where you able to solve it? And how?
    Thanks.
    S.Socratous

  • Problem with JSP and servlet in Tomcat

    hello all,
    I have made a simple hello world in Eclipse and Tomcat, it works well on my localhost, but now that I try to run it on the server in our lab I got this exception:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Implementing class
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:272)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.IncompatibleClassChangeError: Implementing class
         java.lang.ClassLoader.defineClass1(Native Method)
         java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1815)
         org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:869)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1322)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
         org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:127)
         org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:65)
         java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         java.lang.Class.getDeclaredConstructors0(Native Method)
         java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
         java.lang.Class.getConstructor0(Class.java:2640)
         java.lang.Class.newInstance0(Class.java:321)
         java.lang.Class.newInstance(Class.java:303)
         org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:148)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    I have transfered the web.xml file and lib and classes folder in a WEB-INF folder and also all the JSP files. I can see he JSP file, but the 'hello worl' does not work and gives this exception!
    Does any one have any idea what could be the problem?
    thanks a lot
    Mitra

    seems the web Server code previously loaded a class only when it was used rather than when it was referenced,
    ask your question in the tomcat-user mailing ! !!!

  • Com.oreilly.servlet where to get it?

    if someone knows what's the above package is all about, then please tell me where one can download it?

    Have you try the site servlet.com

  • Change file name with oreilly servlet

    I am using oreilly servlet package and I want to change the file name to the file I am uploading, is this possible ?
    How ?
    Thanks.
    here I post the servlet code:
    package com.reducativa.sitio.servlets;
    * DemoParserUploadServlet.java
    * Example servlet to handle file uploads using MultipartParser for
    * decoding the incoming multipart/form-data stream
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import com.oreilly.servlet.multipart.*;
    public class DemoParserUploadServlet extends HttpServlet {
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    PrintWriter out = response.getWriter();
    response.setContentType("text/plain");
    out.println("Demo Parser Upload Servlet");
    File dir = new File("f:/");
    if (! dir.isDirectory()) {
    throw new ServletException("Supplied uploadDir " + "f:/ " +
    " is invalid");
    try {
    MultipartParser mp = new MultipartParser(request, 10*1024*1024); // 10MB
    Part part;
    while ((part = mp.readNextPart()) != null) {
    String name = part.getName();
    if (part.isParam()) {
    // it's a parameter part
    ParamPart paramPart = (ParamPart) part;
    String value = paramPart.getStringValue();
    out.println("param; name=" + name + ", value=" + value);
    else if (part.isFile()) {
    // it's a file part
    FilePart filePart = (FilePart) part;
    String fileName = filePart.getFileName();
    if (fileName != null) {
    // the part actually contained a file
    long size = filePart.writeTo(dir);
    out.println("file; name=" + name + "; filename=" + fileName +
    ", filePath=" + filePart.getFilePath() +
    ", content type=" + filePart.getContentType() +
    ", size=" + size);
    else {
    // the field did not contain a file
    out.println("file; name=" + name + "; EMPTY");
    out.flush();
    catch (IOException lEx) {
    this.getServletContext().log("error reading or saving file");
    }

    Hi there,
    I am facing the same problem that you have stated in your Feb 26, 2002 10:28 AM message regarding "change file name with oreilly servlet", I would like to change the file name to include a unique identifier upon upload, did you ever find a solution to your problem?
    Thanks!
    Todd
    [email protected]

  • Servlet failed with ServletException.

    I'm using WLS 6.0sp1 in RedHat Linux.
              I can't deploy Servlet with folloing Exception.
              ====================================================================
              <Error> <HTTP> <test.mydomain.com> <mys
              erver> <ExecuteThread: '9' for queue: 'default'> <> <> <101018> <[WebAppServletC
              ontext(2639839,MyWebApp)] Servlet failed with ServletException>
              javax.servlet.ServletException: Servlet class: 'HelloWorld.class' could not be l
              oaded - the requested class wasn't found in the classpath: '/home/weblogic/wlho
              me/wlserver6.0/config/mydomain/applications/MyWebApp:/home/weblogic/wlhome/wlser
              ver6.0/config/mydomain/applications/MyWebApp/WEB-INF/classes:/home/weblogic/wlho
              me/wlserver6.0/config/mydomain/applications/MyWebApp/WEB-INF/_tmp_war_myserver_m
              yserver_MyWebApp'
              at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.
              java:532)
              =====================================================================
              But absolutly, I can find HellowWorld.class file in //home/weblogic/wlhome/wlser
              ver6.0/config/mydomain/applications/MyWebApp/WEB-INF/classes directory.
              is there anyone who can help me?
              The next is my web.xml file.
              =======================================================================
              <?xml version="1.0" ?>
              <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 1.2//EN
              " "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              <web-app>
              <servlet>
              <servlet-name>HelloWorld</servlet-name>
              <servlet-class>HelloWorld.class</servlet-class>
              <load-on-startup>1</load-on-startup>
              </servlet>
              <servlet-mapping>
              <servlet-name>HelloWorld</servlet-name>
              <url-pattern>/hello</url-pattern>
              </servlet-mapping>
              <web-app>
              =======================================================================
              

    I'm using WLS 6.0sp1 in RedHat Linux.
              I can't deploy Servlet with folloing Exception.
              ====================================================================
              <Error> <HTTP> <test.mydomain.com> <mys
              erver> <ExecuteThread: '9' for queue: 'default'> <> <> <101018> <[WebAppServletC
              ontext(2639839,MyWebApp)] Servlet failed with ServletException>
              javax.servlet.ServletException: Servlet class: 'HelloWorld.class' could not be l
              oaded - the requested class wasn't found in the classpath: '/home/weblogic/wlho
              me/wlserver6.0/config/mydomain/applications/MyWebApp:/home/weblogic/wlhome/wlser
              ver6.0/config/mydomain/applications/MyWebApp/WEB-INF/classes:/home/weblogic/wlho
              me/wlserver6.0/config/mydomain/applications/MyWebApp/WEB-INF/_tmp_war_myserver_m
              yserver_MyWebApp'
              at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.
              java:532)
              =====================================================================
              But absolutly, I can find HellowWorld.class file in //home/weblogic/wlhome/wlser
              ver6.0/config/mydomain/applications/MyWebApp/WEB-INF/classes directory.
              is there anyone who can help me?
              The next is my web.xml file.
              =======================================================================
              <?xml version="1.0" ?>
              <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 1.2//EN
              " "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              <web-app>
              <servlet>
              <servlet-name>HelloWorld</servlet-name>
              <servlet-class>HelloWorld.class</servlet-class>
              <load-on-startup>1</load-on-startup>
              </servlet>
              <servlet-mapping>
              <servlet-name>HelloWorld</servlet-name>
              <url-pattern>/hello</url-pattern>
              </servlet-mapping>
              <web-app>
              =======================================================================
              

  • Oreilly.servlet.MultipartRequest Error

    I'm trying to use the oreilly servlet to upload files to my server. I using BEA Weblogic and I'm compiling the servlet via classspath. I use the cos.jar and the servlet.jar to compile my servlet. Everything compiles fine. However, When I try to upload a file, I get this error:
    java.lang.NoClassDefFoundError: com/oreilly/servlet/MultipartRequest
    at com.jspservletcookbook.UploadServlet.doPost(UploadServlet.java:22)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    What I'm I doing wrong. Please help me.

    Put cos.jar into the WEB-INF/lib directory of your web app.
    It needs it at runtime as well as compile time.

  • Repository Creation fails with Time Out Error

    Hi
    I am trying a test setup of OVM3.1.1-305. I am using OpenFiler for iSCSI disks and have created 20GB iSCSI disk for Pool FileSystem and another 260GB iSCSI disk for Data Repository. The server pool gets created fine with the Pool FS and HA and Cluster options enabled. But while exposing the iSCSI disk for data store the job times out. Details of the error message is as below, please help!
    The Job has timed out while executing, and will be aborted.
    Job Construction Phase
    begin()
    Appended operation 'File System Construct' to object '0004fb000009000001b30fa7bc24bef1 (Local FS ibcovs1)'.
    Appended operation 'Cluster File System Present' to object 'fb5840a9a3a78f51'.
    Appended operation 'Repository Construct' to object '0004fb00000300009bfb51738df3f282 (OPNFILER (2))'.
    commit()
    Completed Step: COMMIT
    Objects and Operations
    Object (IN_USE): [LocalFileServer] 0004fb000009000001b30fa7bc24bef1 (Local FS ibcovs1)
    Operation: File System Construct
    Object (CREATED): [Repository] 0004fb00000300009bfb51738df3f282 (OVSRepos)
    Operation: Repository Construct
    Object (IN_USE): [LocalFileServer] 0004fb0000090000a8d525219658c28a (Local FS ibcovs2)
    Object (IN_USE): [Cluster] fb5840a9a3a78f51
    Operation: Cluster File System Present
    Object (CREATED): [LocalFileSystem] 0004fb00000500000cd1d94d87e829e8 (fs_OVSRepos)
    Object (IN_USE): [StorageElement] 0004fb0000180000bf6e8d3ff957b21b (OPNFILER (2))
    Job Running Phase at 04:01 on Mon, Dec 3, 2012
    Job Participants: [44:45:4c:4c:48:00:10:44:80:52:b4:c0:4f:33:42:53 (ibcovs1), 44:45:4c:4c:48:00:10:46:80:32:c6:c0:4f:34:42:53 (ibcovs2)]
    Actioner
    Starting operation 'File System Construct' on object '0004fb00000500000cd1d94d87e829e8 (fs_OVSRepos)'
    Job: 1354487506506, aborted post-commit by user: admin
    Write Methods Invoked
    Class=InternalJobDbImpl vessel_id=2477 method=addTransactionIdentifier accessLevel=6
    Class=LocalFileServerDbImpl vessel_id=788 method=createFileSystem accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=2486 method=setName accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=2486 method=setFoundryContext accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=2486 method=onPersistableCreate accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=2486 method=setLifecycleState accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=2486 method=setRollbackLifecycleState accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=2486 method=setRefreshed accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=2486 method=setBackingDevices accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=2486 method=setUuid accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=2486 method=setPath accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=2486 method=setSimpleName accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=2486 method=addFileServer accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=2486 method=setStorageDevice accessLevel=6
    Class=StorageElementDbImpl vessel_id=1121 method=addLayeredFileSystem accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=2486 method=setSimpleName accessLevel=6
    Class=LocalFileServerDbImpl vessel_id=922 method=addFileSystem accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=2486 method=addFileServer accessLevel=6
    Class=ClusterDbImpl vessel_id=1340 method=addLocalFileSystem accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=2486 method=setCluster accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=2486 method=setAsset accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=2486 method=createRepository accessLevel=6
    Class=RepositoryDbImpl vessel_id=2492 method=setName accessLevel=6
    Class=RepositoryDbImpl vessel_id=2492 method=setFoundryContext accessLevel=6
    Class=RepositoryDbImpl vessel_id=2492 method=onPersistableCreate accessLevel=6
    Class=RepositoryDbImpl vessel_id=2492 method=setLifecycleState accessLevel=6
    Class=RepositoryDbImpl vessel_id=2492 method=setRollbackLifecycleState accessLevel=6
    Class=RepositoryDbImpl vessel_id=2492 method=setRefreshed accessLevel=6
    Class=RepositoryDbImpl vessel_id=2492 method=setDom0Uuid accessLevel=6
    Class=RepositoryDbImpl vessel_id=2492 method=setSharePath accessLevel=6
    Class=RepositoryDbImpl vessel_id=2492 method=setSimpleName accessLevel=6
    Class=RepositoryDbImpl vessel_id=2492 method=setFileSystem accessLevel=6
    Class=LocalFileSystemDbImpl vessel_id=2486 method=addRepository accessLevel=6
    Class=RepositoryDbImpl vessel_id=2492 method=setManagerUuid accessLevel=6
    Class=RepositoryDbImpl vessel_id=2492 method=setVersion accessLevel=6
    Class=RepositoryDbImpl vessel_id=2492 method=addJobOperation accessLevel=6
    Class=RepositoryDbImpl vessel_id=2492 method=setSimpleName accessLevel=6
    Class=RepositoryDbImpl vessel_id=2492 method=setDescription accessLevel=6
    Class=InternalJobDbImpl vessel_id=2477 method=setCompletedStep accessLevel=6
    Class=InternalJobDbImpl vessel_id=2477 method=setAssociatedHandles accessLevel=6
    Job Internal Error (Operation)com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_B000E Storage plugin command [storage_plugin_createFileSystem] failed for storage server [0004fb000009000001b30fa7bc24bef1] failed with [com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command: dispatch to server: ibcovs1 failed. OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/2 storage_plugin_createFileSystem oracle.ocfs2.OCFS2.OCFS2Plugin 0004fb00000500000cd1d94d87e829e8 /dev/mapper/14f504e46494c4552637a6f5154372d7643426d2d49333763 0, Status: java.lang.InterruptedException
    Mon Dec 03 04:03:48 IST 2012
    Mon Dec 03 04:03:48 IST 2012] OVMAPI_4010E Attempt to send command: dispatch to server: ibcovs1 failed. OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/2 storage_plugin_createFileSystem oracle.ocfs2.OCFS2.OCFS2Plugin 0004fb00000500000cd1d94d87e829e8 /dev/mapper/14f504e46494c4552637a6f5154372d7643426d2d49333763 0, Status: java.lang.InterruptedException
    Mon Dec 03 04:03:48 IST 2012
    Mon Dec 03 04:03:48 IST 2012
    Mon Dec 03 04:03:48 IST 2012
    at com.oracle.ovm.mgr.action.StoragePluginAction.processException(StoragePluginAction.java:1371)
    at com.oracle.ovm.mgr.action.StoragePluginAction.createFileSystem(StoragePluginAction.java:894)
    at com.oracle.ovm.mgr.op.physical.storage.FileSystemConstruct.createFileSystem(FileSystemConstruct.java:57)
    at com.oracle.ovm.mgr.op.physical.storage.FileSystemConstruct.action(FileSystemConstruct.java:49)
    at com.oracle.ovm.mgr.api.collectable.ManagedObjectDbImpl.executeCurrentJobOperationAction(ManagedObjectDbImpl.java:1009)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:330)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:290)
    at com.oracle.odof.core.storage.Transaction.invokeMethod(Transaction.java:822)
    at com.oracle.odof.core.Exchange.invokeMethod(Exchange.java:245)
    at com.oracle.ovm.mgr.api.physical.storage.LocalFileServerProxy.executeCurrentJobOperationAction(Unknown Source)
    at com.oracle.ovm.mgr.api.job.JobEngine.operationActioner(JobEngine.java:218)
    at com.oracle.ovm.mgr.api.job.JobEngine.objectActioner(JobEngine.java:309)
    at com.oracle.ovm.mgr.api.job.InternalJobDbImpl.objectCommitter(InternalJobDbImpl.java:1140)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:330)
    at com.oracle.odof.core.AbstractVessel.invokeMethod(AbstractVessel.java:290)
    at com.oracle.odof.core.BasicWork.invokeMethod(BasicWork.java:136)
    at com.oracle.odof.command.InvokeMethodCommand.process(InvokeMethodCommand.java:100)
    at com.oracle.odof.core.BasicWork.processCommand(BasicWork.java:81)
    at com.oracle.odof.core.TransactionManager.processCommand(TransactionManager.java:773)
    at com.oracle.odof.core.WorkflowManager.processCommand(WorkflowManager.java:401)
    at com.oracle.odof.core.WorkflowManager.processWork(WorkflowManager.java:459)
    at com.oracle.odof.io.AbstractClient.run(AbstractClient.java:42)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: com.oracle.ovm.mgr.api.exception.FailedOperationException: OVMAPI_4010E Attempt to send command: dispatch to server: ibcovs1 failed. OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/2 storage_plugin_createFileSystem oracle.ocfs2.OCFS2.OCFS2Plugin 0004fb00000500000cd1d94d87e829e8 /dev/mapper/14f504e46494c4552637a6f5154372d7643426d2d49333763 0, Status: java.lang.InterruptedException
    Mon Dec 03 04:03:48 IST 2012
    Mon Dec 03 04:03:48 IST 2012
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:507)
    at com.oracle.ovm.mgr.action.ActionEngine.sendDispatchedServerCommand(ActionEngine.java:444)
    at com.oracle.ovm.mgr.action.ActionEngine.sendServerCommand(ActionEngine.java:378)
    at com.oracle.ovm.mgr.action.StoragePluginAction.createFileSystem(StoragePluginAction.java:890)
    ... 27 more
    Caused by: com.oracle.ovm.mgr.api.exception.IllegalOperationException: OVMAPI_4004E Server Failed Command: dispatch https://?uname?:[email protected]:8899/api/2 storage_plugin_createFileSystem oracle.ocfs2.OCFS2.OCFS2Plugin 0004fb00000500000cd1d94d87e829e8 /dev/mapper/14f504e46494c4552637a6f5154372d7643426d2d49333763 0, Status: java.lang.InterruptedException
    Mon Dec 03 04:03:48 IST 2012
    at com.oracle.ovm.mgr.action.ActionEngine.sendAction(ActionEngine.java:798)
    at com.oracle.ovm.mgr.action.ActionEngine.sendCommandToServer(ActionEngine.java:503)
    ... 30 more
    FailedOperationCleanup
    Starting failed operation 'File System Construct' cleanup on object 'fs_OVSRepos'
    Complete rollback operation 'File System Construct' completed with direction=fs_OVSRepos
    Rollbacker
    Executing rollback operation 'File System Construct' on object '0004fb00000500000cd1d94d87e829e8 (fs_OVSRepos)'
    Complete rollback operation 'File System Construct' completed with direction=DONE
    Objects To Be Rolled Back
    Object (IN_USE): [LocalFileServer] 0004fb000009000001b30fa7bc24bef1 (Local FS ibcovs1)
    Object (CREATED): [Repository] 0004fb00000300009bfb51738df3f282 (OVSRepos)
    Object (IN_USE): [LocalFileServer] 0004fb0000090000a8d525219658c28a (Local FS ibcovs2)
    Object (IN_USE): [Cluster] fb5840a9a3a78f51
    Object (CREATED): [LocalFileSystem] 0004fb00000500000cd1d94d87e829e8 (fs_OVSRepos)
    Object (IN_USE): [StorageElement] 0004fb0000180000bf6e8d3ff957b21b (OPNFILER (2))
    Thanks & Regards

    check your messages log and etc on the VM server. The job log doesn't go into enough detail to tell what's causing the issue. It did fail cleanup. Meaning.... that your ocfs2 filesystem is probably orphaned. You have have to clear the iSCSI LUN before trying again.

Maybe you are looking for