Issues while setting up custom authenticator for weblogic
whene can I find sample source code for setting up the custom authenticator.
send a test mail at [email protected], will send u d source code!!
Similar Messages
-
HT4623 We're sorry, we are unable to continue with your activation at this time. Please try again later, or contact customer care.----How to fix this issue while setting up the iphone for the new ios?
If you don't have a SIM card in the phone, you must put one in. It's required for activation.
If you do, then your phone was probably hacked to unlock it from the original carrier. Contact them and see if they will unlock it. If they will not do so, then you can't use that phone. -
Enable Custom Authentication for License Server for Packager Server
How to enable processing of Custom Authentication for License Server for Packager Server?
Please give examples.If I understand your question, you want to use the Flash Access Manager and/or the Watched Folder Packager (both are components of the Reference Implementation) to package content for a license server that uses Custom Authentication. To accomplish this, you need to use the Flash Access SDK to create a policy that specifies Custom Authentication is used. For example:
Policy pol = new Policy(false);
LicenseServerInfo licServer = new LicenseServerInfo(AuthenticationType.Custom);
pol.setLicenseServerInfo(licServer);
// set rights and other policy attributes
Once you create the policy, place the policy file on the Packager Server, and you can use this policy to package content. -
Policy Director Custom Realm for Weblogic
I would like more information on how the Policy Director custom Realm for Weblogic
works. What all methods are implemented and so on. If anyone could send me the source
code of the custom Realm that would be of great help.
Thanks in advance,
KrishWell, once again, I'm going to have to provide my own answer.
After much waiting and then deciding to invest much time researching documentation and tracking down information to assist in my solution, I have manage to find the golden egg for my own recipe of a solution.
In addition to the very helpful info I have found at:
http://developers.sun.com/prodtech/appserver/reference/techart/as8_authentication/index.html
I have mange to get my custom realm to work with the additional configuration of my sun-application.xml for my ear file. Even though I only wanted to specify my custom realm for my web.xml file, it turns out that in addition to this, I had to also define it in my sun-application.xml file (manually in XML text mode - within Netbeans 5.5) as follows:
<sun-application>
<realm>mycustrealm</realm>
<security-role-mapping>
<role-name>mycust_role</role-name>
<group-name>mycust_group</group-name>
</security-role-mapping>
</sun-application> -
How to disable authentication for weblogic server
Hi expert,
I have a web application deployed on weblogic server 12c. And I have a client which connects to the web application. The client will authenticate with server with digest authentication (challenge\response). We use the default authentication in weblogic server and the authentication is done by weblogic server. And it works fine.
However, I want to run a performance testing to replay all client requests including the requests for authentication. Since it's challenge/response authentication mechanism, the original requests can not pass authentication and weblogic server replies 401. I want to know is there any way to disable weblogic authentication so that the authentication passes when I replay my original request?
Thanks very much!
Regards,
YanYou can disable the security of the application in the web.xml. Here there is a security-constraint configured that tells WebLogic what to do, for example,
<security-constraint>
<web-resource-collection>
<web-resource-name>All</web-resource-name>
<url-pattern>/faces/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>MANAGER</role-name>
<role-name>EMPLOYEE</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
If you put the security-constraint in comments, you can access the application, without authentication (note that the application itself probably uses the authentication in order to set certain things, so I do not if this is going to work). -
Posting period issue while deleting a confirmation posted for a limit PO
Hi ..
I am facing an issue whiel deleting a confirmation posted for a limit PO.
Confirmation was posted for a limit PO in SRM and it created a service entry sheet in SAP. If I deleted that confirmation in the same posting period, then it is getting deleted. No issue here.
But if I deleted that confirmation in the next posting period then the reversal document is going to error in process. RZ20 is showing the error "Positng only possible in periods 2012/2 and 2012/3".
Posting date of reversal document is current date only and the backend posting period is 2012/3, but still it is failing with this posting period error.
If I tried to delete a confirmation posted for a normal PO then I could able to delete it even in next posting period by just changing the posting date.
Why this posting occurs while deleting the limit confirmation, even through the posting date is falls within the backenn posting periiod? Is it like, SAP system is trying to delete the service entry sheet in original posting period? Kindly help.
I am in SRM 5.0 (server 5.5) SP12.
Thanks,
ArunOK.
Well, if the variable is not used in any interval selection, then I would say "something happened to it".
I would make a copy of the query and run it to check if I get the same problem with period 12.
-> If not, something is wrong in the original query (you can proceed as below, if changes to original are permitted).
If so, then try removing the variable completely from the query and hardcode restriction to 12.
-> If problem still persists, I would have to do some thinking.
If problem is gone, then add the variable again. Check.
-> If problem is back, then the variable "is sick". Only quick thing to do, is to build an identical variable and use that one.
If problem also happens with the new variable, then it's time to share this experience with someone else and consider raising an OSS.
Good luck!
Jacob
P.S: what fisc year variant are you using?
Edited by: Jacob Jansen on Jan 25, 2010 8:36 PM -
Issue with setting an Action Listener for a Command Button
Hi all,
I'm trying to set an action listener for a CoreCommanButton in a backing bean. Here's my code:
CoreCommandButton editBtn = new CoreCommandButton();
MethodBinding mb = FacesContext.getCurrentInstance().getApplication().createMethodBinding("#{backBean.doButtonAct}",null);
editBtn.setActionListener(mb);
//Action listener method
public void doButtonAct(ActionEvent actionEvent)
I keep getting a javax.faces.el.MethodNotFoundException error. However when I remove the ActionEvent parameter in doButtonAct(), I get a wrong number of arguments error.
So i'm guessing there is something wrong with the parameters i accept in my action listener method. what can be causing this issue?
Cheers.I figured this out.
Since doButtonAct() requires an ActionEvent object as a parameter, i needed to define the parameter type when I create the method binding.
Solution:
Class argsString[] = new Class[] { ActionEvent.class };
MethodBinding mb = FacesContext.getCurrentInstance().getApplication().createMethodBinding("#{backBean.doButtonAct}",argsString); -
Mapping issues while using MapwithDefault Node function for Idoc
Hi Experts,
We are facing issues while trying to generate nodes at reciver side even though it does not exist at sender side.
we are using the matmas05 and we want the nodes E1marcm and e1mardm to generated at target structure.
the structure is like this
Matmas05
idoc
E1maram
segment
E1marcm
segment
msgfn
.....other fields
E1mardm (can be many segments)
segment
lgort
..other fields
E1mpgdm
segment
...e1mpgdm fields
the mapping has been done like:
e1marcm -mapwithdefault-e1marcm
constant -segment
werks-mapwithdefault-werks
other fields(one to one mapping)
e1mardm-mapwith default-e1mardm
lgort-mapwithdefault(value 1000)-lgort
other fields -one to one mapping
now the problem we are facing is when e1mardm is not existing in source structure the values from the other node of e1mardm(which exists) are getting overwritten into it.
we want only the lgort to be 1000 and the segment should populate at target side.
like
e1mardm
segment
lgort value 1000
Could you please assist in solving this issue and give your valuable suggestions as how could we handle it.
Thanks and regards,
jyotiU will achieve this using UDF function. Map the below Like.
e1mardm-mapwith default(Value Constant)-e1mardm
lgort (A) ---
e1mardm-mapwith default(Value Exit)u2014(EqualsS) (B)- (UDF1)- lgort
Constant(Value Exit)---
Constant(Value 1000)(C)---
Other one to one mapping fields also you should use one more UDF.
Other one to one fields (A) ---
e1mardm-mapwith default(Value Exit)u2014(EqualsS) (B) - (UDF2)- Target
Constant(Value Exit)---
UDF1:
Argument A,B,C and select queue.
//write your code here
int j = 0;
for(int i=0;i<a.length;i++)
if (b[j].equals("true"))
result.addValue(c[0]);
i--;
result.addValue(ResultList.CC);
else
result.addValue(a<i>);
j++;
UDF2:
Argument A,B and select queue.
//write your code here
int j = 0;
for(int i=0;i<a.length;i++)
if (b[j].equals("true"))
i--;
result.addValue(ResultList.CC);
else
result.addValue(a<i>);
j++; -
Setting up Custom Priorities for Taxonomy Attributes through Import Manager
Hi,
I want to set priority for "n" number of characteristics through Import Manager.
I know Import manager allows us to set priority to one of the following : "Highest" "High" "Normal" "Low" "Lowest". But I have a requirement to set custom priority for each of the attribute through Import manager so as to avoid manual intervention.
Has anybody worked on this before?
Regards,
Amol.Hi,
Which special properties you are talking about ?
I will just brief you the concepts of Hierarchy and Taxonomy
Hierarchy
Node1
- Node11
- Node12
Node2
- Node21
-- Node211
Only leaf nodes can be assigned at the time of record creation.
Taxonomy
Used when particular hierarchy nodes needs some extra fields.
Example: If your hierarchy is like
Cars
- Fiat
- Maruti
Bikes
- Hero Honda
- Bajaj
Now for Cars, i want to store its Price but for Bikes i am not interested in Price but I want the Colour info. Now if you create the Price and Colour as fields of the repository then for all the records whose category is Cars will have NULL value for Colour and reverse in case of Bikes. Hence the concept of Taxonomy is introduced so that you can assign the fields (known as attributes) to the Nodes of the hierarchy.
For Taxonomy Import, refer the below links
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30aa1447-80a1-2a10-e483-a76087bcb12f
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6090d0bd-1da7-2a10-468f-bdd17badb396
Regards,
Jitesh Talreja -
I am having trouble getting the settings to stay and can't figure out why...no matter what I do it just resets every time back to the
"Remember History" and it won't save passwords on some of my sites.Firefox shows the "(Never) Remember history" choice if all the history and cookie setting are the default.<br />
Make at least one change to the default setting if you want "Use custom settings for history" to stay selected.<br />
Otherwise Firefox will revert to "(Never) Remember history" if you return to the Privacy tab.<br />
The choice "Use custom settings for history" will stay selected as long as not all settings are the default to make you aware that you made changes.<br />
* Make sure that you not run Firefox in (permanent) [[Private Browsing]] mode
* You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
* Uncheck: [ ] "Automatically start Firefox in a private browsing session"
* Websites remembering you and automatically log you in is stored in a cookie.
* You need an allow cookie exception (Tools > Options > Privacy > Cookies: Exceptions) to keep that cookie, especially for secure websites and if you let cookies expire when Firefox closes
* Make sure that you do not use [[Clear Recent History]] to clear the "Cookies" and the "Site Preferences"
Clearing "Site Preferences" clears all cookies, images, pop-up windows, software installation, and password exceptions.
See also:
* http://kb.mozillazine.org/Cookies
* [[Enabling and disabling cookies]] -
Hi Guys,
We have created a custom package where in we are trying to call the standard API's of Oracle projects i.e PA_PROJECT_PUB.When we are trying to call these APIs we are facing the below issue.
We have tried testing in two instances ,Initially it worked in both instances.
Using the same API's multiple times we tested the same data set in these instances.
For the first few runs it works fine.But when we go on using the same API's again and again for our testing we face now and then the below issue.
Standard API's
=========
add_task
update_project
change_structure_status
create_draft_plan
Error:
ORA-20100: File o2670336.tmp creation for FND_FILE failed.You will find more information on the cause of the error in request log. in Package PA_OPPORTUNITY_MGT_PVT Procedure modify_project_attributes ORA-20100: File o2670336.tmp creation for FND_FILE failed.
You will find more information on the cause of the error in request log. in Package PA_PROJECT_PUB Procedure update_project:ORA-0000: normal, successful completionError while publishing the task
Please let us know if anyone of has come across the same situation.
Regards,
VijayBut have issue only with validating invoice batch. I followed metalink ID's 605542.1, 167990.1,261693.1,1088553.1,749491.1, 461271.1 and few more.Was this working before? If yes, any changes have been done recently?
Please see if these docs help.
APXAPRVL: Invoice Validation Errors With MSG-00001 and REP-1419 [ID 333305.1]
Invoice Validation Errors When Others:101505:Non-Oracle Exception Rep-1419 [ID 464125.1]
Invoice Validation Fails with REP-1419 Error in Ap_approval_matched_pkg.Execute_matched_checks [ID 293425.1]
Invoice Validation Failing On Fnd_file Could Not Write To File L0202306.Tmp [ID 461520.1]
Invoice Validation (APPRVL) Errors ORA-20001 APP-SQLAP-10000 PSA_FUNDS_CONTROL_PKG.glxfck [ID 463184.1]
Validate Invoice Error With ORA-20001: APP-SQLAP-10000: AP_FUNDS_CONTROL_PKG.Calc_QV [ID 432702.1]
Invoice Validation Program Is Erroring Out [ID 382844.1]
Error On Validation Of Invoices From Previous Periods [ID 412814.1]
Thanks,
Hussein -
Issues on setting the SQL ARRAY in Weblogic 10.3
Hello,
I am facing problem while migrating my application from Weblogic 8.1 to Weblogic 10, and problem is on setting the database ARRAY.
here is the brief of the problem which we are facing during weblogic upgrade, appreciate if someone could help us in this regard.
Requirement:- Upgrading the Weblogic Server from 8.1 SP4 to 10.3.
Problem Description :- We are facing issue with Weblogic server 10.3 related to JDBC call for setting the Database Array. We are using Spring framework JDBC templates.
In 8.1 we used to send the database Array by using two different methods mentioned below.
Method 1 :- First method which we are using to set the ARRAY object to database.
CODE:
public Object doBaseInConnection(Connection connection) throws SQLException
OracleCallableStatement callableStatement = OracleCallableStatement)connection.prepareCall(DBUtils.createPreparedStatementFunctionString("bbvoice_customer_discovery_ng", "validate_password_3", 8));
callableStatement.registerOutParameter(1, Types.INTEGER);
callableStatement.setString(2, identifier);
callableStatement.setString(3, password);
ArrayDescriptor arrayDesc = ArrayDescriptor.createDescriptor("TACTOSS.PRODUCT_NAME_ARRAY", connection);
ARRAY ocbsArray = new ARRAY(arrayDesc, connection, productSearchList); -- Exception in this LINE
callableStatement.setARRAY(4, ocbsArray);
callableStatement.execute();
EXCEPTION:
This was working fine in Weblogic8.1 where as giving the below exception in Weblogic 10.3.
java.lang.ClassCastException: $Proxy439 cannot be cast to oracle.jdbc.OracleConnection
at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:155)
at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:123)
CHANGE:
Only change in Weblogic 10.3 in this area is earlier in weblogic 8.1 we used to have ojdbc14.jar but weblogic10.3 is having ojdbc6.jar.
Method 2 :- Second method which we are using to set the ARRAY object to database.
CODE:
public Object doBaseInConnection(Connection connection) throws SQLException
OracleConnection oracleConnection = (OracleConnection) ((WLConnection)connection).getVendorConnection(); -- Exception in this LINE
OracleCallableStatement callableStatement = (OracleCallableStatement)connection.prepareCall(DBUtils.createPreparedStatementFunctionString("bbvoice_business_bbv_ng", "create_service_3_mb", 15));
callableStatement.registerOutParameter(1, Types.INTEGER);
callableStatement.setBigDecimal(2, new BigDecimal(customerId.intValue()));
callableStatement.setString(3,businessBBVDTONG.getCpeType() );
ArrayDescriptor arrayDesc = ArrayDescriptor.createDescriptor( "TACTOSS.GEO_DETAILS_ARRAY", oracleConnection);
List geoList = businessBBVDTONG.getGeoNumberList();
int size = geoList.size();
Object arrayValues[][] = new Object[size][];
Object[] str = new Object[3];
for(int i=0;i<geoList.size();i++)
GeoNumberDTO geoNumberDetails = (GeoNumberDTO)geoList.get(i);
str[0]=geoNumberDetails.getDirectoryEntry();
str[1]=geoNumberDetails.getCssDistrictId();
str[2]=geoNumberDetails.getCssExchangeGroupCode();
arrayValues[i] = str;
str = new Object[3];
ARRAY ocbsArray = new ARRAY(arrayDesc, oracleConnection, arrayValues);
callableStatement.setARRAY(4, ocbsArray);
callableStatement.execute();
EXCEPTION:
This was also working fine in Weblogic8.1 where as giving the below exception in Weblogic 10.3.
java.lang.ClassCastException: $Proxy216 cannot be cast to weblogic.jdbc.extensions.WLConnection
at com.bt.bbv.core.dao.bbvoice.nextgen.BusinessBBVDAONGImplDB$2createService.doBaseInConnection(BusinessBBVDAONGImplDB.
java:171)
at com.bt.bbv.core.util.BaseConnectionCallback.doInConnection(BaseConnectionCallback.java:38)
CHANGE:
Changes from Weblogic 8.1 to 10.3 are
1) We are not having the WLConnection in weblogic.jar instead it is present in com.bea.core.datasource6_1.4.0.0.jar
2)Weblogic 10.3 server is having ojdbc6.jar instead of ojdbc14.jar.You'll also need to map the security role defined in web.xml to a Weblogic principal (an actual Weblogic user or a group) in weblogic.xml.
Example:
web.xml
<web-resource-collection>
<web-resource-name>PowerPointTemplates.jws</web-resource-name>
<description>A web service secured by SSL and basic authentication</description>
<url-pattern>/PowerPointTemplates.jws/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>Friends</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>CLIENT-CERT</auth-method>
<realm-name>myrealm</realm-name>
</login-config>
<security-role>
<description>Role description</description>
<role-name>Friends</role-name>
</security-role>
weblogic.xml
<security-role-assignment>
<role-name>Friends</role-name>
<principal-name>weblogic</principal-name> <!-- the following 3 are users that exist in Weblogic -->
<principal-name>user1</principal-name>
<principal-name>user2</principal-name>
<principal-name>Turbo_Users</principal-name> <!-- this is a Weblogic group -->
</security-role-assignment> -
Issue while accessing deployed web-app on Weblogic 10.3.5
We have deployed a web app on Weblogic server 10.3.5 as a WAR file. The deployment looks fine and application is in "Active" state. However when we try to access the application it fails to detect the Struts tags and gives following error -
weblogic.servlet.jsp.CompilationException: Failed to compile JSP /view/login/login.jsp
login.jsp:4:1: Type mismatch: cannot convert from Tag to JspTag
*<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtm*
*l1-transitional.dtd">*
*^---------------------------------------------------------------------------------------------------*
*<title><s:property value="customerLoginContentVO.pageTitle" /> Dashboard</title>*
------^
I looks like it doesn't get the Struts libraries. We have included the Struts libraries in WEB-INF/lib of the web app and set prefer-web-inf-classes to true in weblogic.xml. Why is it that it is able to find the jars to deploy but not to access the application.
One alternate method suggested is to have package the war into a ear and provide the mapping for struts libraries as prefer-application-packages in weblogic-application.xml. But we think creating a ear just for library load in not a right approach & we are definitely missing something.
Any help on this issue will be appreciated.
Thanks,
Jiten SWLS 10.3.5 (and some versions before that too, one of the 10.3.x releases changed this) should also support prefer-application-packages. It doesn't appear as though the documentation has been updated to reflect that.
Needs updating:
http://download.oracle.com/docs/cd/E21764_01/web.1111/e13712/weblogic_xml.htm#i1075205
http://download.oracle.com/docs/cd/E12840_01/wls/docs103/programming/classloading.html#wp1098468
I'll file a documentation bug.
In the meantime, you can see that it is there in the XSD:
http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd
which is linked to from here:
http://download.oracle.com/docs/cd/E21764_01/web.1111/e13706/overview.htm#g1088563
Here is an example of what a weblogic.xml might look like.
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-web-app xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd">
<wls:weblogic-version>10.3.5</wls:weblogic-version>
<wls:context-root>FilterWeb</wls:context-root>
<wls:container-descriptor>
<wls:prefer-application-packages>
<wls:package-name>my.foo.package</wls:package-name>
</wls:prefer-application-packages>
</wls:container-descriptor>
</wls:weblogic-web-app> -
Issues while deploying Spring 3+Hibernate 4+Weblogic 12C app
Hi,
We are migrating spring 2.5 to 3.1 and hibernate 3.4 to 4.1 During this migration, we got some JPA2 issues on weblogic 10.3, so we moved to weblogic 12C to get hibernate 4 working ...but getting below exception while deploying the war. Please guide.
java.lang.NoSuchMethodError: org.hibernate.cfg.Configuration.addAnnotatedClass(Ljava/lang/Class;)Lorg/hibernate/cfg/Configuration;
My POM file is,
<dependencies>
<dependency>
<groupId>antlr</groupId>
<artifactId>antlr</artifactId>
<version>2.7.7</version>
</dependency>
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
<version>1.0.b2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>stax</groupId>
<artifactId>stax-api</artifactId>
<version>1.0.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>persistence-api</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
</dependency>
<!--<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
</dependency> -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jms</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.webflow</groupId>
<artifactId>spring-faces</artifactId>
<version>${springWebFlow.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>jsr250-api</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>javax.transaction</groupId>
<artifactId>jta</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>${jsf.version}</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>4.1.1.Final</version>
<exclusions>
<exclusion>
<artifactId>antlr</artifactId>
<groupId>antlr</groupId>
</exclusion>
</exclusions>
</dependency>
<!--<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-jmx</artifactId>
<version>3.3.2.GA</version>
</dependency>-->
<!--<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-commons-annotations</artifactId>
<version>3.3.0.ga</version>
</dependency>-->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>weblogic.jms.client</artifactId>
<version>11</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils-core</artifactId>
<version>1.8.3</version>
</dependency>
<dependency>
<groupId>commons-dbutils</groupId>
<artifactId>commons-dbutils</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>4.1.1.Final</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.5.9.RC1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.5.9.RC1</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0.1.0</version>
</dependency>
<dependency>
<groupId>commons-jxpath</groupId>
<artifactId>commons-jxpath</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4.1</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.2.1.1</version>
<exclusions>
<exclusion>
<artifactId>stax-api</artifactId>
<groupId>javax.xml.stream</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
</dependency>
<dependency>
<groupId>com.cgi.sipcip</groupId>
<artifactId>SipCipBuild</artifactId>
<version>1.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache-core</artifactId>
<version>2.4.2</version>
</dependency>
<dependency>
<groupId>com.googlecode.ehcache-spring-annotations</groupId>
<artifactId>ehcache-spring-annotations</artifactId>
<version>1.1.3</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy</artifactId>
<exclusions>
<exclusion>
<artifactId>antlr</artifactId>
<groupId>antlr</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-validator</groupId>
<artifactId>commons-validator</artifactId>
<version>1.4.0</version>
</dependency>
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>3.0.1</version>
</dependency>
<!-- Lab Upgrade change for spring 3.1.1-->
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>1.6.6</version>
</dependency>
<dependency>
<groupId>asm</groupId>
<artifactId>asm</artifactId>
<version>1.5.3</version>
</dependency>
</dependencies>
Thanks
Shilpa984456 wrote:
java.lang.NoSuchMethodError: org.hibernate.cfg.Configuration.addAnnotatedClass(Ljava/lang/Class;)Lorg/hibernate/cfg/Configuration;
Thanks
ShilparClear indication of class path issue, please correct the hibernate files. appropriately.
Hope this helps.
Regards,
Jeets. -
Mutating tirgger issue while setting a value
I have a table and records as below:
CREATE TABLE set_time
NUM NUMBER,
ID NUMBER,
SET_VALUE CHAR(1 BYTE),
D_TIME DATE
Insert into SET_TIME (NUM, ID) Values (1, 1);
Insert into SET_TIME (NUM, ID) Values (2, 1);
Insert into SET_TIME (NUM, ID) Values (3, 1);
Insert into SET_TIME (NUM, ID) Values (4, 1);
Insert into SET_TIME (NUM, ID) Values (5, 1);
Insert into SET_TIME (NUM, ID) Values (1, 2);
Insert into SET_TIME (NUM, ID) Values (2, 2);
Insert into SET_TIME (NUM, ID) Values (3, 2);
I need a trigger,whenever all the set_values for a particular id is set to 'Y', I need to update the column d_time as sys_date.For that I wrote below trigger
CREATE OR REPLACE TRIGGER set_time_trigger
before update
ON set_time for each row
DECLARE
v_count number;
BEGIN
if :new.set_value = 'Y' then
select 1 into v_count
from dual
where exists ( select null
from set_time
where ID = :new.id
AND ( set_value != 'Y'));
if v_count is null then
update set_time
set d_time = sysdate where ID =:new.id;
end if;
end if;
end;
But while executing the below statement:
update set_time set set_value ='Y' where id = 1;
I am gettign the follwoing error:
ORA-04091: table SET_TIME is mutating, trigger/function may not see it
ORA-06512: at "SET_TIME_TRIGGER", line 13
ORA-04088: error during execution of trigger 'SET_TIME_TRIGGER'
Is there anyway that I can achieve this?. I am using Oracle 11G.
Thanks in Advance1) If D_TIME depends on the data that is set for multiple rows in your table, you have a normalization problem. It sounds like you need to rethink your data model and break out the ID column into a separate table.
2) A row-level trigger cannot generally query the table on which it is defined. So you generally cannot code a row-level trigger that would query the data in other rows of the table. You could define a package which had a collection of ID values, create a before update statement-level trigger that initialized the collection, create a row-level trigger that inserted the :new.id into this packaged collection, and create an after update statement-level trigger that read the data from the collection, queried the table, and did the updates as appropriate. That's a lot of work to go through and a lot of complexity to introduce.
Additionally, this sort of trigger-based approach does not generally work in a multiuser environment. If Session A is inserting a new row with an ID of 1 and a SET_TIME of N at the same time that Session B is setting the SET_TIME of all the committed rows with an ID of 1 to Y, the trigger in Session B can update the D_TIME before session A commits its data leaving you with a case where D_TIME is set and not every row with an ID of 1 has a SET_TIME of Y.
Justin
Maybe you are looking for
-
For DIFF or NRSE analog input what is the "R ext" that is needed for grond?
I am trying to input a 0-10v signal to my daqpad-6016. A resistor indicated as an R ext is required between the AI- or AI SENSE and AI GND. What type of resistor is this and how do I determine it's value? Thanks! Attachments: daqpad-6016.PDF 46 KB
-
Dear All, While invoking Oracle forms and reports in Jinitiator for the first time, Jini software will be automatically dowloading the client PC. But, when the forms and reports are invoked from JRE, the IE is not downloading the JRE software in the
-
Material Components cost break up
Hi I am using CS13 t code to see the materials BOM details and i want to have the details of pricing like - cost of labour, overhead, machinery cost etc. But i am not able to pull out the data from tables. For eg Material no 6275 - labour 50, machine
-
We need to exclude some banks from getting processed through RFBVBIC2 program. Do we have a standard method for exclusion. Please treat this as urgent. Thanks, Sridhar
-
Is it possible to set GRoup Policy to prevent users manually changing Power Options?
Hello, We use Dell laptops and there is a very well known issue that certain models freeze when they are docked. I have adjusted the power settings under high performance plan, and updated this in the group policy, which I have tested and is all fine