Problems with TagLibs/Web.XML
Using JDeveloper version 10.1.2 build 1811 (Just downloaded from the site) I'm having massive issues using tag libraries. Be it a custom library, or the jstl, or anything.
Anytime I put a taglib directive in a page, when jdeveloper is translating the pages, I get a spew of 'Invalid element ...' in content of web-app. If I remove the tag library, I'm fine.
What gives?
Add a taglib element to the web.xml deployment descriptor for a tag library.
<taglib>
<taglib-uri></taglib-uri>
<taglib-location></taglib-location>
</taglib>
To the JSP add <%@ taglib uri="" prefix="" %>
Similar Messages
-
Problem with RESTful web service
I am running into a problem with Flex Web Services (REST) in trying to get the proper format returned. I can see that the HTTP header is set to
Accept: */*;
rather than
Accept: application/xml
when sending the request. The web service was generated via the web services HTTP data services wizard. I edited it to set the resultFormat to xml
// Constructor
public function _Super_UsersService()
// initialize service control
_serviceControl = new mx.rpc.http.HTTPMultiService();
var operations:Array = new Array();
var operation:mx.rpc.http.Operation;
var argsArray:Array;
operation = new mx.rpc.http.Operation(null, "getUsers");
operation.url = "http://localhost:8888/users";
operation.contentType = "";
operation.method = "GET";
operation.resultFormat = "xml";
//operation.serializationFilter = serializer0;
operation.properties = new Object();
operation.properties["xPath"] = "/";
operation.resultType = valueObjects.Users;
operations.push(operation);
_serviceControl.operationList = operations;
model_internal::initialize();
How does one configure the accept header?Hi,
I have posted a simple application with the RESTful reference:
http://apex.oracle.com/pls/apex/f?p=13758
I can give you full privileges on this so you can look at the WEB service reference. Shall I send to you separately for login user?
It is using the RESTful service: http://apex.oracle.com/pls/apex/nd_pat_miller/demo/employee/{deptno}
This RESTful service tests fine when I test from within the RESTful web service module of the Workspace.
I based this on the Video demo tutorial for RESTful web service that Oracle published for 4.2 release. The video seemed to exclude the {deptno} in the URL but when I try that, it doesn't work either.
This is the error I am getting when I run this on my Apex environment: (it, of course, will not run the web service in the apex.oracle.com environment)
class="statusMessage">Bad Request</span>
</h3>
</div>
</div>
<div id="xWhiteContentContainer" class="xContentWide">
<div class="xWhiteContent">
<div class="errorPage">
<p>
<ul class="reasons"><li class="badRequestReason"><span class="target" style="display:none;">uri</span><span class="reason">Request path contains unbound parameters: deptno</span></li>
</ul>Thanks,
Pat
Edited by: patfmnd on May 8, 2013 3:33 AM -
Problems with reports and XML-publisher - No XML
Hi!
I'm having a problem with Apps and XML-publisher. I made a report file, which queries some views. When executing in reports, I get all the data I expect.
Now, when I upload the reportfile to Apps and let it generate XML, my xml-file is empty (well, almost empty)
<?xml version="1.0" ?>
<!-- Generated by Oracle Reports version 6.0.8.27.0 -->
<T03501684>
<LIST_G_PERSOON>
<LIST_G_PERSOON />
</T03501684>
Anyone who can shed any light upon this problem?OK, finally solved the problem... A good night's sleep always helps ;).
After just trying each queried table one after an other, I found the problem:
The difference between Oracle Apps (Dutch locale) and the reports builder (English) is the language... And our functional people have changed some names, but the Dutch ones, leaving the english names in place and one of the tables I query has language specific data, which is also appears in a where clause. -
List of Problems with new Web Mail
List of Problems with NEW Web Mail :
- At first doesn't open full page message list or retain full page as default setting, have to drag down bar
- Only shows 20 message lines after “pulling down” the divider, screen partially empty until I scroll down. It should show at least 26, preferably all available
- After moving bar, bar moves back up after going back to inbox (not delete message) after reading a message, have to move it down again, and again...
- Doesn't go to next message when delete message on screen is selected, no setting option for default to do this.
- There is a drop down to select which folder to move a selected email to. The initial display shows 7 usable choices, with the usual slider and arrow to show more choices. The space on the slider clearly shows more choices are present (actually about 20 or so are there), but any attempt to use the slider or arrow to see more choices causes the drop-down to instantly disappear. I can't move the selected field with arrow keys either. I can select any of the visible 7 choices, and move an email to only one of the 7. NOTE: This one works in both IE and Firefox, but if Verizon Webmail was fully web standard (see http://en.wikipedia.org/wiki/Web_standards) compliant it would also work in my preferred browser, Mozilla Seamonkey, the direct descendant of the original Mozilla browser. Webmail should be FULLY web standard.
- Occasionally a message will move from inbox to trash, without NO indication or command to move them.
- Emails occasionally flash an error message and simply disappear - not to trash or other findable place, just disappear. No time to read the error message either.
- No way to set a whitelist for supposed spam emails, unless the whitelist for “Blocking” is the same. Very unclear.
- How can I switch my service back to the original, basic, email which works ok? I know it’s still there, since some of my other accounts still access it!!!
This seems my only way of getting this info direclty to the programming staff. If it doesn't actually do this, will SOMEONE PLEASE FORWARD THIS MESSAGE TO THEM !?!
Thanks!vz_ric wrote:
The majority of websites are set up the same way for all browsers. It's the software manufacturers responsibility to make their software compatible with websites, not the other way around. Otherwise everyone who has a website will have to make 10 different sites to work multiple browsers.
Contrarily, it is Verizon's, as well as other companies like Verizon whose customer base uses a wide variety of web browsers, web page designers' responsibility to use only standard W3C-recognized code and not to use non-standard non-W3C-recognized code, e.g., Microsoft's Internet Explorer specific code, when designing their web pages. In my opinion based on my observations, Verizon's web page designers are too often guilty of using IE-specific code. -
Hi All,
I am facing a problem with Java Web Start. Which is the most appropriate version of JDK recommended for SAP XI? I tried
JDK 1.4.2_04
JDK 1.4.2_09
JDK1.4.2_11
JDK1.5.0_01
When I click on Integration repository or Directory for the first time, it loads the jar files and while loading, I get an error msg "Unable to launch Integration Builder". After a lot of retries I get sucess. But still we are facing this issue in some machines. Can you pls let me know if there is any pre configuration or some thing I am missing...
Regards,
Jai ShankarDid you check the proxy settings in JAVA Web start. Please follow the below instructions.
This could be set to None or to specific for values HTTP Proxy and HTTP Port .
Contact your network administrator for the correct settings.
To change the Proxy Settings:
Select Windows Start menu -> All Programs -> Java Web Start -> Java Web Start
Choose File -> Preferences -> General
Choose None to switch off the proxy settings or Manual to set the HTTP Proxy and HTTP Port.
ChooseOK
Close Java Webstart -
Firefox is having problems with certain web sites, but IE is ok
Top of page is present in IE but not in latest Firefox.
Is it a safe assumption that website is your's? <br />
What difference does it make which browser '''''you''''' use? Isn't your website for client's or potential clients?
That said, I don't have a problem with that web page on Firefox 2.0.0.20, 3.0.19, 3.5.16, 3.6.13, or the 4.0b9 nightly - it looks the same as in IE8 on 32-bit WinXP SP3, with an AMD 64-bit processor.
The problem shown in your screenshot is with your own Firefox installation. It's like all the "styling" is turned off.
''''' "I infer Firefox needs a 64 bit version." ''''' <br />
What good is a 64-bit browser without 64-bit plugins? <br />
Adobe still hasn't released a 64-bit version of Flash, although they do have a "preview" version available. <br />
http://kb2.adobe.com/cps/000/6b3af6c9.html
''BTW, Mozilla does have a Windows 64-bit version of the Firefox 4.0 betas that is being tested now, but it is not going to be released in Jan / Feb when Firefox 4.0 is released. It will probably be released later in 2011 with one of the 4.# versions, I suspect right after Adobe has a 64-bit Flash release version.'' -
Problem with iPlanet Web Server 6
We are getting an intermittent problem with our web server, the users start to get problems connecting to the web site.
I have found the following message in the error log -
failure ( 2390): Error accepting connection -5928, oserr=130 (Connect aborted)
can anybody help???Check out the below.
Problem 4680491. CSS causes oserr=130 in iWS 6.0 logs.
Workaround
If you are using the Cisco Content Services Switch (CSS) with Sun ONE Web Server and have set the value of the sticky bit setting in CSS to on, the following error is logged periodically in the error logs:
failure ( 2210): Error accepting connection -5928, oserr=130 (Connect aborted)
This is caused not by a defect in Sun ONE Web Server but by the setting of the sticky bit in CSS. To avoid the error logging, set the value of the sticky bit in CSS to off.
Which as been fixed in iWS 6.0 SP5.
For more info check the below link.
http://docs.sun.com/source/816-6434-10/rn60sp5.html
Dakshin. -
I have a problem with my XML setup here
i use Tab key to aligh up info in the xml text for aligned
display in the program
hoever i tested on several computers and get different
resolts.
how can i fix this.
Please view the linked Image
http://img129.imageshack.us/img129/8394/flashtextproblemti4.jpg
this is what happenes even thow all run xp and all run same
latest flash version.
Anyone got an ideer how i can solve this.
BTW the font is verdana.
This is my actionscript ....
// Function to parse an address
f_parseAddress = function () {
// Set the text
_root.stageholder.textfield.htmlText =
this.firstChild.firstChild.firstChild.nodeValue;
// Create the XML object
XML_address = new XML();
// Set up the XML object
XML_address.ignoreWhite = true;
// Add the handlers
XML_address.onLoad = f_parseAddress;
// Load the XML file
XML_address.load("./Data/xml/kontakt.xml");
This is my XML file
<?xml version="1.0" encoding="iso-8859-1"?>
<text>
<address>
<![CDATA[
<font size="20">Company name</font>
Company name
address
address
Dir. tlf. + xx xx xx xx xx
+ xx xx xx xx xx
Mobil + xx xx xx xx xx
+ xx xx xx xx xx
web: <a href="
http://www.xxxxxxxxxxxxx.xx"><b>www.xxxxxxxxxxxxx.xx</b></a>
E-mail: <a
href="mailto:[email protected]"><b>[email protected]</b></a>
]]>
</address>
</text>
If anyone got a solution on how i can get my text to allign
corect
i would like to hear about it
Best reguards
Misalrighty then try this xml structure.
Note: formatting information like b, or linkage tags should
not be part of the xml.
The XML format is a universal format for data, if you fill it
with style information this is not good practive (in general, there
are of course scenarios where it makes sense, also since (x)html IS
also XML).
In your case you want to put the information about multiple
companies in a xml file, but you let the flash decide how to
display format this information.
so if you use the sugested XMl structure you will have full
control of the layout within flash, because you can grab every
piece of information from the xml and place it jsut where you want
in flash and format it within flash.
Of course this process is more coding work than your previous
attempt, but it pays of when you have a lot of data to process and
when you want to have full control of the final layout.
But maybe its overkill for your application (I don't know how
many companies will be stored in your xml and how complex the rest
of the app is). -
I have some more problem in the web.xml file and url-pattern in my syste
HI ALL!
How can I create and place the web.xml and URL-parrten.Because I run
the tomcat in my computer with ME system.
Hocwhat is the problem? please be more specific and detailed? check a sample web.xml file and make your own one and place it in your <application-context>\WEB-INF folder..
-
i am having a problem with my taglib in xml file. I use html:hidden taglib to pass the parameter which is not visible at the form. It is working properly at the form that I which to implement it, but however it cause an error to another form. How should I handle it? Can anyone help me. I really need help on this one.
Could you pls describe the problem clearly so that i can analyse where the problem is....
-
Problem with CFMX web service function return
I made a post yesterday about a web service function I was
writing, as it turns out my post was extremly incorrect for my
problem. With this web service function I can return an array just
fine, I can return one instance of an object just fine, however,
when I try to return an array of the object I keep getting the
error:
Could not perform web service invocation "SelectGames"
because AxisFault faultCode: {
http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode: faultString: [org.apache.axis.AxisFault : ; nested
exception is: coldfusion.xml.rpc.CFCInvocationException:
[java.lang.IncompatibleClassChangeError : Dependent CFC type(s)
have been modified. Please refresh your web service client.]];
nested exception is: coldfusion.xml.rpc.CFCInvocationException:
[org.apache.axis.AxisFault : ; nested exception is:
coldfusion.xml.rpc.CFCInvocationException:
[java.lang.IncompatibleClassChangeError : Dependent CFC type(s)
have been modified. Please refresh your web service client.]]
faultActor: faultNode: faultDetail: {
http://xml.apache.org/axis/}stackTrace:
AxisFault faultCode: {
http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode: faultString: [org.apache.axis.AxisFault : ; nested
exception is: coldfusion.xml.rpc.CFCInvocationException:
[java.lang.IncompatibleClassChangeError : Dependent CFC type(s)
have been modifie..
which basically means that the CF server needs restarted.
However if I restart the CF server, no matter how many times I am
still getting this error. If I change up my web service function to
return just a normal array of integers or strings, or I change it
to return one instance of the arbritrary complex type it all works
just fine. I am still a little new on this subject and any
enlightenment would be great. If anyone has found a way around this
please let me know.
Here is my complex type:
<cfcomponent>
<cfproperty name="Game_id" type="numeric">
<cfproperty name="gameDate" type="date">
<cfproperty name="Starttime" type="string">
<cfproperty name="Place" type="string">
<cfproperty name="Level" type="string">
<cfproperty name="Sport" type="string">
<cfproperty name="Gender" type="string">
<cfproperty name="Opponent" type="string">
<cfproperty name="Type" type="string">
<cfproperty name="Link" type="string">
</cfcomponent>
I loop trhough a query and set a cfobject of the types above,
then I append that object to an array and try t o return the array.
Here is the basics of the loop:
<cfset theArray = arrayNew(1)>
<cfobject component = "games" name = "test>
<cfloop query ...>
<!--- set values to test ---->
<cfset arrayApend(theArray, test)>
</cfquery>
<cfreturn theArray>
my return type is array, I think the problem is I need to
specify the return type to be an array of arbritray complex types
which is impossible to do in CF. Anyone find a way to get around
this?? Any feed back at all would be greatly appreciated.Yes, I have tried it and return type any does not work in
this situation since this function is being consumed by a web
service. It needs to be in the form of an array of arbritrary type
that is defined in a cfc file. Since this is WSDL the returntype
has to be specified to every last bit. -
Problem with Google Web-Service Example
Hi guys,
i have a problem with the Google Web-Service Example.
I am running EP6.0 SP9 and NWDVST 2.0.9
I did everything according to the tutorial. Got my google license key too.
When i test the web-service i get the following exception:
+
#1#com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component
Component : pcd:portal_content/com.studie.webdynpro1/com.Allgemein.Allgemein/com.Allgemein.iViews/com.Allgemein.Google
Component class : com.tutorial.wsdl2service.MyGooglePage
User : Administrator
at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:969)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:343)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:232)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:153)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
Caused by: com.sapportals.portal.prt.component.PortalComponentException: Exception during PageProcessorComponent.doContent()
at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:139)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
... 29 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:172)
at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:115)
at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
... 32 more
Caused by: com.sapportals.portal.prt.service.ServiceException: Service not found: MyGoogleService
at com.sapportals.portal.prt.core.service.ServiceManager.getPortalServiceItem(ServiceManager.java:384)
at com.sapportals.portal.prt.core.service.ServiceManager.get(ServiceManager.java:184)
at com.sapportals.portal.prt.runtime.Portal$RuntimeResources.getService(Portal.java:132)
at com.tutorial.wsdl2service.MyGooglePage$GoogleDynPage.onSearchButtonClicked(MyGooglePage.java:98)
... 39 more+
My XML File has the following content:
++
The MyGooglePage.java includes the following line:
IMyGoogleService googleService = (IMyGoogleService) PortalRuntime.getRuntimeResources().getService("MyGoogleService");
any ideas what the problem is? I read all of the existing forum threads about this topic but could not solve the problem.
Message was edited by: Dirk Jäckelno ideas so far?
-
Problems with Oracle Web Logic 10.3.6, certificates and proxies
Good morning.
We are trying to establish a SSL connection using Apache Cxf and WebLogic Server 10.3.6.
For that, we are passing through a proxy. Using Apache Tomcat, the test is ok, we can connect to the endpoint correctly. But in WebLogic 10.3.6, we have problems with the certificates.
In our code, we are loading the certificates programatically.
The web-services-config.xml is the following:
<?xml version="1.0" encoding="UTF-8"?>
<beans
xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd"
xmlns:http="http://cxf.apache.org/transports/http/configuration"
xmlns:sec="http://cxf.apache.org/configuration/security" xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/beans">
<jaxws:client address="@SNE.SNE_WS_URL@"
serviceClass="com.bankia.sne.ws.clientes.buzonAPESNE.APESNEBuzonWSTipoPuerto"
id="puertoAPESNEBuzonWS" />
<http:conduit name="@SNE.SNE_WS_URL@">
<http:client Connection="Keep-Alive" AutoRedirect="true"
ProxyServerType="HTTP" ProxyServerPort="@SNE.PROXY_PORT@"
ProxyServer="@SNE.PROXY_HOST@" />
<http:proxyAuthorization>+
<sec:UserName>@SNE.PROXY_USER@</sec:UserName>
<sec:Password>@SNE.PROXY_PASSWORD@</sec:Password>
</http:proxyAuthorization>
<http:tlsClientParameters>
<sec:cipherSuitesFilter>
<!-- these filters ensure that a ciphersuite with export-suitable or
null encryption is used, but exclude anonymous Diffie-Hellman key change
as this is vulnerable to man-in-the-middle attacks -->
<sec:include>.*EXPORT.*</sec:include>
<sec:include>.*EXPORT1024.*</sec:include>
<sec:include>.*WITHDES_.*</sec:include>
<sec:include>.*WITHNULL_.*</sec:include>
<sec:exclude>.*DHanon_.*</sec:exclude>
</sec:cipherSuitesFilter>
</http:tlsClientParameters>
</http:conduit>
</beans>
That's the code used for establish the CXF connection:
private void configuraConexion(Buzon buzon){
try {
LOGGER.debug("Configurando conexión con el sevicio Web para el buzón con id " + buzon.getId() + " ...");
Client client = ClientProxy.getClient(puertoAPESNEBuzonWS);
HTTPConduit httpConduit = (HTTPConduit) client.getConduit();
TLSClientParameters tlsParams = httpConduit.getTlsClientParameters();
Certificado certificado = buzon.getCertificado();
byte[] bytes = certificado.bytesCertificado();
CertificadoSerializable certSerializado = (CertificadoSerializable)Serializador.desserializar(bytes);
//Cargamos el truststore de disco
TrustManagerFactory trustFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
KeyStore truststore = KeyStore.getInstance(Propiedades.getProperty(KEY_SERVICIO_WEB_ALMACEN_TRUSTSTORE));
String contrasenia = Propiedades.getProperty(KEY_SERVICIO_WEB_TRUSTORE_PASSWORD);
// -- provide your truststore
File ficheroTruststore = null;
String rutaTrustore = Propiedades.getProperty(KEY_SERVICIO_WEB_TRUSTORE_RUTA) Propiedades.getProperty(KEY_SERVICIO_WEB_NOMBRE_TRUSTSTORE);
LOGGER.debug("rutaTrustore --> " + rutaTrustore);
if (rutaTrustore!=null){+
ficheroTruststore = new File(rutaTrustore);
URL url = null;
if(ficheroTruststore == null || !ficheroTruststore.exists()){
url = Localizador.getResource(Propiedades.getProperty(KEY_SERVICIO_WEB_NOMBRE_TRUSTSTORE));
ficheroTruststore = new File(url.getPath());
truststore.load(url.openStream(), contrasenia.toCharArray());
}else{
truststore.load(new FileInputStream(ficheroTruststore), contrasenia.toCharArray());
LOGGER.info("[ServicioWSBuzonAPESNEImpl.configuraConexion] Fichero truststore.pks recuperado de "+ficheroTruststore.getPath());
trustFactory.init(truststore);
TrustManager[] tm = trustFactory.getTrustManagers();
tlsParams.setTrustManagers(tm);
//Cargamos el Keystore de base de datos
KeyStore keyStore = KeyStore.getInstance(Propiedades.getProperty(KEY_SERVICIO_WEB_TIPO_ALMACEN_KEYSTORE));
keyStore.load(null, certificado.getContrasenia().toCharArray());
keyStore.setKeyEntry(certificado.getAlias(), certSerializado.getClavePrivada(), certificado.getContrasenia().toCharArray(), certSerializado.getCadena());
// set our key store+
// (used to authenticate the local SSLSocket to its peer)
KeyManagerFactory keyFactory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
keyFactory.init(keyStore, certificado.getContrasenia().toCharArray());
KeyManager[] km = keyFactory.getKeyManagers();
tlsParams.setKeyManagers(km);
httpConduit.setTlsClientParameters(tlsParams);
LOGGER.debug("Conexión configurada satisfactoriamente");
}catch (Exception e) {
LOGGER.error("Error al configurar la conexión del servicio Web", e);
throw new WSBuzonException("Error al configurar la conexión del servicio Web: " + e.getMessage());
We don't know how to solve this issue? Please, could you help us?
Thanks in advance,
Jaime.
Edited by: j2eedevelopment on 10-jul-2012 10:05Hi Zack, thanks for the answer.
I've cleaned the code below.
Our problem is the following: we wan't to use many keystores, in function the user who is connected in the application. For that reason, we wan't to give the keyStore from Java Client, because we've saw that, in WebLogic, you can select one keystore, but only one. For that reason, we wantto change the keystore in run time execution, dinamically.
The problem we have found are the following:
1) If we configure WebLogic with the correct keystore and trustore, we are not able to change keysotre and trustore in runtime execution, so we have to us always the same keystore and we don't want this.
2) Also, I'm trying now to use JaxWS instead Apache Cxf, and I've tried to put the ssl properties of the system with the following code:
System.setProperty(JAVAXNETSSLTRUST_STORE, trustore);
System.setProperty(JAVAXNETSSLTRUST_STORE_PASSWORD, trustStorePassword);
System.setProperty(JAVAXNETSSLKEY_STORE, keyStore);
System.setProperty(JAVAXNETSSLKEY_STORE_PASSWORD, keyStorePassword);
System.setProperty(JAVAXNETSSLKEY_STORE_TYPE, keyStoreType);
Thanks in advance,
Jaime. -
J2EE 1.4 Tutorial - problems with deploying web services
Hi folks,
I have a problem with the deployment of the example "MyHelloService" (chapter 8: Building Web Services With JAX-RPC).
I've installed the application server properly and executed all the necessary steps written down in the tutorial (Packaging the Service and Specifying the Endpoint Address).
While deploying the service I get the following error message:
Deploy action running...
com.sun.enterprise.admin.common.exception.DeploymentException: com.sun.enterprise.config.ConfigException: Failed to load deployment descriptor for: MyHelloService
cause: Premature end of file.
at com.sun.enterprise.admin.server.core.mbean.config.ManagedServerInstance.deployWarModuleArchiveOrDirectory(ManagedServerInstance.java:1099)
at com.sun.enterprise.admin.server.core.mbean.config.ManagedServerInstance.deployWarModule(ManagedServerInstance.java:1003)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.admin.server.core.jmx.Introspector.invokeMethodOn(Introspector.java:181)
at com.sun.enterprise.admin.server.core.mbean.config.AdminBase.invoke(AdminBase.java:86)
at com.sun.enterprise.admin.server.core.mbean.config.ConfigMBeanBase.invoke(ConfigMBeanBase.java:663)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:212)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:218)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:808)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:781)
at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:223)
at com.sun.enterprise.admin.server.core.servlet.AdminAPIEntryServlet.callInvoke(AdminAPIEntryServlet.java:203)
at com.sun.enterprise.admin.server.core.servlet.AdminAPIEntryServlet.callMBean(AdminAPIEntryServlet.java:162)
at com.sun.enterprise.admin.server.core.servlet.AdminAPIEntryServlet.doGet(AdminAPIEntryServlet.java:103)
at com.sun.enterprise.admin.server.core.servlet.AdminAPIEntryServlet.doPost(AdminAPIEntryServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at sun.reflect.GeneratedMethodAccessor137.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:212)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:149)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:282)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:206)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2748)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:186)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:512)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:383)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:199)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:630)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:463)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:568)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:631)
at java.lang.Thread.run(Thread.java:536)
!!! Operation Failed !!!
[Completed (time=4.1sec, status=13)]
I verified the deployment descriptor and unpacked the WAR, but there seems to be no mistake. I don't know what to do...I can't imagine that this is a bug, so maybe I've done something wrong.
Any help would be appreciated.Thank you for your answer, but I encountered the problem with the defect WAR file already in chapter 3 (Getting Started with Web Applications). I searched the forum and found the thread you recommended, made the adjustments in the deploytool.bat file and so fixed the problem.
Thus your recommendation is unfortunately not the right solution for my problem.
For verification purposes, here is an extract from my deploytool.bat file:
set _USER_COUNTRY=US
set _USER_LANG=en
set _USER_REGION=US
set _MAIN=com.sun.enterprise.tools.deployment.ui.Main
set _CPATH=%LIB%\appserv-assemblytool.jar;%AS_IMQ_LIB%\activation.jar; %AS_JHELP%\jhall.jar;%LIB%\appserv-admin.jar;%LIB%\appserv-cmp.jar; %LIB%\appserv-rt.jar;%LIB%\j2ee.jar; %AS_INSTALL%\share\lib\jaxrpc-impl.jar;%LIB%\appserv-ext.jar; %LIB%\deployhelp.jar
echo %_JAVACMD% -Dcom.sun.aas.installRoot="%AS_INSTALL%" -Djava.endorsed.dirs=%AS_INSTALL%\share\lib\endorsed -Dcom.sun.aas.defaultUserName="%AS_ADMIN_USER%" -Dcom.sun.aas.defaultPassword="%AS_ADMIN_PASSWORD%" -Duser.country="%_USER_COUNTRY%" -Duser.language="%_USER_LANG%" -Duser.region="%_USER_REGION%" -cp %_CPATH% %_MAIN% %1 %2
%_JAVACMD% -Dcom.sun.aas.installRoot="%AS_INSTALL%" -Djava.endorsed.dirs=%AS_INSTALL%\share\lib\endorsed -Dcom.sun.aas.defaultUserName="%AS_ADMIN_USER%" -Dcom.sun.aas.defaultPassword="%AS_ADMIN_PASSWORD%" -Duser.country="%_USER_COUNTRY%" -Duser.language="%_USER_LANG%" -Duser.region="%_USER_REGION%" -cp %_CPATH% %_MAIN% %1 %2In addition, I used the verification option from the deploytool and checked the deployment descriptor with the following results (only passed tests):
Test Name : tests.web.ServletLargeIcon
There are no large-icon elements within the servlet [ helloservice.HelloImpl ].
Test Name : tests.web.ServletClass
Servlet class [ helloservice.HelloImpl ] resides in the WEB-INF/classes directory.
Test Name : tests.web.SessionTimeout
Servlet session-timeout [ 30 ] element defines the default session timeout interval expressed in whole minutes.
Test Name : tests.web.ServletInterface
Not Applicable since, Servlet [ helloservice.HelloImpl ] is a JAXRPC Endpoint.
Test Name : tests.web.ParamValue
Test Name : tests.web.ServletSmallIcon
There are no small-icon elements in the servlet [ helloservice.HelloImpl ].
Test Name : tests.web.WebName
Web-App display name is : [ MyHelloService.war ]
Test Name : tests.web.ServletParamName
ServletParam name exists in the web application.
Test Name : tests.web.ResourceAuth
Test Name : tests.web.ServletParamValue
Test Name : tests.web.JarContainsXMLFile
Found deployment descriptor xml file [ WEB-INF/web.xml ]All the other tests were notapplicable (no errors).
Moreover, I unpacked the WAR file (MyHelloService.war): all necessary XML files were included and well-formed. -
What is problem with my web services application?
Hi Everyone, I have a question for you.
I created a web service, and tried to call its method within a JSF application (developed by JSC2). Following is what I got:
1) It works with TravelWS example.
2) It works if I called my web services' methods from a standalone Java program.
3) It does NOT work if I call it within my JSF applicationBean1() or JSP pages.
4) After adding my own web services into my JSF through JSC IDE, I tested my methods provided by web services. Two of them are working. But rest of them do not.
If it is the problem of my web service, why my standalone Java program works?
If it is the problem of my JSF application configuration, why TravelWS example works?
What can the problem be? Can someone give me some suggestions?
Any help is appreciated.Thanks both of you for the response.
Here is my situation. The web service is developed by another team. And we are trying to call their methods in our JSF application. From the example provided by the web service team, I need to do following in my JSF code:
myWebServiceLocator locator = new myWebServiceLocator();
locator.setMyWebServiceSoapEndpointAddress( "http://mywebserviceurl./axis/services/myWebServiceSoap" );
locator.setMaintainSession( true );
this.myWebService = locator.getMyWebServiceSoap();
The problem is that the locator above extends org.apache.axis.client.Service, however, the JSF generated client creates a javax.xml.rpc.Service object. I guess this might cause my problem.
How to solve this?
Maybe you are looking for
-
How to get add/edit button in classic report
Hi, Iam trying to built a classic report,but here i need to have add/edit button.How can i achieve this in classic reports? I know this add/edit button with a pencil on note will come through the interactive report. But here iam trying to build a pag
-
How to get field separator in flat file using GUI_DOWNLOAD function
hi, how to get field separator in flat file using GUI_DOWNLOAD function. thanking you.
-
I am a new to the iphone world don't really understand the new carrier update and any insight would be highly appreciated
-
IOS 8 WiFi and Keyboard problems
Sorry for my english, I'm from Russia. After updating my iPhone 5 started very fast discharge (the same thing I found on the iPad Air). Just Wifi was much weaker ,signal catches very very bad.More.. side of the keyboard do not work correctly, they fl
-
OSB - Xquery - Eclipse shows warning when a repeating node is repeated
Hi, I have a requirement where a node needs to be repeated. This cannot go into a FOR LOOP as data to be mapped to Target XSD, are constants. For this, I repeated the node, by just changing the data in the Name and Value field. When I do this, eclips