Wl6.1sp2 can't find classes in WEB-INF/lib

          Hi,
          I meet a very strange problem.
          I use struts in my application.so I put struts.jar in web-inf/lib.
          In the .war file, the struts.jar can be found under web-inf/lib.
          my servlet configuration in web.xml is:
          <servlet>
          <servlet-name>action</servlet-name>
          <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
          <init-param>
          <param-name>application</param-name>
          <param-value>StrutsProperties</param-value>
          </init-param>
          <init-param>
          <param-name>config</param-name>
          <param-value>/WEB-INF/struts-config.xml</param-value>
          </init-param>
          <load-on-startup>1</load-on-startup>
          </servlet>
          when this .war file is deploy, the console not show any error message.
          then,when i visit a jsp page that has a <html:form> tag, the console will show
          the error below:
          <Error> <HTTP> <[WebAppServletContext(5418530,struts,/
          struts)] Servlet failed with Exception
          java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
          at java.lang.ClassLoader.defineClass0(Native Method)
          at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
          at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
          1)
          at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
          at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
          at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
          at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAw
          areClassLoader.java:43)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:120)
          at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:563)
          at jsp_servlet.__logon._jspService(__logon.java:137)
          at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
          pl.java:265)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
          pl.java:304)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
          pl.java:200)
          at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
          rvletContext.java:2495)
          at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
          pl.java:2204)
          at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
          at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
          >
          note "org/apache/struts/action/ActionForm" can be found when i open struts.jar
          in web-inf/lib
          why weblogic can't find this class but can find the "org.apache.struts.action.ActionServlet",
          these 2 classes should all be located in struts.jar
          i used it in win2k,so i think it may not be connect with case sensitive.
          Any one can give me some help or a link I did not found in this group.
          Thanks
          

          1.the struts-html.tld is in web-inf directory
          2.this is part of the web.xml
          ===========
          <taglib>
          <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
          <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
          </taglib>
          <taglib>
          <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
          <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
          </taglib>
          <taglib>
          <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
          <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
          </taglib>
          <taglib>
          <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
          <taglib-location>/WEB-INF/struts-template.tld</taglib-location>
          </taglib>
          ================
          "Deepak Vohra" <[email protected]> wrote:
          >
          >Are the tld files including the struts-html.tld in the web-inf directory
          >& specified in the web.xml deployment descriptor?
          >
          >thanks,
          >
          >Deepak
          >
          >
          >"erric_sarra" <[email protected]> wrote:
          >>
          >>Hi,
          >>I meet a very strange problem.
          >>
          >>I use struts in my application.so I put struts.jar in web-inf/lib.
          >>In the .war file, the struts.jar can be found under web-inf/lib.
          >>
          >>my servlet configuration in web.xml is:
          >> <servlet>
          >> <servlet-name>action</servlet-name>
          >> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
          >> <init-param>
          >> <param-name>application</param-name>
          >> <param-value>StrutsProperties</param-value>
          >> </init-param>
          >> <init-param>
          >> <param-name>config</param-name>
          >> <param-value>/WEB-INF/struts-config.xml</param-value>
          >> </init-param>
          >> <load-on-startup>1</load-on-startup>
          >> </servlet>
          >>
          >>when this .war file is deploy, the console not show any error message.
          >>then,when i visit a jsp page that has a <html:form> tag, the console
          >>will show
          >>the error below:
          >><Error> <HTTP> <[WebAppServletContext(5418530,struts,/
          >>struts)] Servlet failed with Exception
          >>java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
          >> at java.lang.ClassLoader.defineClass0(Native Method)
          >> at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
          >> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
          >>1)
          >> at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
          >> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
          >> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
          >> at java.security.AccessController.doPrivileged(Native Method)
          >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
          >> at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
          >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
          >> at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
          >> at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
          >> at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
          >> at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAw
          >>areClassLoader.java:43)
          >> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
          >> at java.lang.Class.forName0(Native Method)
          >> at java.lang.Class.forName(Class.java:120)
          >> at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:563)
          >> at jsp_servlet.__logon._jspService(__logon.java:137)
          >> at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
          >> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
          >>pl.java:265)
          >> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
          >>pl.java:304)
          >> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
          >>pl.java:200)
          >> at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
          >>rvletContext.java:2495)
          >> at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
          >>pl.java:2204)
          >> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
          >> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
          >>>
          >>
          >>note "org/apache/struts/action/ActionForm" can be found when i open
          >struts.jar
          >>in web-inf/lib
          >>why weblogic can't find this class but can find the "org.apache.struts.action.ActionServlet",
          >>these 2 classes should all be located in struts.jar
          >>
          >>i used it in win2k,so i think it may not be connect with case sensitive.
          >>
          >>Any one can give me some help or a link I did not found in this group.
          >>
          >>Thanks
          >>
          >>
          >
          

Similar Messages

  • Is there a restriction on loading "javax" classes from WEB-INF/lib?

    I'm having trouble with a webapp in WL 10MP1 that is having trouble loading classes from the "jsr311-api-1.0.jar" in my WEB-INF/lib. Even though I have no trouble with it in Eclipse (no compile errors), classes from that jar fail with "NoClassDefFound" exceptions. I have a feeling it might be the fact that the packages in that jar start with "javax". Assuming that's the case, is there anything I can do to fix this?
    What's even stranger is that the errors I get are when I try to load them directly from the Spring context. However, if I remove the test references to those classes, there's other code that loads those classes later in the application startup (after the Spring context finishes loading), and they load perfectly fine (I turned on verbose class loading to verify this).

    Note that I've tried two other strategies that both result in the same failed state.
    I tried putting the "jsr311-api-1.0.jar" in $JDK_HOME/jre/lib/ext, but that causes a failure to find Spring classes. I then copied the "spring.jar" into $DOMAIN_HOME/lib, and then it fails to find CXF classes. After doing the same with "cxf-2.2.3.jar", it then fails to find "javax.servlet.ServletContextListener", which clearly tells me there's no benefit to this approach.
    Similarly, I tried copying the jars into $DOMAIN_HOME/lib, and that fails to find "org.apache.commons.logging.LogFactory". I could continue down this path, but it doesn't seem likely to succeed. Eventually, I'll get to a point where it just can't find the classes specific to my application, which I certainly can't copy into $DOMAIN_HOME/lib.
    The first basic problem is that I can't put anything into a higher-level classloader that will eventually reference classes in a lower-level classloader, because references can only go up the chain, and the second problem is that WebLogic appears to ignore classes in WEB-INF/lib in the "javax.*" packages. I think there might be an exception for "javax.xml.*", but not for other subpackages. I tried adding a "prefer-application-packages" clause to my weblogic-application.xml file, but that had no effect.

  • Web application in EAR not finding class in APP=INF/lib jar file

    Hi,
    I have read some posts regarding this but am still not able to figure out anything.
    I have a war file in my EAR along with some EJB jars. I have the common jars in the APP-INF/lib. The EJBs can find the classes in the common jars easily. But the Web app gives me a NoClassDefFoundError when trying to load a class from a common jar.
    Here is the structure:
    <pre>
    EAR
    |---WAR
    |---WEB-INF
    | |---lib
    | |---a.jar (A.class)
    |---APP-INF
    |---lib
    |---b.jar (B.class)
    </pre>
    Class A is trying to load class B and I get the NoClassDefFoundError for class B
    Thanks for any help,
    Sameet

    I found the problem. The web-app was finding the class in the APP-INf/lib. But the problem was being caused due to a reference to another class that was being loaded by the webapp classloader which was not visible to the class inside the common jar. The solution was to make sure both classes were being loaded by one class loader.
    Thanks anyway
    Sameet

  • Classes in web-inf/lib not being found.

    I'm having problems with a servlet app in which jar files placed in the web-inf/lib of the application are not found at runtime.
    If I put them in J2ee\home\lib they are found OK.
    This application has previously deployed and worked correctly, then I added another servlet and redeployed, and classes that were previously found OK stopped being found.
    On checking the server all the directories look correct.
    What could be causing this and how can I make my web applications deploy reliably?
    OC4J version is 9.0.3.0.0.
    Thanks

    Guys,
    Have you tried with the production version of OC4J 9.0.2 ? It should work. Please download the production version of OC4J 9.0.2 and give a try.
    regards
    Debu Panda
    Oracle

  • Can we downlod jar from WEB-INF/lib using webstart?

    Hi,
    Can we down jars which are in WEB-INF/lib directory
    using jnlp (webstart)?

    I got the basic concept of webstart.
    I can download jar only if publicly accessible (It
    should form a valid URL).Note an important distincion here..
    1) It is possible to form valid URL's that
    point to WEB-INF/lib.
    2) The server should not allow access, to
    that URL (any URL pointing inside WEB-INF/lib)
    and should return instead the HTTP code that says
    'not allowed/barred/forbidden'
    There is a big difference between a[b] valid URL,
    and a valid URL pointing to a forbidden resource.
    But yes, you seem to understand correctly,
    that the jar's for web-start cannot be loaded
    back to the client, from this directory.
    Thanks for your help.You're welcome.

  • Jar files not in WEB-INF/lib (custom ClassLoader?)

    I need to use classes in my JSP that do not come from a JAR file in the standard location. Sounds like I "simply" need to extend the ClassLoader used by the app server for loading the JSP. Is there any way of doing that?
    Example: my.jsp
    <h1>Hi</h1>
    <%
    FOO x = new FOO(); // code from a non-standard place
    ClassLoader cl = getClass().getClassLoader();
    %>
    I cannot put FOO.class into WEB-INF/lib or any of the standard places. Ideally I'd like to give the ClassLoader (cl above) a different (custom) parent ClassLoader which would know how to resolve FOO.class.
    I've poured over docs and Google and WebSphere and the Tomcat source code. Is this request of mine really so outrageous? I'm about the give up. What good are custom classloaders if one can't use them?

    You are essentially making the argument "All that Java
    needs is a URLClassLoader, and no one has any need for
    any custom ClassLoaders". (After all, that's all that
    I seem to have in a JSP context, with a list of
    hard-coded URLs into that URLClassLoader ...)
    Do a Google search on "custom ClassLoader" and you
    will find lots of reasons why people want to have
    custom ClassLoaders, such as ones that don't use any
    JAR or .class files ... which would qualify as why I
    can't put them into a certain place ...To be fair to duffymo, that is not how I read his argument. I read it as:
    "Sometimes we try to do things the hard way. If we sit back and rethink the problem, an easier solution might come about."
    I think this is a good opportunity to explain why you can not use the normal class loader heirarchy. You have no JARs and no .class files? Then where are you getting the class definitions? If you explain enough so that we might understand the problem:
    1) we might be able to come up with a solution or
    2) you might see a different approach before you are even done explaining
    #2 has happened to me more times then I can count. I sit down formulating a question for the forums, make sure I include enough detail to explain my problem. And by the time I am done I have a new (usually simpler) approach to solving the problem.
    Or you could sit and defend your first approach without providing any context and accomplish nothing. So its up to you.

  • Jne.jcert,jsee in web-inf lib

              Here are the details of the error that i am getting :
              Please bear with me as the stack trace is pretty big .
              I am using WebLogic ver 6.1 with Sp2 and JDK1.3.x .
              Following is the piece of the code from myservlet:
              package examples.myapp;
              import Base64Encoder.*;
              import javax.servlet.*;
              import javax.servlet.http.*;
              import java.io.*;
              import java.net.*;
              import java.security.*;
              import com.sun.net.ssl.*;
              import com.sun.net.ssl.HttpsURLConnection;
              import com.sun.net.ssl.internal.ssl.Provider;
              public class MyServlet extends HttpServlet {
              private final static String CONTENT_TYPE = "text/xml";
              private String SERVLETURL;
              private String USER_NAME;
              private String USER_PASSWORD;
              public void init(ServletConfig config) throws ServletException {
              super.init(config);
              SERVLETURL =”https://abc/xyz “;
              USER_NAME = getInitParameter("USER_NAME");
              USER_PASSWORD = getInitParameter("USER_PASSWORD");
              public void doGet(HttpServletRequest request, HttpServletResponse response)
              throws ServletException, IOException {
              try {
              Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
              System.setProperty("java.protocol.handler.pkgs",
              "com.sun.net.ssl.internal.www.protocol");
              String urlname = SERVLETURL;
              PrintWriter out = response.getWriter();
              URL url = new URL(urlname);
              HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();
              } catch (Exception e) {
              e.printStackTrace();
              Following is the str of myapp:
              Build
              Build/web-inf
              Build/web-inf/classes
              Build/web-inf/lib
              If I add jnet.jar,jcert.jar,jsse.jar in web-inf/lib then I get following msg
              java.lang.reflect.InvocationTargetException: weblogic.management.DistributedManagementException:
              Distributed Management [1 exceptions]
                   at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:443)
                   at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:298)
                   at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
                   at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
                   at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
                   at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
                   at $Proxy9.setDeployed(Unknown Source)
                   at java.lang.reflect.Method.invoke(Native Method)
                   at weblogic.management.console.info.MBeanAttribute.doSet(MBeanAttribute.java:84)
                   at weblogic.management.console.info.CompositeAttribute.doSet(CompositeAttribute.java:100)
                   at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:135)
                   at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
                   at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
                   at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
                   at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              --------------- nested within: ------------------
              weblogic.management.console.utils.SetException: An error occurred while updating
              Application.Deployed on Proxy for examples:Application=myapp,Name=myapp,Type=WebAppComponent
              - with nested exception:
              [java.lang.reflect.InvocationTargetException - with target exception:
              [weblogic.management.DistributedManagementException: Distributed Management [1
              exceptions]]]
                   at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:151)
                   at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
                   at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
                   at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
                   at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              Console Release Build
              6.1.2.0
              Server Release Build
              6.1.2.0
              Server Build
              WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
              All Server Product Versions
              WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529 WebLogic XML Module 6.1
              SP2 12/18/2001 11:28:02 #154529
              Also this what i get from stack trace:
              weblogic.j2ee.DeploymentException: Could not load myapp - with nested exception:
              [java.lang.StringIndexOutOfBoundsException: String index out of range: -1]
              at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:431)
              at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              at weblogic.j2ee.Application.deploy(Application.java:260)
              at weblogic.j2ee.J2EEService.deployApplication(J2EEService.java:185)
              at weblogic.management.mbeans.custom.Application.setLocalDeployed(Application.java:362)
              at weblogic.management.mbeans.custom.Application.setDeployed(Application.java:296)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBeanImpl.java:1388)
              at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:881)
              at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
              at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl
              ava:295)
              at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
              at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
              at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBe
              Impl.java:392)
              at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl
              ava:298)
              at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
              at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
              at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
              at $Proxy9.setDeployed(Unknown Source)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.console.info.MBeanAttribute.doSet(MBeanAttribute.java:84)
              at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.j
              a:135)
              at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:
              1)
              at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:
              95)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              <Feb 19, 2003 11:06:53 AM EST> <Error> <J2EE> <Error deploying application myapp:
              Could not loa
              myapp>
              <Feb 19, 2003 11:06:53 AM EST> <Error> <Management> <InvocationTargetException
              setting attribute D
              loyed on MBean examples:Location=examplesServer,Name=myapp,Type=ApplicationConfig
              to value true
              Method: public void weblogic.management.mbeans.custom.Application.setDeployed(boolean)
              throws webl
              ic.management.DeploymentException,weblogic.management.UndeploymentException
              java.lang.StringIndexOutOfBoundsException: String index out of range: -1
              at java.lang.String.substring(String.java:1525)
              at weblogic.utils.jars.ManifestEntry.stream(ManifestEntry.java:166)
              at weblogic.utils.jars.Manifest.stream(Manifest.java:81)
              at weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java:398)
              at weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:177)
              at weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServletContext.j
              a:3405)
              at weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:337
              at weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:862)
              at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:815)
              at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
              at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              at weblogic.j2ee.Application.deploy(Application.java:260)
              at weblogic.j2ee.J2EEService.deployApplication(J2EEService.java:185)
              at weblogic.management.mbeans.custom.Application.setLocalDeployed(Application.java:362)
              at weblogic.management.mbeans.custom.Application.setDeployed(Application.java:296)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBeanImpl.java:1388)
              at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:881)
              at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
              at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl
              ava:295)
              at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
              at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
              at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBe
              Impl.java:392)
              at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl
              ava:298)
              at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
              at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
              at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
              at $Proxy9.setDeployed(Unknown Source)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.console.info.MBeanAttribute.doSet(MBeanAttribute.java:84)
              at weblogic.management.console.info.CompositeAttribute.doSet(CompositeAttribute.java:100)
              at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.j
              a:135)
              at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:
              1)
              at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:
              95)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              --------------- nested within: ------------------
              weblogic.j2ee.DeploymentException: Could not load myapp - with nested exception:
              [java.lang.StringIndexOutOfBoundsException: String index out of range: -1]
              at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:431)
              at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              at weblogic.j2ee.Application.deploy(Application.java:260)
              at weblogic.j2ee.J2EEService.deployApplication(J2EEService.java:185)
              at weblogic.management.mbeans.custom.Application.setLocalDeployed(Application.java:362)
              at weblogic.management.mbeans.custom.Application.setDeployed(Application.java:296)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBeanImpl.java:1388)
              at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:881)
              at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
              at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl
              ava:295)
              at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
              at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
              at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBe
              Impl.java:392)
              at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl
              ava:298)
              at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
              at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
              at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
              at $Proxy9.setDeployed(Unknown Source)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.console.info.MBeanAttribute.doSet(MBeanAttribute.java:84)
              at weblogic.management.console.info.CompositeAttribute.doSet(CompositeAttribute.java:100)
              at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.j
              a:135)
              at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:
              1)
              at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:
              95)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              Plase suggest what should i do .
              Thanks,
              ag
              

    The alternative option is:
              >b) stay on sp2 try to muck with the jar files and fix manifest entries.
              That means take each of the jars, and see if the manifest looks corrupted.
              You could try starting with only one of them in "installed" and see which
              one is "bad", and then you can unjar it and , examine the manifest, fix it
              and rejar it.
              Here is the line that was busted:
              // End of header
              if (line.length() == 0) {
              return true;
              String key = line.substring(0, line.indexOf(':'));
              String value = line.substring(line.indexOf(':') + 2, line.length());
              addHeader(key, value);
              Cheers
              mbg
              "ag" <[email protected]> wrote in message
              news:[email protected]...
              >
              > We will not be upgrading to 6.1 sp3. So Could you please provide more
              details
              > about the alternative option to use https url connection from servlet.
              >
              >
              > Thanks,
              > ag
              >
              >
              > "ag" <[email protected]> wrote:
              > >
              > >Here are the details of the error that i am getting :
              > >Please bear with me as the stack trace is pretty big .
              > >I am using WebLogic ver 6.1 with Sp2 and JDK1.3.x .
              > >
              > >Following is the piece of the code from myservlet:
              > >
              > >package examples.myapp;
              > >
              > >
              > >import Base64Encoder.*;
              > >import javax.servlet.*;
              > >import javax.servlet.http.*;
              > >import java.io.*;
              > >import java.net.*;
              > >import java.security.*;
              > >import com.sun.net.ssl.*;
              > >import com.sun.net.ssl.HttpsURLConnection;
              > >import com.sun.net.ssl.internal.ssl.Provider;
              > >public class MyServlet extends HttpServlet {
              > >
              > > private final static String CONTENT_TYPE = "text/xml";
              > > private String SERVLETURL;
              > > private String USER_NAME;
              > > private String USER_PASSWORD;
              > >public void init(ServletConfig config) throws ServletException {
              > > super.init(config);
              > > SERVLETURL ="https://abc/xyz ";
              > > USER_NAME = getInitParameter("USER_NAME");
              > > USER_PASSWORD = getInitParameter("USER_PASSWORD");
              > > }
              > >
              > > public void doGet(HttpServletRequest request, HttpServletResponse
              > >response)
              > > throws ServletException, IOException {
              > > try {
              > >
              > > Security.addProvider(new
              com.sun.net.ssl.internal.ssl.Provider());
              > >
              > > System.setProperty("java.protocol.handler.pkgs",
              > > "com.sun.net.ssl.internal.www.protocol");
              > > String urlname = SERVLETURL;
              > > PrintWriter out = response.getWriter();
              > > URL url = new URL(urlname);
              > >HttpsURLConnection connection = (HttpsURLConnection)
              url.openConnection();
              > >
              > >
              > >..
              > >..
              > >..
              > >..
              > >..
              > >
              > > } catch (Exception e) {
              > > e.printStackTrace();
              > >
              > > }
              > >
              > >
              > >Following is the str of myapp:
              > >
              > >Build
              > >Build/web-inf
              > >Build/web-inf/classes
              > >Build/web-inf/lib
              > >
              > >If I add jnet.jar,jcert.jar,jsse.jar in web-inf/lib then I get following
              > > msg
              > >:
              > >
              > >java.lang.reflect.InvocationTargetException:
              weblogic.management.DistributedManagementException:
              > >Distributed Management [1 exceptions]
              > > at
              weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(Confi
              gurationMBeanImpl.java:443)
              > > at
              weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Configurati
              onMBeanImpl.java:298)
              > > at
              com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:135
              6)
              > > at
              com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:133
              1)
              > > at
              weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
              > > at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
              > > at $Proxy9.setDeployed(Unknown Source)
              > > at java.lang.reflect.Method.invoke(Native Method)
              > > at
              weblogic.management.console.info.MBeanAttribute.doSet(MBeanAttribute.java:84
              > > at
              weblogic.management.console.info.CompositeAttribute.doSet(CompositeAttribute
              .java:100)
              > > at
              weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMB
              eanAction.java:135)
              > > at
              weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
              rvlet.java:171)
              > > at
              weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
              let.java:85)
              > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              > > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :265)
              > > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :200)
              > > at
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              ntext.java:2495)
              > > at
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              :2204)
              > > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              > >--------------- nested within: ------------------
              > >weblogic.management.console.utils.SetException: An error occurred while
              > >updating
              > >Application.Deployed on Proxy for
              examples:Application=myapp,Name=myapp,Type=WebAppComponent
              > >- with nested exception:
              > >[java.lang.reflect.InvocationTargetException - with target exception:
              > >[weblogic.management.DistributedManagementException: Distributed
              Management
              > >[1
              > >exceptions]]]
              > > at
              weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMB
              eanAction.java:151)
              > > at
              weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
              rvlet.java:171)
              > > at
              weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
              let.java:85)
              > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              > > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :265)
              > > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :200)
              > > at
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              ntext.java:2495)
              > > at
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              :2204)
              > > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              > >
              > >
              > >
              > >Console Release Build
              > >6.1.2.0
              > >
              > >Server Release Build
              > >6.1.2.0
              > >
              > >Server Build
              > >WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
              > >
              > >All Server Product Versions
              > >WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529 WebLogic XML Module
              > >6.1
              > >SP2 12/18/2001 11:28:02 #154529
              > >
              > >Also this what i get from stack trace:
              > >
              > >weblogic.j2ee.DeploymentException: Could not load myapp - with nested
              > >exception:
              > >[java.lang.StringIndexOutOfBoundsException: String index out of range:
              > >-1]
              > > at
              weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:431)
              > > at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              > > at weblogic.j2ee.Application.deploy(Application.java:260)
              > > at
              weblogic.j2ee.J2EEService.deployApplication(J2EEService.java:185)
              > > at
              weblogic.management.mbeans.custom.Application.setLocalDeployed(Application.j
              ava:362)
              > > at
              weblogic.management.mbeans.custom.Application.setDeployed(Application.java:2
              96)
              > > at java.lang.reflect.Method.invoke(Native Method)
              > > at
              weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBeanImpl.
              java:1388)
              > > at
              weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
              java:881)
              > > at
              weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
              java:847)
              > > at
              weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Configurati
              onMBeanImpl
              > >ava:295)
              > > at
              com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:135
              6)
              > > at
              com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:133
              1)
              > > at
              weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(Confi
              gurationMBe
              > >Impl.java:392)
              > > at
              weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Configurati
              onMBeanImpl
              > >ava:298)
              > > at
              com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:135
              6)
              > > at
              com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:133
              1)
              > > at
              weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
              > > at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
              > > at $Proxy9.setDeployed(Unknown Source)
              > > at java.lang.reflect.Method.invoke(Native Method)
              > > at
              weblogic.management.console.info.MBeanAttribute.doSet(MBeanAttribute.java:84
              > > at
              weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMB
              eanAction.j
              > >a:135)
              > > at
              weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
              rvlet.java:
              > >1)
              > > at
              weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
              let.java:85
              > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              > > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :265)
              > > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :200)
              > > at
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              ntext.java:
              > >95)
              > > at
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              :2204)
              > > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              > >>
              > ><Feb 19, 2003 11:06:53 AM EST> <Error> <J2EE> <Error deploying
              application
              > >myapp:
              > >Could not loa
              > >myapp>
              > ><Feb 19, 2003 11:06:53 AM EST> <Error> <Management>
              <InvocationTargetException
              > >setting attribute D
              > >loyed on MBean
              examples:Location=examplesServer,Name=myapp,Type=ApplicationConfig
              > >to value true
              > >Method: public void
              weblogic.management.mbeans.custom.Application.setDeployed(boolean)
              > >throws webl
              >
              >ic.management.DeploymentException,weblogic.management.UndeploymentException
              > >java.lang.StringIndexOutOfBoundsException: String index out of range:
              > >-1
              > > at java.lang.String.substring(String.java:1525)
              > > at
              weblogic.utils.jars.ManifestEntry.stream(ManifestEntry.java:166)
              > > at weblogic.utils.jars.Manifest.stream(Manifest.java:81)
              > > at
              weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java
              :398)
              > > at
              weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:1
              77)
              > > at
              weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServl
              etContext.j
              > >a:3405)
              > > at
              weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletConte
              xt.java:337
              > >
              > > at
              weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.jav
              a:862)
              > > at
              weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.j
              ava:815)
              > > at
              weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
              > > at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              > > at weblogic.j2ee.Application.deploy(Application.java:260)
              > > at
              weblogic.j2ee.J2EEService.deployApplication(J2EEService.java:185)
              > > at
              weblogic.management.mbeans.custom.Application.setLocalDeployed(Application.j
              ava:362)
              > > at
              weblogic.management.mbeans.custom.Application.setDeployed(Application.java:2
              96)
              > > at java.lang.reflect.Method.invoke(Native Method)
              > > at
              weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBeanImpl.
              java:1388)
              > > at
              weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
              java:881)
              > > at
              weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
              java:847)
              > > at
              weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Configurati
              onMBeanImpl
              > >ava:295)
              > > at
              com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:135
              6)
              > > at
              com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:133
              1)
              > > at
              weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(Confi
              gurationMBe
              > >Impl.java:392)
              > > at
              weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Configurati
              onMBeanImpl
              > >ava:298)
              > > at
              com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:135
              6)
              > > at
              com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:133
              1)
              > > at
              weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
              > > at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
              > > at $Proxy9.setDeployed(Unknown Source)
              > > at java.lang.reflect.Method.invoke(Native Method)
              > > at
              weblogic.management.console.info.MBeanAttribute.doSet(MBeanAttribute.java:84
              > > at
              weblogic.management.console.info.CompositeAttribute.doSet(CompositeAttribute
              .java:100)
              > > at
              weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMB
              eanAction.j
              > >a:135)
              > > at
              weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
              rvlet.java:
              > >1)
              > > at
              weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
              let.java:85
              > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              > > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :265)
              > > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :200)
              > > at
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              ntext.java:
              > >95)
              > > at
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              :2204)
              > > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              > >--------------- nested within: ------------------
              > >weblogic.j2ee.DeploymentException: Could not load myapp - with nested
              > >exception:
              > >[java.lang.StringIndexOutOfBoundsException: String index out of range:
              > >-1]
              > > at
              weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:431)
              > > at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              > > at weblogic.j2ee.Application.deploy(Application.java:260)
              > > at
              weblogic.j2ee.J2EEService.deployApplication(J2EEService.java:185)
              > > at
              weblogic.management.mbeans.custom.Application.setLocalDeployed(Application.j
              ava:362)
              > > at
              weblogic.management.mbeans.custom.Application.setDeployed(Application.java:2
              96)
              > > at java.lang.reflect.Method.invoke(Native Method)
              > > at
              weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBeanImpl.
              java:1388)
              > > at
              weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
              java:881)
              > > at
              weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.
              java:847)
              > > at
              weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Configurati
              onMBeanImpl
              > >ava:295)
              > > at
              com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:135
              6)
              > > at
              com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:133
              1)
              > > at
              weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(Confi
              gurationMBe
              > >Impl.java:392)
              > > at
              weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(Configurati
              onMBeanImpl
              > >ava:298)
              > > at
              com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:135
              6)
              > > at
              com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:133
              1)
              > > at
              weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
              > > at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
              > > at $Proxy9.setDeployed(Unknown Source)
              > > at java.lang.reflect.Method.invoke(Native Method)
              > > at
              weblogic.management.console.info.MBeanAttribute.doSet(MBeanAttribute.java:84
              > > at
              weblogic.management.console.info.CompositeAttribute.doSet(CompositeAttribute
              .java:100)
              > > at
              weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMB
              eanAction.j
              > >a:135)
              > > at
              weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
              rvlet.java:
              > >1)
              > > at
              weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
              let.java:85
              > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              > > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :265)
              > > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :200)
              > > at
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              ntext.java:
              > >95)
              > > at
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              :2204)
              > > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              > >>
              > >
              > >
              > >
              > >
              > >Plase suggest what should i do .
              > >
              > >Thanks,
              > >ag
              >
              

  • Can't find class org/apache/jk/apr/AprImpl

    Hi
    I have Tomcat 4.1.29 and Apache Web Server 2.0.48 installed.
    I have used this tutorial since I'm a newbie :(
    http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html
    My problem is when I try to regroup them, I obtained this error error.log.
    error] Can't find class org/apache/jk/apr/AprImpl
    java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$100(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$100(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Here is my confid file (workers.properties) :
    [logger]
    level=DEBUG
    [config:]
    #file=C:/Apache2/conf/workers2.properties
    file=C:/Apache2/conf/workers2.properties
    debug=0
    debugEnv=0
    [uriMap:]
    info=Maps the requests. Options: debug
    debug=0
    # Alternate file logger
    #[logger.file:0]
    #level=DEBUG
    #file=C:/Apache2/logs/jk2.log
    [shm:]
    info=Scoreboard. Required for reconfiguration and status with multiprocess servers
    file=C:/Apache2/logs/jk2.shm
    size=1000000
    debug=0
    disabled=0
    [workerEnv:]
    info=Global server options
    timing=1
    debug=0
    # Default Native Logger (apache2 or win32 )
    # can be overriden to a file logger, useful
    # when tracing win32 related issues
    #logger=logger.file:0
    [lb:lb]
    info=Default load balancer.
    debug=0
    #[lb:lb_1]
    #info=A second load balancer.
    #debug=0
    [channel.socket:localhost:8009]
    info=Ajp13 forwarding over socket
    debug=0
    tomcatId=localhost:8009
    #[channel.socket:localhost:8019]
    #info=A second tomcat instance.
    #debug=0
    #tomcatId=localhost:8019
    #lb_factor=1
    #group=lb
    #group=lb_1
    #disabled=0
    #[channel.un:/opt/33/work/jk2.socket]
    #info=A second channel connecting to localhost:8019 via unix socket
    #tomcatId=localhost:8019
    #lb_factor=1
    #debug=0
    [channel.jni:jni]
    info=The jni channel, used if tomcat is started inprocess
    [status:]
    info=Status worker, displays runtime informations
    [vm:]
    info=Parameters used to load a JVM in the server process
    #JVM=C:\jdk\jre\bin\hotspot\jvm.dll
    OPT=-Djava.class.path=c:/Tomcat/bin/tomcat-jni.jar;c:/Tomcat/server/lib/commons-logging.jar
    OPT=-Dtomcat.home=${TOMCAT_HOME}
    OPT=-Dcatalina.home=${TOMCAT_HOME}
    OPT=-Xmx128M
    #OPT=-Djava.compiler=NONE
    disabled=0
    [worker.jni:onStartup]
    info=Command to be executed by the VM on startup. This one will start tomcat.
    class=org/apache/jk/apr/TomcatStarter
    ARG=start
    disabled=0
    stdout=C:/Apache2/logs/stdout.log
    stderr=C:/Apache2/logs/stderr.log
    [worker.jni:onShutdown]
    info=Command to be executed by the VM on shutdown. This one will stop tomcat.
    class=org/apache/jk/apr/TomcatStarter
    ARG=stop
    disabled=0
    [uri:/jkstatus/*]
    info=Display status information and checks the config file for changes.
    group=status:
    #[uri:127.0.0.1:8003]
    #info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to test it
    #alias=myVirtualHost:8003
    #[uri:127.0.0.1:8003/ex]
    #info=Example webapp in the virtual host. It'll go to lb_1 ( i.e. localhost:8019 )
    #context=/ex
    #group=lb_1
    [uri:/examples]
    info=Example webapp in the default context.
    context=/examples
    debug=0
    #[uri:/examples1/*]
    #info=A second webapp, this time going to the second tomcat only.
    #group=lb_1
    #debug=0
    [uri:/examples/servlets/*]
    info=Prefix mapping
    [uri:/examples/*.jsp]
    info=Extension mapping
    [uri:/examples/*]
    info=Map the whole webapp
    [uri:/examples/servlets/HelloW]
    info=Exampel with debug enabled.
    debug=10
    Thank you for your time !
    Max

    Btw: I get the warning starting IIS - It seems to me that IIS tries to load Tomcat on-the-fly. The Tomcat load the fails and IIS continues to load successfully.
    The beginning of the IIS Event log outputs this:
    Apache Jakarta Connector2, Information, Info: [jk_vm_default.c (340)]: vm.detach() ok
    Apache Jakarta Connector2, Warning, Error: [jk_worker_jni.c (308)]: Can't find class org/apache/jk/apr/AprImpl
    Apache Jakarta Connector2, Information, Info: [jk_worker_jni.c (297)]: Loaded org/apache/jk/apr/TomcatStarter
    Apache Jakarta Connector2, None, Debug: [jk_vm_default.c (302)]: vm.attach() allready attached
    Apache Jakarta Connector2, Information, Info: [jk_worker_jni.c (252)]: jni.validate() class= org/apache/jk/apr/TomcatStarter
    Apache Jakarta Connector2, Information, Info: [jk_vm_default.c (607)]: vm.open2() done
    Apache Jakarta Connector2, Information, Info: [jk_vm_default.c (500)]: vm.init(): Jni lib: C:\wwwapps\j2sdk1.4.2_01\jre\bin\client\jvm.dll
    /watson

  • Help! JSP w/ struts can't find Class.forName("com.mysql.jdbc.Driver")

    I think this is just a directory structure issue but I can't figure it out. I am writing a JSP / Struts / MYSQL web application which uses the mysql JDBC connector. The connector (mysql-connector-java-5.1.6-bin.jar) is in the referenced libraries. If I write the line of code:
    Class.forName("com.mysql.jdbc.Driver");
    To load up the driver, it works in JSP files in the folder /projectname/webroot/web-inf just fine and I can go on to execute MySQL queries. However, I need to load up the driver in an action (.java action) with the directory structure /projectname/src/action and it throws the exception "class not found", I believe, it can no longer seem to get to the driver. Can anyone tell me how to resolve this problem?
    Thanks in advance, I hope this is the correct place (I have done my best to find the right one).
    Edited by: Arkanin on Apr 24, 2008 4:39 PM

    Arkanin wrote:
    I think this is just a directory structure issue but I can't figure it out. I am writing a JSP / Struts / MYSQL web application which uses the mysql JDBC connector. The connector (mysql-connector-java-5.1.6-bin.jar) is in the referenced libraries. Nope, it's not. I don't know what "referenced libraries" means. It has to be in CLASSPATH, and that isn't an environment variable.
    If I write the line of code:
    Class.forName("com.mysql.jdbc.Driver"); No, wrong.
    The JAR file for the Driver class might go in the WEB-INF/lib of your web app. If you're using Tomcat 5.5.26, put it in common/lib.
    %

  • Redirect to "can't find the i-web page"/file name change

    i published a website thru mobileme (http://www.hale-o-lani-aloha.com). when i type my website address in e-mails and check the link, i sometimes got directed to a page that said "we're sorry but we can't find the i-web page you've requested..." (yes, i've checked my typing!)
    when i created my sitemap (with rage sitemap automator), i was told that the apostrophe in the file name for my first page was probably causing the problem. my file name was"hale o'lani aloha". i changed the file name for the webpage to "hale o lani aloha" and republished, redid the sitemap, etc. i now have 2 sets of files on my i-disk: one for Haleo'LaniAloha and the other for HaleoLaniAloha (i don't know why it's not "HaleoLani"). both sets of files have folders with the individual components of the site, css style sheet, java script and html files. the bad redirect site address has "/Site/HaleoLaniAloha" in the address. (when i checked the "oLani" html file on my i-disk, it opens an incomplete version of my first webpage. however, the "o'Lani" html file opens the fully functioning page). when the links work, the address has "/Site/Haleo_LaniAloha" (the new file name). so that long explanation brings me to my questions:
    - did the apostrophe in my file name truly mess things up?
    - since my fully functioning html file on i-disk has the apostrophe in it, should i rename my file with the apostrophe and delete the non-apostrophe files from my i-disk (even tho the working website has "oLani")?
    thanks for any info that can help clear up this mess!

    You can find import now in the Library:
    *Bookmarks > Show All Bookmarks > Import & Backup > Import Data from Another Browser

  • ERROR: Can't find class Startadmin

    Hello,
    why do I get this error message:
    Can't find class Startadmin
    I want to start my class Startadmin.java with "java Startadmin"!
    The file is in the current path, so I tried "java -classpath .: Startadmin" too, but I sill get this error!
    What can I do?

    Can you please post the solution, I'm having similar problem.
    I set the classpath before compiling the program
    export CLASSPATH=/usr/java/lib/classes.zip:/oracle/product/8.1.6/demo/lib/classes111.zip
    When I try to run the program at the command prompt
    $ java JdbcTest
    I am getting error message "Can't find class JdbcTest"
    When tried
    $ java -classpath . JdbcTest
    I was getting different error message
    java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver at JdbcTest.main(Compiled Code)
    Any help is appreiated
    Thanks
    SJ

  • Error: Can't find Class

    Hi there,
    I have added an external library (jtom) to my project. I get this runtime error when running my midlet:
    Error: Can't find Class jtom.service.JTOMException.
    When I extract the contents of the library(jtom), I can see that the class (jtom.service.JTOMException) exists. I can also see this class in myProject>>Build>>compiled folder.
    I'm using Netbeans Mobility 5.5
    Please Assist,
    Pheks

    Can you please post the solution, I'm having similar problem.
    I set the classpath before compiling the program
    export CLASSPATH=/usr/java/lib/classes.zip:/oracle/product/8.1.6/demo/lib/classes111.zip
    When I try to run the program at the command prompt
    $ java JdbcTest
    I am getting error message "Can't find class JdbcTest"
    When tried
    $ java -classpath . JdbcTest
    I was getting different error message
    java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver at JdbcTest.main(Compiled Code)
    Any help is appreiated
    Thanks
    SJ

  • WAR Can't find class in JAR file in EAR/lib

    Hi,
    I have 1 EAR file with 1 WAR and 1 EJB-JAR file. Our main business-code is in a JAR-file which is placed in the EAR/lib/ folder along with the rest of the shared JAR-files.
    When i deploy the EAR the EJB gets deployed fine but when the WAR gets deployed, we get a ClassNotFoundException. We configured a class as a ServletContextListener (Which is part of the jar) in the web.xml so at startup it should perform some initiation. But since it can;t be found....
    I've tried changing the Mainfest.mf to include a CLASSPATH attribute with ./lib/x.jar but it stil the same problem. The only thing that solves it is to put it in the WEB-INF/lib folder.
    What am i doing wrong?
    Thanks,
    Maarten

    Here it is
    <?xml version="1.0"?>
    <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>
    <application>
         <display-name>spg-online</display-name>
         <module>
              <web>
                   <web-uri>appname.war</web-uri>
                   <context-root>appname</context-root>
              </web>
         </module>
         <!--module>
              <ejb>appname-ejb.jar</ejb>
         </module-->     
    </application>
    My app follows the basic structure of an EAR-file:
    EAR
    META-INF
    application.xml
    lib
    appname.jar
    a.jar
    spring.jar
    appname.war
    appname-ejb.jar
    The meta-inf of the war-file looks like this:
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.6.5
    Created-By: 1.4.2_08-b03 (Sun Microsystems Inc.)
    Class-path: ./lib/appname.jar ./spring.jar
    I let ANT generate the Class-path:
    <jar jarfile="${dist.home}/${component.name}.war">
    <fileset dir="${build.home.webroot}" />
    <!-- dependency -->
    <manifest>
    <attribute name="Class-Path" value="${lib.project.manifest.classpath}"/>
    </manifest>
    </jar>

  • Where can i find class files in server

    Hi Gurus,where can i find class files in server.
    Kranthi

    Hi,
    Class files:
    Common\JAVA_TOP
    Pages:
    Appl\mds
    Regards
    Meher Irk

  • HELP - 'Can't find class' error

    I have just bought a new computer with Windows XP and downloaded and installed the new versions of the jdk, jre, etc.
    I have written the Hello World program to check that everything works. It compiles fine, but when I try to run I get an error - Can't find class helloworld - and then it exits.
    I know that the path variable is set correctly and I used to have to set the classpath as well, but have been told that this is not necessary.
    I really need to get this working as have some important programming to do.
    Thanks for any help,
    Olly

    Try this;-
    prompt>set CLASSPATH=
    .......> return key
    prompt>java helloWorld
    Hello World!
    prompt>
    AMAZING!
    This works fine. Thanx.
    Is there any way to set it so that I dont have to do
    the set classpath stuff each time I run a program
    though?
    CheersWell, set a system variable
    CLASSPATH=.;<java_home>\jre\lib\rt.jar
    regardws, Thomas

Maybe you are looking for

  • Customer Returns for Excisable Finished materials RG1 registers update

    Dear Experts, Ours is an Excisable Plant. The Normal Sales to Invoice process runs fine. When it comes to Customer Returns, kindly help me in understanding the process in receiving the Excise material. Right now, i'm doing the following, 1. Create Re

  • How do i get the adobe acrobat software toolbar?

    How do i get the adobe acrobat software toolbar?

  • Snow leopard installed, but now unable to open documents????

    Dear all, Has anyone experienced more problems with snow leopard? I have installed it, but it seems that I am less able to open attached documents when people e-mail me and I have now also problems opening older Leopard documents (pages). What can I

  • Anyone know good transcribing software?

    This probably isn't the place to post this, but I really didn't see a good category on the discussion board, so if there's a better place, just direct me. I lot of my job involves transcribing interview off my digital tape recorder. I know there are

  • How to Delete exter.processed Open PRs

    Hi PP friends, Can u pl. tell me how to delete  PRs generated through externally process operation .Actually these are those PRs which have been either partially converted or not converted at all. But still in the system and now client wants to delet