I am getting the following waring in the struts-config.xml file
I am getting the following waring in the struts-config.xml file
Warning(3,16): <Line 3, Column 16>: XML-24538: (Error) Can not find definition for element 'struts-config'
Warning: Invalid value for property "property" on component "property": Another set-property element for this property already exists. Invalid value for property "property" on component "property":
Another set-property element for this property already exists. Invalid value for property "property" on component "property":
and the line 3 in the file is the tag <struts-config>
has anyone encountered this problem or is there is solution to eliminate the warning, i have validated the xml file wihich is good, i have validated against DTD, which is also good.
Thanks in advance
Victor
Hi Lee,
I am working on Oracle ADF 10.1.2 and getting the same problem. The lines in my struts-config.xml are as below:
<action path="/unitsView" className="oracle.adf.controller.struts.actions.DataActionMapping" type="view.UnitsViewAction" name="DataForm" parameter="/unitsView.uix" unknown="false">
<set-property property="modelReference" value="unitsViewUIModel"/>
<forward name="unitsEditLink" path="/unitsEdit.do"/>
</action>
<action path="/unitsView" className="oracle.adf.controller.struts.actions.DataActionMapping" type="view.UnitsViewAction" name="DataForm" parameter="/unitsView.uix" unknown="false">
<set-property property="modelReference" value="unitsViewUIModel"/>
<forward name="unitsCreateLink" path="/unitsCreate.do"/>
</action>
I have two lines with [action path="/unitsView"]. The reason why is that I want the user to go to the form create screen for the create button and form edit screen for the edit button. If this does not work, it seems to mean that only a single screen can be used for create/edit functions. However, the ADF editor diagram looks perfectly to point to create.uix and edit.uix respectively.
Please shed some light.
Thanks,
Regards,
Michael
Similar Messages
-
No route to host:connect -- error in the struts-config.xml file
hi all,
acutally am doing a struts application in that i have written everything properly
but getting this kinda no route to host:connect error
my struts-config.xml file is like this...
<struts-config>
<form-beans>
<form-bean name="myForm" type="MyForm">
</form-beans>
<action-mappings>
<action path="/action"
name="myForm"
type="MyAction"
scope="request"
validate="true" >
<forward name="success" path="/success.jsp" />
<forward name="failure" path="/failure.jsp" />
</action>
</action-mappings>
</struts-config>
sikandarHi Lee,
I am working on Oracle ADF 10.1.2 and getting the same problem. The lines in my struts-config.xml are as below:
<action path="/unitsView" className="oracle.adf.controller.struts.actions.DataActionMapping" type="view.UnitsViewAction" name="DataForm" parameter="/unitsView.uix" unknown="false">
<set-property property="modelReference" value="unitsViewUIModel"/>
<forward name="unitsEditLink" path="/unitsEdit.do"/>
</action>
<action path="/unitsView" className="oracle.adf.controller.struts.actions.DataActionMapping" type="view.UnitsViewAction" name="DataForm" parameter="/unitsView.uix" unknown="false">
<set-property property="modelReference" value="unitsViewUIModel"/>
<forward name="unitsCreateLink" path="/unitsCreate.do"/>
</action>
I have two lines with [action path="/unitsView"]. The reason why is that I want the user to go to the form create screen for the create button and form edit screen for the edit button. If this does not work, it seems to mean that only a single screen can be used for create/edit functions. However, the ADF editor diagram looks perfectly to point to create.uix and edit.uix respectively.
Please shed some light.
Thanks,
Regards,
Michael -
Anchor names in the struts-config.xml file
Hi,
I'm trying to use anchor names in the <forward> tag of and <action> in the struts-config.xml. I using the following approach: <forward name="success" path="/client/clientInfo.jsp#details" redirect="true"/>
I have declared the anchor name in my jsp as <a name="details"></a>.
Although the page is presented, the anchor target is ignored.
I already tried accessing the page directly from the browser address and the anchor name works fine. It's only ignored when I try to access it from the struts-config file.
Any Idea?
ThanksHi Mary,
It works fine with WebLogic 6.1 and Struts [a nightly build just before 1.1 release]
<action path="/Action01"
type="action.Action01"
name="baseFormBean"
scope="request">
<forward name="success" path="/JSP/Test04.jsp#link1" redirect="true"/>
</action>
in Test04.jsp
Go to Link1
<!--data -->
<a name="link1">Link1</a>
It went to "Link1" when the action was invoked.
However, you do not need to convert every thing (all tags) to "struts" to incorporate/use struts features.
Let me know you environment [App server, Struts version]
Cheers, -
My daughter and i use same computer she uses firefox and recently we have noticed on facebook apps we get the message This XML file does not appear to have any style information axxociated with it. The document tree is shown below
Clear the cache and the cookies from sites that cause problems.
* "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
* "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
* Don't make any changes on the Safe mode start window.
See:
* [[Troubleshooting extensions and themes]] -
The Managed Bean in the faces-config.xml File
I am still very new to JSF. I am confused about the managed bean.
For example, I have a button in my web page. A click on this button invokes an action; say, ListAction.java.
In this ListAction class, I instantiate a business delegate; say, ListPersonnel.java and call a method in this business delegate to return an ArrayList: personnel. Of course, this business delegate goes through facade, DAO, etc. to populate the ArrayList. This ArrayList is a collecation of a JavaBean called PersonnelBean that gets and sets a number of personnel information; such as ssn, name, etc.
Upon this ArrayList is successfully populated and received by the ListAction class, I am going to display a web page with a table. In JSF, it is <h:dataTable ...>.
My questions are regarding the managed bean in the faces-config.xml file.
1. Which one is my <managed-bean-class>? packageName.ListAction? or packageName.PersonnelBean? or something else?
2. What should be my <managed-bean-name>? I guess that I can give a name I like. Is it right? What about xyz?
3. Then, how do I specify the "value" attribute of my <h:dataTable ...> tag when I display a web page to show the data table? Is it correct to specify value="#{xyz.personnel}"? What is the correct specification if it is wrong?
4. I guess that I can give any name to the "var" attribute in the <h:dataTable ...> tag. Is it right?1. Which one is my <managed-bean-class>?
packageName.ListAction? or
packageName.PersonnelBean? or something else?ListAction
2. What should be my <managed-bean-name>? I guess
that I can give a name I like. Is it right? What
about xyz?Anything you like. xyz is OK.
3. Then, how do I specify the "value" attribute of my
<h:dataTable ...> tag when I display a web page to
show the data table? Is it correct to specify
value="#{xyz.personnel}"? What is the correct
specification if it is wrong?xyz.personnel is OK assuming that ListAction class has a public
method getPersonnel() which returns the ArrayList of PersonnellBeans.
4. I guess that I can give any name to the "var"
attribute in the <h:dataTable ...> tag. Is it right?Yes, you can give any name you like. -
What belongs in the faces-config.xml file? Just bean and navigation info?
I am looking for detailed information on the faces-config.xml file.
I've used examples up to this point and I was wondering where the documentation for this configuration file was at.
At this point, I know that bean management and navigation information is in this file, but are there other settings?
Thanks,
--ToddPringi: The tag explantion information, why isn't that easily found on Sun's web site or document site?
This has been the most frustrating part - finding pieces of information here and there... and not in one location.
Thanks,
--Todd -
Hi,
How can the client know if the SSL certificate specified in the service-config.xml file is invalid/untrusted/expired? For example using iOS client, the trusted certificate will not work and the client has no way to know that the certificate is untrusted. Can the lcds server return any specific exceptions for SSL errors?
Thanks,
Swathi.We use a standard Java keystore and certificate validation can be handled as per standard best practices. At present we do not provide a hook point to validate the server certificate. However, you can register a bootstrap service which validates the certificate on system startup: http://help.adobe.com/en_US/dataservicesjee/4.6/Developing/WSc3ff6d0ea77859461172e0811f00f 6fe7f-7ffeUpdate.html This would require you to pass another copy of the keystore configuration to you Bootstrap service and then you can inspect the certificate in the keystore and validate it.
-
Can't open page documents and get The required index.xml file is missing
I have “hundreds” of pages documents that were created with pre Pages 09 that will not open now that I have upgraded to Pages 09. In every case I get the error “The required index.xml file is missing“.
I need a way to fix this or it will cost me many dollars since these files constitute legal backup for earlier federal jobs.
Anyone out there that can help rather than telling me to open (which I can’t) and save in Pages 08 format!If a Pages '08 document doesn't open in Pages '09, the problem is not Pages '09, it's that the document is corrupted.
I will be disconnected for a few days but if you may wait until tuesday 26th,
on this day, send me a sample file.
I will try to understand what is wrong with it.
Click my blue name to get my mail address.
Yvan KOENIG (from FRANCE mercredi 20 mai 2009 21:33:43) -
After updates I am getting 'The required index.xml file is missing'
I updated Pages to 5.5.1 after updating MacOS to Yosemite 10.10.1. Since then, when I click on a file I get the message 'The required index.xml file is missing' I can still open the file by dragging it to the Pages Icon in the Dock but it seems like the files should open. What is going on or what did I do wrong?
You have two versions of Pages on your computer:
Pages v5.5.1 - /Applications
Pages ’09 v4.? - /Applications/iWork '09
On Yosemite with Pages v5.5.1, its default file save format is a Single File (compressed folder with .pages extension). When you attempt to open this file with Pages '09, you get the dialog, "The required index.xml file is missing." and the document couldn't be opened.
Pages v5.5.1 also offers a Package file format (folder) obtained via File > Advanced > Change File Type > Package. When Pages ’09 tries to open this document, you get the now familiar dialog, "You need a newer version of Pages to open this document."
In order to access either of these documents in Pages ’09, you will need to first export to Pages '09 format from Pages v5.5.1. -
Problem trying to save the faces-config.xml file (ADF BC)
When I try to save this file, I get the following error:
The application has tried to de-reference an invalid pointer. This exception should have been dealt with programmatically. The current activity may fail and the system may have been left in an unstable state. The following is a stack trace.
java.lang.NullPointerException
at oracle.bm.diagrammer.shape.BaseDiagramEdge.startMove(BaseDiagramEdge.java:2721)
at oracle.bm.diagrammer.track.MoveTracker.<init>(MoveTracker.java:215)
at oracle.bm.diagrammer.track.SelectionTracker.mousePressed(SelectionTracker.java:754)
at oracle.bm.diagrammer.track.ModularTracker.processEvent(ModularTracker.java:191)
at oracle.bm.diagrammer.track.SelectionTracker.processEvent(SelectionTracker.java:138)
at oracle.bm.diagrammer.track.TrackerStack.processEvent(TrackerStack.java:389)
at oracle.bm.diagrammer.BaseDiagramView$53.processEvent(BaseDiagramView.java:719)
at oracle.bm.diagrammer.PageView$PageViewPanel.fireEvent(PageView.java:2904)
at oracle.bm.diagrammer.PageView$PageViewPanel.processEvent(PageView.java:3090)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3889)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Also, a few of my navigations have the label of "!NLS Error"
If anyone has any information to help me I would appreciate it, thank you.i replaced the "faces-config.oxd_faces" file. it is found under:
C:\jdevadf\jdev\YourApplication\ViewController\model\public_html\WEB-INF
if you have an older copy of this file, just replace it, your faces-config.xml file might get moved around, mine took me over an hour to rearrange my page flows but it did the trick. -
Web.xml - can't get the url from xml file..
Hi all,
Im a beginner @ jsp =)
My question is as follow..I cant get base from the web.xml file.
This is a shorten version of my web.xml..
<web-app>
<welcome-file-list>
<welcome-file>Default.jsp</welcome-file>
</welcome-file-list>
<!-- Define the controller servlet -->
<servlet>
<servlet-name>ControllerServlet</servlet-name>
<servlet-class>ControllerServlet</servlet-class>
<!-- Define initial parameters that will be loaded into
the ServletContext object in the controller servlet -->
<init-param>
<param-name>base</param-name>
<param-value>http://localhost:8080/burnaby/ControllerServlet</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>ControllerServlet</servlet-name>
<url-pattern>/ControllerServlet</url-pattern>
</servlet-mapping>
</web-app>
And my jsp file:
<%
String base = (String) application.getAttribute("base");
String imageUrl = (String) application.getAttribute("imageUrl");
%>
<table width="740" cellpading="0" height="75" cellspacing="0" border="0">
<tr>
<td align="left" bgcolor="#F6F6F6">
<font face="Verdana" size="3">Sky's E-mall!</font>
</td>
<td align="right" bgcolor="#F6F6F6">
<a href="<%=base%>?action=displayShoppingCart"><img border="0" src="<%=(imageUrl + "cart.gif" )%>"></a>
���
</td>
</tr>
</table>
I have written it of a book im reading and i cant get it to work. Base and imageUrl always become null.
thank you
/RobertI'm a little new to JSPs and servlets too, but I'll give this one a shot. I think since your variables like 'base' are servlet initial parameters, they don't get initialized until you actually call the servlet ( I'm not 100% on this, though). Try calling the servlet and having it forward the response back to your original JSP and see if you get values then.
-
How to get the values from xml file to java combo box
Hi frens,
I am new to java and xml programming,
Now, i want to have a code of getting the tag values from the xml file
into the swing combo box of java front end.
How can we do that?
any help of code or tutorial or an ebook is a great help for me.
Thank you,
Karthik.
Edited by: Karthik84 on Aug 27, 2008 1:49 AM
Edited by: Karthik84 on Aug 27, 2008 11:29 PMlook at this link
http://www.stylusstudio.com/docs/v2006/d_help30.html
I read sometime back that castor has a tool to do
conversion. You might have a look into casto as well. -
I need detailed explanation of the OC4J config/*.xml files.
Anybody know where I can find good descriptions of the OC4J config files?? I've found some stuff on www.orionserver.com but they aren't good enough. Specifically, I have someone who wants a <lib> entry made for his app into the server.xml file. I want to know exactly what that tag means, how it is interpreted, etc... I want to have a complete understanding of all of the tags in all these files so I can deal with all the different methods of deploying applications...
Thanks, but I've seen those and they really don't help much. I've got a situation where many developers are deploying many different apps in different ways. One guy wants to add a <library> entry into server.xml for one of his application-specific jar files. I really think this is a bad idea but I can't say anything without documentation stating what the purpose of this tag in server.xml file is, and what the ramifications are if we mess with it. How might that affect the performance of OC4J, or how might it mess up other apps under OC4J?
-
Error regarding to the configuration of "Data Source" in Struts-config.xml
Hi,
Any 1 just help me out. I am using NetBeans 4.1 bundeled with Sun App server 8.1. Now I wanted to make the database connectivity with the front -end using"Data-source" tag in the struts-config.xml file . I am using the Oracle 9i as database.But I am not able to do it , it's showing me again and again error.I got realy fed up with this. I have checked the code as well as the the struts-config.xml file syntaxes with many other books and online resources, I couldn't find any sort of anomaly over here.So some 1 plzz help me regarding this as early as possible.I am attaching the Struts-config .xml file code as well as the error messaage over here.
Struts-config.xml file code is...
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<!-- ============================================ Data Source Configuration -->
<data-sources>
<data-source type="org.apache.commons.dbcp.BasicDataSource" key="RoseKey">
<set-property
property="driverClassName"
value="oracle.jdbc.driver.OracleDriver" />
<set-property
property="url"
value="jdbc:oracle:thin://10.31.8.49:1521:USGFS" />
<set-property
property="username"
value="EPTP2DEV" />
<set-property
property="password"
value="EPTP2DEV" />
<set-property
property="maxActive"
value="10" />
<set-property
property="maxWait"
value="5000" />
<set-property
property="defaultAutoCommit"
value="false" />
<set-property
property="defaultReadOnly"
value="false" />
<!--set-property
property="validationQuery"
value="SELECT COUNT(*) FROM address" /-->
</data-source>
</data-sources>
<!-- ======================================== Form Bean Definitions -->
<form-beans>
<form-bean
name="AddressForm"
type="app.AddressForm"/>
<form-bean
name="DVDForm"
type="app.DVD"/>
</form-beans>
<!-- =================================== Global Forward Definitions -->
<!--global-forwards>
<forward
name="logoff"
path="/Logoff.do"/>
<forward
name="logon"
path="/Logon.do"/>
<forward
name="welcome"
path="/Welcome.do"/>
</global-forwards-->
<!--global-forward>
<forward
name="Address1"
path="/pages/Address.jsp"/>
</global-forward-->
<!-- =================================== Action Mapping Definitions -->
<action-mappings>
<!--action
path="/Welcome"
type="org.apache.struts.actions.ForwardAction"
parameter="/pages/Welcome.jsp"/>
<action
path="/Logon"
type="org.apache.struts.actions.ForwardAction"
parameter="/pages/Logon.jsp"/-->
<action
path="/Address"
type="app.AddressAction"
name="AddressForm"
scope="request"
validate="true"
input="/pages/Address.jsp">
<forward
name="success"
path="/pages/success.jsp"/>
</action>
<action
path="/TestAction"
type="app.TestAction">
<forward
name="testAction"
path="/pages/TestAction.jsp"/>
</action>
<action
path="/TestDVD"
type="app.DVDAction"
name="DVDForm">
<forward
name="testDVD"
path="/pages/Movie.jsp"/>
</action>
<action
path="/DataSource"
type="app.TestDataSource">
<forward
name="joy"
path="/pages/joy.jsp"/>
</action>
</action-mappings>
<message-resources parameter="resources.ApplicationResources"/>
</struts-config>
And the error I am getting in the Server console is ..
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Io exception: The Network Adapter could not establish the connection)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:855)
at org.apache.commons.dbcp.BasicDataSource.setLogWriter(BasicDataSource.java:598)
at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:808)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:335)
at javax.servlet.GenericServlet.init(GenericServlet.java:261)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:118)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1093)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:931)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4183)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4536)
at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:827)
at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:125)
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:147)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:809)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1279)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1006)
at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:160)
at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:238)
at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:918)
at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:905)
at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:427)
at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:139)
at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:288)
at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:155)
at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:258)
at com.sun.enterprise.deployment.phasing.StartPhase.runPhase(StartPhase.java:87)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:633)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:361)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:396)
at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:702)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:302)
at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:357)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
at $Proxy1.invoke(Unknown Source)
at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:272)
at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:38)
at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:92)
at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:69)
at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
Caused by: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:404)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
... 92 more
AND..
javax.servlet.UnavailableException: Initializing application data source RoseKey
at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:812)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:335)
at javax.servlet.GenericServlet.init(GenericServlet.java:261)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:118)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1093)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:931)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4183)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4536)
at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:827)
at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:125)
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:147)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:809)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1279)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1006)
at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:160)
at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:238)
at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:918)
at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:905)
at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:427)
at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:139)
at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:288)
at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:155)
at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:258)
at com.sun.enterprise.deployment.phasing.StartPhase.runPhase(StartPhase.java:87)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:633)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:361)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:396)
at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:702)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:302)
at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:357)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
at $Proxy1.invoke(Unknown Source)
at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:272)
at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:38)
at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:92)
at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:69)
at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
Plz some1 help me as soon as possible with some ideas so that I can resolve the issue.Hi Amit Garg,
<data-sources>
<data-source type = "org.apache.commons.dbcp.BasicDataSource" key = "DBA">
</data-source>
<data-sources>
<data-source type = "org.apache.commons.dbcp.BasicDataSource" key = "AISDEV">
</data-source>
</data-sources>
u just configure ur struts-config.xml file in the above manner and use the following steps in ur action servlet to retrive the DataSource object
getDatasource(request,"DBA") for accessing first datasource
getDatasource(request,"AISDEV") for accessing second datasource.
byeeeeee -
I saved docs from a iMac to a flashdrive but when I plug the flashdrive into an iBookG4 and try to open the docs on the flashdrive, I get this message: Doc 2 cannot be opened. The required index.xml file is missing. Does this mean that I can't use the info on the flashdrive with the iBookG4 or can I do something to get the required index.xml file?
Thanks
jtIt appears if you write the document with newer version Pages and try to open it older version Pages.
Maybe you are looking for
-
This post was initially added to this discussion: 10.9.2 Mavericks update issues I have yet another issue related to 10.9.2 update - Eclipse Perl debugger issues while connected to VPN... One of the big changes introduced by 10.9.2 update - are VPN c
-
Can receive but not send email
all of the sudden I can't send a message using my mac.com SMTP server. Instead the message goes to my outbox with an error message "this message could not be delivered and will remain in your Outbox until it can be delivered. The sender address was r
-
Airport does not work after upgrade to windows vista SP1
Hi, I have a MBP running windows vista 32 bit under bootcamp. For some of my professional software, I need windows. Up to now, everything runs OK.I've upgrade to bootcamp 2.1 and everything still runs just fine. However, I wanted to install SP1 becau
-
I signed up and paid for the service that Adobe Reader advertizes that says it can convert PDF files to Word (.docx) files. I tried it immediately after purchasing it and it did not work. What it did was it converted it to a .docx file but the conten
-
Shopping Carts from Classic to Extended Classic
We are contemplating to move from Classic 5.0 to Extended Classic 5.0 scenario, would like to know on the Shopping Carts created in Classic scenario behave when copied into new carts in ECS? Will all the previously created shopping carts be availabl