Call custom generic-searchbackend-config.xml by a specified scenario
Hi Everyone,
this is a continue of Re: limit options for Search For dropdown list on Transaction tab:
I need to add a specified scenario condition for limiting Search For dropdown list. Can anyone advise me how to?
Thanks, Jin
Hi Jin,
To choose generic-searchbackend-config.xml Base on your XCM scenario is difficult to implement. But there is a easy way you can select which value should come in drop down box of Document Type base on your scenario.
Do as follow.
Import UsersessionData and ConfigContainer in genericsearch.jsp file.
<%@ page import="com.sap.isa.core.xcm.*" %>
<%@ page import="com.sap.isa.core.UserSessionData" %>
Now get current scenario name by adding Java Code.
UserSessionData userData = UserSessionData.getUserSessionData(request.getSession());
ConfigContainer configcontainer = (ConfigContainer)(userData.getCurrentConfigContainer());
String sName = configcontainer.getScenarioName();
Now suppose in generic-searchbackend-config.xml file your Search option SearchCriteria_B2B_Sales has below allowed value in Drop Down box.
<allowedValue value="ORDER" description="b2b.status.shuffler.key1val2" resultlistName="order_resultlist_B2B" default="true"/>
<!-- allowedValue value="BACKORDER" description="gs.attr.doc.type.backorder" resultlistName="order_resultlist_B2B" maxHitsToSelect="0"/ -->
<allowedValue value="QUOTATION" description="b2b.status.shuffler.key1val1" resultlistName="quot_resultlist_B2B"/>
<allowedValue value="ORDERTMP" description="b2b.status.shuffler.key1val3" resultlistName="ordertmp_resultlist_B2B"/>
<allowedValue value="CONTRACT" description="b2b.status.shuffler.key1val4" resultlistName="contract_resultlist_B2B"/>
<allowedValue value="INVOICE" description="b2b.status.shuffler.key1val5" />
<allowedValue value="CREDITMEMO" description="b2b.status.shuffler.key1val6" />
<allowedValue value="DOWNPAYMENT" description="b2b.status.shuffler.key1val7" />
<allowedValue value="AUCTION" description="b2b.status.shuffler.key1val9" maxHitsToSelect="0"/>
</property>
Now suppose you have 2 XCM scenario CUSTOMER and SALES.
For CUSTOMER xcm scenario you want to display only ORDER and INVOICE and for SALES xcm scenario you want to display INVOICE then add below line to your code in genericsearch.jsp
Find below line under <form name="GENERICSEARCH" id="gensearch" action="dummy" > You can find these line between line#495 to line#505
<td class="label"><%= ui.writeSearchElementLabel("left", screlm)%></td>
<td class="input"><%= ui.writeSearchElementLabel("top", screlm)%>
Similar Messages
-
ISA 50 - B2C Open orders search, extending generic-searchbackend-config.xml
Hello Experts,
I have several B2C sites and webshops, and B2C self-created accounts are common to all sites. The problem is that all open orders and completed orders (from all sites) appear in the open orders / completed orders in My Account. I'd like to separate the display of orders for each site.
Each of my site corresponds to a sales organisation in CRM / R3. In the GenericSearchDynamicContent class, which is used in the standard generic-searchbackend-config.xml to generate dynamic values in filters, I found a method addSalesOrg(). I tried to add this in the customer/generic-searchbackend-config.xml :
<configs isa:extends="../configs[@id='crmdefault']">
<config id="javabasket_javatemplate_forCRM">
<property-group name="SearchCriteria_B2C_Sales">
<property name="SALES_ORG"
entityType="CL_CRM_REPORT_SET_ORGMAN"
tokenType="RAN"
type="dark">
<allowedValue content="dynamic"
contentCreateClass="com.sap.isa.isacore.GenericSearchDynamicContent"
contentCreateMethod="addSalesOrg" />
</property>
</property-group>
</config>
</configs>
But it doesn't work, all orders are displayed. If I don't set the entityType and RAN, ABAP returns an error and doesn't take in account the property SALES_ORG, but I don't know if these are the good values (I found these values by debbuging abap ...)
I haven't found any documentation on the parameters I could add and the corresponding types etc., the Dev and Ext guide (and tuts) shows an example on how to add a search parameter in the selection screen and add a column in the result screen, but no detailed list of fields we could add...
Please let me know if you have a solution to add sales organisation to the search parameters, and links to documentation.
Thank you by advance
JulienHello and thank you for your answer
I finally found the solution by myself :
in crmtcweb~appbase/WEB-INF/xcm/customer/modification/generic-searchbackend-config.xml :
<configs isa:extends="../configs[@id='crmdefault']">
<config id="javabasket_javatemplate_forCRM">
<property-group name="SearchCriteria_B2C_Sales">
<property name="SALES_ORG"
entityType="CL_CRM_REPORT_SET_ORGMAN"
tokenType="RAN"
type="dark">
<allowedValue content="dynamic"
contentCreateClass="com.sap.isa.isacore.Z_GenericSearchDynamicContent"
contentCreateMethod="addSalesOrg" />
</property>
</property-group>
</config>
</configs>
in Z_GenericSearchDynamicContent :
public void addSalesOrg() {
selOpt.addSelectOptionLine(
new GenericSearchSelectOptionLine(
handle,
pty.getName(),
pty.getEntityType(),
pty.getTokenType(),
"I",
"EQ",
bom.getShop().getSalesOrganisation(),
And it works Now only the orders with the same salesOrg as the webshop are displayed.
Hope this could help somewone else.
Julien -
Which generic-searchbackend-config.xml file to be used..?
Hi,
I need to make some changes to generic-searchbackend-config.xml.
There are 2 generic-searchbackend-config.xml files available.
1. sap.com\crm\isa\web\b2b\_comp\*webContent*\WEB-INF\xcm\sap\modification\generic-searchbackend-config.xml
2. sap.com\crm\isa\web\b2b\_comp\WEB-INF\xcm\sap\modification\generic-searchbackend-config.xml
I already made some changes in File No 1 and they were reflecting perfectly.
My Basis team restarted the server today and I noticed that none of these changes I made in file no 1 are working now.
Later I tried making some changes to file NO 2 and surprisingly they are reflecting.
My question(s):
1.which is the correct file to be used?
2.what is the diff between the two
3.why are my changes in file 1 not reflecting now even though code changes are present?
Thanks,
PatActually neither of them.
You need to have a "customer" version of the XML which contains the changes you do specific to your application. The path of this file would be something like
crmtcwebappbasesap.com/src/packages/WEB-INF/xcm/customer/modification/generic-searchbackend-config.xml
Inside that one, you include the standard like this:
<xi:include href="$/modification/generic-searchbackend-config.xml#xpointer(backendobject/*)"/>
Then you put in your changes like the example below:
<configs isa:extends="../configs[@id='crmdefault']">
<config id="javabasket_javatemplate_forCRM">
<property-group name="salesdoc_resultlist_B2C">
<property name="STATUS"
columnTitle="b2c.orderlist.order.status"
cssClassName="showfiguresright"/>
<property name="STATUS_SYSTEM"
columnTitle="b2c.orderlist.order.status_system"
cssClassName="showfiguresright"/>
<property name="PROCESS_TYPE" type="hidden"/>
</property-group>
</config>
</configs>
Pradeep -
Create New Property Group in generic-searchbackend-config.xml
Hi all,
My requirement is to add a new property group.
I have added the below code(bold):
<property-group>SearchCriteria_B2B_Sales</property-group>
<property-group>SearchCriteria_B2B_Custom</property-group>
And I have also made the entry..
<property-group name="SearchCriteria_B2B_Delivery"
useSearchRequestMemory="true"
bodyInclTop="/b2b/order/GScommon_header.inc.jsp".......
My question is where do I define the mapping for the property group name and property group..?
Thanks,
Pat
Edited by: Patravi on Feb 13, 2012 6:05 PMHi Patracvi,
I think the mapping is there in generic-searchbackend-config.xml.
Basically, SAP has different architechture for standard and custom search criteria or property group.
If any customer wants to extend or create search criteria, they usually do in crm~isaweb~b2b ->WEBINF -> XCM -> Customer
While the standard definition is provided in crm~isaweb~b2b ->WEBINF -> XCM -> SAP
So, if you are looking for mapping of any search criteria which are not extended or custom one, it will in SAP folder.
Hope this will help you to understand what you are looking for.
regards
Prashil -
Custom p13n-cache-config.xml
Trying to implement 5.1 P13N CacheProvider SPI Implementation from link:
http://docs.oracle.com/cd/E24290_01/coh.371/e22621/wlportal.htm#CHDIFHCD
In step 2: The p13n-cache-config.xml has been updated with the <default-provider-id>com.tangosol.coherence.weblogic</default-provider-id> line.
Question:
How can a custom p13n-cache-config.xml be loaded using a -D command?
Edited by: user734247 on May 1, 2013 1:28 PMHi,
The p13n-cache-config.xml needs to changed in each of your WLP application's META-INF directory. Coherence does not need this file but rather the provider configuration in file makes Portal application to start using coherence for p13 caching.
HTH
Regards,
_NJ -
I'm running Coherence 3.7.1.0.0 with REST enabled as per the instruction. I have included coherence-rest-pof-config.xml in my pof config like so:
<include>coherence-pof-config.xml</include>
<include>coherence-rest-pof-config.xml</include>
When I start Coherence, I get the following error:
Caused by: (Wrapped: error creating class "com.tangosol.io.pof.ConfigurablePofContext") java.lang.IllegalStateException: Missing PofSerializer configuration (Config=custom-types-pof-config.xml, Type-Id=801, Class-Name=com.tangosol.coherence.rest.internal.Get)
The config in coherence-rest-pof-config.xml for com.tangosol.coherence.rest.internal.Get is as follows:
<user-type>
<type-id>801</type-id>
<class-name>com.tangosol.coherence.rest.internal.Get</class-name>
</user-type>
I had a quick look in the coherence-rest.jar, where com.tangosol.coherence.rest.internal.Get is defined. com.tangosol.coherence.rest.internal.Get implements InvocableMap.EntryProcessor, but not PortableObject.
Am I missing something? As far as I can see, InvocableMap.EntryProcessor does not implement PortableObject either.
Is there any way to fix this?
ThanksThe jar file coherence-common-1.7.0.16988.jar would have been part of the Coherence Incubator product, and isn't part of the core Coherence product itself.
You'd probably need to refer to the Coherence Incubator site as there are probably significant changes between the version you are using in 3.5.3 and with what is meant for 12.1.2. -
I have many custom validators and do not need to see the default values as listed in the below screen shot:
http://i.imgur.com/xOQgxeZ.png
Is it possible to only show the custom validators I define within faces-config.xml?
Thanks,
WesDeepak,
don't understand this sentence:
"Do not specify the binding attribute value in the f:validator tag for the bindings not to display."
Wes,
The answer to the question seems to be "no" you cannot suppress the other validator entries as they too are configured in a faces config file - though not the one in the application
Frank -
Changing layout-config.xml in custom b2c scenario
Hi,
I've created a cutom b2c project and am making changes to the layout. In doing this I have been forced to make a change to the WEB-INF\xcm\sap\layout-config.xml to add a navigator UIArea to the UILayout 'basketLayout' as follows:
<UILayout name="basketLayout" path="/appbase/layout/genericLayout.jsp"
titleArea="workarea">
<UIArea name ="header" defaultComponent="header" cssIdName="header" />
<UIArea name ="navigator" defaultComponent="blankSpace" cssIdName="navigator" />
<UIArea name ="workarea" defaultComponent="basketDisplay" cssIdName="basketEntry" />
<UIArea name ="miniBasket" defaultComponent="miniBasketWithoutBasket" cssIdName="miniBasket" />
</UILayout>
... and the blankSpace component...
<UIComponent name="blankSpace" page="/b2c/blank.inc.jsp"/>
I have of course also created the /b2c/blank.inc.jsp file.
The problem is that my changes do not appear in the browser. I have tried deleting all the caches in the admin, restarting the app and even deleting the application and re-building it and re-deploying it.
What I have noticed is that when syncing the application with the NWDS sync plugin, it is the file in the original b2c app and not my custom app, which gets updated.
However, this seems somewhat irrelevant as I have also tried copying the corrected layout-config.xml to both the original and the changed version on the server, restarting the app and once again seeing no result.
I'm obviously missing something! Can anyone tell me what it might be?
Thanks,
CraigHi,
You can download it from service market place.
www.service.sap.com
and the link to the doc is below
[https://websmp210.sap-ag.de/sapdownload/011000358700000469462006E/SAP_ISA50_DevAndExtGuide.pdf|https://websmp210.sap-ag.de/sapdownload/011000358700000469462006E/SAP_ISA50_DevAndExtGuide.pdf]
Regards,
Sateesh Chandra -
Problem with uix-config.xml, custom stylesheet mystyles.xss
using JDeveloper 9i (9.0.3.1035)
Hi,
I have created a uix-config.xml in the WEB-INF directory of my web-application. It looks as follows:
<?xml version="1.0" encoding="ISO-8859-1"?>
<configurations xmlns="http://xmlns.oracle.com/uix/config">
<application-configuration debug="true" >
<style-sheet-name>mystyles.xss</style-sheet-name>
</application-configuration>
</configurations>
(I did try to use the default-configuration element but there result was similarly disappointing)
in the /cabo/styles directory, I have created the mystyles.xcc file:
<?xml version="1.0"?>
<styleSheetDocument xmlns="http://xmlns.oracle.com/uix/style">
<import href="blaf.xss"/>
<styleSheet>
<style name="DefaultFontFamily">
<property name="font-family">serif</property>
</style>
<!-- Change the default font to be 15 point -->
<style name="DefaultFont">
<property name="font-size">15pt</property>
</style>
</styleSheet>
</styleSheetDocument>
When I start the application, I notice that debug-mode is switched on, i.e. the uix-config.xml is found and correctly loaded. However, I see no effect whatsoever of my own stylesheet mystyles.xss.
I have even tried to define the stylesheet on the UIXPagebroker servlet in the web.xml (though I have no idea whether that is possible at all):
<servlet>
<servlet-name>uix</servlet-name>
<servlet-class>oracle.cabo.servlet.UIXServlet</servlet-class>
<init-param>
<param-name>oracle.cabo.servlet.xml.CheckModified</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>oracle.cabo.ui.StylesheetName</param-name>
<param-value>mystyles.xss</param-value>
</init-param>
In short, is there anyone who can tell me how to "invoke" my own stylesheet? Am I doing something wrong?
Thanks for your thoughts!
LucasOK,
I have been reading more of the other posts on this topic and figured out the problem. Of course I had used the <stylesheet-name> element listed in the On Line Help UIX Developer's Guide instead of the <stylesheet> it should be.
Having made that change in the uix-config.xml file, everything was fine.
(so now no more rubbish in the web.xml, a straightforward uix-config.xml and my own mystyles.xss)
<?xml version="1.0" encoding="ISO-8859-1"?>
<configurations xmlns="http://xmlns.oracle.com/uix/config">
<default-configuration debug="true" >
<style-sheet>tmitts.xss</style-sheet-name>
</default-configuration>
</configurations>
and
<?xml version="1.0"?>
<styleSheetDocument xmlns="http://xmlns.oracle.com/uix/style">
<import href="blaf.xss"/>
<styleSheet>
<style name="DefaultFontFamily">
<property name="font-family">serif</property>
</style>
<!-- Change the default font to be 15 point -->
<style name="DefaultFont">
<property name="font-size">15pt</property>
</style>
</styleSheet>
</styleSheetDocument>
best regards,
Lucas Jellema (AMIS Services BV) -
Jco connection error while calling Custom FM in CRM Internet Sales Application
Hi ,
I am trying to do some customisation in the CRM ISA 4.0 development component.
Have followed the steps given in the Development and Extension Guide and tutorial PDF
Steps done for Custom RFC Call
1. Create RFCs
2. Edit file backendobject-config.xml in folder project_root\b2b_z\WEB-INF\xcm\customer\modification:-
3. BackendBusinessObject Jco -
4. BusinessObject -
5. Edit file bom-config.xml in folder project_root\b2b_z\WEB-INF\xcm\customer\modification
6. BusinessObjectManager BoM
7. BackendAware-
8. config.xml - to add custom actions
9. Action creation
10. Page : Order_change.jsp.
The backend is the CRM system while making a call to the CRM system the connection to the CRM system is not working .
Similar to what is given in the tutorial the getDefaultJCoConnection() is used .
But gettting null at the JCO connection.
JCO.Function func = getDefaultJCoConnection().getJCoFunction(‘CRM_ISA_SHOP_GETLIST’);
This is how my custom FM is being called.
Can someone help me with what may be the possible reason for this call failure.
While debugging and checking it shows null pointer exception in the JCo connection .
Thanks
ChinjuHi Hamendra,
When the code debugging was done in Java then we got just the NullPointerException for the JCo.
In the nwa log shows
where BackendBusinessObjectBaseSAP is the standard Java Class in the ISA
Error at
com.sap.isa.core.eai.sp.jco.BackendBusinessObjectBaseSAP.getDefaultJCoConnection(BackendBusinessObjectBaseSAP.java:46)
Thanks
Chinju -
How to configure CustomLoginModule in jps-config.xml
Hi,
How can we configure a Custom Login Module using jps-config.xml, as we do not want to use weblogic custom authentication provider as it needs application jars(which we require fo authenticating the user) to be kept in weblogic classpath.
Is there any documentation on how to configure and use Custom Login Modules in jps-config.xml, I tried to create a LoginModule and specify it in jps-config.xml, but
My LoginModule is not getting called.
Jdev version: 11.1.1.3.0
Server : weblogic
my jps-config.xml is
<?xml version = '1.0' encoding = 'Cp1252'?>
<jpsConfig xmlns="http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd">
<property value="doasprivileged" name="oracle.security.jps.jaas.mode"/>
<property value="custom.provider" name="true"/>
<propertySets/>
<serviceProviders>
<serviceProvider class="oracle.security.jps.internal.credstore.ssp.SspCredentialStoreProvider" name="credstore.provider" type="CREDENTIAL_STORE">
<description>Credential Store Service Provider</description>
</serviceProvider>
<serviceProvider class="oracle.security.jps.internal.login.jaas.JaasLoginServiceProvider" name="jaas.login.provider" type="LOGIN">
<description>
Login Module Service Provider
</description>
</serviceProvider>
<serviceProvider class="oracle.security.jps.internal.idstore.xml.XmlIdentityStoreProvider" name="idstore.xml.provider" type="IDENTITY_STORE">
<description>XML-based IdStore Provider</description>
</serviceProvider>
<serviceProvider class="oracle.security.jps.internal.policystore.xml.XmlPolicyStoreProvider" name="policystore.xml.provider" type="POLICY_STORE">
<description>XML-based PolicyStore Provider</description>
</serviceProvider>
</serviceProviders>
<serviceInstances>
<serviceInstance provider="credstore.provider" name="credstore">
<property value="./" name="location"/>
</serviceInstance>
<serviceInstance provider="jaas.login.provider" name="CustomLoginModule">
<property value="SUFFICIENT" name="jaas.login.controlFlag"/>
<property value="SEVERE" name="log.level"/>
<property value="org.calwin.view.CustomLoginModule" name="loginModuleClassName"/>
</serviceInstance>
<serviceInstance provider="idstore.xml.provider" name="idstore.xml">
<property value="./jazn-data.xml" name="location"/>
<property value="OBFUSCATE" name="jps.xml.idstore.pwd.encoding"/>
<property value="jps" name="subscriber.name"/>
</serviceInstance>
<serviceInstance provider="policystore.xml.provider" name="policystore.xml">
<property value="./jazn-data.xml" name="location"/>
</serviceInstance>
</serviceInstances>
<jpsContexts default="TestMultiDatasource">
<jpsContext name="TestMultiDatasource">
<serviceInstanceRef ref="idstore.xml"/>
<serviceInstanceRef ref="credstore"/>
<serviceInstanceRef ref="policystore.xml"/>
</jpsContext>
<jpsContext name="anonymous">
<serviceInstanceRef ref="credstore"/>
</jpsContext>
</jpsContexts>
</jpsConfig>My Login Module Class:
package org.calwin.view;
import java.io.IOException;
import java.security.Principal;
import java.util.Map;
import javax.security.auth.Subject;
import javax.security.auth.callback.Callback;
import javax.security.auth.callback.CallbackHandler;
import javax.security.auth.callback.NameCallback;
import javax.security.auth.callback.PasswordCallback;
import javax.security.auth.callback.UnsupportedCallbackException;
import javax.security.auth.login.LoginException;
import javax.security.auth.spi.LoginModule;
import javax.servlet.http.HttpServletRequest;
import weblogic.security.auth.callback.ContextHandlerCallback;
import weblogic.security.principal.WLSUserImpl;
import weblogic.security.service.ContextHandler;
public class CustomLoginModule
implements LoginModule
// initial state
private Subject subject;
private CallbackHandler callbackHandler;
// the authentication status
private boolean succeeded = false;
private boolean commitSucceeded = false;
// username and password
private String username;
private String password;
// testUser's SamplePrincipal
private Principal userPrincipal;
* Initialize this <code>LoginModule</code>.
* <p>
* @param subject the <code>Subject</code> to be authenticated. <p>
* @param callbackHandler a <code>CallbackHandler</code> for communicating
* with the end user (prompting for user names and
* passwords, for example). <p>
* @param sharedState shared <code>LoginModule</code> state. <p>
* @param options options specified in the login
* <code>Configuration</code> for this particular
* <code>LoginModule</code>.
public void initialize(Subject subject, CallbackHandler callbackHandler,
Map sharedState, Map options) {
this.subject = subject;
this.callbackHandler = callbackHandler;
* Authenticate the user by prompting for a user name and password.
* <p>
* @return true in all cases since this <code>LoginModule</code>
* should not be ignored.
* @exception FailedLoginException if the authentication fails. <p>
* @exception LoginException if this <code>LoginModule</code>
* is unable to perform the authentication.
public boolean login() throws LoginException {
if (callbackHandler == null)
throw new LoginException("Error: no CallbackHandler available " +
"to garner authentication information from the user");
Callback[] callbacks = new Callback[3];
callbacks[0] = new NameCallback("user name: ");
callbacks[1] = new PasswordCallback("password: ", false);
callbacks[2]=new ContextHandlerCallback();
try {
callbackHandler.handle(callbacks);
} catch (UnsupportedCallbackException uce) {
throw new LoginException("Callback Not Supported");
} catch (IOException ioe) {
throw new LoginException("I/O Failed");
username = ((NameCallback)callbacks[0]).getName();
char[] tmpPassword = ((PasswordCallback)callbacks[1]).getPassword();
if (tmpPassword == null) {
tmpPassword = new char[0];
password = new String(tmpPassword);
((PasswordCallback)callbacks[1]).clearPassword();
// verify the username/password
boolean usernameCorrect = true;
boolean passwordCorrect = true;
succeeded = true;
return true;
* <p> This method is called if the LoginContext's
* overall authentication succeeded
* (the relevant REQUIRED, REQUISITE, SUFFICIENT and OPTIONAL LoginModules
* succeeded).
* <p> If this LoginModule's own authentication attempt
* succeeded (checked by retrieving the private state saved by the
* <code>login</code> method), then this method associates a
* <code>SamplePrincipal</code>
* with the <code>Subject</code> located in the
* <code>LoginModule</code>. If this LoginModule's own
* authentication attempted failed, then this method removes
* any state that was originally saved.
* <p>
* @exception LoginException if the commit fails.
* @return true if this LoginModule's own login and commit
* attempts succeeded, or false otherwise.
public boolean commit() throws LoginException {
if (succeeded == false) {
return false;
} else {
userPrincipal = new WLSUserImpl(username);
if (!subject.getPrincipals().contains(userPrincipal))
subject.getPrincipals().add(userPrincipal);
// in any case, clean out state
username = null;
password = null;
commitSucceeded = true;
return true;
* <p> This method is called if the LoginContext's
* overall authentication failed.
* (the relevant REQUIRED, REQUISITE, SUFFICIENT and OPTIONAL LoginModules
* did not succeed).
* <p> If this LoginModule's own authentication attempt
* succeeded (checked by retrieving the private state saved by the
* <code>login</code> and <code>commit</code> methods),
* then this method cleans up any state that was originally saved.
* <p>
* @exception LoginException if the abort fails.
* @return false if this LoginModule's own login and/or commit attempts
* failed, and true otherwise.
public boolean abort() throws LoginException {
if (succeeded == false) {
return false;
} else if (succeeded == true && commitSucceeded == false) {
// login succeeded but overall authentication failed
succeeded = false;
username = null;
if (password != null) {
password = null;
userPrincipal = null;
} else {
// overall authentication succeeded and commit succeeded,
// but someone else's commit failed
logout();
return true;
* Logout the user.
* <p> This method removes the <code>SamplePrincipal</code>
* that was added by the <code>commit</code> method.
* <p>
* @exception LoginException if the logout fails.
* @return true in all cases since this <code>LoginModule</code>
* should not be ignored.
public boolean logout() throws LoginException {
subject.getPrincipals().remove(userPrincipal);
succeeded = false;
succeeded = commitSucceeded;
username = null;
if (password != null) {
password = null;
userPrincipal = null;
return true;
}My adf-config.xml:
<sec:adf-security-child xmlns="http://xmlns.oracle.com/adf/security/config">
<CredentialStoreContext credentialStoreClass="oracle.adf.share.security.providers.jps.CSFCredentialStore"
credentialStoreLocation="../../src/META-INF/jps-config.xml"/>
<sec:JaasSecurityContext initialContextFactoryClass="oracle.adf.share.security.JAASInitialContextFactory"
jaasProviderClass="oracle.adf.share.security.providers.jps.JpsSecurityContext"
authorizationEnforce="true"
authenticationRequire="true"/>
</sec:adf-security-child>My jazn.xml:
<?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>
<jazn-data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/jazn-data-11_0.xsd">
<jazn-realm default="jazn.com">
<realm>
<name>jazn.com</name>
</realm>
</jazn-realm>
</jazn-data>My web.xml:
<filter>
<filter-name>JpsFilter</filter-name>
<filter-class>oracle.security.jps.ee.http.JpsFilter</filter-class>
<init-param>
<param-name>enable.anonymous</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>remove.anonymous.role</param-name>
<param-value>false</param-value>
</init-param>
</filter>
<servlet>
<servlet-name>adfAuthentication</servlet-name>
<servlet-class>oracle.adf.share.security.authentication.AuthenticationServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>adfAuthentication</servlet-name>
<url-pattern>/adfAuthentication</url-pattern>
</servlet-mapping>
<security-constraint>
<web-resource-collection>
<web-resource-name>adfAuthentication</web-resource-name>
<url-pattern>/adfAuthentication</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>valid-users</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.html</form-login-page>
<form-error-page>/error.html</form-error-page>
</form-login-config>
</login-config>
<security-role>
<role-name>valid-users</role-name>
</security-role>weblogic.xml:
<security-role-assignment>
<role-name>valid-users</role-name>
<principal-name>users</principal-name>
</security-role-assignment>Regards,
SaikiranOurs is not a Desktop Application, but we want to handle Authentication(Which authenticates the userid and password by making a Tuxedo call) and add the Principal to Subject in session, so that ADF Authorization and securityContext can be used as is,
but doing this with Custom Authentication Provider in weblogic needs me to have a lot of Tuxedo Service related jars in weblogic/system classpath which i feel is not right thing to do, as the same jars are required in application also, which means i will have the jars in class path twice and i need to deploy the jars to both places everytime there is any change.
Is there any way by which i can set Authenticated principal to Subject in the created session from within Application? -
Need to load multiple skins with only a single .swf and config.xml
Hello
These are part of some instructions that were of a AS3 Mp3 Store I purcased
Well guys the new AS3 flash cart system can have skins hot swapped in and out with out having to recompile the actionscript code.
You can even have multiple skins on the same cart and use different ones in different places of your website.
This is all because the flash cart system itself runs seperate from the graphical user interface that the customer visits.
When you purchase a new cart skin, or if you edit your own custom skin, you can place the swf file for it in the "skins" directory of your flash cart installation directory. Then in the config file where you "embed" the cart on your website you include the name of the skin you'd like to use (the skin MUST be available in your skins directory).
The other plus to using the skin system is you can keep the cart application seperate from your site. No longer do you have to have all that ugly php code and cramped swf files floating along side your website html files. No instead you create an install directory then simply embed the cart from where ever it is. The only litigation is that the cart must exist on the same server as the website you are showing it publicly on.
So right now I have a website with the store set up and working, allowing the buyer to listen to the tracks, add to cart and checkout after which they are given an instant download link to the purcased files.
What I want to do now though is break up the songs into differents carts/skins within a dropdown list in my website as quoted in the instructions above, according to genre.
So I have published 4 different skins as
MusicSkin 1.fla
MusicSkin 2.fla
MusicSkin 3.fla
MusicSkin 4.fla
and have placed these on my server
The cart works by Index.html > loads the Main.swf >loads MusicSkin.fla which is called by via config.xml
(<?xml version="1.0"?>
-<config><skin src="MusicSkin"/><db src="/" sandbox="false" type="sql"/></config>
I am having trouble configuring how to call on 4 different Skins into different pages on my site if I only have ONE index.html, Main.swc and config.xml files which according to the instructions is possible!
Hope this makes sense, I get how it works on one skin but not how it works/or to make it work with multple ones on a website.Is this possible...anyone!!!!!!!!!!!!!!!!
Really hoping to getting this working soon.
I am wondering if i have to copy the instances of the different skins into the config file above and each swf and html file loads the corresponding on in the list, or does each instance require it's own config file, which would then be a problem I think, because I could not have 4 config.xml files in the same directory which is what the Action Script is calling on. -
Not overriding the coherence-cache-config.xml but showing the error...
Hi,
I have created a file called tangosol-coherence-override.xml file in the specified path which is " C:\Program Files\Oracle\Coherence for .NET"
and the coherence.jar file is located in path which is "C:\Program Files\Oracle\Coherence for .NET\lib"
but it is not overriding the xml file.. with the default file...
C:\Program Files\Oracle\Coherence for .NET\examples\ContactCache.Java>"C:\Progra
m Files\Java\jdk1.6.0_11\bin\java" -server -showversion -Xms128m -Xmx128m -Dtang
osol.coherence.ttl=0 -Dtangosol.coherence.cacheconfig=contact-cache-config.xml -
cp "config;lib\custom-types.jar;C:\Program Files\Oracle\Coherence for .NET\lib\c
oherence.jar" com.tangosol.net.DefaultCacheServer
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Server VM (build 11.0-b16, mixed mode)
2011-06-20 15:06:57.607/2.366 Oracle Coherence 3.7.0.0 <Info> (thread=main, memb
er=n/a): Loaded operational configuration from "jar:file:/C:/Program%20Files/Ora
cle/Coherence%20for%20.NET/lib/coherence.jar!/tangosol-coherence.xml"
2011-06-20 15:06:57.989/2.748 Oracle Coherence 3.7.0.0 <Info> (thread=main, memb
er=n/a): Loaded operational overrides from "jar:file:/C:/Program%20Files/Oracle/
Coherence%20for%20.NET/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
2011-06-20 15:06:58.049/2.808 Oracle Coherence 3.7.0.0 <D5> (thread=main, member
=n/a): Optional configuration override "/tangosol-coherence-override.xml" is not
specified
2011-06-20 15:06:58.062/2.821 Oracle Coherence 3.7.0.0 <D5> (thread=main, member
=n/a): Optional configuration override "/custom-mbeans.xml" is not specified
Oracle Coherence Version 3.7.0.0 Build 23397
Grid Edition: Development mode
Thanks in AdvanceThe CLASSPATH is not the same as the PATH. It is similar but a classpath is a set of directories or jar files that Java uses to look for executable code and resources.
Assuming you are using the example start-cache-server.cmd file that comes with the .Net examples to start your server you can put the tangosol-coherence-override.xml file into the C:\Program Files\Oracle\Coherence for .NET\examples\ContactCache.Java\config directory as this is on the classpath when using that script.
JK -
Extending bom-config.xml for ECO 5.0 CRM does not work
hi,
I want to add a new BusinessObjectManager to my application. So I created a file bom-config.xml in directory xcm/customer/configuration and added the following lines to it:
<BusinessObjectManagers xmlns:isa="com.sapmarkets.isa.core.config" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xml="http://www.w3.org/XML/1998/namespace">
<xi:include href="$/modification/bom-bonfig.xml#xpointer(BusinessObjectManagers/*)"/>
<BusinessObjectManager name="Z_CUSTOM-BOM" className="mypackage.bo.manager.Z_CustomBOManager" />
</BusinessObjectManagers>
when I try to call up the new BOManager with the following code:
HttpSession theSession = request.getSession();
UserSessionData userData = UserSessionData.getUserSessionData(theSession);
Z_CustomBOManager myBom = (Z_CustomBOManager)userData.getBOM(Z_CustomBOManager.CUSTOM_BOM);
I receive the error message
Business Object Manager Type null unknown
I debugged a liitle bit and I recognized that the hash map with all the xcm entries only contains the entries of the SAP bom-config.xml file.
Does someone know whats wrong with my bom-config.xml file?
kind regards
MichaelHi Michael,
I think you should put the xml file to "xcm\customer\modification",and follow content may help you for reference:
<BusinessObjectManagers xmlns:isa="com.sap.isa.core.config" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xml="http://www.w3.org/XML/1998/namespace">
<!-- customer changes in bom-config should be done here by extending/overwriting the base configuration-->
<xi:include href="$/modification/bom-config.xml#xpointer(BusinessObjectManagers/*)"/>
<BusinessObjectManager name="Z_COMMON-BOM" className="com.lenovo.isa.businessobject.bom.Z_BOManager" />
<BusinessObjectManager name="Z_CSVALUE_VISI_BOM" className="com.lenovo.isa.ipc.businessobject.bom.Z_IPCBOManager"/>
</BusinessObjectManagers>
Regards,
Xianjun -
Struts-config.xml not being parsed properly
Hi,
I'm new to struts and am having a weird problem. I've researched a lot and talked to a lot of developers and I still have a problem. The problem is as follows.
I am getting the following error when deploying my ear file on weblogic8.1:
<BEA-101216> <Servlet: "action" failed to preload on startup in Web application: "bpa".
javax.servlet.UnavailableException: Parsing error processing resource path
at org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:1035)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1014)
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(ServletStubImpl.java:993)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:869)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:848)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:787)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3252)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3197)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3174)
at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:5647)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:869)
at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2022)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2063)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2592)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2515)
at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2317)
at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2399)
at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2311)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2479)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170).
Now, when looking at the struts-config file, everything seems fine. However, when i remove the <form-bean> declarations, i don't get this error. Of course, without the form-bean declarations, the application comes to a halt when it needs them. I've tried almost everything under the sun and nothing has worked so far, i'm sure it's probably something simple and i'll feel like a complete idiot when it's figured out, but until then, can anyone help???
The config file looks as follows:
<?xml version="1.0" encoding="UTF-8"?>
<!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 Bean Definitions =================================== -->
<form-beans>
<!-- Register User form bean -->
<form-bean name="registerCustomerForm" type="au.com.bpa.web.RegisterCustomerForm" />
<!-- List Applications - customer - form bean -->
<form-bean name="listApplicationsForm" type="au.com.bpa.web.ListApplicationsForm" />
<!-- List Applications - cts - form bean -->
<form-bean name="listApplicationsCTSForm" type="au.com.bpa.web.ListApplicationsCTSForm" />
<!-- List Applications - call centre - form bean -->
<form-bean name="listApplicationsCallCentreForm" type="au.com.bpa.web.ListApplicationsCallCentreForm" />
<!-- Single Residence Application form bean -->
<form-bean name="singleResidenceApplicationForm" type="au.com.bpa.web.SingleResidenceApplicationForm" />
<!-- Single Residence Application Processing form bean -->
<form-bean name="singleResidenceApplicationProcessingForm" type="au.com.bpa.web.SingleResidenceApplicationProcessingForm" />
<!-- Upload Floor Plan Attachment form bean -->
<form-bean name="uploadArchitecturalFloorPlanAttachmentForm" type="au.com.bpa.web.UploadAttachmentForm" />
<!-- Upload Site Plan Attachment form bean -->
<form-bean name="uploadSitePlanAttachmentForm" type="au.com.bpa.web.UploadAttachmentForm" />
<!-- Upload Other Attachment form bean -->
<form-bean name="uploadAttachmentForm" type="au.com.bpa.web.UploadAttachmentForm" />
<!-- Remove Attachment(s) form bean -->
<form-bean name="removeAttachmentsForm" type="au.com.bpa.web.RemoveAttachmentsForm" />
<!-- Reject Application form bean -->
<form-bean name="rejectApplicationForm" type="org.apache.struts.action.DynaActionForm">
<form-property name="applicationPK" type="java.lang.Integer" />
<form-property name="comments" type="java.lang.String" />
</form-bean>
<!-- Edit restricted names form bean -->
<form-bean name="editRestrictedNamesForm" type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="category" type="java.lang.String" />
<form-property name="name" type="java.lang.String" />
</form-bean>
<!-- Find by Id form bean -->
<form-bean name="findApplicationByIdForm" type="org.apache.struts.action.DynaActionForm">
<form-property name="idType" type="java.lang.String" initial="applicationId" />
<form-property name="idValue" type="java.lang.String" />
</form-bean>
<!-- Business Reports form bean -->
<form-bean name="businessReportsForm" type="org.apache.struts.action.DynaActionForm">
<form-property name="reportType" type="java.lang.String" />
<form-property name="from" type="java.lang.String" />
<form-property name="to" type="java.lang.String" />
</form-bean>
</form-beans>
<!-- ========== Global Exception Definitions ============================== -->
<global-exceptions>
<exception type="java.lang.Exception" key="errors.java.lang.Exception" path="/errors/applicationException.jsp" />
</global-exceptions>
<!-- ========== Global Forward Definitions ============================== -->
<global-forwards>
<forward name="invalidSession" path="/errors/invalidSession.jsp" />
<forward name="applicationException" path="/errors/applicationException.jsp" />
<forward name="notFound" path="/errors/notFound.jsp" />
<forward name="logoff" path="/common/logoff" />
<forward name="goSingleResidenceApplication" path="/common/goSingleResidenceApplication.do" />
<forward name="viewApplication" path="/common/viewApplication.do" />
<!-- customer -->
<forward name="customer/viewApplicationList" path="/customer/viewApplicationList.do" />
<!-- cts -->
<forward name="cts/viewApplicationList" path="/cts/viewApplicationList.do" />
<forward name="cts/unlockAndExit" path="/cts/unlockAndExit.do" />
<!-- call centre -->
<forward name="call-centre/viewApplicationList" path="/call-centre/viewApplicationList.do" />
</global-forwards>
<!-- ========== Action Mapping Definitions ============================== -->
<action-mappings>
<!-- Common Actions - All Roles -->
<!-- saves a request token -->
<action path="/goRegisterCustomer" type="au.com.bpa.web.SaveTokenAction">
<forward name="success" path="/registerCustomer.jsp" />
</action>
<!-- Register a User -->
<action path="/registerCustomer" type="au.com.bpa.web.RegisterCustomerAction" name="registerCustomerForm" input="/registerCustomer.jsp" scope="request" validate="true">
<forward name="success" path="/registerCustomer-success.jsp" />
<forward name="invalidToken" path="/errors/invalidToken.jsp" />
</action>
<!-- Process a logon -->
<action path="/common/logon" type="au.com.bpa.web.LogonAction" scope="request" validate="true">
<forward name="guest" path="/common/disclaimer.jsp" />
<forward name="customer" path="/common/disclaimer.jsp" />
<forward name="cts" path="/cts/index.jsp" />
<forward name="admin" path="/admin/index.jsp" />
<forward name="browserError" path="/errors/browserError.jsp" />
</action>
<!-- Single Residence Application Form -->
<action path="/common/singleResidenceApplication" type="au.com.bpa.web.SingleResidenceApplicationAction" name="singleResidenceApplicationForm" scope="request" input="/common/singleResidenceApplication.jsp" validate="true">
<forward name="submitted" path="/common/singleResidenceApplication-submitted.jsp" />
<forward name="manual" path="/common/singleResidenceApplication-manualValidationRequired.jsp" />
<forward name="invalidToken" path="/errors/invalidToken.jsp" />
</action>
<!-- submit a single residence app - saves a request token -->
<action path="/common/goSingleResidenceApplication" type="au.com.bpa.web.SaveTokenAction">
<forward name="success" path="/common/singleResidenceApplication.jsp" />
</action>
<!-- Upload Architectural Floor Plan Attachment Form -->
<action path="/common/uploadArchitecturalFloorPlanAttachment" type="au.com.bpa.web.UploadAttachmentAction" name="uploadArchitecturalFloorPlanAttachmentForm" scope="request">
<exception type="java.lang.Exception" key="errors.singleResidenceApplication.file" path="/common/addAttachment-error.jsp" />
<forward name="success" path="/common/addAttachment-success.jsp" />
<forward name="fileTypeError" path="/common/addAttachment-fileTypeError.jsp" />
<forward name="applicationException" path="/common/addAttachment-error.jsp" />
</action>
<!-- Upload Site Plan Attachment Form -->
<action path="/common/uploadSitePlanAttachment" type="au.com.bpa.web.UploadAttachmentAction" name="uploadSitePlanAttachmentForm" scope="request">
<exception type="java.lang.Exception" key="errors.singleResidenceApplication.file" path="/common/addAttachment-error.jsp" />
<forward name="success" path="/common/addAttachment-success.jsp" />
<forward name="fileTypeError" path="/common/addAttachment-fileTypeError.jsp" />
<forward name="applicationException" path="/common/addAttachment-error.jsp" />
</action>
<!-- Upload Attachment Form -->
<action path="/common/uploadAttachment" type="au.com.bpa.web.UploadAttachmentAction" name="uploadAttachmentForm" scope="request">
<exception type="java.lang.Exception" key="errors.singleResidenceApplication.file" path="/common/addAttachment-error.jsp" />
<forward name="success" path="/common/addAttachment-success.jsp" />
<forward name="fileTypeError" path="/common/addAttachment-fileTypeError.jsp" />
<forward name="applicationException" path="/common/addAttachment-error.jsp" />
</action>
<!-- Remove Attachment Form -->
<action path="/common/removeAttachments" type="au.com.bpa.web.RemoveAttachmentsAction" name="removeAttachmentsForm" scope="request" validate="true">
<forward name="success" path="/common/removeAttachments-success.jsp" />
</action>
<!-- view / edit an application -->
<action path="/common/viewApplication" type="au.com.bpa.web.ViewApplicationAction">
<forward name="editSingleResidenceApplication" path="/common/singleResidenceApplication.jsp" />
<forward name="viewSingleResidenceApplication" path="/common/singleResidenceApplicationView.jsp" />
</action>
<!-- Customer Actions - Customer Role -->
<!-- view list of submitted applications - customer -->
<action path="/customer/viewApplicationList" type="au.com.bpa.web.ListApplicationsAction" name="listApplicationsForm" scope="request" validate="false">
<forward name="success" path="/customer/listApplications.jsp" />
</action>
<action path="/customer/findApplicationById" type="au.com.bpa.web.ListApplicationsAction" name="findApplicationByIdForm" scope="request" validate="false">
<forward name="success" path="/customer/listApplications.jsp" />
</action>
<!-- CTS Staff Actions - CTS Role -->
<!-- view list of applications - cts -->
<action path="/cts/viewApplicationList" type="au.com.bpa.web.ListApplicationsCTSAction" name="listApplicationsCTSForm" scope="request" validate="false">
<forward name="success" path="/cts/listApplications.jsp" />
</action>
<action path="/cts/findApplicationById" type="au.com.bpa.web.ListApplicationsCTSAction" name="findApplicationByIdForm" scope="request" validate="false">
<forward name="success" path="/cts/listApplications.jsp" />
</action>
<!-- save user preferences -->
<action path="/cts/saveUserPreferences" type="au.com.bpa.web.SaveUserPreferencesAction">
<forward name="success" path="/cts/listApplications.jsp" />
</action>
<!-- process an application -->
<action path="/cts/processApplication" type="au.com.bpa.web.ProcessApplicationAction">
<forward name="success" path="/cts/processApplication.jsp" />
<forward name="noApplicationsAvailable" path="/cts/processApplication-noApplicationsAvailable.jsp" />
<forward name="sewerInGroupApplication" path="/cts/sewerInGroupApplication.jsp" />
<forward name="insufficientFunds" path="/cts/insufficientFunds" />
</action>
<!-- process an application -->
<!-- Single Residence Application Processing Form -->
<action path="/cts/singleResidenceProcessingApplication" type="au.com.bpa.web.SingleResidenceApplicationProcessingAction" name="singleResidenceApplicationProcessingForm" scope="request" input="/cts/processApplication.jsp" validate="true">
<forward name="invalidToken" path="/errors/invalidToken.jsp" />
<forward name="success" path="/cts/processApplication-success.jsp" />
<forward name="notValidated" path="/cts/processApplication.do" />
</action>
<!-- update a validation run -->
<action path="/cts/updateValidationRun" type="au.com.bpa.web.UpdateValidationRunAction">
<forward name="success" path="/cts/processApplication-success.jsp" />
<forward name="notValidated" path="/cts/processApplication.do" />
</action>
<!-- unlock application and return to list -->
<action path="/cts/unlockAndExit" type="au.com.bpa.web.UnlockApplicationAction" scope="request">
<!-- forwards to global forward cts/viewApplicationList -->
</action>
<!-- export application and return to list -->
<action path="/cts/exportApplication" type="au.com.bpa.web.ExportApplicationAction" scope="request">
<!-- forwards to global forward cts/viewApplicationList -->
</action>
<!-- approve application and return to list -->
<action path="/cts/forceApplicationApproval" type="au.com.bpa.web.ForceApplicationApprovalAction" scope="request">
<!-- forwards to global forward cts/viewApplicationList -->
</action>
<!-- reject application and return to list -->
<action path="/cts/rejectApplication" type="au.com.bpa.web.RejectApplicationAction" name="rejectApplicationForm" scope="request">
<!-- forwards to global forward cts/viewApplicationList -->
</action>
<!-- resolve insufficient funds -->
<action path="/cts/resolveInsufficientFunds" type="au.com.bpa.web.ResolveInsufficientFundsAction">
<forward name="success" path="/cts/insufficientFundsResolved.jsp" />
<forward name="failure" path="/cts/insufficientFundsNotResolved.jsp" />
</action>
<!-- Call Centre Staff Actions - Call Centre Role -->
<!-- view list of applications - cts -->
<action path="/call-centre/viewApplicationList" type="au.com.bpa.web.ListApplicationsCallCentreAction" name="listApplicationsCallCentreForm" scope="request" validate="false">
<forward name="success" path="/call-centre/listApplications.jsp" />
</action>
<action path="/call-centre/findApplicationById" type="au.com.bpa.web.ListApplicationsCallCentreAction" name="findApplicationByIdForm" scope="request" validate="false">
<forward name="success" path="/call-centre/listApplications.jsp" />
</action>
<!-- save user preferences -->
<action path="/call-centre/saveUserPreferences" type="au.com.bpa.web.SaveUserPreferencesAction">
<forward name="success" path="/call-centre/listApplications.jsp" />
</action>
<!-- view / edit an application -->
<action path="/call-centre/viewApplication" type="au.com.bpa.web.ViewApplicationCallCentreAction">
<forward name="viewSingleResidenceApplication" path="/call-centre/viewApplication.jsp" />
</action>
<!-- Admin Actions - Admin Role -->
<!-- show edit restricted names -->
<action path="/admin/editRestrictedNames" type="au.com.bpa.web.EditRestrictedNamesAction" name="editRestrictedNamesForm" scope="request" input="/admin/restrictedNames.jsp" validate="false">
<forward name="success" path="/admin/restrictedNames.jsp" />
</action>
<!-- add edit restricted and return to list -->
<action path="/admin/addRestrictedName" type="au.com.bpa.web.AddRestrictedNameAction" name="editRestrictedNamesForm" scope="request" input="/admin/restrictedNames.jsp" validate="true">
<forward name="success" path="/admin/editRestrictedNames.do" />
<forward name="invalidToken" path="/errors/invalidToken.jsp" />
</action>
<!-- delete edit restricted and return to list -->
<action path="/admin/deleteRestrictedName" type="au.com.bpa.web.DeleteRestrictedNameAction" name="editRestrictedNamesForm" scope="request" input="/admin/restrictedNames.jsp" validate="false">
<forward name="success" path="/admin/editRestrictedNames.do" />
</action>
<!-- show a business report -->
<action path="/admin/showBusinessReport" type="au.com.bpa.web.BusinessReportsAction" name="businessReportsForm" scope="request" validate="false">
<forward name="detailedProcessingStatistics" path="/admin/reportProcessingStatistics.jsp" />
<forward name="detailedPerformanceStatistics" path="/admin/reportPerformanceStatistics.jsp" />
<forward name="reasonsForRejection" path="/admin/reportReasonsForRejection.jsp" />
<forward name="reasonsForManualProcessing" path="/admin/reportReasonsForManualProcessing.jsp" />
<forward name="keyPerformanceIndicators" path="/admin/reportKeyPerformanceIndicators.jsp" />
<forward name="applsWithoutWaterService" path="/admin/reportApplsWithoutWaterService.jsp" />
</action>
</action-mappings>
<!-- ========== Controller Configuration ================================ -->
<controller>
<set-property property="maxFileSize" value="2M" />
<set-property property="debug" value="4" />
</controller>
<!-- ========== Message Resources Definitions =========================== -->
<message-resources parameter="au.com.bpa.web.ApplicationResources"/>
<!-- ========== Plug Ins Configuration ================================== -->
<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>
This application was originally designed using JBuilder, but now i'm migrating it to Eclipse.
Also, i tried to change the path to one of the form-beans to something that didn't exist, just to see what error i got, and it didn't do anything.
Any help would be much appreciated.
Osireion.hi
i am facing the same problem....while iam trying to execute the following error has occured...
i checked the struts-config.xml file ..if i remove the form beans tag then every thing will be correct ...can some body help me please..........
javax.servlet.UnavailableException: Parsing error processing resource path
at org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:1035)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1014)
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:256)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:536)
Maybe you are looking for
-
Why does my macbook pro only start up in safe mode?
Last night i updated my macbook pro, and when it restarted it stopped at the logo with the spinning wheel, and it kept spinning for 20+ minutes. I shut it down by holding the button, and it will not start up again, every time the wheel just keeps spi
-
Using a lan/hpib gateway (Agilent) with a NI GPIB pci card
Need to be able to use a E2050 lan/hp-ib gateway (Agilent) together with a NI GPIB pci card on the same workstation (windows). I need 2 seperate gpib busses but also need the remote functionality or the lan/hpib box. I would use ni enet but it will n
-
Hi,can anyone help me out, i have three pcs in different rooms, and i have a Cisco work group router, and one of the rooms got an internet connection from a cable modem, and i need to conect the other two rooms so they could access the internet, how
-
Are DBMS_AQ.REGISTER callbacks functional on Oracle XE?
I'm trying to get callbacks for oracle streams to work on ORACLE XE. I'd like to be able to perform a demo of using JMS to fire a pl/sql procedure. There are a million other ways of doing this, I'm sure. The idea is to enqueue a message and have the
-
Extractor for the Fields of VBAP
HI Gurus, Which are the extractors contains fields from VBAP,vbak & marc Regards, Sus