I want to deploy an application in WAS8.5.5.2. I have made the ear with the structure :
serverEar.ear
— serverWar.war
—- WEB-INF
—- ‘web’ directory contents
I have application.xml :
<application version="6" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" >
<module>
<web>
<web-uri> serverWar.war</web-uri>
<context-root>serverWar</context-root>
</web>
</module>
<library-directory> web/lib</library-directory>
</application>
web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">
<servlet>
<servlet-name>p1</servlet-name>
<servlet-class>com.test.Server</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>p1</servlet-name>
<url-pattern>/server</url-pattern>
</servlet-mapping>
<security-constraint>
<display-name/>
<web-resource-collection>
<web-resource-name/>
<description/>
<url-pattern>/*</url-pattern>
<http-method>POST</http-method>
<http-method>GET</http-method>
</web-resource-collection>
<user-data-constraint>
<description/>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
</web-app>
I have the directory structure :
I have installed the application from WAS ibm/console. The installation directory is ..DesktopTestoutartifactsserverEar
where my ear file is placed (Not sure if the installation directory affects this?).
Application has been installed successfully and is started.
I have tried the url : https://my_server:9443/serverWar/server and it gives me : Error 404: java.io.FileNotFoundException: SRVE0190E: File not found: /server
I have never handled WAS before and am not sure where I might be going wrong.
Any suggestions, pointers are highly appreciated!
Problem
You might get «Error 404: javax.servlet.ServletException: java.io.FileNotFoundException: SRVE0190E: File not found» when clicking on the Download option for a Result Set in the Start Center.
Symptom
Resolving The Problem
Steps to replicate :
— Go to the Start Center
— In the Result Set portlet, click on the «Download» option to export the Result Set data.
You will get «Error 404: javax.servlet.ServletException: java.io.FileNotFoundException: SRVE0190E: File not found: /dcsv/1485171477126»
In order to fix this issue,
— Open the web.xml file located under C:IBMSMPmaximoapplicationsmaximomaximouiwebwebmoduleWEB-INF
— Add the lines below accordingly.
<servlet>
<servlet-name>downloadcsvservlet</servlet-name>
<servlet-class>psdi.webclient.servlet.DownloadCSVServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>downloadcsvservlet</servlet-name>
<url-pattern>/dcsv/*</url-pattern>
</servlet-mapping>
— Rebuild and redeploy the maximo.ear file and restart the application server.
The problem will be fixed: the «Download» action for a Result Set will work.
[{«Product»:{«code»:»SSLKT6″,»label»:»IBM Maximo Asset Management»},»Business Unit»:{«code»:»BU059″,»label»:»IBM Software w/o TPS»},»Component»:»System Related»,»Platform»:[{«code»:»PF025″,»label»:»Platform Independent»}],»Version»:»7.6;7.6.0.5;7.6.0.6″,»Edition»:»»,»Line of Business»:{«code»:»LOB59″,»label»:»Sustainability Software»}}]
Skip to content
If you use ServletFilters that are mapped to URLs/resources that don’t physically exist (e.g. such as Paul Tuckey’s UrlRewriteFilter) IBM WebSphere 6.1 will answer such requests with “Error 404: SRVE0190E”. If WebSphere runs in trace mode you’ll see a
FileNotFoundException
in the log file.
How to work around SRVE0190E
This is yet another idiotic WebSphere behavior that you need to work around. Set
com.ibm.ws.webcontainer.invokefilterscompatibility=true |
in Servers → Server → Web Container Settings → Web Container → Custom Properties.
IBM has more information about SRVE0190E and invokefilterscompatibility=true
in their custom properties documentation, search for “Invoking the filter capability”, and on the respective support document (for fix pack 6.1.07). Since the URLs to those documents might become invalid in the future I persisted the latter in a PDF.
Update 2012-10-14
Although my post specifically says WebSphere 6.1 I keep getting request about SRVE0190E for WebSphere X.Y. I don’t know anything about anything other than 6.1 as I try my best to stay away from anything WebSphere-related as far as I can. However, others claim that for the same problem in WebSphere 8 (I didn’t say 7 or 9 or whatever) the settings need to be
com.ibm.ws.webcontainer.mapFiltersToAsterisk=true com.ibm.ws.webcontainer.removetrailingservletpathslash=true com.ibm.ws.webcontainer.invokeFiltersCompatibility=true |
Hi, I got this error message as this pic: http://imgur.com/a/JaRqF
I don’t know what this means. How can I solve it?
I can just ignore this error message and the Conversation still works well. But when Retrieve and Rank be triggered, there will be just a loading icon without any response until I enter next message.
This error occurs both on http://conversation-enhanced.mybluemix.net/ and my own deployment.
I’ve been trying hard to solve this problem but in vain.
Please help me, thanks!
@henry921630
Hi, we feel that this issue is occurring because the language set in your browser is non-English. In the meantime as we try to solve this issue, you could fix it for yourself by providing a translated zh.json file under the folder, conversation-enhanced/src/main/webapp/locale
(or just copy the english one, en.json
, in there as a zh.json
file), or setting your browser language to English.
resolving, this should be fixed by #56
Hello everyone,
Today I would like to share with you one error that took 2 days to get it fixed.
Running WebSphere over a RAD eclipse environment I’ve configured all the details related of JDBC connection, libraries needed for the project and so on.
But it fails in LDAP piece giving an error once I try to login in my application:
Error 404: java.io.FileNotFoundException: SRVE0190E: File not found: /j_security_check
Here it’s what I had in my WebSphere configured at that time for Ldap:
The problem is: when you have an LDAP authentication available for you application that’s using WebSphere 8.5, it needs as well a security enable configuration, using a valid userID and password for LDAP purposes. So, you must configure this click two times in your WebSphere App Server in the Eclipse RAD server tab.
So, once you configure it properly your app should be generating the /j_security_check file. And your Admin Console should be login only with a valid ldap_user and password as below:
I hope it helps and fix your ldap/app issues.
happy coding!!
Thiago Leoncio.
Hmm, so I am seeing this: —
Error 404: java.io.FileNotFoundException: SRVE0190E: File not found: /index.html
when I attempt to access a HTML page from IBM HTTP Server via HTTPS: —
even though I can get the page via HTTP: —
This is part of an IBM BPM Advanced 8.5.5 infrastructure, and the most recent change was to add IHS into the mix, federate it into the WAS cell, and add a Virtual Host entry for port 8443: —
cellID=AdminControl.getCell()
AdminConfig.create(‘HostAlias’, AdminConfig.getid(‘/Cell:’+cellID+’/VirtualHost:default_host/’), ‘[[hostname «*»] [port «8443»]]’)
AdminConfig.save()
AdminNodeManagement.syncActiveNodes()
quit
I tried enabling further debugging in IHS by changing: —
to: —
in: —
/opt/IBM/HTTPServer/conf/httpd.conf
but the only thing that popped up in access_log was: —
192.168.1.70 — — [14/Nov/2014:15:08:26 +0000] «GET / HTTP/1.1» 404 42
and nothing useful in error_log.
I wondered whether the problem was related to the WAS Plugin, which was configured at the end of httpd.conf : —
LoadModule was_ap22_module «/opt/IBM/WebSphere/Plugins/bin/64bits/mod_was_ap22_http.so»
WebSpherePluginConfig /opt/IBM/WebSphere/Plugins/config/webserver1/plugin-cfg.xml
so I temporarily commented out both lines, and restarted IHS.
At that point, getting index.html via HTTP *and* HTTPS worked a treat.
So it’s definitely somehow related to the Plugin and/or WAS.
I enabled debug in the plugin, by changing: —
<Log LogLevel=»Error» Name=»/opt/IBM/WebSphere/Plugins/logs/webserver1/http_plugin.log»/>
to: —
<Log LogLevel=»Debug» Name=»/opt/IBM/WebSphere/Plugins/logs/webserver1/http_plugin.log»/>
in: —
/opt/IBM/WebSphere/Plugins/config/webserver1/plugin-cfg.xml
and can see: —
[14/Nov/2014:15:01:23.89900] 000045c2 057fb700 — DETAIL: GET /index.html HTTP/1.1
[14/Nov/2014:15:01:23.89901] 000045c2 057fb700 — DETAIL: Host: bpm855.uk.ibm.com:8443
[14/Nov/2014:15:01:23.89901] 000045c2 057fb700 — DETAIL: Cache-Control: max-age=0
[14/Nov/2014:15:01:23.89902] 000045c2 057fb700 — DETAIL: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
[14/Nov/2014:15:01:23.89902] 000045c2 057fb700 — DETAIL: User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.122 Safari/537.36
[14/Nov/2014:15:01:23.89903] 000045c2 057fb700 — DETAIL: DNT: 1
[14/Nov/2014:15:01:23.89903] 000045c2 057fb700 — DETAIL: Accept-Encoding: gzip,deflate,sdch
[14/Nov/2014:15:01:23.89904] 000045c2 057fb700 — DETAIL: Accept-Language: en-US,en;q=0.8
[14/Nov/2014:15:01:23.89905] 000045c2 057fb700 — DETAIL: Cookie: JSESSIONID=00002GxGEWjz6XsUDTV69LDQYmi:196509vjn; CoreID6=40736703432114159613577&ci=50200000|ESTKCS; UnicaNIODID=JOlYGvtFslm-Y5kRjJ7; CoreM_State=72~-1~-1~-1~-1~3~3~5~3~3~7~7~|~~|~~|~~|~||||||~|~~|~~|~~|~~|~~|~~|~~|~; CoreM_State_Content=6~|~38D1983DAF0161AD~|~0; 50200000|ESTKCS_clogin=v=1&l=1415961357&e=1415963160646; LtpaToken2=ELcJ3s000hNQAmekT9IFK4NhSC419BFnN4WsQxjSBdXOIt78jL/UVc/tSQd4p+wBCpygJwkLG51qhZQcYOoZN0PNsYOwLyow8ERnvf4jeWyqw45ZetsBSErQjemaZHoHXMyO8c85FdH4edxT5M5AFdojKPpKKAabTKe94Jm2KAlsGb6Mw5BkQMkVIIocUMqTFqpoyBxmxGbADGAjJ86eiI+1MtYQXVFYggAIevtQllckeB77xEkionOnm1q0POYq+5CLdjVpGxXE0sizd2vua5iySBjWoIuIR6pfhfBw8DE8htetEXvHzJlDBErGXcUdo43zMeQQINzSxAYzWsEvlxjxCqYEuEpYSzplj7Kf8RmM4QSjtYWc+v9ZmHYgGBA9; sessionCode=514564614; TJE=; TE3=
[14/Nov/2014:15:01:23.89905] 000045c2 057fb700 — DETAIL: $WSCS: TLS_RSA_WITH_AES_128_GCM_SHA256
[14/Nov/2014:15:01:23.89906] 000045c2 057fb700 — DETAIL: $WSIS: true
[14/Nov/2014:15:01:23.89907] 000045c2 057fb700 — DETAIL: $WSSC: https
[14/Nov/2014:15:01:23.89907] 000045c2 057fb700 — DETAIL: $WSPR: HTTP/1.1
[14/Nov/2014:15:01:23.89908] 000045c2 057fb700 — DETAIL: $WSRA: 192.168.1.70
[14/Nov/2014:15:01:23.89908] 000045c2 057fb700 — DETAIL: $WSRH: 192.168.1.70
[14/Nov/2014:15:01:23.89909] 000045c2 057fb700 — DETAIL: $WSSN: bpm855.uk.ibm.com
[14/Nov/2014:15:01:23.89909] 000045c2 057fb700 — DETAIL: $WSSP: 8443
[14/Nov/2014:15:01:23.89910] 000045c2 057fb700 — DETAIL: $WSSI: wkUAAOMXLq4ktsQ6fdbYIboGeENYWFhYQxlmVAAAAAI=
[14/Nov/2014:15:01:23.89910] 000045c2 057fb700 — DETAIL: Surrogate-Capability: WS-ESI=»ESI/1.0+»
[14/Nov/2014:15:01:23.89911] 000045c2 057fb700 — DETAIL: _WS_HAPRT_WLMVERSION: -1
[14/Nov/2014:15:01:23.89916] 000045c2 057fb700 — DEBUG: ws_common: websphereExecute: Wrote the request; reading the response (timeout 900)
[14/Nov/2014:15:01:23.89917] 000045c2 057fb700 — DETAIL: lib_htresponse: htresponseRead: Reading the response: f002ab30
[14/Nov/2014:15:01:23.90631] 000045c2 057fb700 — DETAIL: HTTP/1.1 404 Not Found
[14/Nov/2014:15:01:23.90637] 000045c2 057fb700 — DETAIL: X-Powered-By: Servlet/3.0
[14/Nov/2014:15:01:23.90638] 000045c2 057fb700 — DETAIL: Content-Type: text/html;charset=ISO-8859-1
[14/Nov/2014:15:01:23.90639] 000045c2 057fb700 — DETAIL: $WSEP:
[14/Nov/2014:15:01:23.90639] 000045c2 057fb700 — DETAIL: Content-Language: en-GB
in: —
/opt/IBM/WebSphere/Plugins/logs/webserver1/http_plugin.log
So this suggests that the request is being forwarded, by IHS, via the WAS Plugin, to WAS.
So I drilled into the plugin-cfg.xml file a bit more.
Logic dictated that the problem was somehow related to the context root of the URL, in that the page I’m requesting — /index.html — doesn’t have the usual context root of, say, /ProcessCenter or /ProcessPortal.
Lo and behold, in plugin-cfg.xml, I can see: —
<ServerCluster CloneSeparatorChange=»false» GetDWLMTable=»false» IgnoreAffinityRequests=»false» LoadBalance=»Round Robin» Name=»dmgr_Dmgr_Cluster» PostBufferSize=»0″ PostSizeLimit=»-1″ RemoveSpecialHeaders=»true» RetryInterval=»60″ ServerIOTimeoutRetry=»-1″>
<Server ConnectTimeout=»0″ ExtendedHandshake=»false» MaxConnections=»-1″ Name=»Dmgr_dmgr» ServerIOTimeout=»900″ WaitForContinue=»false»/>
</ServerCluster>
<UriGroup Name=»default_host_AppCluster_URIs»>
…
<Uri AffinityCookie=»JSESSIONID» AffinityURLIdentifier=»jsessionid» Name=»/*»/>
…
</UriGroup>
<Route ServerCluster=»AppCluster» UriGroup=»default_host_AppCluster_URIs» VirtualHostGroup=»default_host»/>
Now where did that little sucker come from ?
I checked the source, which is held at the WAS cell level: —
/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/config/cells/PCCell1/nodes/Node1/servers/webserver1
which has the same thing.
I’m going to retrace my steps but …. at least I have a successful resolution / circumvention, which is nice.
Issue
I’m understanding Bluemix. I can deploy an app in it, but when I enter the URL I get this error. Why does this happen?
:Error 404: SRVE0190E: File not found: /
This is my servlet class:
@WebServlet(description = "My First Servlet", urlPatterns = { "/FirstServlet" , "/FirstServlet.do"}, initParams = {@WebInitParam(name="id",value="1"),@WebInitParam(name="name",value="pankaj")})
public class FirstServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
public static final String HTML_START="<html><body>";
public static final String HTML_END="</body></html>";
/**
* @see HttpServlet#HttpServlet()
*/
public FirstServlet() {
super();
// TODO Auto-generated constructor stub
}
/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
PrintWriter out = response.getWriter();
Date date = new Date();
out.println(HTML_START + "<h2>Hi There!</h2><br/><h3>Date="+date +"</h3>"+HTML_END);
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
}
}
and the jsp file:
<%@page import="java.util.Date"%>
<%@ page language="java" contentType="text/html; charset=US-ASCII"
pageEncoding="US-ASCII"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Hello</title>
</head>
<body>
<h2>Hi There!</h2>
<br>
<h3>Date=<%= new Date() %>
</h3>
</body>
</html>
How can solve this error?
Solution
What’s your .jsp filename?
Enter index.jsp as the file name and then try again!
Answered By — RiyaMRoy
Answer Checked By — Katrina (JavaFixing Volunteer)
Я хочу развернуть приложение в WAS8.5.5.2. Я сделал ухо со структурой:
serverEar.ear
— serverWar.war
—- WEB-INF
—- ‘web’ содержимое каталога
У меня application.xml:
<application version="6" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" >
<module>
<web>
<web-uri> serverWar.war</web-uri>
<context-root>serverWar</context-root>
</web>
</module>
<library-directory> web/lib</library-directory>
</application>
web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">
<servlet>
<servlet-name>p1</servlet-name>
<servlet-class>com.test.Server</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>p1</servlet-name>
<url-pattern>/server</url-pattern>
</servlet-mapping>
<security-constraint>
<display-name/>
<web-resource-collection>
<web-resource-name/>
<description/>
<url-pattern>/*</url-pattern>
<http-method>POST</http-method>
<http-method>GET</http-method>
</web-resource-collection>
<user-data-constraint>
<description/>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
</web-app>
У меня есть структура каталогов:
Я установил приложение из WAS ibm/console. Каталог установки ..DesktopTestoutartifactsserverEar
, где находится мой файл уха (не уверен, что каталог установки влияет на это?).
Приложение успешно установлено и запущено.
Я пробовал URL: https://my_server:9443/serverWar/server, и он дает мне: Error 404: java.io.FileNotFoundException: SRVE0190E: File not found: /server
Я никогда не занимался WAS раньше и не знаю, где я могу ошибиться.
Любые предложения, указатели высоко оценены!