WEB-INF/web.xml not found exception for deployed war on server startup
Weblogic server is throwing an exception indicating that it can't find
web.xml on startup when a particular war file is deployed. The exception
and my web.xml follow below.
There are some other strange elements to this:
1) The deployed war in the application directory has a valid web.xml in the
web-inf folder.
2) The war in the servers temp directory corresponding to my war contains
only the files found in WEB-INF in the deployed jar, but not those found in
web-inf (case matters). These files are in the root of the war, not in a
WEB-INF folder!
3) The servlets in the war do load and are invokable.
4) If I redeploy the jar while the server is still running, I get no
exception, and the temp war then has the correct structure (with a WEB-INF
folder and contains web.xml).
The exception:
<Oct 14, 2001 8:15:46 PM CDT> <Error> <HTTP> <[HTTP PPSserver]
Could not find Web application
"D:\Dev\bea\wlserver6.0\.\config\PPS\applications\.wl_temp_do_not_delete\wl_
local_comp2079.war"
java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in jar
file
at
weblogic.servlet.internal.dd.DescriptorLoader.getInputSource(DescriptorLoade
r.java:207)
at
weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:1
78)
at
weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:446)
at
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.addComponent(Application.java:133)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:327)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:143)
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:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
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:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy32.addWebDeployment(Unknown Source)
at
weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeploymen
t(WebServerMBean_CachingStub.java:1012)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:313)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deployment
Target.java:277)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(D
eploymentTarget.java:232)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploym
entTarget.java:192)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
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:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy29.updateDeployments(Unknown Source)
at
weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(
ServerMBean_CachingStub.java:2299)
at
weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(Appl
icationManager.java:240)
at
weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManage
r.java:122)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
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:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy23.start(Unknown Source)
at
weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(
ApplicationManagerMBean_CachingStub.java:435)
at
weblogic.management.Admin.startApplicationManager(Admin.java:1033)
at weblogic.management.Admin.finish(Admin.java:494)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:431)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
at weblogic.Server.main(Server.java:35)
web.xml:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>Controller Unit Tests</display-name>
<context-param>
<param-name>weblogic.jsp.precompile</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>package_com.cinfin.cld.controller.conduct.access.test</param-nam
e>
<param-value>ConductEntityAccessTest</param-value>
</context-param>
<servlet>
<servlet-name>unitTestRunner</servlet-name>
<servlet-class>com.cinfin.cld.test.unit.UnitTestRunner</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>unitTestRunner</servlet-name>
<url-pattern>unitTestRunner.srv</url-pattern>
</servlet-mapping>
<resource-ref>
<res-ref-name>PPSDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
Kumar,
Here it is.
Kumar Allamraju <[email protected]> wrote in message news:[email protected]...
I have a webapp with the following entries in my web.xml and i can't seem to duplicate your problem.
Can you send us your webapp? I will try to duplicate it in my environment.
Kumar
Steve Demuth wrote:
Already tried that. No difference. Kumar Allamraju <[email protected]> wrote in message news:[email protected]...
Interesting.
This shouldn't happen though.
Can you stop the server delete the .wl_temp_do_not_delete
dir? Let's see if that makes any difference.
Kumar
Steve Demuth wrote:
Weblogic server is throwing an exception indicating that it can't find
web.xml on startup when a particular war file is deployed. The exception
and my web.xml follow below.
There are some other strange elements to this:
1) The deployed war in the application directory has a valid web.xml in the
web-inf folder.
2) The war in the servers temp directory corresponding to my war contains
only the files found in WEB-INF in the deployed jar, but not those found in
web-inf (case matters). These files are in the root of the war, not in a
WEB-INF folder!
3) The servlets in the war do load and are invokable.
4) If I redeploy the jar while the server is still running, I get no
exception, and the temp war then has the correct structure (with a WEB-INF
folder and contains web.xml).
The exception:
<Oct 14, 2001 8:15:46 PM CDT> <Error> <HTTP> <[HTTP PPSserver]
Could not find Web application
"D:\Dev\bea\wlserver6.0\.\config\PPS\applications\.wl_temp_do_not_delete\wl_
local_comp2079.war"
java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in jar
file
at
weblogic.servlet.internal.dd.DescriptorLoader.getInputSource(DescriptorLoade
r.java:207)
at
weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:1
78)
at
weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:446)
at
weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.addComponent(Application.java:133)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:327)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:143)
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:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
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:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy32.addWebDeployment(Unknown Source)
at
weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeploymen
t(WebServerMBean_CachingStub.java:1012)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
arget.java:313)
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deployment
Target.java:277)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(D
eploymentTarget.java:232)
at
weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploym
entTarget.java:192)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
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:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy29.updateDeployments(Unknown Source)
at
weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(
ServerMBean_CachingStub.java:2299)
at
weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(Appl
icationManager.java:240)
at
weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManage
r.java:122)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:562)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
48)
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
nImpl.java:285)
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:439)
at
weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
at $Proxy23.start(Unknown Source)
at
weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(
ApplicationManagerMBean_CachingStub.java:435)
at
weblogic.management.Admin.startApplicationManager(Admin.java:1033)
at weblogic.management.Admin.finish(Admin.java:494)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:431)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
at weblogic.Server.main(Server.java:35)
web.xml:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>Controller Unit Tests</display-name>
<context-param>
<param-name>weblogic.jsp.precompile</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>package_com.cinfin.cld.controller.conduct.access.test</param-nam
e>
<param-value>ConductEntityAccessTest</param-value>
</context-param>
<servlet>
<servlet-name>unitTestRunner</servlet-name>
<servlet-class>com.cinfin.cld.test.unit.UnitTestRunner</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>unitTestRunner</servlet-name>
<url-pattern>unitTestRunner.srv</url-pattern>
</servlet-mapping>
<resource-ref>
<res-ref-name>PPSDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
[att1.html]
[controllerUnitTests.war]
Similar Messages
-
File "/WEB-INF/struts-bean" not found
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: File "/WEB-INF/struts-bean" not found
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:105)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:430)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154)
at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:180)
at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:354)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:381)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:795)
at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:536)Thanks for the reply.This is what the jsp has:
<%@ taglib uri="struts-bean" prefix="bean" %>
<%@ taglib uri="struts-html" prefix="html" %>
<html:html locale="true">
<head>
<title>Untitled Document</title>
</head>
<body bgcolor="#0080FF" text="#000000">
<html:form action="/Address">
<html:errors/>
<!--<form method="POST" action="http://localhost:8084/sru/registration">-->
<p> </p>
<p>:
<label></label>.....
If it needs struts-bean.tld where should i copy it.I have already done trying to copy it into a folder named tags under
my directory as such: webapps\sru\WEB-INF\tags\struts-bean.tld.
Let me know if this is correct or not.
Edited by: srujan on Apr 1, 2008 7:43 AM -
Class not found exception for the startup class defined.
iam using weblogic server 10 and bea jrockit 1.5.0.12.
i have created a startup class in the admin console for a web project and i have deployed the war file using the console in a user defined domains, user project directory.
when i start the server, iam getting class not found exception for the startup class.
But, the startup class is available in the web archive (war). how should we add the classes and jars in the war to the classpath in setDomainEnv.sh or is there any other setting available in the console to enable this.Hello Julius,
yes sure, we can move this post to the NW admin forum. I have already posted similar thread on sun forums. I was hoping that someone from SAP SDN already tackled this problem and if not someone specialized in J2EE Engine could troubleshoot me from the class problem I'm getting. I don't know if it's specific from the agent or if this ClassNotFound is a general SAP J2EE Engine error relating to a library not correclty defined.
Kind regards,
Tanguy Mezzano -
Class Not found Exception for invoking BPEL process through the Java code
Hi.
The JDeveloper IDE raise the Exception From the invoking the BPEL process through the java code .Class Not Found Exception (Locator,ID.......).What is process of importing these classes from API.In your code (.bpel file) import the library using the bpelx:exec tag. For example the adding the following entry in your .bpel file imports the com.oracle.bpel.client.util library.
<bpelx:exec import="com.oracle.bpel.client.util.*"/> -
Java applet class not found exception for check scan
I am getting a class not found exception when trying to scan a check into a banking website. The application uses Java and the exception error has the name "com.epaysol.checkscanAppletV2" in the message. I have the latest Firefox and the latest Java installed. I tried going to an earlier version of Firefox and of Java where this app worked in the past and it does not work now in the earlier versions either. So I am now back to the latest version of everything.
Try to clear the Java cache:
* http://www.java.com/en/download/help/5000020300.xml
Control Panel > Java > General tab > "Temporary Internet Files" > Settings > Delete Files
*XP: C:\Documents and Settings\<user>\Application Data\Sun\Java\Deployment\cache\
*Vista: C:\Users\<user>\AppData\LocalLow\Sun\Java\Deployment\cache\ -
File Not Found Exception for select_attributes.jsff in OESOIMTaskflows.jar
Upon trying to create an authorization policy, I am running into the following error:
java.io.FileNotFoundException: file:/opt/oracle/Middleware/Oracle_IDM1/server/apps/oim.ear/admin.war/WEB-INF/lib/OESOIMTaskFlows.jar!/taskflows/dialogs/select_attributes.jsff
I went to the OESOIMTaskFlows.jar file and exploded it. I verified the select_attributes.jsff file does indeed exist. I am not sure why it is failing at this step. Does anyone have any idea how to get this file to register?
One thing I have done out of the ordinary is re-deploying a new instance on an existing Middleware Home (Oracle_IDM1/SOA1) by dropping/re-creating the tables via RCU, removing the user_projects folder, and running the config in Oracle_IDM1
Thanks.FYI, for anyone seeing this or anything similar, I did the following:
Checked my log at each step of authorization policy creation. Prior to clicking the edit attributes button, I noticed that there were too many open files in the log.
- went to /etc/security/limits.conf
- changed the hard / soft nofile limit to 65535
This seemed to fix the issue. -
Bug:WEB-INF/lib JARs not added to runtime classpath of WebLogic Server
The JAR files packaged in the WEB-INF/lib directory of an application do not get installed to the runtime classpath of the Weblogic server.
Edited by: dvohra16 on Feb 28, 2013 9:24 AMSome posts in which an external jar, usually a JDBC jar, had to be added to the startWebLogic script to be added to the runtime classpath of WebLogic server.
Re: jdbc problem on MS SQL Server
Re: MySQL JDBC driver w/11.1.2 where too now?
Re: ADF Parameter form - java.lang.NoClassDefFoundError: sqlj/runtime/ref/Defa
Re: Cannot load driver class: com.microsoft.sqlserver.jdbc.SQLServerDriver
Re: deploy a shared library
Re: Cannot load driver class: com.microsoft.sqlserver.jdbc.SQLServerDriver
Re: Help need in Adding External jar files.
Re: NoClassDefFoundError while Testing a JAX-WS Web Service
Re: Unable to connect to SQL server 2008 from a deployed Weblogic application
Re: Howo to add external jar - quick question
Re: MySql connection with JDev 11.1.2.2 issues
Re: Integration of MySQL with ADF application -
Please Help ?? Tomcat 6 and JDK 6 Class Not Found Exception when deploying
Hi,
I am deploying this application in Tomcat 6, but I am getting ClassNotFoundException when I try to the application. I am a novice at this.
SEVERE: Error loading WebappClassLoader
delegate: false
repositories:
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@146c1d4
com.jbe.test.HelloWorldServlet
java.lang.ClassNotFoundException: com.jbe.test.HelloWorldServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:619)
Oct 15, 2007 12:57:31 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet asterisk
java.lang.ClassNotFoundException: com.jbe.test.HelloWorldServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:619)My web xml configuration
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<display-name>Hello, World Application</display-name>
<description>
Simple Test with a servlet.
</description>
<servlet>
<servlet-name>helloworld</servlet-name>
<servlet-class>com.jbe.test.HelloWorldServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>helloworld</servlet-name>
<url-pattern>/hello.htm</url-pattern>
</servlet-mapping>
</web-app>My JSP: <html>
<head><title>Test Hello World</title>
</head>
<body>
<form>
<a href = "hello.htm">Hello World</a>
</form>
</body>
</html>
Please Help !!!Are you sure your HelloWorldServlet has doGet method?
package com.jbe.test;
// Import servlet packages
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class HelloWorldServlet extends HttpServlet {
public HelloWorldServlet() {}
public void init() throws ServletException {}
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
// then get the writer and write the response data
PrintWriter out = response.getWriter();
out.println("<HEAD><TITLE> SimpleServlet Output</TITLE></HEAD><BODY>");
out.println("<h1> SimpleServlet Output </h1>");
out.println("<P>This is output is from SimpleServlet.");
out.println("</BODY>");
out.close();
public void destroy() {}
} -
Class not found Exception for Portal 4.0 console
Hi Ravi,
For Portal questions, we have a newsgroup called
weblogic.developer.interest.personalization that would be able to help you
more on this subject.
In the meantime, it sounds as if the installation of WLS 6.1sp1 wasn't done
properly. I would recommend reinstalling from scratch. Between the
installation of WLS 6.1sp1 and WLP 4.0, you can try running WLS 6.1 in the
mydomain domain, and see if you can access the console. If you can, then
you can continue with the WLP 4.0 installation.
Dennis Munsie
Developer Relations Engineer
BEA Support
"Ravi Kuwadia" <[email protected]> wrote in message
news:3c1f927e$[email protected]..
>
I have weblogic server 6.1 (SP1) running on win2k
Also installed portal 4.0
When I try to navigate to the
console "http://localhost:7501/console/index.jsp" I get following error:
javax.servlet.ServletException: Servlet class:'weblogic.management.console.webapp._index'
could not be loaded - the requested class wasn't found in the classpath:'E:\bea\wlportal4.0\......\wl_comp2050.war'
>
Can anyone help
Ravi -
Not able to start the remote server - class not found exception
All,
I am quite new to RMI programming, although i am an experienced java programmer. I am facing a problem in starting the remote server program which i wrote for RMI. I am getting class not found exception for "stub" class eventhough the class is in the classpath.
Following is the error console:
cmd> java -classpath "D:\Eclipse_WorkSpaces\WS2\RMITests\classes" MyServerImplementation
GetNames error: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: MyServerImplementation_Stub
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: MyServerImplementation_Stub
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:160)
at MyServerImplementation.main(MyServerImplementation.java:21)
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: MyServerImplementation_Stub
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: MyServerImplementation_Stub
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:434)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
... 12 morePLEASE ADVISE HOW TO RESOLVE THIS...
Following are my classes:
MyRemoteInterface.java
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface MyRemoteInterface extends Remote {
public String[] getNames() throws RemoteException;
public class MyServerImplementation extends UnicastRemoteObject implements
MyRemoteInterface {
public MyServerImplementation()throws RemoteException{
super();
public String[] getNames() throws RemoteException{
return new String[]{"Name1","Name2","Name3","Name4"};
public static void main(String args[]) {
try {
// Create an object of the HelloWorldServer class.
MyRemoteInterface obj = new MyServerImplementation();
// Bind this object instance to the name "HelloServer".
Naming.rebind("rmi://localhost:1985/GetNames", obj);
System.out.println("GetNames bound in registry");
catch (Exception e) {
System.out.println("GetNames error: " + e.getMessage());
e.printStackTrace();
public class MyRMIClient {
*@param args*
public static void main(String[] args) {
try {
MyRemoteInterface remObj = (MyRemoteInterface) Naming.lookup("rmi://localhost:1985/GetNames");
System.out.println("Names are "+remObj.getNames());
catch(Exception e) {
System.out.println("Problem encountered accessing remote object "+e);
}That's a remote exception coming from the registry. You need to learn to recognize remote exceptions and their source, it's a mjaor source of confusion in RMI.
In this case it's the registry that can't find the stub class.
The stub class needs to be in the CLASSPATH of (i) the Registry and (ii) the client as well. Ditto the remote interface; ditto any application classes it refers to, and so on until closure.
The easiest way to achieve (i) is to start it in the server's JVM, with LocateRegistry.createRegistry(). -
VBWS_MARA_CLASSIFICATION_GET - Class not found exception
Hi,
I`m trying to get the classification and the characteristics from material using VBWS_MARA_CLASSIFICATION_GET. When I test it, it raises the Class not Found Exception for the Materialnumber I`ve given in.
For the Testmaterial classification and characteristics are created.
Can anyone help me? Where could be the problem?Hi
Use the following BAPI's:
BAPI_OBJCL_GETDETAIL
BAPI_OBJCL_CHANGE
or use the fun module:
CLAF_CLASSIFICATION_OF_OBJECTS.
for getting the classification and characteristics data of Material
instead of VBWS_MARA_CLASSIFICATION_GET.
Reward points if useful
Regards
Anji -
WAR Deployment Problem (WEB-INF/web.xml not found)
I have a war application and WebLogic 5.1 with Svr Pack 8 failed to deploy it
when it start up. Here is what I did,
1. I jared all necessary files including WEB-INF\web.xml in the myapp.war file;
here I used all uppercase for WEB-INF directory, but after I jared it, it shew
up web-inf\web.xml but WEB-INF\lib\pushlet.jar in the myapp.war file. I think
this is the behavior of jar program.
2. I appended the myapp.war to the weblogicclasspath in the start script;
3. In weblogic.properties file, I specified two lines:
weblogic.httpd.webApp.myapp=c:/weblogic/default/myapp.war
weblogic.httpd.defaultWebApp=myapp
4. Then I start up the WebLogic server named "default". It shew the following
error messages:
java.io.FileNotFoundException: Directory myapp\ does not contain WEB-INF/web.x
ml
at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
.java:177)
at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:630)
at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:558)
at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Thu Mar 29 17:24:16 EST 2001:<E> <HTTP> FATAL: could not load WAR 'myapp' as d
efault servlet context
java.lang.NullPointerException
at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:560)
at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Thu Mar 29 17:24:17 EST 2001:<E> <HTTP> Could not find Web application 'c:/weblo
gic/default/myapp.war'
java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in jar file
at weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:93)
at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
.java:134)
at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:627)
at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:602)
at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:570)
at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Please help me find out what is wrong with this. Greatly Appreciated.
Thanks in advance,
Donald
If it is still not working, try to set the weblogic.httpd.documentRoot =c:/weblogic/default
in the weblogic.properties & try.
"Donald Ye" <[email protected]> wrote:
>
>
>I have a war application and WebLogic 5.1 with Svr Pack 8 failed to deploy
>it
>when it start up. Here is what I did,
>
>1. I jared all necessary files including WEB-INF\web.xml in the myapp.war
>file;
>here I used all uppercase for WEB-INF directory, but after I jared it,
>it shew
>up web-inf\web.xml but WEB-INF\lib\pushlet.jar in the myapp.war file.
>I think
>this is the behavior of jar program.
>
>2. I appended the myapp.war to the weblogicclasspath in the start script;
>
>3. In weblogic.properties file, I specified two lines:
>weblogic.httpd.webApp.myapp=c:/weblogic/default/myapp.war
>weblogic.httpd.defaultWebApp=myapp
>
>4. Then I start up the WebLogic server named "default". It shew the following
>error messages:
>
>java.io.FileNotFoundException: Directory myapp\ does not contain WEB-INF/web.x
>ml
> at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
>.java:177)
> at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:630)
> at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:558)
> at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
> at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
> at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
> at java.lang.reflect.Method.invoke(Native Method)
> at weblogic.Server.startServerDynamically(Server.java:99)
> at weblogic.Server.main(Server.java:65)
> at weblogic.Server.main(Server.java:55)
>
>Thu Mar 29 17:24:16 EST 2001:<E> <HTTP> FATAL: could not load WAR 'myapp'
>as d
>efault servlet context
>java.lang.NullPointerException
> at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:560)
> at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
> at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
> at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
> at java.lang.reflect.Method.invoke(Native Method)
> at weblogic.Server.startServerDynamically(Server.java:99)
> at weblogic.Server.main(Server.java:65)
> at weblogic.Server.main(Server.java:55)
>
>Thu Mar 29 17:24:17 EST 2001:<E> <HTTP> Could not find Web application
>'c:/weblo
>gic/default/myapp.war'
>java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in
>jar file
> at weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:93)
> at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
>.java:134)
> at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:627)
> at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:602)
> at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:570)
> at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
> at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
> at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
> at java.lang.reflect.Method.invoke(Native Method)
> at weblogic.Server.startServerDynamically(Server.java:99)
> at weblogic.Server.main(Server.java:65)
> at weblogic.Server.main(Server.java:55)
>
>
>Please help me find out what is wrong with this. Greatly Appreciated.
>
>Thanks in advance,
>
>Donald
-
Oracle 10g. emd-web-site.xml not found
I have this error when i try to test the status of iasconsole.
Unable to determine console port. $ORACLE_HOME/sysman/j2ee/config/emd-web-site.xml not found. No such file or directory.
i try to reconfigure via emca the central agent management, but when i must give the DBSNMP password i enter in a loop cause i don't know it.
i haven't installed the instance, I have found the installation already made in this machine.
thanks in advanceWell changing the DBSNMP password should not be that hard:
sqlplus / as sysdba
SQL> alter user dbsnmp identified by MyNewPassword;
cu
Andreas -
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. -
I have a cloud service project with two roles (service and worker). In Visual Studio 2013 Update 4 when I choose "Publish..." from the "Solution Explorer", it opens "Microsoft Azure Activity Log" and quickly terminates.
Here the log:
9:43:47 AM - Applying Diagnostics extension.
9:44:09 AM - Published Asset Entry for Image Microsoft.Azure.Diagnostics_PaaSDiagnostics_europeall_manifest.xml not found.
All works fine when uploading the package and updating from https://manage.windowsazure.com/. It only fails from within Visual Studio.
What can I do to get it working?I have the same problem with our Azure project. Two web roles (service and worker). Just updated from SDK2.2 to SDK2.5 and Visual Studio 2013 Update 2 to Update 4. The main reason behind this was to move from log4net to WAD and in doing so, of course directly
move to the new diagnostics version.
Now, I get the same error message in Visual Studio:
11:45:24 - Checking for Remote Desktop certificate...
11:45:25 - Applying Diagnostics extension.
11:45:45 - Published Asset Entry for Image Microsoft.Azure.Diagnostics_PaaSDiagnostics_europeall_manifest.xml not found.
With my small testing project - also two roles (service and worker) - everything is fine. However, I'm looking for a solution to make by existing production service working.
Also the test project shows no Microsoft.Azure.Diagnostics_PaaSDiagnostics_europeall_manifest.xml,
but this is no problem - so what's the meaning of or solution to this error messages?
What I found so far:
I deployed the Azure project from the same development environment to another Azure test service: Deployment
showed no errors and the service is running fine! So the problem is not with the source, the development environment, library dependencies etc.
Trying Azure cmdlets for PowerShell also work fine for the new service and fails for the production service with almost the same error message:
Following http://blogs.msdn.com/b/kwill/archive/2014/12/02/windows-azure-diagnostics-upgrading-from-azure-sdk-2-4-to-azure-sdk-2-5.aspx
I tried:
PS C:\> Set-AzureServiceDiagnosticsExtension -StorageContext $storageContext -DiagnosticsConfigurationPath $public_config -ServiceName $service_name -Slot 'Staging' -Role $role_name
VERBOSE: Setting PaaSDiagnostics configuration for MyWebRole.
Set-AzureServiceDiagnosticsExtension : BadRequest : Published Asset Entry for Image
Microsoft.Azure.Diagnostics_PaaSDiagnostics_europeall_manifest.xml not found.
At line:1 char:1
+ Set-AzureServiceDiagnosticsExtension -StorageContext $storageContext -Diagnostic ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Set-AzureServiceDiagnosticsExtension], CloudException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.CloudException,Microsoft.WindowsAzure.Commands.ServiceManagement.
Extensions.SetAzureServiceDiagnosticsExtensionCommand
The problem seems to be related to those service configuration parts in the cloud which are not replaced
by a new deployment... So what are possible reasons or fixes for this behaviour?
Best regards,
Andreas
Maybe you are looking for
-
I updated to itunes 10.5.1 and my tones will not show up on iphone anywhere.
I have the setting to automatic sync everything. I have click and dragged the ringtones individually. The ringtones show up in my itunes but not on my phone, in fact the 'tones' catagory does not show up in the search section of the phone. HELP. I w
-
Server disconnects when trying to delete trash or junk
I am on a MacBookAir - Yosemite latest version, T-Bird latest version. I also have a MacMini desktop running snow leopard. When I go to delete trash or junk I get "Server at [email protected] has disconnected." Both of these computers show the same er
-
What is the T.Code to clear gl accounts in a mass manually?
Hello Experts, is there any T.code to clear the GL accounts in mass manually? Because F-03 is for single gl account and F.13 is for automatic clearing purpose where clearing Criterion is maintained before in OB74. The scenario is like: I have more th
-
Implementing digital signatures for Form 16
I have configured ADS for my development ECC. I need to configure digital signatures for Form 16. Please can anybody guide me how to go about this. I am unable to find a proper document.
-
Error "Empty list of services in WSDL" at Web Services Navigator
Hello all, I have a problem when trying to test my web service in the Web Services Navigator. I will have to call this web service from a web dympro. This is the error I get when selecting my destination in the search form: Empty list of services in