About web-inf\lib
I copy all jar files from %ProgramFiles%\Common Files\Crystal Decisions\2.0\
jars and put in the "WEB-INF\lib" directory of my web application but WSAD s
till don'know Crystal Report Classes.What should I do to fix this problem?
After copying it need restart the web server if you don't use some tool to reload your application. If it still doesn't work, you must check if it has some conflict in shared/lib and common/lib and read the log file
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 -
Jce in web-inf/lib - does not work
Hi all!
I've got the following problem:
I accomplished to form an ear file that contains an ejb jar and a war file. The
ejb jar manifest includes several jars that are part of the ear file. Additionally
the web app needs the following jars: local_policy.jar, jce1_2_1.jar, US_export_policy.jar
When I put these files into the WEB-INF/lib of the webapp or into Manifest's Class-Path
of the ejb.jar I always get the same behaviour:
I can deploy it (yipieeh) but when I run the web app I get the following exception
(uieehh):
java.lang.SecurityException: Cannot authenticate JCE framework java.lang.SecurityException:
The JCE framework has unsigned class files. at com.sun.crypto.provider.SunJCE.a([DashoPro-V1.2-120198])
at com.sun.crypto.provider.SunJCE.c([DashoPro-V1.2-120198]) at com.sun.crypto.provider.PBEKeyFactory.<init>([DashoPro-V1.2-120198])
at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237)
at javax.crypto.Support.getImplementation(Support.java:77) at javax.crypto.Support.getImplementation(Support.java:32)
at javax.crypto.SecretKeyFactory.getInstance(SecretKeyFactory.java:42)
Surprisingly it works when I put the jar files into wls6.1SP2's lib directory
respectively to wls's classpath! But what I need is one ear file that contains
everything ...
Please if you know this problem, a workaround or you have only a guess reply to
this message.
Thanks for every serious response,
Chris.Well if you got the jar file to work in the /lib/ dir of the EAR file with
the manifest.mf Class-Path: entry then more power to you. This didn't work
for me for some reason, just let each ejb/war/etc compile to its own dir and
deploy it with all its dependencies included...
Your MalformedURL exception looks different than the security exception you
had earlier. Im guessing that putting the files in a common location in the
ear solved the class loading/security exception problem.
Your malformedURL problem is probably just that, a malformed URL.
Make sure all your associated metadata is pointing to the right place (use
paths of /someApp/somejsp.jsp, etc. dont use ../../somejsp.jsp)
make sure your using the right protocol (dont put one by default). This
would be my guess. Maybe its expecting an SSL call of the form
https://something or t3s://something but I'm not sure
hope this helps,
Michael Lee
Architect
AfterBOT
[email protected]
remove nospam_ to email
"Chris" <[email protected]> wrote in message
news:[email protected]...
>
First of all: Thanks for your response
"Michael Lee" <[email protected]> wrote:
Your getting that error because different wars run in different class
loaders. It does not trust the other class loaders files unless they're
signed in some way. I think one way you can do this is set up a
security.policy? file for each war that tells what files are allowedI was thinking about that but: How can I do that?
from
where. Here's the way the WLS class loaders work...
WLS system class loader
|
EAR class loader
|
EJB class loader
|
WAR class loader
everything down on the chain there can see up, but not vice versa. You
will
get a class not found
That way, the war files can call ejb's without problems, but EJBs can
not
access war file classes.
One other possible way around your problem is to add a /lib/... directory
to
your EAR and include a Class-Path: section in your manifest to point
to the
JCE files. I think this allows war files to see each others classes.You have to manipulate the EJB-Manifest and put the jar files into the earfile!
At least this is how it worked in my case! But I 've tried that alreadybut then
I get a very similiar Exception: something with can not authenticate: ..MalormedURLException:
no protocol ...
This
didn't work for me when I tried to create a shared library between
EJBs/WARs
but I didnt try to share files between 2 wars so who knows.
Hope this helps some,
Mike Lee
Architect
AfterBOT
[email protected]
Just remove nospam_ to email me
"Chris" <[email protected]> wrote in message
news:[email protected]...
Hi all!
I've got the following problem:
I accomplished to form an ear file that contains an ejb jar and a warfile. The
ejb jar manifest includes several jars that are part of the ear file.Additionally
the web app needs the following jars: local_policy.jar, jce1_2_1.jar,US_export_policy.jar
When I put these files into the WEB-INF/lib of the webapp or intoManifest's Class-Path
of the ejb.jar I always get the same behaviour:
I can deploy it (yipieeh) but when I run the web app I get the
following
exception
(uieehh):
java.lang.SecurityException: Cannot authenticate JCE frameworkjava.lang.SecurityException:
The JCE framework has unsigned class files. atcom.sun.crypto.provider.SunJCE.a([DashoPro-V1.2-120198])
at com.sun.crypto.provider.SunJCE.c([DashoPro-V1.2-120198]) atcom.sun.crypto.provider.PBEKeyFactory.<init>([DashoPro-V1.2-120198])
at java.lang.Class.newInstance0(Native Method) atjava.lang.Class.newInstance(Class.java:237)
at javax.crypto.Support.getImplementation(Support.java:77) atjavax.crypto.Support.getImplementation(Support.java:32)
at javax.crypto.SecretKeyFactory.getInstance(SecretKeyFactory.java:42)
Surprisingly it works when I put the jar files into wls6.1SP2's libdirectory
respectively to wls's classpath! But what I need is one ear file thatcontains
everything ...
Please if you know this problem, a workaround or you have only a guessreply to
this message.
Thanks for every serious response,
Chris. -
Deploy problem with ejb jar in WEB-INF/lib
Please help with : StringIndexOutOfBoundsException
On WL 6.1 sp2, I have one EJB jar that deploys fine in an expanded EAR structure,
this has EJB jars and the web apps together running under a single JVM.
But when I need to deploy the Web App to a separate server & JVM, still using
WL 6.1, and leave the EJBs in another WL server I get java.lang.StringIndexOutOfBoundsException.
I have about 8 ejb jars. When I put one of them in the Web-App's WEB-INF/lib directory.
I get java.lang.StringIndexOutOfBoundsException when it starts up, just after/during
the extracting of classes for the standalone Web App. The exception stack trace
mentions manifest, but the manifest for the ejb jar is just standard. It doesn't
even have a Class-Path: entry, which all the others happen to have. an needs
to contain the server EJB jars.
<04-Feb-02 12:20:18 GMT> <Info> <HTTP> <[HTTP myserver] Loading web app: clasp1>
<04-Feb-02 12:20:18 GMT> <Info> <HTTP> <[myserver] Loading "clasp1" from directory:
"D:\JavaProjects\NR\CLASp2\CLASp2WebTier\warCLASp1">
<04-Feb-02 12:20:18 GMT> <Info> <HTTP> <[WebAppServletContext(5055074,clasp1,/clasp1)]
extracting classfiles to D:\JavaProjects\NR\CLASp2\CL
ASp2WebTier\warCLASp1\WEB-INF\_tmp_war_myserver_myserver_clasp1:>
<04-Feb-02 12:20:23 GMT> <Error> <J2EE> <Error deploying application clasp1: Could
not load clasp1>
<04-Feb-02 12:20:23 GMT> <Error> <Management> <ApplicationManager starting Config
caught throwable
java.lang.reflect.UndeclaredThrowableException: 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:234)
at weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServletContext.java:3407)
at weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:3376)
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.addComponent(Application.java:163)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy35.addWebDeployment(Unknown Source)
at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServerMBean_CachingStub.java:1121)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:315)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:279)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:233)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:193)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy34.updateDeployments(Unknown Source)
at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:2761)
at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:370)
at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:160)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy46.start(Unknown Source)
at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:480)
at weblogic.management.Admin.startApplicationManager(Admin.java:1180)
at weblogic.management.Admin.finish(Admin.java:590)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:518)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
at weblogic.Server.main(Server.java:35)
--------------- nested within: ------------------
weblogic.j2ee.DeploymentException: Could not load clasp1 - 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.addComponent(Application.java:163)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy35.addWebDeployment(Unknown Source)
at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServerMBean_CachingStub.java:1121)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:315)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:279)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:233)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:193)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy34.updateDeployments(Unknown Source)
at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_CachingStub.java:2761)
at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManager.java:370)
at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:160)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy46.start(Unknown Source)
at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationManagerMBean_CachingStub.java:480)
at weblogic.management.Admin.startApplicationManager(Admin.java:1180)
at weblogic.management.Admin.finish(Admin.java:590)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:518)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
at weblogic.Server.main(Server.java:35)Manifest class-path possibly?
Cameron Purdy
Tangosol, Inc.
Clustering Weblogic? You're either using Coherence, or you should be!
Download a Tangosol Coherence eval today at http://www.tangosol.com/
"Pete" <[email protected]> wrote in message
news:[email protected]...
>
Please help with : StringIndexOutOfBoundsException
On WL 6.1 sp2, I have one EJB jar that deploys fine in an expanded EARstructure,
this has EJB jars and the web apps together running under a single JVM.
But when I need to deploy the Web App to a separate server & JVM, stillusing
WL 6.1, and leave the EJBs in another WL server I getjava.lang.StringIndexOutOfBoundsException.
>
I have about 8 ejb jars. When I put one of them in the Web-App'sWEB-INF/lib directory.
I get java.lang.StringIndexOutOfBoundsException when it starts up, justafter/during
the extracting of classes for the standalone Web App. The exception stacktrace
mentions manifest, but the manifest for the ejb jar is just standard. Itdoesn't
even have a Class-Path: entry, which all the others happen to have. anneeds
to contain the server EJB jars.
<04-Feb-02 12:20:18 GMT> <Info> <HTTP> <[HTTP myserver] Loading web app:clasp1>
<04-Feb-02 12:20:18 GMT> <Info> <HTTP> <[myserver] Loading "clasp1" fromdirectory:
"D:\JavaProjects\NR\CLASp2\CLASp2WebTier\warCLASp1">
<04-Feb-02 12:20:18 GMT> <Info> <HTTP><[WebAppServletContext(5055074,clasp1,/clasp1)]
extracting classfiles to D:\JavaProjects\NR\CLASp2\CL
ASp2WebTier\warCLASp1\WEB-INF\_tmp_war_myserver_myserver_clasp1:>
<04-Feb-02 12:20:23 GMT> <Error> <J2EE> <Error deploying applicationclasp1: Could
not load clasp1>
<04-Feb-02 12:20:23 GMT> <Error> <Management> <ApplicationManager startingConfig
caught throwable
java.lang.reflect.UndeclaredThrowableException:java.lang.StringIndexOutOfBoundsException:
String index out of range: -1
at java.lang.String.substring(String.java:1525)
atweblogic.utils.jars.ManifestEntry.stream(ManifestEntry.java:166)
at weblogic.utils.jars.Manifest.stream(Manifest.java:81)
atweblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java
:398)
atweblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:2
34)
atweblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServl
etContext.java:3407)
atweblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletConte
xt.java:3376)
atweblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.jav
a:862)
atweblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.j
ava:815)
atweblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.addComponent(Application.java:163)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
atweblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:329)
atweblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:144)
atweblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:
76)
at java.lang.reflect.Method.invoke(Native Method)
atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:636)
atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
21)
atweblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:359)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy35.addWebDeployment(Unknown Source)
atweblogic.management.configuration.WebServerMBean_CachingStub.addWebDeploymen
t(WebServerMBean_CachingStub.java:1121)
atweblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:315)
atweblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deployment
Target.java:279)
atweblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(D
eploymentTarget.java:233)
atweblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploym
entTarget.java:193)
at java.lang.reflect.Method.invoke(Native Method)
atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:636)
atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
21)
atweblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:359)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy34.updateDeployments(Unknown Source)
atweblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(
ServerMBean_CachingStub.java:2761)
atweblogic.management.mbeans.custom.ApplicationManager.startConfigManager(Appl
icationManager.java:370)
atweblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManage
r.java:160)
at java.lang.reflect.Method.invoke(Native Method)
atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:636)
atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
21)
atweblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:359)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy46.start(Unknown Source)
atweblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(
ApplicationManagerMBean_CachingStub.java:480)
atweblogic.management.Admin.startApplicationManager(Admin.java:1180)
at weblogic.management.Admin.finish(Admin.java:590)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:518)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
at weblogic.Server.main(Server.java:35)
--------------- nested within: ------------------
weblogic.j2ee.DeploymentException: Could not load clasp1 - with nestedexception:
[java.lang.StringIndexOutOfBoundsException: String index out of range: -1]
atweblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:431)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.addComponent(Application.java:163)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
atweblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:329)
atweblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:144)
atweblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:
76)
at java.lang.reflect.Method.invoke(Native Method)
atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:636)
atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
21)
atweblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:359)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy35.addWebDeployment(Unknown Source)
atweblogic.management.configuration.WebServerMBean_CachingStub.addWebDeploymen
t(WebServerMBean_CachingStub.java:1121)
atweblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:315)
atweblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deployment
Target.java:279)
atweblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(D
eploymentTarget.java:233)
atweblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploym
entTarget.java:193)
at java.lang.reflect.Method.invoke(Native Method)
atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:636)
atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
21)
atweblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:359)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy34.updateDeployments(Unknown Source)
atweblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(
ServerMBean_CachingStub.java:2761)
atweblogic.management.mbeans.custom.ApplicationManager.startConfigManager(Appl
icationManager.java:370)
atweblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManage
r.java:160)
at java.lang.reflect.Method.invoke(Native Method)
atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:636)
atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
21)
atweblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:359)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
atweblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
at $Proxy46.start(Unknown Source)
atweblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(
ApplicationManagerMBean_CachingStub.java:480)
atweblogic.management.Admin.startApplicationManager(Admin.java:1180)
at weblogic.management.Admin.finish(Admin.java:590)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:518)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:203)
at weblogic.Server.main(Server.java:35) -
Hi,
The application deployment works fine with Tomcat 4.0.6.
Now I'm trying to upgrade to Tomcat 4.1.24 and am getting this exception...
Using CATALINA_BASE: /users/home/cjain/nls/projects/CKJ_loaddb/java/deploy
Using CATALINA_HOME: /nls/apps/tomcat
Using CATALINA_TMPDIR: /users/home/cjain/nls/projects/CKJ_loaddb/java/deploy/temp
Using JAVA_HOME: /nls/apps/jdk
May 16, 2003 3:26:05 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 80
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
HostConfig[localhost]: Expanding web application archive ROOT.war
StandardHost[localhost]: Installing web application at context path from URL file:/users/home/cjain/nls/projects/CKJ_loaddb/java/deploy/webapps/ROOT
WebappLoader[]: Deploying class repositories to work directory /users/home/cjain/nls/projects/CKJ_loaddb/java/deploy/work/Standalone/localhost/_
WebappLoader[]: Deploy class files /WEB-INF/classes to /users/home/cjain/nls/projects/CKJ_loaddb/java/deploy/webapps/ROOT/WEB-INF/classes
WebappLoader[]: Deploy JAR /WEB-INF/lib/jnlp-servlet.jar to /users/home/cjain/nls/projects/CKJ_loaddb/java/deploy/webapps/ROOT/WEB-INF/lib/jnlp-servlet.jar
ContextConfig[]: Exception processing JAR at resource path /WEB-INF/lib/jnlp-servlet.jar
javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/jnlp-servlet.jar
javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/jnlp-servlet.jar
at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:400)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
ContextConfig[]: Marking this application unavailable due to previous error(s)
Any ideas what I'm doing wrong?
Thanks,
chetFound the solution...
The deploy directory needs to have a temp directory in
it!!!!We have had this problem too when upgrading to 4.1.27 but are confused about which directory should have a temp directory under it, and what the permission should be. Could someone enlighten us ?
Thanks
Janet -
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
>
-
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. -
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 ?
Maybe you are looking for
-
Need an External DVD Burner for eMac
I bought an eMac about 3 years ago for personal use. I didn't get the Superdrive at the time and now wish I had! I want to burn DVD's of my kids to give to the Grandparent's etc. They wouldn't be complicated, just photos, videos and some music. I als
-
Agent installation on Solaris 10 x86 64
I'm stuck in the middle of installation, I've tried to perform installation in offline mode, I've reached to the point where I've downloaded successfully the agent software but when I try to do "emcli get_supported_platforms" I don't get the Solaris
-
How to get data from the user for an Insert Trigger ?
Hi all and thanks in advance, I need to get some values from the user for a child table when a row inserted into the parent table, is that possible to use ampersand inside an "Insert Trigger" to let the user for inserting some values ? Edited by: use
-
Urgently!! Deploy project using Struts and Toplink
Hello. I want to make a deploy of a project in wich I'm using Struts and Toplink technologies. I'm using JDeveloper 10g for Windows and my production server is a SUN V880 with Soloaris 8 and I make it ok, but when I run it since a PC in the intranet
-
I have a problem with iMovie. When I click the note logo in the middle bar iTunes won't show up in the menu and I can't choose it and add music in my videos. How can I get iTunes to show up in the music and sound effects menu?