How to validate the XSD files in Weblogic
Hi,
i want to validate a xsd file in the weblogic. if anyone give me a solution then i'll greet u.
Can you give some more details? Are you talking about doing this in your code? Or, do you want to validate the XSD deployment descriptors before you deploy an application?
-- Rob
WLS Blog http://dev2dev.bea.com/blog/rwoollen/
Similar Messages
-
How to validate the Xml File With Java
Hi,
Can pls tell me. I want to validate the XML File for the Some Mandartory TAG. if that if Tag null i want to generate error xml file with error and i want move another folder with java. pls help me as soon as possibleUse a validating parser (any recent Xerces, for one) and switch on the validation feature. Very much vendor-specific, so look at the docs of your parser. Oh, you do have a schema for these documents, don't you?
-
How to Customize the WSDL file in Weblogic
Hello All
I am trying to make a web service deployed inside weblogic to be accessible through a loadbalancer that use HTTPS protocol.
The wsdl file url is accessible through the load balancer via https and all works fine expect the schemalocation attributes within the wsdl
<types>
<xsd:schema>
<xsd:import namespace="http://interfaces.package.com/" schemaLocation="http://domainname:80/I2SS-Interface-context-root/InterfacePort?xsd=1"/>
</xsd:schema>
</types>
I don't know which element is generating the wsdl (weblogic or JAXWS SOAPBinding) . But I need that the schema location attributes contains https url and using the port 443.
Please can you help me to customize this file.
Thankschange your web-inf directory name to WEB-INF. This should fix your problem.
Kumar.
Alex wrote:
> I write a jap and a web.xml files and also pack these files into a war file.
> When I use the console to deploy the war, the console think the war is a
> application, not web application.
> I attach the test.war.
>
> Name: test.war
> test.war Type: unspecified type (application/octet-stream)
> Encoding: x-uuencode
-
How to deploy the war file in weblogic 6.0 with sp1?
I write a jap and a web.xml files and also pack these files into a war file.
When I use the console to deploy the war, the console think the war is a
application, not web application.
I attach the test.war.
[test.war]
change your web-inf directory name to WEB-INF. This should fix your problem.
Kumar.
Alex wrote:
> I write a jap and a web.xml files and also pack these files into a war file.
> When I use the console to deploy the war, the console think the war is a
> application, not web application.
> I attach the test.war.
>
> Name: test.war
> test.war Type: unspecified type (application/octet-stream)
> Encoding: x-uuencode
-
How to validate the file path when downloading.
Hi
How to validate the file path when downloading to Presentation or application Server.hiii
you can validate file path by following way
REPORT zvalidate.
TYPE-POOLS: abap.
DATA: w_direc TYPE string.
DATA: w_bool TYPE abap_bool.
w_dir = 'c:\Myfolder\'.
CALL METHOD cl_gui_frontend_services=>directory_exist
EXPORTING
directory = w_direc
RECEIVING
result = w_bool
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
wrong_parameter = 3
not_supported_by_gui = 4
OTHERS = 5.
IF NOT w_bool IS INITIAL.
WRITE:/ 'Directory exists.'.
ELSE.
WRITE:/ 'Directory does not exist.'.
ENDIF.
regards
twinkal -
CSV Lookup to validate the .TXT file
Hi All,
I am trying to validate the input file's A.txt customerID to other existing B.txt files CutomerID. Once if the input file matches the target files customerID then I am going write this output file as C.txt file.
Hope we can do this with the help of CVS Lookup. If we need to use the CVS Lookup what all are the thing need to setup and how I need to create a .java file in NWDS or just any text editor I can achieve this? And I can import it in the Imported Achieves in ESR.
We can do this using the UDF.
I checked all the below links and I am not clear about this.
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417300)ID1453571650DB01760580483263408018End?blog=/pub/wlg/2800
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417300)ID1453571650DB01760580483263408018End?blog=/pub/wlg/2926
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417300)ID1453571650DB01760580483263408018End?blog=/pub/wlg/2781
I checked with other blog too and they are importing some java .jar file as a DRIVER in the Imported Archive. Where can I get that DRIVER.jar file to import it in to my Imported Archive in ESR.
Please can any one throw the light on it. Thanks for all you inputs.
Thanks,
Jane F.
Edited by: Jane Fraga on Oct 7, 2009 5:12 PMHi Ramesh,
Yes I can understand that, their is no CSV Lookup. Instead of that in this examples they are using the JDBC Lookup and check the CSV or txt file.
Can you check this blog:
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417300)ID1453571650DB01760580483263408018End?blog=/pub/wlg/2800
He is using the DRIVER file in the Imported Archives in ESR. Name of the imported file is DRIVERS.
[Message from the above blog:
Once we have the Driver we have to import that jar file in the Imported Archive area available in the Integration Repository.
Once we have imported this file now we can consider the CSV file as a Database table and access it in the Mapping program using a simple user-defined java program. ]
Thanks,
Jane F. -
How to delete the deployed composite in weblogic server 11g
Can someone tell me how to delete the deployed composite in weblogic server 11g ?I'm facing an issue where the weblogic server is getting started and immediately after sometime the server changes to "Force shutdown"..When i checked the logs,there is an error in one of the composite i deployed..So now i wanted to delete the deployed composite?Please help ....
ThanksHi
1. Deleting a domain will not hold any references. But make sure that under your user_projects/applications also remove the folder that matches with your domain. Basically under user_projects folder you will see 2 folders named applications and domains. When you create a domain say mySoaDomain, it will crate a folder with the same name under applications folder also with few files like em.ear. If you do this, then you can crate a new soa domain and use the same old name.
2. NOW comes the most important thing. If you create a new SOADomain, at one point, you had to give details for soainfra and mds schemas. If you give your current existing db details (that was used for your old deleted domain), then you may still have the issues. Because the soainfra db may still have the instances for your old process.
3. If you really want to have a full clean soa domain, here is what you do:
a) Run rcu and drop the existing schemas for soainfra and mds.
b) Run rcu again and create above schemas again.
c) Now create SOADomain using config wizard and refer above clean rcu db and you are all set.
3. Under your domain root folder, just searh for files named with your workflow and you should see the .jar location.
Thanks
Ravi Jegga -
How i configure the log4j.xml in weblogic server
hi
i write a new lg4j.xml and i put this in WEB-INF/classes,i deployed this jar in my remote server,but it not reflected. [i am not specify the server logs, we have some API's which is deployed in server for that API log files is configured using log4j.xml ]
i saw there is a option in weblogic - setDomain -LOG4J_CONFIG_FILE='here we give the path for log4j.xml'.I think it's only work for local machines not for the remote machines.
i don't know how to get a log files in weblogic serverTo use Quartz primarily within an application server environment,include the Quartz JAR within the enterprise application (.ear or .war file). However, if you want to make Quartz available to many applications then simply make sure it's on the classpath of your appserver.
You can also deploy it as a jar file or a library module as required.
Quartz depends on a number of third-party libraries (in the form of jars) which are included in the distribution .zip file in the 'lib' directory. To use all the features of Quartz, all of these jars must also exist on your classpath.
-Sandeep -
How to Validate the Cube in Essbase
Hi All,
in Essbase How to Validate the ASO Cube. How can we validate the data is loaded correctly or not after data loading.
please let me know how to do this job?
RegardsIf you load data you can see the data load successful and the no of cells updated in the dialogue box.
If there any records rejected they are thrown into dataload .err file.
If you want to validate the input data you can verify the input records in the excel add-in.
If you want validate the business logic ( ie data at the high level ) you have to write SQL Procedures or Custom programs at the Source layer to calculate the high level data in ESSBASE and compare the results in essbase Roll UP Using Excel add-in. -
How to validate the fields and how to display the error messagein presenta
Hi,
I am new to OBPM 10g, pls tell me how to validate the fields in a presentation.
for example if we take login presentation if user enters his user name and password wrongle and submit the form. Then we need to display error message right side of the each field i.e user name and passowrd is wrong and try again.
Regards
jaya
Edited by: 12345 on Aug 12, 2010 10:38 PMHi Jaya,
You can initially set the validation for empty values.. that is when the user dint enters any value and clicks on submit.
for these vadliations you need to write a method and call it on submit button click!!
secondly, you can validate for the format if required.
thirdly, you can validate against a database for the credentials. For this you need to fetch list of usernames from database and search for user entered value in that list.
Optimal query would be : if user name not null, query for pwd of the entered user name from database or file storage. if you dont get any value for pwd of given username, its incorrect user name. if you get some pwd value for username, then check against the one user entered in pwd field..
Write all this logic in a method and call on submit button click event of the login form!!
HTH
Sharma -
hi all,
here java people have given wsdl file to me, how to do the scenario,
and how to get the wsdl file from the java people.
regards,
priyaHello Priya,
Go to http://<hostname>:50000/wsnavigator or any other UDDI server and search for the web service to be invoked
There you can find the Webservice Definition (WSDL) file.
Check this weblog:
Invoke Webservices using SAPXI
regards
Gangaprasad -
How can validate the ASM size and free space correctly?
Dears ,,
I faced problem in ASM size as it appeared in alert file as below
ORA-19504: failed to create file "+DG_DATA"
ORA-17502: ksfdcre:4 Failed to create file +DG_DATA
ORA-15041: diskgroup space exhausted
So we resize ASM space and large it. But we faced the same problem also although there is free space in ASM.
It seems that the shown free space is not real.
How can validate the ASM size and free space correctly?
Thanks & Regards,,*Oracle DBA* wrote:
Dears ,,
I faced problem in ASM size as it appeared in alert file as below
ORA-19504: failed to create file "+DG_DATA"
ORA-17502: ksfdcre:4 Failed to create file +DG_DATA
ORA-15041: diskgroup space exhausted
So we resize ASM space and large it. But we faced the same problem also although there is free space in ASM.
It seems that the shown free space is not real.
How can validate the ASM size and free space correctly?
Thanks & Regards,,
I was having this problem. Im my case i couldn add datafiles to a tablespace despite the fact that i was having a lot of space in the asm. Try rebalancing. It might help. In my case rebalancing also didn work because it seems that there need to be a threshold space in all the disks for the rebalancing to happen which was not in my case, so i had to shrink some unused space in the tablespace and then after gaining the required space I rebalanced the disk and then the disks got rebalanced, also i was able to use the free space that was showing . -
Can AnyOne Please Tellme How to configure the HTML files
This is very Urgent.
1.I am using the WLS7.0 sp1 .I need to configure theHTML files which are in a
different path how can I map them to the present DefaultWebAPP directory.
2. How can I get rid of the port number when I am fully using in production mode.
I have been posting this query since long but in vain. Please guide me1. I got rid of port number with link provided by the karthik.
2.How can I create a link .The link appends to the defaultwebapp directory
and checks from their .I need to know how to configure the
HTML files which are not in the DefaultWebApp.But completely in directory.
Any suggestions !!!!!!!
Shehzad <[email protected]> wrote:
1. You can create a link to that directory
2. In order to get rid of port number, either boot weblogic at default
port 80, or use Apache or Iplanet webserver, and use Weblogic plugin.
That way all the traffic comming in from http will comein at port 80
to the webserver, and would then be forwarded to Weblogic at whatever
port it is booted.
This is very Urgent.
1.I am using the WLS7.0 sp1 .I need to configure theHTML files whichare in a
different path how can I map them to the present DefaultWebAPP directory.
2. How can I get rid of the port number when I am fully using in productionmode.
I have been posting this query since long but in vain. Please guideme -
HI All,
I have a situation.
I need to validate the input file against a given schema inside an orchestration and producing 2 different files based on the validation result.
A predefined success schema in case of validation success and negative schema structure for validation failure.
any advice ?Hi Rachit,I following the blog
http://dietergobeyn.be/validating-biztalk-messages-orchestration/ and stuck in few things
I created a helper class with the name Validation and following code
[Serializable]
public class Validation
private bool _isValid = true;
public bool Validate(XmlDocument document, Type schema)
XmlSchemaSet set = new XmlSchemaSet();
if (typeof(SchemaBase).IsAssignableFrom(schema) && !schema.IsNested)
set.Add((Activator.CreateInstance(schema) as SchemaBase).Schema);
ValidationEventHandler eventHandler = new ValidationEventHandler(HandleValidationError);
document.Schemas = set;
document.Validate(eventHandler);
return _isValid;
private void HandleValidationError(object sender, ValidationEventArgs ve)
_isValid = false;
public static bool ValidateMessage(XLANGMessage msg)
XmlDocument xDoc = new XmlDocument();
xDoc = (System.Xml.XmlDocument)msg[0].RetrieveAs(xDoc.GetType());
Type t = typeof(Schemas.External.Invoice_v3_1);
Validation validation = new Validation();
return validation.Validate(xDoc, t);
First thing, Do i need to write the ValidateMessage method inside the helper class or not ??
If inside, how to add the reference of schema files in the statement (Type t = typeof(Schemas.External.Invoice_v3_1);)
I tried adding the reference of my schema project but it is showing error.
And what is to be written in the ValidateMessage expression shape in Orchestration ?
Really appreciate your help. -
Hai Sir,
I am facing one problme in weblogic8.1 while depolying the .EAR FILE.
Please help me sir.
Case1) 1) I am using the struts and log4j frameworks and 3rd party jar files with
weblogic8.1.
2) I make the ejbs,webapplications and 3rdparty jar files, ear file the following
dir structure .And i mentioned the Class-path including all jar files in the MANIFEST
OF EAR FILE.
While deploying the ear file it is giving following error.If log4j.jar does not
mention in the Weblogic script file
java.lang.NoClassDefFoundError: org/apache/log4j/Priority
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:1494)
at java.lang.Class.getDeclaredFields(Class.java:1073)
at weblogic.ejb20.deployer.EJBModule.disableImplClassLoader(EJBModule.java:1082)
at weblogic.ejb20.deployer.EJBModule.setupEJBToImplClassDependencies(EJBModule.jav
a:982)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:419)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.j
ava:2792)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.
java:1478)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:11
36)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:97
5)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareCon
tainer(SlaveDeployer.java:2571)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(Sla
veDeployer.java:2523)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeploy
er.java:2453)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer
.java:820)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:
536)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java
:494)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:
25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
Please provide the soluation without mentioning classpath in the weblogic script
.How to make the EAR file incliding ejbjar,webapplication and 3rd party jar files.
Thanks & Regards,
ASHOK SAMRAT
[email protected]Refer to the section
Handling Utility classes
http://dev2dev.bea.com/products/wlserver/articles/musser.jsp
thanks,
Deepak
"Ashok Samrat" <[email protected]> wrote:
>
Hai Sir,
I am facing one problme in weblogic8.1 while depolying the .EAR FILE.
Please help me sir.
Case1) 1) I am using the struts and log4j frameworks and 3rd party jar
files with
weblogic8.1.
2) I make the ejbs,webapplications and 3rdparty jar files, ear file
the following
dir structure .And i mentioned the Class-path including all jar files
in the MANIFEST
OF EAR FILE.
While deploying the ear file it is giving following error.If log4j.jar
does not
mention in the Weblogic script file
java.lang.NoClassDefFoundError: org/apache/log4j/Priority
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:1494)
at java.lang.Class.getDeclaredFields(Class.java:1073)
at weblogic.ejb20.deployer.EJBModule.disableImplClassLoader(EJBModule.java:1082)
at weblogic.ejb20.deployer.EJBModule.setupEJBToImplClassDependencies(EJBModule.jav
a:982)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:419)
at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.j
ava:2792)
at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.
java:1478)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:11
36)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:97
5)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareCon
tainer(SlaveDeployer.java:2571)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(Sla
veDeployer.java:2523)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeploy
er.java:2453)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer
.java:820)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:
536)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java
:494)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:
25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
Please provide the soluation without mentioning classpath in the weblogic
script
How to make the EAR file incliding ejbjar,webapplication and 3rd party
jar files.
Thanks & Regards,
ASHOK SAMRAT
[email protected]
Maybe you are looking for
-
X230T graphics performanc​e under Windows 8
My Thinkpad originally came with Windows 7 Pro, but I have changed to Windows 8 in order to resolve problems with VSS. OOB, both Windows 7 and Windows 8 gave me a "Desktop graphics performance" rating of 5.7. Under Windows 7, upgrading to the lates
-
Reset airport express for each use.
I use the AE both for home to stream music, at the office to extend a network and while traveling to create wireless network in hotel rooms. Each time I have to reset the base station and basically start over. I use Leopard at home and Vista at work
-
Hi All, In the material master in the QM view, once put inspection type as 01 (GR) and tick the Insp for HU and Serial Number Management Possible tick and press enter following error message occurs. "You cannot have a single-unit inspection and HU".
-
Guest users in Portal Activity Report
Hi All, We have implemented Portal Activity Report in our portal. We are tracking only the pages and we have set the property Authentication Scheme to default for all the pages. The reports are working fine except for the fact that the reports are sh
-
How can I open a picture in Photoshop from Photos?
I migrated my pictures from IPhoto to Photos. Why can't I open them in Photoshop? Please help. Can I just go back to using IPhoto?