TechTech

Greenhorn
+ Follow
since Oct 05, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by TechTech

Hi, I am trying to deploy web application which makes use of JSF components, Is websphere a JavaEE5 container..?

I am getting following errors

[1/14/08 15:17:20:593 PST] 0000002a SystemErr R org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: IWAE0022E Exception occurred loading deployment descriptor for module "example.war" in EAR file "C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\wstemp\92668751\upload\example_war.ear" Stack trace of nested exception: org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: WEB-INF/web.xml Stack trace of nested exception: org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ResourceLoadException: IWAE0007E Could not load resource "WEB-INF/web.xml" in archive "example.war" Stack trace of nested exception: Wrapped exception 1/14/08 17:18:45:406 PST] 0000002e SystemErr R Stack trace of nested exception: [1/14/08 17:18:45:406 PST] 0000002e SystemErr R Wrapped exception [1/14/08 17:18:45:406 PST] 0000002e SystemErr R org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'web-app'. [1/14/08 17:18:45:406 PST] 0000002e SystemErr R at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) [1/14/08 17:18:45:406 PST] 0000002e SystemErr R at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) [1/14/08 17:18:45:406 PST] 0000002e SystemErr R at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [1/14/08 17:18:45:406 PST] 0000002e SystemErr R at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [1/14/08 17:18:45:406 PST] 0000002e SystemErr R at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source) [1/14/08 17:18:45:406 PST] 0000002e SystemErr R at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source) [1/14/08 17:18:45:421 PST] 0000002e SystemErr R at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) [1/14/08 17:18:45:421 PST] 0000002e SystemErr R at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source) [1/14/08 17:18:45:421 PST] 0000002e SystemErr R at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) [1/14/08 17:18:45:468 PST] 0000002e SystemErr R at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) [1/14/08 17:18:45:468 PST] 0000002e SystemErr R at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [1/14/08 17:18:45:484 PST] 0000002e SystemErr R at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [1/14/08 17:18:45:484 PST] 0000002e SystemErr R at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) [1/14/08 17:18:45:484 PST] 0000002e SystemErr R at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) [1/14/08 17:18:45:484 PST] 0000002e SystemErr R at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) [1/14/08 17:18:45:484 PST] 0000002e SystemErr R at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)



Thanks
16 years ago
Is there a trial version of websphere6.1 for solaris..?
16 years ago
Hi

Can anyone guide me in generating html reports for Junit tests..?

Thanks
-Khaja
16 years ago
HI
I have a webapp that makes use of JSF
I have been able to deploy this on Weblogic,Tomcat,Appserver but not Websphere as it is not yet java EE5 container.
But Websphere Community edition is java EE5 , i get the following exception when i try to deploy on WCE2.0


****************
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet FacesServlet threw exception
org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:351)
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:595)

root cause

java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions!
If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml.
A typical config looks like this;
<listener>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>

javax.faces.FactoryFinder.getFactory(FactoryFinder.java:90)
javax.faces.webapp.FacesServlet.init(FacesServlet.java:88)
org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:351)
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:595)
*******************
Thanks
16 years ago
Is the latest version of websphere a java EE5 supported container..

Thanks
-Khaja
16 years ago
Hi
I have .war file that uses JavaEE5 I have deployed this sucessfully on tomcat,jboss,glassfish
But i see problem when i do it on Weblogic10
When i try to deploy it through deploytool
i get error meassages

An error occurred during activation of changes, please see the log for details.
Failed to load webapp: 'example.war'
javax.faces.webapp.FacesServlet

Can any one help me in deploying this..

Thanks
-Khaja
16 years ago