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
>
Similar Messages
-
Oc4j 10.1.3.0.0Prev4 does not load libs in WEB-INF/lib
Hi,
trying to use an existing application with oc4j I have serious problems.
When trying to deploy I get exceptions (ClassNotFound) of classes that are in libs that are in the WEB-INF/lib folder of the war file I want to deploy:
05/09/23 17:20:21 CharScanner; panic: ClassNotFoundException: org.hibernate.hql.ast.HqlToken
This class is in hibernate3.jar which is included in the war-file.
When I place all the libs into the applib folder it does deploy. But then it crashes at runtime telling me the classes are duplicate (one in the war, one in applib).
Any suggestions what I can do would be greatly appreciated.
NorbertHello,
Instead of simply dropping the Jar file in the applib directory you should create shared libraries that will give you better control of what is happening at the classloader level (System, Application and Web Application)
Please take a look to the 10.1.3 How tos about shared library. (Swapping XML parser and JDBC driver), and also to the documentation, chapter 7 "Using Shared Libraries" of the OC4J Configuration and Administration Guide
Regards
Tugdual Grall -
Error while accessing a war with xmlbeans under WEB-INF/lib
Hi All,
I am trying to deploy a WAR file with XMLBean generated jar under WEB-INF/lib folder along with other jars.
I am getting following error
java.lang.NoClassDefFoundError: com/xx/DataServiceRequestDocument
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
at java.lang.Class.getDeclaredField(Class.java:1880)
at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1610)
at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52)
at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:425)
at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:413)
at java.io.ObjectStreamClass.lookup0(ObjectStreamClass.java:310)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java)
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:547)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java:2216)
at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2347)
at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2290)
at com.tangosol.io.DefaultSerializer.deserialize(DefaultSerializer.java:74)
at com.tangosol.coherence.component.net.extend.Channel.deserialize(Channel.CDB:15)
at com.tangosol.io.pof.PofBufferReader.readAsObject(PofBufferReader.java:3306)
at com.tangosol.io.pof.PofBufferReader.readObject(PofBufferReader.java:2603)
at com.tangosol.coherence.component.net.extend.messageFactory.InvocationServiceFactory$InvocationRequest.readExternal(InvocationServiceFactory.CDB:5)
at com.tangosol.coherence.component.net.extend.Codec.decode(Codec.CDB:29)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.decodeMessage(Peer.CDB:25)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.onNotify(Peer.CDB:54)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
at java.lang.Thread.run(Thread.java:662)
I tried multiple combinations like changing, but no success.
<wls:weblogic-web-app xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
<wls:weblogic-version>10.3.2</wls:weblogic-version>
<wls:context-root>CoherenceWS</wls:context-root>
<wls:container-descriptor>
<wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
</wls:container-descriptor>
</wls:weblogic-web-app>
I have very few classes in WEB-INF/class (trying to load java objects from lib)
My WEB-INF/lib folder contains following jar
coherence.jar
commons-beanutils-1.8.0.jar
commons-collections-3.2.jar
commons-lang-2.4.jar
commons-logging-1.1.1.jar
dsRemoteCall.jar
ezmorph-1.0.jar
jackson-all-1.8.5.jar
json-lib-2.1-jdk13.jar
org.springframework.asm-3.1.0.M2.jar
org.springframework.beans-3.1.0.M2.jar
org.springframework.context-3.1.0.M2.jar
org.springframework.core-3.1.0.M2.jar
org.springframework.expression-3.1.0.M2.jar
org.springframework.oxm-3.1.0.M2.jar
org.springframework.web-3.1.0.M2.jar
org.springframework.web.servlet-3.1.0.M2.jar
schemaclasses.jar
xbean.jar
xom-1.2.7.jar
Am I missing something? Any help is greatly appreciated
Thanks
sunder
Edited by: 868704 on Sep 6, 2011 6:10 PMNote : schemaclasses.jar contains "com/xx/DataServiceRequestDocument" class file.
WebLogic Server 10.3.5.0
Thanks
sunder
Edited by: 868704 on Sep 6, 2011 6:26 PM -
How to setup using WEB-INF/lib in weblogic 10.3.1
Hello everybody:
I check weblogic 10.3.1 in %WLS_PAHT%/modules find com.bea.core.apache.commons.lang_2.1.0.jar.
But I want using org.apache.commons.lang.time.DateUtils.addDays(java.util.Date date, int amount).
In server version,no this method
So I download commons-lang 2.4 from apache,and put it in WEB-INF/lib.
and I aslo setting this :
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-application xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-application" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.0/weblogic-application.xsd">
<!--weblogic-version:10.3.1-->
<wls:application-param>
<wls:param-name>webapp.encoding.default</wls:param-name>
<wls:param-value>UTF-8</wls:param-value>
</wls:application-param>
<wls:prefer-application-packages>
<wls:package-name>org.apache.commons.lang.time.*</wls:package-name>
</wls:prefer-application-packages>
</wls:weblogic-application>
but when I run
<body>
<%=DateFormatUtils.format(DateUtils.addDays(new Date(),2),"yyyyMMdd HHmm")%>
</body>
this result :
The method addDays(Date, int) is undefined for the type DateUtils
<%=DateFormatUtils.format(DateUtils.addDays(new Date(),2),"yyyyMMdd HHmm")%>
^----^
at weblogic.servlet.jsp.JavelinxJSPStub.reportCompilationErrorIfNeccessary(JavelinxJSPStub.java:221)
at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:157)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:246)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:191)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)
Truncated. see log file for complete stacktrace
>
anyboby can tell me,how to setting this.Try to set <prefer-web-inf-classes>true</prefer-web-inf-classes>
--olaf
Edited by: Olaf Heimburger on Oct 30, 2009 6:06 PM -
How to load .jar files of subfolder in web-inf/lib folder?
Hi All,
In 'webapps\myappliction\WEB-INF\lib\myfolder' and in myfolder have some .jar files. How to load subfolder jar files in weblogic server 10.0?
Do I need to configure subfolder jar path in web.xml? Please help me.
Thanks & Regards,
GangadharClass loaders associated with a Web application can be configured to locate local classes first. To enable this we have to set the <prefer-web-inf-classes> to true in the deployment override weblogic.xml, for example
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
http://blog.transfer-solutions.com/2010/12/weblogic-class-loading/ -
JAR Files not found from /WEB-INF/lib
It appears that weblogic server (6.1 SP2 I believe) is not finding all
the jar files in the /WEB-INF/lib directory. Some, but not all. I am
not using a WAR file, the dirctories are right on the disk. I start
out with the following jar files in my WEB-INF/lib directory:
Volume in drive C has no label.
Volume Serial Number is 641F-B7A0
Directory of C:\bea\wlserver6.1\config\mydomain\applications\garyapp\WEB-INF\li
b
02/13/2002 11:34a <DIR> .
02/13/2002 11:34a <DIR> ..
01/25/2002 09:44a 45,386 activation-1.0.1.jar
01/07/2002 04:49p 1,124,276 classes12.jar
01/25/2002 09:44a 379,658 ecs-1.4.1.jar
01/25/2002 09:44a 175,666 hsql.jar
01/25/2002 09:44a 76,964 httpunit.jar
01/25/2002 09:44a 236,041 idb.jar
01/25/2002 09:44a 29,937 jakarta-regexp-1.3-dev.jar
01/25/2002 09:44a 84,854 jdbc-se2.0.jar
01/25/2002 09:44a 6,727 jdbc2_0-stdext.jar
01/25/2002 09:44a 98,496 jndi-1.2.1.jar
01/25/2002 09:44a 17,619 jta1.0.1.jar
01/25/2002 09:44a 97,382 junit-3.2.jar
01/25/2002 09:44a 152,037 log4j-1.1.jar
01/25/2002 09:44a 280,984 mail-1.2.jar
01/25/2002 09:44a 109,927 mm.mysql-2.0.4.jar
01/25/2002 09:44a 76,734 oro.jar
01/25/2002 09:44a 194,500 postgresql.jar
01/25/2002 09:44a 4,041 README.txt
01/25/2002 09:44a 208,635 sapdbc.jar
02/13/2002 11:21a 216,879 STT.jar
02/08/2002 12:15p 707,897 turbine-2.2b1.jar
01/25/2002 09:44a 369,494 velocity-1.2-dev.jar
01/25/2002 09:44a 31,326 village-1.5.1.jar
01/25/2002 09:44a 436,094 xalan-1.2.1.jar
01/25/2002 09:44a 840,704 xerces-1.3.0.jar
01/25/2002 09:44a 47,926 xmlrpc.jar
26 File(s) 6,050,184 bytes
2 Dir(s) 29,539,246,080 bytes free
When I run the server, only these files are put in the tmp_war
directory:
Volume in drive C has no label.
Volume Serial Number is 641F-B7A0
Directory of C:\bea\wlserver6.1\config\mydomain\applications\garyapp\WEB-INF\_t
mp_war_myserver_myserver_garyapp\WEB-INF\lib
02/15/2002 12:31p <DIR> .
02/15/2002 12:31p <DIR> ..
02/15/2002 12:31p 1,124,276 classes1263855.jar
02/15/2002 12:31p 175,666 hsql63856.jar
02/15/2002 12:31p 76,964 httpunit63857.jar
02/15/2002 12:31p 236,041 idb63858.jar
02/15/2002 12:31p 6,727 jdbc2_0-stdext63859.jar
02/15/2002 12:31p 76,734 oro63860.jar
02/15/2002 12:31p 194,500 postgresql63861.jar
02/15/2002 12:31p 208,635 sapdbc63862.jar
02/15/2002 12:31p 216,879 STT63863.jar
02/15/2002 12:31p 47,926 xmlrpc63864.jar
10 File(s) 2,364,348 bytes
2 Dir(s) 29,539,078,144 bytes free
It's not only that the files don't show up, of course: if I run the
system and it makes references to the files, I get a
ClassNotFoundException:
<Feb 15, 2002 12:32:39 PM EST> <Error> <HTTP>
<[WebAppServletContext(7243997,gar
yapp,/garyapp)] Error loading servlet: "garyapp"
java.lang.ClassNotFoundException: org.apache.turbine.Turbine
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass
Loader.java:179)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAw
areClassLoader.java:65)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAw
areClassLoader.java:43)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:583)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:368)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:242)
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)
>
<Feb 15, 2002 12:32:39 PM EST> <Error> <HTTP>
<[WebAppServletContext(7243997,gar
yapp,/garyapp)] Servlet failed with ServletException
javax.servlet.ServletException: Servlet class:
'org.apache.turbine.Turbine' coul
d not be loaded - the requested class wasn't found in the classpath:
'C:\bea\wl
server6.1\config\mydomain\applications\garyapp;C:\bea\wlserver6.1\.\config\mydom
ain\applications\garyapp\WEB-INF\classes;C:\bea\wlserver6.1\.\config\mydomain\ap
plications\garyapp\WEB-INF\_tmp_war_myserver_myserver_garyapp\WEB-INF\lib\classe
s1263855.jar;C:\bea\wlserver6.1\.\config\mydomain\applications\garyapp\WEB-INF\_
tmp_war_myserver_myserver_garyapp\WEB-INF\lib\hsql63856.jar;C:\bea\wlserver6.1\.
\config\mydomain\applications\garyapp\WEB-INF\_tmp_war_myserver_myserver_garyapp
\WEB-INF\lib\httpunit63857.jar;C:\bea\wlserver6.1\.\config\mydomain\applications
\garyapp\WEB-INF\_tmp_war_myserver_myserver_garyapp\WEB-INF\lib\idb63858.jar;C:\
bea\wlserver6.1\.\config\mydomain\applications\garyapp\WEB-INF\_tmp_war_myserver
myservergaryapp\WEB-INF\lib\jdbc2_0-stdext63859.jar;C:\bea\wlserver6.1\.\confi
g\mydomain\applications\garyapp\WEB-INF\_tmp_war_myserver_myserver_garyapp\WEB-I
NF\lib\oro63860.jar;C:\bea\wlserver6.1\.\config\mydomain\applications\garyapp\WE
B-INF\_tmp_war_myserver_myserver_garyapp\WEB-INF\lib\postgresql63861.jar;C:\bea\
wlserver6.1\.\config\mydomain\applications\garyapp\WEB-INF\_tmp_war_myserver_mys
erver_garyapp\WEB-INF\lib\sapdbc63862.jar;C:\bea\wlserver6.1\.\config\mydomain\a
pplications\garyapp\WEB-INF\_tmp_war_myserver_myserver_garyapp\WEB-INF\lib\STT63
863.jar;C:\bea\wlserver6.1\.\config\mydomain\applications\garyapp\WEB-INF\_tmp_w
ar_myserver_myserver_garyapp\WEB-INF\lib\xmlrpc63864.jar'
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:594)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:368)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:242)
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)
>Please open a case with support on this issue.
Thanks,
Michael
Gary Bisaga wrote:
It appears that weblogic server (6.1 SP2 I believe) is not finding all
the jar files in the /WEB-INF/lib directory. Some, but not all. I am
not using a WAR file, the dirctories are right on the disk. I start
out with the following jar files in my WEB-INF/lib directory:
Volume in drive C has no label.
Volume Serial Number is 641F-B7A0
Directory of C:\bea\wlserver6.1\config\mydomain\applications\garyapp\WEB-INF\li
b
02/13/2002 11:34a <DIR> .
02/13/2002 11:34a <DIR> ..
01/25/2002 09:44a 45,386 activation-1.0.1.jar
01/07/2002 04:49p 1,124,276 classes12.jar
01/25/2002 09:44a 379,658 ecs-1.4.1.jar
01/25/2002 09:44a 175,666 hsql.jar
01/25/2002 09:44a 76,964 httpunit.jar
01/25/2002 09:44a 236,041 idb.jar
01/25/2002 09:44a 29,937 jakarta-regexp-1.3-dev.jar
01/25/2002 09:44a 84,854 jdbc-se2.0.jar
01/25/2002 09:44a 6,727 jdbc2_0-stdext.jar
01/25/2002 09:44a 98,496 jndi-1.2.1.jar
01/25/2002 09:44a 17,619 jta1.0.1.jar
01/25/2002 09:44a 97,382 junit-3.2.jar
01/25/2002 09:44a 152,037 log4j-1.1.jar
01/25/2002 09:44a 280,984 mail-1.2.jar
01/25/2002 09:44a 109,927 mm.mysql-2.0.4.jar
01/25/2002 09:44a 76,734 oro.jar
01/25/2002 09:44a 194,500 postgresql.jar
01/25/2002 09:44a 4,041 README.txt
01/25/2002 09:44a 208,635 sapdbc.jar
02/13/2002 11:21a 216,879 STT.jar
02/08/2002 12:15p 707,897 turbine-2.2b1.jar
01/25/2002 09:44a 369,494 velocity-1.2-dev.jar
01/25/2002 09:44a 31,326 village-1.5.1.jar
01/25/2002 09:44a 436,094 xalan-1.2.1.jar
01/25/2002 09:44a 840,704 xerces-1.3.0.jar
01/25/2002 09:44a 47,926 xmlrpc.jar
26 File(s) 6,050,184 bytes
2 Dir(s) 29,539,246,080 bytes free
When I run the server, only these files are put in the tmp_war
directory:
Volume in drive C has no label.
Volume Serial Number is 641F-B7A0
Directory of C:\bea\wlserver6.1\config\mydomain\applications\garyapp\WEB-INF\_t
mp_war_myserver_myserver_garyapp\WEB-INF\lib
02/15/2002 12:31p <DIR> .
02/15/2002 12:31p <DIR> ..
02/15/2002 12:31p 1,124,276 classes1263855.jar
02/15/2002 12:31p 175,666 hsql63856.jar
02/15/2002 12:31p 76,964 httpunit63857.jar
02/15/2002 12:31p 236,041 idb63858.jar
02/15/2002 12:31p 6,727 jdbc2_0-stdext63859.jar
02/15/2002 12:31p 76,734 oro63860.jar
02/15/2002 12:31p 194,500 postgresql63861.jar
02/15/2002 12:31p 208,635 sapdbc63862.jar
02/15/2002 12:31p 216,879 STT63863.jar
02/15/2002 12:31p 47,926 xmlrpc63864.jar
10 File(s) 2,364,348 bytes
2 Dir(s) 29,539,078,144 bytes free
It's not only that the files don't show up, of course: if I run the
system and it makes references to the files, I get a
ClassNotFoundException:
<Feb 15, 2002 12:32:39 PM EST> <Error> <HTTP>
<[WebAppServletContext(7243997,gar
yapp,/garyapp)] Error loading servlet: "garyapp"
java.lang.ClassNotFoundException: org.apache.turbine.Turbine
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass
Loader.java:179)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAw
areClassLoader.java:65)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAw
areClassLoader.java:43)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:583)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:368)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:242)
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)
>
<Feb 15, 2002 12:32:39 PM EST> <Error> <HTTP>
<[WebAppServletContext(7243997,gar
yapp,/garyapp)] Servlet failed with ServletException
javax.servlet.ServletException: Servlet class:
'org.apache.turbine.Turbine' coul
d not be loaded - the requested class wasn't found in the classpath:
'C:\bea\wl
server6.1\config\mydomain\applications\garyapp;C:\bea\wlserver6.1\.\config\mydom
ain\applications\garyapp\WEB-INF\classes;C:\bea\wlserver6.1\.\config\mydomain\ap
plications\garyapp\WEB-INF\_tmp_war_myserver_myserver_garyapp\WEB-INF\lib\classe
s1263855.jar;C:\bea\wlserver6.1\.\config\mydomain\applications\garyapp\WEB-INF\_
tmp_war_myserver_myserver_garyapp\WEB-INF\lib\hsql63856.jar;C:\bea\wlserver6.1\.
\config\mydomain\applications\garyapp\WEB-INF\_tmp_war_myserver_myserver_garyapp
\WEB-INF\lib\httpunit63857.jar;C:\bea\wlserver6.1\.\config\mydomain\applications
\garyapp\WEB-INF\_tmp_war_myserver_myserver_garyapp\WEB-INF\lib\idb63858.jar;C:\
bea\wlserver6.1\.\config\mydomain\applications\garyapp\WEB-INF\_tmp_war_myserver
myservergaryapp\WEB-INF\lib\jdbc2_0-stdext63859.jar;C:\bea\wlserver6.1\.\confi
g\mydomain\applications\garyapp\WEB-INF\_tmp_war_myserver_myserver_garyapp\WEB-I
NF\lib\oro63860.jar;C:\bea\wlserver6.1\.\config\mydomain\applications\garyapp\WE
B-INF\_tmp_war_myserver_myserver_garyapp\WEB-INF\lib\postgresql63861.jar;C:\bea\
wlserver6.1\.\config\mydomain\applications\garyapp\WEB-INF\_tmp_war_myserver_mys
erver_garyapp\WEB-INF\lib\sapdbc63862.jar;C:\bea\wlserver6.1\.\config\mydomain\a
pplications\garyapp\WEB-INF\_tmp_war_myserver_myserver_garyapp\WEB-INF\lib\STT63
863.jar;C:\bea\wlserver6.1\.\config\mydomain\applications\garyapp\WEB-INF\_tmp_w
ar_myserver_myserver_garyapp\WEB-INF\lib\xmlrpc63864.jar'
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:594)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:368)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:242)
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)
>--
Michael Young
Developer Relations Engineer
BEA Support -
Jar file in web-inf\lib is not being loaded - weblogic 7.0
I am callling a webservice from a jsp. everything works fine if I keep the interface
classes under web-inf\classes....but If I put the interface classes in a jar file
and put it under web-inf\lib, then weblogic does not seem to find that....
I am getting following error :
C:\bea\user_projects\mydomain\.\myserver\.wlnotdelete\_appsdir_omccs_example_war_omccs_example_4653011\jarfiles\WEB-INF\lib\Customer_client32432.jar(com/qwest/omccsexample/ejb/CustomerBean/CustomerValue.java):14:
class CustomerValue is public, should be declared in a file named CustomerValue.java
(source unavailable)
C:\bea\user_projects\mydomain\.\myserver\.wlnotdelete\_appsdir_omccs_example_war_omccs_example_4653011\jarfiles\WEB-INF\lib\Customer_client32432.jar(com/qwest/omccsexample/ejb/CustomerBean/CustomerValue.java):119:
cannot resolve symbol
symbol : class RuntimeUtils
location: package binding
(source unavailable)
C:\bea\user_projects\mydomain\.\myserver\.wlnotdelete\_appsdir_omccs_example_war_omccs_example_4653011\jarfiles\WEB-INF\lib\Customer_client32432.jar(com/qwest/omccsexample/ejb/CustomerBean/CustomerValue.java):120:
cannot resolve symbol
symbol : class RuntimeUtils
location: package binding
(source unavailable)
C:\bea\user_projects\mydomain\.\myserver\.wlnotdelete\_appsdir_omccs_example_war_omccs_example_4653011\jarfiles\WEB-INF\lib\Customer_client32432.jar(com/qwest/omccsexample/ejb/CustomerBean/CustomerValue.java):121:
cannot resolve symbol
symbol : class RuntimeUtils
location: package binding
(source unavailable)
4 errors
Wondering if it is a bug...?
any thoughts ?
-Girish BhatiaI wrote up a simple test case for this and it works fine for me.
I suppose there are diffences. ;)
I am using:
WebLogic Server 7.0 SP1 Mon Sep 9 22:46:58 PDT 2002 206753
Take the attached zip, unzip.
cd to directory
ant build
then deploy it via the console, or
java weblogic.Deployer -adminurl t3://127.0.0.1:7001 -user weblogic -password
weblogic -activate -name mywebapp2 -source e:/weblogic/dev/sandbox/griffith/apps/output/exploded_mywebapp_lib/
Then:
http://c863775-d:7001/exploded_mywebapp_lib/frobber
works for me. My servlet implments an interface in the jar in my lib dir.
Cheers
mbg
"Girish" <[email protected]> wrote:
>
I am callling a webservice from a jsp. everything works fine if I keep
the interface
classes under web-inf\classes....but If I put the interface classes in
a jar file
and put it under web-inf\lib, then weblogic does not seem to find that....
I am getting following error :
C:\bea\user_projects\mydomain\.\myserver\.wlnotdelete\_appsdir_omccs_example_war_omccs_example_4653011\jarfiles\WEB-INF\lib\Customer_client32432.jar(com/qwest/omccsexample/ejb/CustomerBean/CustomerValue.java):14:
class CustomerValue is public, should be declared in a file named CustomerValue.java
(source unavailable)
C:\bea\user_projects\mydomain\.\myserver\.wlnotdelete\_appsdir_omccs_example_war_omccs_example_4653011\jarfiles\WEB-INF\lib\Customer_client32432.jar(com/qwest/omccsexample/ejb/CustomerBean/CustomerValue.java):119:
cannot resolve symbol
symbol : class RuntimeUtils
location: package binding
(source unavailable)
C:\bea\user_projects\mydomain\.\myserver\.wlnotdelete\_appsdir_omccs_example_war_omccs_example_4653011\jarfiles\WEB-INF\lib\Customer_client32432.jar(com/qwest/omccsexample/ejb/CustomerBean/CustomerValue.java):120:
cannot resolve symbol
symbol : class RuntimeUtils
location: package binding
(source unavailable)
C:\bea\user_projects\mydomain\.\myserver\.wlnotdelete\_appsdir_omccs_example_war_omccs_example_4653011\jarfiles\WEB-INF\lib\Customer_client32432.jar(com/qwest/omccsexample/ejb/CustomerBean/CustomerValue.java):121:
cannot resolve symbol
symbol : class RuntimeUtils
location: package binding
(source unavailable)
4 errors
Wondering if it is a bug...?
any thoughts ?
-Girish Bhatia
[mywebapptest.zip] -
Project librarys not included in WAR file with deployment (WEB-INF/lib)
Using JDeveloper 9.0.5.2
Project Libraries are not included in WEB-INF/lib when deploying. Although the files are selected in the deployment file at 'Contributors'. Within the 'filter' the .jar files are missing.
To solve it i have to register again (i have already made the librarys project library's) the files within Tools->ManageLibrarys as user library's.
The other workaround is to make the library's System Library's within the project.
In my opinion it is a bug that you must include the project librarys as user librarys within the 'LibraryManager'Unfortunately no, the issue with output folder being ignored occurs only with example apps bundled with Workshop product.
You can try the following workaround:
- In Workshop, Project > Properties - Java Build Path, switch to Source tab - "Remove the source folder listing" - Click OK and dismiss Properties window.
- Project > Properties - Java Build Path > Source Tab, add the same source folder entry - Click OK
- Export as WAR
With this you should see the class files bundled under output directory structure (Ex: WEB-INF/classes). -
Bug using WEB-INF/lib Jar archives
Hi, I am running iPlanet 6.0Sp3 on Windows 2000. I deployed our Web
application in the form of a War file and it is now under the APPS/modules
directory as the following directory: APPS/modules/ourapp.
When I start the iPlanet Application Server, it fails to find any of the
classes in the Jar files in APPS/modules/ourapp/WEB-INF/lib/. Is this a bug?
One workaround is to unjar all of these files, but this is counter to the
J2EE spec. Another workaround is to modify the classpath in the iPlanet
registry, but this would expose the classes to other Web applications
running in the same server.
Thanks for any help. MartinHi Martin,
I think you are packinh up the jar file inside the war module, as far as i know
there should be no jar file inside the module/App-name dir tree.
all the modules either war or jar should be in <GX_ROOT_DIR>/JAR dir.
So try making the war module with class files only(static content can also be
added) with appropriate deployment descriptor.
I will mail you separately the procedure for creating a war file from deployment
tool gui.
Please mail me back if you have any other problems.
Sanjeev.
Developer Support Group iAS.
Martin Gilchrist wrote:
Hi, I am running iPlanet 6.0Sp3 on Windows 2000. I deployed our Web
application in the form of a War file and it is now under the APPS/modules
directory as the following directory: APPS/modules/ourapp.
When I start the iPlanet Application Server, it fails to find any of the
classes in the Jar files in APPS/modules/ourapp/WEB-INF/lib/. Is this a bug?
One workaround is to unjar all of these files, but this is counter to the
J2EE spec. Another workaround is to modify the classpath in the iPlanet
registry, but this would expose the classes to other Web applications
running in the same server.
Thanks for any help. Martin -
WLS 8.1 SP4 and web-inf/lib ClassNotFoundExceptions
Hi
Is anyone else having problems with this issue ?
I saw it was resolved (CR161884 & CR173695) in the 8.1 SP3 release, but I'm unable to deploy a web app (either through the console or in the applications directory of the domain) in SP4 as the classloader can't see my JAR file in WEB-INF/lib.
<30-Dec-2004 15:51:47 o'clock GMT> <Error> <Deployer> <BEA-149201> <Failed to co
mplete the deployment task with ID 7 for the application appsdirdp-application
-1.0-SNAPSHOT_war.
weblogic.management.DeploymentException:
Exception:weblogic.management.ApplicationException: start() failed.
Module: dp-application-1.0-SNAPSHOT Error: weblogic.management.Deplo
ymentException: org/picocontainer/gems/StaticFactory - with nested exception:
[java.lang.NoClassDefFoundError: org/picocontainer/gems/StaticFactory]Inside my WAR file, I have a WEB-INF\lib directory, containing picocontainer-gems-1.1-SNAPSHOT.jar which contains the org.picocontainer.gems.StaticFactory class.
I've tried deploying the app both with and without a weblogic.xml file declaring prefer-web-inf-classes set to true.
Rgs
ErikJust as a check, I moved the JAR files to a common lib directory on the server and added them to the system classpath specified in startWeblogic.cmd, and the application starts fine.
Maybe not related, but yesterday I was tried deploying an EJB that was dependent on a JAR file NOT included within its JAR file, but specified with the Class-path entry in the manifest.
The behaviour I saw was WLS swallowed the ClassNotFoundException silently, the admin console reported that the EJB was deployed successfully but inside the ejbCreate method - I had two print line statements, one prior to calling the missing class, and one after. Only the one prior appeared on the system console, suggesting that the ejbCreate method wasn't completing, yet no exception is thrown ? -
How can I access WEB-INF/lib
Hello all,
I deployed JClient application using Java Web Start.
I have the following lines in jnlp file
<resource>
<jar href="WEB-INF/lib/share.jar" />
</resource>
There's actually share.jar under WEB-INF/lib directory,
but I got error message when execute the application.
It seems that I can't access files under WEB-INF via http.
Does anybody know why?
Thanks in advance.Sorry for being picky on this. Oracle is not doing it, it is the software you're using, ie JDeveloper in your case.
AFAIK, the Servlet spec states that every library that is needed by the Servlet application should be put under WEB-INF/lib. These libraries are not accessible for any other usage.
JDev is doing this because your web application needs it.
If your JNLP application needs it too, JDev should be smart enough to include it twice in your WAR file, once for your web application and once for your JNLP application.
On the other hand I really hate software that is too smart and causes more problem by being smart than everything else.
Having said that, please file an enhancement request on Metalink for JDev for better library management for JNLP applications.
--olaf -
WEB-INF\lib\ Jar files
Hello
I have a war module with this:
/index.html
/pages/ (my pages)
/pages/js (my js)
/pages/images (my images)
/WEB-INF/classes/ (my servlet classes)
/WEB-INF/lib/ (my lib jar files)
/WEB-INF/web.xml (descriptor)
ok,
I run deploy tool,
open this war file (module), (ex mod1.war)
convert to ias module, modify the descriptor,
verify (everything ok)
save module
create ear (ex ap1.ear)
put this module within this ear
create and save ear descriptor
save ear
verify (everything ok)
deploy ear.
ok,
Why decompress my lib jar files in:
/APPS/ap1/mod1/WEB-INF/lib
These wil be fine if decompress the entire jars, but only extracts the class
files and no the xxxx.properties neither messages.txt; exactly
no extracts files that aren't .class. ???
Are there any workaround to this that isn't copy the files? Figure not to
have ftp acces in a sun? What we have to do?
Thanks.In iWS 6.0, the context information such as a context path of the web application and other properties are defined in web-apps.xml file.
'class-loader' element in web-apps.xml file can be be used to specify the class path to a web application and customize how the application is serviced.
Refer to example web-apps.xml file in Prog. guide to Servlets for more details.
http://docs.iplanet.com/docs/manuals/enterprise/50/servlets/war.htm#33557 -
Deployment of JSF Libraries to /WEB-INF/lib
Good day.
In our new web application we use three different JSF taglibs (richfaces, trinidad, tomahawk). All of them are managed as "JSF Libraries" (created in eclipse options->web->"JavaServer Faces Tools"->Libraries). To include jars from these libraries in webapp I've checked respective entries in project's options->"Java EE Module Dependencies"->"Web Libraries". However webapp doesn't contain jars from these libs at runtime even if webapp is served from separate folder within weblogic server's directory structure (don't remember how this option is called at server configuration page). Is it some kind of a bug or this feature is just not supported (tradeoff for being able to serve modules directly from the workspace)? I read throught OEPE help contents, but haven't found definite answer there.
Env: Eclipse 3.4.1, WTP 3.0.3, OEPE 1.0, JVM Sun 1.6.0_11, Win32 XP SP2, WLS 10.3
Thank you very much!Sorry, forgot to mention that web application is a part of ear archive. Don't know if "Stand-alone Web Application Deployment Mode" will have any signification effect in this case.
However, here are contents of .beabuild file from ear and contents of temporary directory from wls with webapp contents if it will be of any importance.
ru.bpc.sv.web is ear archive and ru.bpc.sv.web.iu is included webapp.
.beabuild:
C\:/workspaces/web2008/ru.bpc.sv.web/EarContent/APP-INF/classes = APP-INF/classes
C\:/workspaces/web2008/ru.bpc.sv.web.ui/WebContent = ru.bpc.sv.web.ui.war
C\:/workspaces/web2008/ru.bpc.sv.web.ui/build/weboutput = ru.bpc.sv.web.ui.war
C\:/workspaces/web2008/ru.bpc.sv.web.ui/build/classes = ru.bpc.sv.web.ui.war/WEB-INF/classes
C\:/projects/java/libs/org/jboss/richfaces/3.1.5_1.4/richfaces-api-3.1.5.GA.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/richfaces-api-3.1.5.GA.jar
C\:/projects/java/libs/org/jboss/richfaces/3.1.5_1.4/richfaces-impl-3.1.5.GA.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/richfaces-impl-3.1.5.GA.jar
C\:/projects/java/libs/org/jboss/richfaces/3.1.5_1.4/richfaces-ui-3.1.5.GA.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/richfaces-ui-3.1.5.GA.jar
C\:/projects/java/libs/org/apache/myfaces/tomahawk/1.1.6/tomahawk-1.1.6.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/tomahawk-1.1.6.jar
C\:/projects/java/libs/org/apache/myfaces/trinidad/1.0.9_1.4/trinidad-api-1.0.9-jdk14.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/trinidad-api-1.0.9-jdk14.jar
C\:/projects/java/libs/org/apache/myfaces/trinidad/1.0.9_1.4/trinidad-impl-1.0.9-jdk14.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/trinidad-impl-1.0.9-jdk14.jar
C\:/projects/java/libs/org/apache/myfaces/trinidad/1.2.8/backport-util-concurrent-3.1.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/backport-util-concurrent-3.1.jar
C\:/projects/java/libs/org/apache/myfaces/trinidad/1.2.8/retrotranslator-runtime-1.2.6.jar = ru.bpc.sv.web.ui.war/WEB-INF/lib/retrotranslator-runtime-1.2.6.jar
C\:/workspaces/web2008/ru.bpc.sv.ejb.authClient/build/classes = APP-INF/lib/ru.bpc.sv.ejb.authClient.jar
C\:/workspaces/web2008/ru.bpc.sv.ejb.svboClient/build/classes = APP-INF/lib/ru.bpc.sv.ejb.svboClient.jar
C\:/workspaces/web2008/ru.bpc.sv.ejb.svfeClient/build/classes = APP-INF/lib/ru.bpc.sv.ejb.svfeClient.jar
C\:/workspaces/web2008/ru.bpc.sv.commonitems/bin = APP-INF/lib/ru.bpc.sv.commonitems.jar
C\:/workspaces/web2008/ru.bpc.sv.commonEjbUtils/bin = APP-INF/lib/ru.bpc.sv.commonEjbUtils.jar
C\:/workspaces/web2008/ru.bpc.sv.web/EarContent/APP-INF/lib/commons-logging-1.1.jar = APP-INF/lib/commons-logging-1.1.jar
C\:/workspaces/web2008/ru.bpc.sv.web/EarContent/APP-INF/lib/log4j-1.2.14.jar = APP-INF/lib/log4j-1.2.14.jar
C\:/workspaces/web2008/ru.bpc.sv.web/EarContent/APP-INF/lib/poi-3.0.1-FINAL-20070705.jar = APP-INF/lib/poi-3.0.1-FINAL-20070705.jar
C\:/workspaces/web2008/ru.bpc.sv.web/EarContent/APP-INF/lib/quartz-all-1.6.1-RC3.jar = APP-INF/lib/quartz-all-1.6.1-RC3.jar
dir:
C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\1
C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws
C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\.tld_cache
C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\libs
C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\public
C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war
C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\.tld_cache\tomahawk-sandbox-1.1.7-SNAPSHOT.jar
C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\.tld_cache\tomahawk-sandbox-1.1.7-SNAPSHOT.jar\META-INF
C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\.tld_cache\tomahawk-sandbox-1.1.7-SNAPSHOT.jar\META-INF\myfaces_sandbox.tld
C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\.tld_cache\tomahawk-sandbox-1.1.7-SNAPSHOT.jar\META-INF\myfaces_sandbox.tld\crc.ser
C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\.tld_cache\tomahawk-sandbox-1.1.7-SNAPSHOT.jar\META-INF\myfaces_sandbox.tld\des.ser
C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\libs\jsf-ri
C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\libs\jsf-ri\moygs
C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\libs\jsf-ri\moygs\war
C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF
C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib
C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib\commons-collections-3.1.jar
C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib\commons-el-1.0.jar
C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib\commons-fileupload-1.2.jar
C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib\itext-2.0.6.jar
C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib\iText-2.1.2u.jar
C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib\iText-rtf-2.1.2u.jar
C:\as\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ru.bpc.sv.web\mc65ws\war\WEB-INF\lib\tomahawk-sandbox-1.1.7-SNAPSHOT.jar -
WLS 6.1sp3 classloader loads all archives within WEB-INF/lib/*
Within the lib directory of my webapp, I have several different versions of myarchive.jar.
In WLS 6.0 I would keep older version within the lib directory but renaming them
so that the current release would get loaded.
$WL_HOME/config/mydomain/applications/myapp/WEB-INF/lib
myarvhive.jar
myarvhive.jar_bf_2.3release
myarvhive.jar_bf_2.4release
myarvhive.jar_bf_2.5release
In WLS 6.0 this method of storing the previous archive version was safe. However,
now after implementing WLS 6.1, I only can have the current archive release within
the lib directory. If the previous versions are store within the lib, old methods
are used.
I do not understand the WLS classloader behavior and why is it different from
WLS 6.0?
wls- WebLogic Server 6.1 SP3
platform- OSF1 localhost V5.1 1885 alpha
jvm- Classic VM (build 1.3.0-1, native threads, jit)
Within the lib directory of my webapp, I have several different versions of myarchive.jar.
In WLS 6.0 I would keep older version within the lib directory but renaming them
so that the current release would get loaded.
$WL_HOME/config/mydomain/applications/myapp/WEB-INF/lib
myarvhive.jar
myarvhive.jar_bf_2.3release
myarvhive.jar_bf_2.4release
myarvhive.jar_bf_2.5release
In WLS 6.0 this method of storing the previous archive version was safe. However,
now after implementing WLS 6.1, I only can have the current archive release within
the lib directory. If the previous versions are store within the lib, old methods
are used.
I do not understand the WLS classloader behavior and why is it different from
WLS 6.0?
wls- WebLogic Server 6.1 SP3
platform- OSF1 localhost V5.1 1885 alpha
jvm- Classic VM (build 1.3.0-1, native threads, jit)
-
Error 500--Internal Server Error
oracle.jbo.InvalidDefNameException: JBO-25004: Definition name WEB-INF.lib.classes.adfmsrc.sanyc.view.DataBindings for type Package is invalid
at oracle.jbo.mom.DefinitionManager.loadProjectDefinition(DefinitionManager.java:1384)
at oracle.jbo.uicli.mom.JUMetaObjectManager.findCpx(JUMetaObjectManager.java:790)
at oracle.jbo.uicli.mom.JUApplicationReference.resolve(JUApplicationReference.java:63)
at oracle.jbo.uicli.mom.JUApplicationReference.getDef(JUApplicationReference.java:70)
at oracle.jbo.uicli.mom.JUApplicationDefImpl.findBindingContainerIdByPath(JUApplicationDefImpl.java:342)
at oracle.adf.model.BindingContext.findBindingContainerIdByPath(BindingContext.java:1353)
at oracle.adf.model.BindingContext.findBindingContainerDefByPath(BindingContext.java:1313)
at oracle.adf.model.BindingRequestHandler.isPageViewable(BindingRequestHandler.java:291)
at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:175)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:179)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:278)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Can you please suggest a solution to this problem?Hi,
the binding file is not supposed to be located in this directory. So check your project structure. How did you get to this exception?
Frank
Maybe you are looking for
-
Gurus- My Query has 142 columns and I am trying to export the query output to a word document using RSCRM_BAPI. When I check the output file which I got through RSCRM_BAPI, it is truncating lot of columns. Is there any limitations with the columns if
-
Load flat files from S3 into SQL Server 2008 R2
Hi, We have a few customers dropping files in Amazon S3. Could you please let me know how to load this data into SQL Server 2008 R2 database using SSIS? We are 2008 R2 BIDS environment. Thanks in advance.............. Ione
-
Another preview related bug???
Recently I reported an issue (bug) with preview and non-auto-update variable. See http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=65&catid=449&threadid =1364202&enterthread=y I have another issue with preview: - I update text wit
-
Questionable website and security concern
I was searching google images and clicked on an image which took me to: *(do not click if you don't know what your doing please!!)* < Edited by Host > More specifically: < Edited by Host > Is this of any concern to me? It seemed like some possible cr
-
HI , Please kindly give me the solution. i have data in idoc basic type orders03. segments : e1edk02-belnr purchase ordernumber, e1edp01-posex purchase order item, e1edp01-menge quantity. my rquairment is: 1) i have to get the Sales order number and