Deploying a web app into a cluster
Hi Folks,
I like to create a script that will automate the deployment of a web application
(WAR file) into a cluster. I found the weblogic.deploy util which allows updates
on servers.
How do you specify a cluster as the destination of the deployment?
Is there another way to do this?
-Rich
Hi.
You can use weblogic.deploy to deploy to a cluster by specifying the cluster name as
the target parameter instead of individual server names.
Regards,
Michael
Rich wrote:
Hi Folks,
I like to create a script that will automate the deployment of a web application
(WAR file) into a cluster. I found the weblogic.deploy util which allows updates
on servers.
How do you specify a cluster as the destination of the deployment?
Is there another way to do this?
-Rich--
Michael Young
Developer Relations Engineer
BEA Support
Similar Messages
-
Error auto-deploying a Web App (.WAR file)
Hello,
Weblogic 6.1 throws a FileNotFoundException about 10% of the time for me when
auto-deploying a Web app. Has anyone else run into this? I searched the newsgroups
but didn't come up with anything, so I thought I'd start here.
My build/deploy cycle is managed by an Ant build file that creates a WAR file
of my web application and then drops it into $WL_HOME/config/mydomain/applications.
Occasionally when I do this, I get the error shown below. Originally I was building
the WAR file right in the ../applications directory, so I thought that might be
an issue. So, I started building the WAR file in a staging directory and copying
it into ../applications. No luck. Next, I tried deleting the original WAR file
from ../applications, and THEN copying the new one over from the staging directory.
Still fails occasionally.
Let's see. This is Weblogic 6.1 on Win2K. The only other thing is that my dev/build/staging
environment is on a network share, and it's from there that I'm copying the WAR
file to my local machine (where WL is running).
If someone has seen and/or knows what is up with this, great. If not, it's not
a show-stopper.
Thanks!
Cheers,
David
========================================================
<Apr 8, 2002 9:05:00 AM PDT> <Error> <Management> <IOException opening application
mydomain:Name=private-banking,Type=Application, loading from path .\config\mydomain\applications\private-banking.war
java.io.FileNotFoundException: error in opening zip file
at weblogic.management.mbeans.custom.Application.findType(Application.java:1833)
at weblogic.management.mbeans.custom.Application.adminLoad(Application.java:444)
at weblogic.management.mbeans.custom.Application.load(Application.java:387)
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 $Proxy8.load(Unknown Source)
at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:840)
at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:733)
at weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:206)
at weblogic.management.mbeans.custom.ApplicationManager$ApplicationPoller.run(ApplicationManager.java:1050)Michael,
This is a problem with 6.1 SP2 also -- a very annoying error. Without auto deploy
working properly, developers are spending alot of time waiting for WebLogic to restart.
HELP!!! we need this fixed.
I see the EXACT same stack trace (ERROR).
Tom Markel
Sr. Java Engineer
Michael Young <[email protected]> wrote:
Hi.
This may be a known issue that was addressed in sp2. If you are not already
at that sp level I suggest you upgrade.
Regards,
Michael
David Ventimiglia wrote:
Hello,
Weblogic 6.1 throws a FileNotFoundException about 10% of the time forme when
auto-deploying a Web app. Has anyone else run into this? I searchedthe newsgroups
but didn't come up with anything, so I thought I'd start here.
My build/deploy cycle is managed by an Ant build file that creates a WARfile
of my web application and then drops it into $WL_HOME/config/mydomain/applications.
Occasionally when I do this, I get the error shown below. OriginallyI was building
the WAR file right in the ../applications directory, so I thought thatmight be
an issue. So, I started building the WAR file in a staging directoryand copying
it into ../applications. No luck. Next, I tried deleting the originalWAR file
from ../applications, and THEN copying the new one over from the stagingdirectory.
Still fails occasionally.
Let's see. This is Weblogic 6.1 on Win2K. The only other thing is thatmy dev/build/staging
environment is on a network share, and it's from there that I'm copyingthe WAR
file to my local machine (where WL is running).
If someone has seen and/or knows what is up with this, great. If not,it's not
a show-stopper.
Thanks!
Cheers,
David
========================================================
<Apr 8, 2002 9:05:00 AM PDT> <Error> <Management> <IOException openingapplication
mydomain:Name=private-banking,Type=Application, loading from path .\config\mydomain\applications\private-banking.war
java.io.FileNotFoundException: error in opening zip file
at weblogic.management.mbeans.custom.Application.findType(Application.java:1833)
at weblogic.management.mbeans.custom.Application.adminLoad(Application.java:444)
at weblogic.management.mbeans.custom.Application.load(Application.java:387)
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 $Proxy8.load(Unknown Source)
at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:840)
at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:733)
at weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:206)
at weblogic.management.mbeans.custom.ApplicationManager$ApplicationPoller.run(ApplicationManager.java:1050)--
Michael Young
Developer Relations Engineer
BEA Support -
How to convert Web app into a channel?
To whom it may concern,
Does anyone know how to convert a Web app into a channel inside the Portal server 6.0?
I developed the web app and tried to create a provider and a channel for it, but the Portal server did not recognize the WEB-INF folder and give me errors saying that it couldn't locate the class files.
I also have a problem with URL inside my jsp page (channel).
For example, I have two jsp pages:
/etc/opt/SUNWps/desktop/default/MyCustomProvider/test1.jsp
/etc/opt/SUNWps/desktop/default/MyCustomProvider/test2.jsp
and when I try to put a link from test1.jsp to test2.jsp using
... and make a channel based on test1.jsp. The channel will display the link as "http://mydomain/portal/test2.jsp" and result in "Error: page not found". I want the link to point to
/etc/opt/SUNWps/desktop/default/MyCustomProvider/test2.jsp
To summarize my questions,
1) Where should the web app be located in the Portal server?
2) How to make a link inside one jsp page (channel) to point to another page inside the same folder?
Thank you in advanceHello Karthik,
I just tried to solve my problem with your suggestions, unfortunately, my JSP channel still doesn't work :(
The portal server keeps reporting "Server Error..." when I tried to add query at the end of the href.
Do you still have any other suggestions?
Thank you -
Deploying a Web Application in a Cluster
When accessing our web app through a cluster, the weblogic servers fail to recognize the servlets as registered in the web.xml file, but recognize them fine when registered in the cluster's weblogic.properties file. We had previously tested the app in a non-clustered enviroment and everything worked fine from the web.xml file. So... does anyone have any experience with this problem, or does anyone have any suggestions. All help is appreciated.Thanks,Chad
Chad Griffith wrote:
> When accessing our web app through a cluster, the weblogic servers fail to recognize the servlets as registered in the web.xml file, but recognize them fine when registered in the cluster's weblogic.properties file.
I am not quite sure I understand. Could you elaborate what you mean here?
- Prasad
> We had previously tested the app in a non-clustered enviroment and everything worked fine from the web.xml file. So... does anyone have any experience with this problem, or does anyone have any suggestions. All help is appreciated.Thanks,Chad
Cheers
- Prasad
-
Error - In deploying the web services into axis
Hello,
I am working on deploying a webservices into axis. I have an deploy.wsdd file and I have an ant script (build.xml) for deploying that web service into axis (axis is in tomcat). After deploying I can see the services
[http://localhost:8080/axis/servlet/AxisServlet] at this link. But when I run my web project which uses the deployed service, I am getting an InstatiationException as shown below.
{color:#ff0000}SEVERE: Remote Connect Failure:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.InstantiationException: myexample.HelloWS
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:Personal
java.lang.InstantiationException: myexample.HelloWS
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1550)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1149)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at mypackage.HelloImpl.getSiteMenu(RDMInterfaceWSSoapBindingStub.java:1589)
at mypackage.HelloImpl.getSiteMenu(RDMWebserviceImpl.java:443)
at mypackage.HelloImplServiceClient.getSiteMenu(RDMInterfaceWSServiceClient.java:123)
at mypackage.ApplicationBean.init(ApplicationBean.java:98)
at com.sun.rave.web.ui.appbase.servlet.LifecycleListener.attributeAdded(LifecycleListener.java:132)
at org.apache.catalina.core.ApplicationContext.setAttribute(ApplicationContext.java:777)
at org.apache.catalina.core.ApplicationContextFacade.setAttribute(ApplicationContextFacade.java:335)
at com.sun.faces.context.ApplicationMap.put(ExternalContextImpl.java:496)
at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:287)
at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:78)
at com.sun.rave.web.ui.appbase.faces.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:96)
at com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:125)
at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:146)
at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
at com.sun.rave.web.ui.component.SelectorBase.getItems(SelectorBase.java:114)
at com.sun.rave.web.ui.component.ListSelector.getOptions(ListSelector.java:168)
at com.sun.rave.web.ui.component.ListSelector.getListItems(ListSelector.java:113)
at com.sun.rave.web.ui.renderer.ListRendererBase.renderList(ListRendererBase.java:363)
at com.sun.rave.web.ui.renderer.ListRendererBase.renderListComponent(ListRendererBase.java:164)
at com.sun.rave.web.ui.renderer.DropDownRenderer.encodeEnd(DropDownRenderer.java:73)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:443)
at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:80)
at com.sun.rave.web.ui.renderer.AbstractRenderer.encodeChildren(AbstractRenderer.java:194)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:80)
at com.sun.rave.web.ui.renderer.AbstractRenderer.encodeChildren(AbstractRenderer.java:194)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:435)
at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:607)
at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:544)
at com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag(PanelGridTag.java:460)
at org.apache.jsp.Home_jsp._jspx_meth_h_005fpanelGrid_005f0(Home_jsp.java:541)
at org.apache.jsp.Home_jsp._jspx_meth_ui_005fform_005f0(Home_jsp.java:368)
at org.apache.jsp.Home_jsp._jspx_meth_ui_005fbody_005f0(Home_jsp.java:329)
at org.apache.jsp.Home_jsp._jspx_meth_ui_005fhtml_005f0(Home_jsp.java:250)
at org.apache.jsp.Home_jsp._jspx_meth_ui_005fpage_005f0(Home_jsp.java:223)
at org.apache.jsp.Home_jsp._jspx_meth_f_005fview_005f0(Home_jsp.java:170)
at org.apache.jsp.Home_jsp._jspService(Home_jsp.java:138)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:311)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source){color}
Please help me how to resolve this problem.
Thx
ChaitanyaHello,
I am working on deploying a webservices into axis. I have an deploy.wsdd file and I have an ant script (build.xml) for deploying that web service into axis (axis is in tomcat). After deploying I can see the services
[http://localhost:8080/axis/servlet/AxisServlet] at this link. But when I run my web project which uses the deployed service, I am getting an InstatiationException as shown below.
{color:#ff0000}SEVERE: Remote Connect Failure:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.InstantiationException: myexample.HelloWS
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:Personal
java.lang.InstantiationException: myexample.HelloWS
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1550)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1149)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at mypackage.HelloImpl.getSiteMenu(RDMInterfaceWSSoapBindingStub.java:1589)
at mypackage.HelloImpl.getSiteMenu(RDMWebserviceImpl.java:443)
at mypackage.HelloImplServiceClient.getSiteMenu(RDMInterfaceWSServiceClient.java:123)
at mypackage.ApplicationBean.init(ApplicationBean.java:98)
at com.sun.rave.web.ui.appbase.servlet.LifecycleListener.attributeAdded(LifecycleListener.java:132)
at org.apache.catalina.core.ApplicationContext.setAttribute(ApplicationContext.java:777)
at org.apache.catalina.core.ApplicationContextFacade.setAttribute(ApplicationContextFacade.java:335)
at com.sun.faces.context.ApplicationMap.put(ExternalContextImpl.java:496)
at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:287)
at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:78)
at com.sun.rave.web.ui.appbase.faces.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:96)
at com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:125)
at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:146)
at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
at com.sun.rave.web.ui.component.SelectorBase.getItems(SelectorBase.java:114)
at com.sun.rave.web.ui.component.ListSelector.getOptions(ListSelector.java:168)
at com.sun.rave.web.ui.component.ListSelector.getListItems(ListSelector.java:113)
at com.sun.rave.web.ui.renderer.ListRendererBase.renderList(ListRendererBase.java:363)
at com.sun.rave.web.ui.renderer.ListRendererBase.renderListComponent(ListRendererBase.java:164)
at com.sun.rave.web.ui.renderer.DropDownRenderer.encodeEnd(DropDownRenderer.java:73)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:443)
at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:80)
at com.sun.rave.web.ui.renderer.AbstractRenderer.encodeChildren(AbstractRenderer.java:194)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:80)
at com.sun.rave.web.ui.renderer.AbstractRenderer.encodeChildren(AbstractRenderer.java:194)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:435)
at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:607)
at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:544)
at com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag(PanelGridTag.java:460)
at org.apache.jsp.Home_jsp._jspx_meth_h_005fpanelGrid_005f0(Home_jsp.java:541)
at org.apache.jsp.Home_jsp._jspx_meth_ui_005fform_005f0(Home_jsp.java:368)
at org.apache.jsp.Home_jsp._jspx_meth_ui_005fbody_005f0(Home_jsp.java:329)
at org.apache.jsp.Home_jsp._jspx_meth_ui_005fhtml_005f0(Home_jsp.java:250)
at org.apache.jsp.Home_jsp._jspx_meth_ui_005fpage_005f0(Home_jsp.java:223)
at org.apache.jsp.Home_jsp._jspx_meth_f_005fview_005f0(Home_jsp.java:170)
at org.apache.jsp.Home_jsp._jspService(Home_jsp.java:138)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:311)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source){color}
Please help me how to resolve this problem.
Thx
Chaitanya -
Deploying a web app under 9.2
Hello,
I am trying to deploy a web app using bea 9.2 console and i am getting error with deployment descriptor (which 8.2 specific). So i tried to use appc and got the same error (listed below). Can anyone tell me what is wrong with my descriptor?
Thanks
sl
javax.xml.stream.XMLStreamException: ';' expected a valid beginning name character
at weblogic.xml.stax.XMLStreamReaderBase.prime(XMLStreamReaderBase.java:78)
at weblogic.xml.stax.XMLStreamReaderBase.setInput(XMLStreamReaderBase.java:101)
at weblogic.xml.stax.XMLStreamInputFactory.createXMLStreamReader(XMLStreamInputFactory.java:325)
at weblogic.xml.stax.XMLStreamInputFactory.createXMLStreamReader(XMLStreamInputFactory.java:49)
at weblogic.application.descriptor.BasicMunger2.<init>(BasicMunger2.java:107)
at weblogic.application.descriptor.BasicMunger2.<init>(BasicMunger2.java:125)
at weblogic.application.descriptor.VersionMunger.<init>(VersionMunger.java:40)
at weblogic.servlet.internal.WlsWebAppReader2.<init>(WlsWebAppReader2.java:59)
at weblogic.servlet.internal.WebAppDescriptor$MyWlsWebAppDescriptor.createXMLStreamReader(WebAppDescriptor.java:291)
at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:369)
at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:720)
at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:729)
at weblogic.servlet.internal.WebAppDescriptor.getWeblogicWebAppBean(WebAppDescriptor.java:148)
at weblogic.servlet.jsp.JspcInvoker.parseDescriptors(JspcInvoker.java:277)
at weblogic.servlet.jsp.JspcInvoker.compile(JspcInvoker.java:187)
at weblogic.application.compiler.AppcUtils.compileWAR(AppcUtils.java:353)
at weblogic.application.compiler.WARCompiler.compile(WARCompiler.java:72)
at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:118)
at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:43)
at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
at weblogic.application.compiler.Appc.runBody(Appc.java:163)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
at weblogic.application.compiler.Appc.main(Appc.java:174)
at weblogic.appc.main(appc.java:14)
Caused by: Error at line:2 col:61 ';' expected a valid beginning name character
at weblogic.xml.babel.scanner.Name.read(Name.java:33)
at weblogic.xml.babel.scanner.Name.read(Name.java:20)
at weblogic.xml.babel.scanner.OpenTag.read(OpenTag.java:58)
at weblogic.xml.babel.scanner.Scanner.startState(Scanner.java:251)
at weblogic.xml.babel.scanner.Scanner.scan(Scanner.java:178)
at weblogic.xml.babel.baseparser.BaseParser.prime(BaseParser.java:268)
at weblogic.xml.babel.baseparser.BaseParser.initScanner(BaseParser.java:118)
at weblogic.xml.babel.baseparser.BaseParser.init(BaseParser.java:244)
at weblogic.xml.babel.baseparser.BaseParser.<init>(BaseParser.java:84)
at weblogic.xml.stax.XMLStreamReaderBase.prime(XMLStreamReaderBase.java:54)
... 27 moreI have created a web application and have a jsp host.
I have 2 questions:
1-How do I deploy to the host. please explain. is this host a 3rd party? if so, ask them.
if the host is tomcat running on a machine that you have control of, create a WAR file and put it in the /webapps directory.
>
2-I also want to add a tomcat realm and have been
told to edit the server.xml file and web.xml file you should not edit the server.xml. just put a WAR file in the /webapps directory. no need to edit server.xml.
web.xml is part of the standard web app deployment. your app should have one, and it needs to be in the WEB-INF directory.
are these found on the host??
please offer a confused guy some helpYou should read "My First Web App" on the Tomcat page.
% -
Converting the web app into AIR app leads errors
Hi all,
I am new to flex, i am trying to convert a web app into air app.
I changes the tags and when i complie i get the below 3 error popups with dismis and continue buttons on the bottom right..
Error: Error #2067: The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime.
Error: Error #2067: The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
Any help would be greatly appreciated.
Thanks in advance.Thanks peter.
commenting those lines avoids the first 2 errors but still i am getting the below errors.
this is a microstrategy flex project.
Error #1009: Cannot access a property or method of a null object reference.
at com.microstrategy.web.vf.viewer::MstrWindowedApplication/handleCreationComplete()[Z:\Flex \projects\VisFrameworkAIR\src\com\microstrategy\web\vf\viewer\MstrWindowedApplication.as:9 9]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src \mx\core\UIComponent.as:9298]
at mx.core::UIComponent/set initialized()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as :1169]
at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects \framework\src\mx\managers\LayoutManager.as:718]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framew ork\src\mx\core\UIComponent.as:8628]
at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:8568] -
Deploying JSC Web App to SJSAS9
Hi there,
I have several web applications I've written in Netbeans, and they run on a SJSAS9 server. I've also written a JSC web app, and I would now like to deploy this onto the same SJSAS9 server that I've got my other web apps on.
It is certainly stated on several SUN sites that this can be done, here for instance:
http://docs.sun.com/app/docs/doc/819-3653/6n5s0v1qa?a=view
I've done this, and it works other than there is no database connectivity.
I have copied the adapter jar file, and the same jdbc jar files over to my server but no change. I can't find any meaningful error message in the logs... but when i used the EXPORT WAR file option I had to export to app server 8, because there is no option for 9. If I try registering my sjsas9 in JSC directly then it can't start or stop it...
thanks for any help.
RichardThanks, this helped me fix my problem. First I tried adding the _init method into prerender and that fixed the first problem. The next problem I had was that the Blueprint AJAX Components were throwing an exception (pasted below). I had no luck fixing this exception, so I downloaded, built and ran Glassfish V2 b09, and everything worked, finally :-)
To be honest this whole project I've been working on in JSC (latest final release) has been a nightmare of going from one bug to another. It has some great features but productivity wise I've lost an enormous amount of time. Every time I track down one problem/workaround, add a bit of functionality, it's another bug/workaround to find. Yeh I know I should be logging them all... I'd love to see it all hang together though, it would be so powerful. Unfortunately my company is currently reviewing IBM and Oracle's suite of Java products and I'm the one trying to persuade them to stay with the SUN tools - my job is getting harder.
FYI, this is the stack trace coming from the AJAX components in SJSAS9.
thanks
Richard
[#|2006-07-19T10:48:13.761+0100|WARNING|sun-appserver-pe9.0|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=12;_ThreadName=httpWorkerThread-8080-1;_RequestID=e1b326c6-f58a-4692-a1f7-ae17860d9bd6;|phase(RESTORE_VIEW 1,com.sun.faces.context.FacesContextImpl@340c9c) threw exception: javax.faces.el.EvaluationException: java.lang.NullPointerException java.lang.NullPointerException
com.sun.faces.application.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
org.apache.shale.remoting.impl.MethodBindingProcessor.process(MethodBindingProcessor.java:74)
org.apache.shale.remoting.faces.RemotingPhaseListener.afterPhase(RemotingPhaseListener.java:102)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:287)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:132)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
|#] -
Deploying a web app with errors
Good day,
We are migrating an older application into a WebLogic Portal 10.2 environment. We have Ant scripts to do the deployment from the command line but we want to use the Workspace Studio capabilities to deploy JSP changes to the application. The problem is that the application was architected to dynamically include JSP fragments into other JSPs. These fragments have objects defined in other JSPs and therefore show up with errors in the problems tab in Eclipse.
Is there a way to force an application to deploy even in this case or do we have to keep deploying/redeploying from the command line? This takes much longer than pushing the single files so this is why we are trying to figure out how to do it within the tool.
Thanks,
SeanI have created a web application and have a jsp host.
I have 2 questions:
1-How do I deploy to the host. please explain. is this host a 3rd party? if so, ask them.
if the host is tomcat running on a machine that you have control of, create a WAR file and put it in the /webapps directory.
>
2-I also want to add a tomcat realm and have been
told to edit the server.xml file and web.xml file you should not edit the server.xml. just put a WAR file in the /webapps directory. no need to edit server.xml.
web.xml is part of the standard web app deployment. your app should have one, and it needs to be in the WEB-INF directory.
are these found on the host??
please offer a confused guy some helpYou should read "My First Web App" on the Tomcat page.
% -
Can not Deploy struts web app on WLS 8
Hi
We are trying to migrate the struts web app from WLS 6 into WLS 8, but keep getting
exception: org.apache.commons.digester.Digester startElement
When I use blank struts-config.xml, the web app can be deployed without exception.
but when I use the struts-config.xml we are supposed to use ( had been deployed
on WLS6 and WLS7 for production), I get the exception.
Please can anybody help? Thanks
Chun
Nov 3, 2003 10:00:35 AM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
Utils.java:1789)
at org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
Utils.java:1684)
at org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
java:1713)
at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:101
9)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule
.java:259)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at weblogic.apache.xerces.parsers.AbstractSAXParser.startElement(Abstrac
tSAXParser.java:459)
at weblogic.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSch
emaValidator.java:591)
at weblogic.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XML
NamespaceBinder.java:877)
at weblogic.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamesp
aceBinder.java:569)
at weblogic.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDVa
lidator.java:727)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartE
lement(XMLDocumentFragmentScannerImpl.java:759)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentCo
ntentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocume
nt(XMLDocumentFragmentScannerImpl.java:329)
at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguratio
n.java:525)
at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguratio
n.java:581)
at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXPar
ser.java:1175)
at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:138)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
rvlet.java:1006)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
.java:955)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServlHere is the struts-config.xml. I only add
<form-bean name="batchQueryForm"
type="web.struts.batch.forms.BatchQueryForm"/>
into the blank struts-config.xml, then I get the exception
org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
Here is the struts-config.xml:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<form-beans>
<!-- added for test -->
<form-bean name="batchQueryForm"
type="web.struts.batch.forms.BatchQueryForm"/>
<!-- test ends -->
</form-beans>
<global-forwards>
<forward
name="welcome"
path="/Welcome.do"/>
</global-forwards>
<action-mappings>
<action
path="/Welcome"
type="org.apache.struts.actions.ForwardAction"
parameter="/pages/Welcome.jsp"/>
</action-mappings>
<controller
processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>
<message-resources parameter="resources.application"/>
<!-- comment following if struts1.0.x -->
<plug-in className="org.apache.struts.tiles.TilesPlugin" >
<set-property property="definitions-config"
value="/WEB-INF/tiles-defs.xml" />
<set-property property="moduleAware" value="true" />
<set-property property="definitions-parser-validate" value="true" />
</plug-in>
<!-- end comment if struts1.0.x -->
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property
property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
</plug-in>
</struts-config>
"Deepak Vohra" <[email protected]> wrote:
>
Could you post your struts-config.xml file.
thanks,
Deepak
"Chun" <[email protected]> wrote:
Hi
We are trying to migrate the struts web app from WLS 6 into WLS 8, but
keep getting
exception: org.apache.commons.digester.Digester startElement
When I use blank struts-config.xml, the web app can be deployed without
exception.
but when I use the struts-config.xml we are supposed to use ( had been
deployed
on WLS6 and WLS7 for production), I get the exception.
Please can anybody help? Thanks
Chun
Nov 3, 2003 10:00:35 AM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property
Utils.java:1789)
at org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property
Utils.java:1684)
at org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.
java:1713)
at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:101
9)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule
.java:259)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at weblogic.apache.xerces.parsers.AbstractSAXParser.startElement(Abstrac
tSAXParser.java:459)
at weblogic.apache.xerces.impl.xs.XMLSchemaValidator.startElement(XMLSch
emaValidator.java:591)
at weblogic.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XML
NamespaceBinder.java:877)
at weblogic.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamesp
aceBinder.java:569)
at weblogic.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDVa
lidator.java:727)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartE
lement(XMLDocumentFragmentScannerImpl.java:759)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentCo
ntentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocume
nt(XMLDocumentFragmentScannerImpl.java:329)
at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguratio
n.java:525)
at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguratio
n.java:581)
at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXPar
ser.java:1175)
at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:138)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
rvlet.java:1006)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
.java:955)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(Servl -
I have created a web application and have a jsp host. I have 2 questions:
1-How do I deploy to the host.
2-I also want to add a tomcat realm and have been told to edit the server.xml file and web.xml file are these found on the host??
please offer a confused guy some helpI have created a web application and have a jsp host.
I have 2 questions:
1-How do I deploy to the host. please explain. is this host a 3rd party? if so, ask them.
if the host is tomcat running on a machine that you have control of, create a WAR file and put it in the /webapps directory.
>
2-I also want to add a tomcat realm and have been
told to edit the server.xml file and web.xml file you should not edit the server.xml. just put a WAR file in the /webapps directory. no need to edit server.xml.
web.xml is part of the standard web app deployment. your app should have one, and it needs to be in the WEB-INF directory.
are these found on the host??
please offer a confused guy some helpYou should read "My First Web App" on the Tomcat page.
% -
Deploying Existing Web App With New JWS
Hi all,
I've been banging my head against a brick wall for a few days on this, but I'm sure it must be something trivial. Hopefully someone here will have some advice...
In a nutshell, I'm working on an existing web application, running on Weblogic 8.1, in a clustered environment. I've added a new JWS web service which is largely standalone, but it uses controls from elsewhere in the application.
Locally, on my development box, it works perfectly - I can run it from Weblogic Workshop, and see the handy test form to run the web service, as well as seeing the WSDL by pointing my browser at http://localhost:7001/app/path/Service.jws?WSDL
However, I've now built the EAR for the whole application, and deployed it to our test environment (clustered - a mirror (hopefully!) of the production environment).
When I go to http://test-box:7002/app/path/Service.jws?WSDL I see a nasty-looking error page that looks like:
WebService ERROR
Error:
null
Stack Trace:
null
When I try the same URL without the ?WSDL on the end (so just http://test-box:7002/app/path/Service.jws), I see the nice Weblogic Web Service page, showing that it knows there's something there, but it has no content, just the 'Overview' tab, followed by:
Public Information
about Service.jws Web Service
and that's it - locally I see the same thing, but with options for viewing the WSDL and testing the service.
I'm confident that the URL is correct, because if I put rubbish in, I get a different error message.
Reading around, I've found lots of resources for 'how to deploy a web service to a production environment' for Weblogic 7, but much less for 8.1. I've seen references to jwsCompile, for example, which I think is specific to 7, because I can't find any references to it in the 8.1 docs, but perhaps that's wrong?
I'm pretty sure there's a configuration setting I'm missing, or a step in the deployment, but I'm stuck as to what it is!
Any advice gratefully received.
Edit: I should have mentioned that there are two other JWS's in the same app, both of which have the same symptoms as my new one (they've been there for a while, but are unused).My gut reaction is that there might be an issue with the frontend settings not set up correctly, see 9.2 docs in lieu of 8.1 docs:
http://edocs.bea.com/wls/docs92/webserv/setenv.html#wp220521
You should also open a support case as they could probably identify your issue quickly. -
Best Practice when deploying a single mdb into a cluster
At a high level, we are converting all of our components to Weblogic processes that use Stateless Session Beans and Message Driven Beans. All of the weblogic processes will be clustered, and all of the topic queues will be distributed (Uniform Distributed Topics / Queues).
We have one component that is a single MDB reading from a single queue on 1 machine. It is a requirement that the JMS messages on that queue be processed in order, and the processing of messages frequently requires that the same row in the DB be updated. Does anyone have any thoughts on the best design for that in our clustered environment?
One possible solution we have come up with (not working):
Possible Solution 1: Use a distributed topic and enforce a single client via client-id on the connection factory, causing a single consumer.
1.Deploy a uniform-distributed Topic to the cluster.
2.Create a connection factory with a client-id.
3.Deploy a single FooMDB to the cluster.
Problem with Solution 1: WL allows multiple consumers on Topic with same client-id
1.Start (2) servers in cluster
2.FooMDB running on Server_A connects to Topic
3.FooMDB running on Server_B fails with unique id exception (yeah).
4.Send messages - Messages are processed only once by FooMDB on Server_A (yeah).
5.Stop Server_A.
6.FooMDB running on Server_B connects automatically to Topic.
7.Send messages - Messages are processed by FooMDB on Server_B (yeah).
8.Start Server_A
9.FooMDB successfully connects to Topic, even though FooMDB on Server_B is already connected (bad). Is this a WL bug or our config bug??
10.Send messages - Messages are processed by both FooMDB on Server_A and Server_B (bad). Is this a WL bug or our config bug??
Conclusion: Does anyone have any thoughts on the best design for that in our clustered environment? and if the above solution is doable, what mistake might we have made?
Thank you in advance for your help!
kbThanks for the helpful info Tom.
Kevin - It seems that for both the MDB, and the JMS provider, there are (manual or scripted) actions to be taken during any failure event + failure probes possibly required to launch these actions...?
In the case of the JMS provider, the JMS destination needs to be migrated in the event of managed-server or host failure; if this host is the one that also runs the Admin server then the Admin server also needs to be restarted on a new host too, in order that it can become available to receive the migration instructions and thus update the config of the managed server which is to be newly targetted to serve the JMS destination.
In the case of the MDB, a deployment action of some sort would need to take place on another managed-server, in the event of a failure of the managed server or the host, where the original MDB had been initally deployed.
The JMS Destination migration actions can be totally avoided by the use of another JMS implementation which has a design philosophy of "failover" built into it (for example, Tibco EMS has totally automatic JMS failover features) and could be accessed gracefully by using Weblogic foreign JMS. The sinlge MDB deployed on one of the Weblogic managed servers in the cluster would still need some kind of (possibly scripted) redeployment action, and on top of this, there would need to be some kind of health check process to establish if this re-deployment action was actually required to be launched. It is possible that the logic and actions required just to establish the true functional health of this MDB could themsevles be as difficult as the original design requirement :-)
All of this suggests that for the given requirement; the BEA environment is not well suited; and if no other environment or JMS provider is available at your site, then a manipulation of process itself may be required to enable it to be handled in a highly-available way which can be gracefully administered in a Weblogic cluster.
We have not discussed the message payload design and the reasons that message order must be respected - by changing the message payload design and possibly adding additional data, this requirement "can", "in certain circumstances", be avoided.
If you can't do that, I suggest you buy a 2 node Sun Cluster with shared HA storage and use this to monitor a simple JMS client java program that periodically checks for items on the Queue. The Tibco EMS servers could also be configured on this platform and give totally automatic failover protection for both process and host failure scenarios. With the spare money we can go to the pub.
P.S. I don't work for Tibco or Sun and am a BIG Weblogic fan :-) -
OC4J shuts down servlet in web-app A during deployment of web-app B ?!
Hey all,
We have a web-app A deployed to OAS 10g that contains a servlet with <load-on-startup> set to 2.
This servlet loads fine when the app is deployed.
However, when we deploy web-app B to our server, we notice in the logs that the destroy() method on the above servlet is invoked in web-app A! After web-app B is finished deploying, the init() method on the above servlet in web-app A is fired again.
What's going on?
Thanks.I have posted this on the JDeveloper forum and been pointed in the direction of this discussion as it seems I am experiencing the same problem.....
I currently have an instance of the OC4J 10.1.2 standalone (current production version) server running, and am deploying 5 servlets to the same server. Once they are all deployed they all run fine without any problems at all.
However, if I need/want to make an update to one of these 5 servlets and then redploy it the server, the server effectively restarts terminating any open sessions that users may have on any of the other four servlets as well (i.e. users are forced to login again to the particular servlet they are using).
Is this a bug in the OC4J 10.1.2 standalone (current production version) server? or have I not set something in the deployment profile for each of these servlets/applications to prevent this from happening?
All advice/suggestions would be gratefully appreciated as soon as possible.
Thanks in advance
David -
Unknown deployment tag - web-app-class-loader
I can create the ear file with jdeveloper, but when deploy in 9iAs with the ear file, the next error apaers:
Deployment failed:
Unknown deployment tag in
orion-web.xml:
<web-app-class-loader>;
nested exception is:
java.lang.InstantiationException:
when deploy the system show the web module.
I have a CMP entity bean and too show in deploy.
I don't know wath can I do.
Please Help Me
Miguel Angel Caro
[email protected]I manually hacked the EAR file generated by JDeveloper 10g and removed the offending tag from the orion-web.xml
After removing the tag I was able to deploy the EAR to 9iAS (9.0.2.3) but now I am getting runtime errors...
Anyone who has gone through this please let me know!
Thanks!
Maybe you are looking for
-
so I have a phone that needs urgent back up as I really want to keep the content. It's been a month since last back-up and there are photos/videos of the kids I want to keep. the machine I usually back-up to has a problem with the graphics card and
-
I need help with Photoshop Elements 8
I just downloaded Photoshop Element 8 to try as a trail. I can get the organizer working but when I go to edit a photo with full edit I get an error message that says Photoshop editors as stopped working and I then need to shut down the program usi
-
SBS 2011 - Need to change Machine name and IP address range
We had upgraded to SBS 2011 and new hardware 6 months ago, we have recently been aquired by a larger company and want us to comply with their machine naming conventions and change the IP address range to fit in with their corporate structure. They w
-
Extra Selection Critieria in KSB1 Transaction
Hi All One of my users requested to run KSB1 transaction ( Display actual cost line items for cost centers) with the Internal Orders in the selection criteria. Currently we donu2019t have internal orders in the standard selection and in additional se
-
Device works using max but not with VI
Hi All.. I am able to control a kepco power supply with comminicating by MAX. But with VI (7.0) that has the same command structure it s not possible..Moreover, i dont get any error message either. Could you have a look the VI attached and make ur co