Tomcat servlet/JSP container default files on 10gAS(10.1.2.0.2)
Hi Friends,
I am using Oracle Application Server 10g (10.1.2.0.2) on windows
I have the Vulnerability: Apache Tomcat servlet/JSP container default files.
and the fix is Review the files and delete those that are not needed.
i would like to know the location of the files to review and delete.Please suggest?
Regards,
DB
Apache/Tomcat is not related to OAS, where did you get this info? OAS is based in a Orion Web Server and Apache HTTP Server, not Tomcat.
For this kind of problems there are the CPU you may want to check in Metalink for them.
Can you clarify also what default files?
Greetings.
Similar Messages
-
IPlanet as a servlet/jsp container
is it possible to use IPlanet server as a servlet/jsp Container.if it is then tell the guidelines
Yeah, and Apache is a more configurable/robust HTTP server. Tomcat has only a basic HTTP server built-in.
It is also a dessert topping. -
Disable tomcat servlet & jsp examples
Running apache 2.0.63 on my nw65sp8 server, using it to host my web
page. Server is also running tomcat 4.1 for misc other things such as
GW webaccess.
I'm wondering what I need to do to 'disable' the servlet & jsp examples
from being available from my webpage.
IE, so if I go to the following urls, nothing happens:
http://my_web_page/examples/servlets/index.html
http://my_web_page/examples/jsp/index.html
https://my_web_page/examples/servlets/index.html
https://my_web_page/examples/jsp/index.html
Thanks,
StevoNevermind, got it.
In the portion of my httpd.conf where I'm loading the jk_module stuff
(IIRC I had to put this stuff in for webaccess), I rem'd out the line
to jkmount the examples.
Stevo -
Object living with servlet/jsp container
How do I make an Object live until the servlet container lives? I mean I want an Object to be instantiated once in the lifetime of the webserver session and its has to be singleton and should live alive until the webserver dies? How can I make this possible? I should be able to keep that object alive even if any no references are made to the object. Moreover I should be able to access that object from any java class on that webserver?
You can't do this in memory. The easiest thing to do would be to read/write the persistant data you need from disk.
Anything your JSP or servlet creates in memory will be cleared when it is done serving the request. -
Object living along with servlet/jsp container
How do I make an Object live until the servlet container lives? I mean I want an Object to be instantiated once in the lifetime of the webserver session and its has to be singleton and should live alive until the webserver dies? How can I make this possible? I should be able to keep that object alive even if any no references are made to the object. Moreover I should be able to access that object from any java class on that webserver?
if mean u want to keep the object live for
one user session
use session.setAttribute("name",object)
and if mean for the time btw start up and shutdown of the
server use application scope
alternatively
use session scope in bean or application scope as needed
like
<jsp:useBean id="db_in" scope="session" class="com.ww.ert.Bean_IN" />
or
<jsp:useBean id="db_in" scope="application" class="com.ww.ert.DatabaseBean_IN" />
Regards
manu -
Servlet downloads Excel file ok but also attempts Servlet & JSP files !!
Hi,
My Servlet code downloads a csv into Excel as required BUT it also attempts to download the JSP file (that calls the servlet) and the Servlet file as well.... How do I ensure that only the csv file is downloaded. I am using the following code.
<servlet code>
public void doPost(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
ServletOutputStream out = res.getOutputStream ();
res.setContentType( "application/vnd.ms-excel" );
String report = req.getParameter("report");
filename = report + user_id + ".csv";
String fileURL = the url;
res.setHeader("Cache-Control", "no-cache");
res.setHeader("Content-disposition",
"attachment; filename=" +
report + ".csv" );
BufferedInputStream bis = null;
BufferedOutputStream bos = null;
try
URL url = new URL ( fileURL );
bis = new BufferedInputStream(url.openStream());
bos = new BufferedOutputStream(out);
byte[] buff = new byte[2048];
int bytesRead;
while(-1 != (bytesRead = bis.read(buff, 0, buff.length)))
bos.write(buff, 0, bytesRead);
catch(final MalformedURLException e)
System.out.println ( "MalformedURLException." );
throw e;
catch(final IOException e)
System.out.println ( "IOException." );
throw e;
finally
if (bis != null)
bis.close();
if (bos != null)
bos.close();
</servlet code>
thanks in advanceThis problems exists whether I try IE4, IE5 or IE5.5.
Netscape is not an option.
The running order in this download is Servlet, JSP then Excel file !!! All I want is for the Excel (csv) file to be downloaded. I do not see any problem with the code, but obviously there is. Please help if you can.
cheers for any solutions. -
Best IDE for developing Applets,Servlets,JSP
Hi,
I'm looking for a little bit of advise. I have been developing prototypes using Apache Tomcat. Now I need to go into a full development phase, and I need an IDE to help speedup my work, especially when it comes to debugging applets and servlets. So the following are my questions:
1. What is the best IDE to use in conjunction with Apache Tomcat? Does JBuilder, for example, fit this bill?
2. Outside of Apache, I believe there is for example IBM's Websphere, which includes an IDE and a Servlet/JSP container. Which is the best of these packages?
Thank you for your help.
MiguelCheck out NetBeans 3.5 at www.netbeans.org
-
How to find the servlet, jsp version available for SunOne 7 webserver
hi ,
I am looking for a command that can say the version of servlet, JSP container in Sun One7 webserver.
as in weblogic we can do by command
java weblogic.version -verbose
is similar type of command is available for SunOne 7 web serverHi,
Ask BASIS person to check the JMS driver which is installed on XI through visual admin.
Thnx
Chirag -
How to display RTF File in Browser Using Servlets/JSPs
Hi All,
I have some RTF Files, which contains some data.
The data needs to be displayed in the frame of jsp page .
How i can display the RTF File Content using either servlets/jsps
Can any body have idea on this.
Help me out on this.
With Regards
HariIf you only need to display it, consider your HttpServletRequest just as byte stream. :) Just read from ServletInputStream and write it back into ServletOutputStream of HttpServletResponse.
If you want to process incoming XML, please give some details first, what exactly you want to do. :) -
Creating links to text files with Tomcat and JSP
I am trying to create links in a JSP page that bring up text files. Currently, the links point to a file format. When the links are clicked, however, the text files are not displayed in the web browser. When an "http:" format is used, the links point to terminal files that are not being written dynamically (and therefore are useless to me). So in short, I'm looking for a way to get these links to (1) point to text files on the network, and (2) get them to display in a new browser window. Any help or guidance will be greatly appreciated.
Thanks.
TGDYou cannot expect Tomcat or any J2EE Server to give access to the Network files.
You need to design a different way to give access to the Users.
What you can do is write a proxy (HttpServlet) which can pass a request parameter as the file name. The Servlet can read the file and then paint it in the Client Browser Window.
Hope this helps.
Thanks and regards,
Pazhanikanthan. P -
Servlet - JSP design and performance (Tomcat)
Hi everybody.
I'm new in Tomcat and servlet/JSP development.
My current design involves only one servlet (does the business logic, JSP page selections) which delegates the requests to several JSP-s (the JSP-s are included with the "jsp:include" tag).
The questions:
1. Has this design some performance drawbacks in contrast with a design in which several servlets are used (some of the included JSP pages will be the same)?
2. How Tomcat resolves concurent requests (if the same servlet is involved or two separate servlets are involved)?
Any response is greatly appreciated.
Thanks.A few things to keep in mind:
Every JSP is really a Servlet. Behind the scenes, these are compiled into Servlets which are then run. So, you really do have an implementation with more than one Servlet.
Controller Servlet's (one per JVM) are a very popular architecture choice. Struts, Spring and a number of other frameworks use this model. There should not be a difference between running multiple versus a single Servlet, and even if there is, your application undoubtedly has scaling bottlenecks other than this (probably orders of magnitude higher) than worrying about this particular issue.
Tomcat dispatches the request to whatever Servlet satisfies the servlet-mapping that the URL matches. Since Servlet's are designed to be written thread-safe, and since the container will manage those instances, do not worry.- Saish -
Hi
iam new to use jstl.i wrote on tag handler (java) class when i am compiling it is not identifying any of javax.jspexception ,java.jsp.tagext.
please help me what are all the jar files i have to have in class path or at any place and from where can i download them. i searched for servlet-jsp.jar,servlet-api.jar but i could not find anywhere in java.sun.com.any help is greatly appreciated
thankshi thanks for the reply. iam using tomcat 5.0
server. from where can i down load those jar files
please let me know
what jar files are needed if iam using tomcat 5.0 Like I said, Tomcat 5 uses Tomcat 5: servlet-api.jar jsp-api.jar. They will be in the server's classpath someplace. Look around were you installed TC. I am away from my machine at the moment so I can't say for sure, but it might be common/lib or shared/lib, something like that...
and
if weblogic 8.0Dunno. Look around the file structure.
Thanks for the help -
Getting absolute path of a file in a webapp without using servlet/JSP
Hi all,
I need a small clarification. Is it possible to reterive the absolute path of a file present in a tomcat web application without using Servlet/JSP. I have a normal java class which uses this file to read the configuration parameters. I like to know whether I need to create a seperate servlet which will read the parameters from web.xml.Hi all,
I need a small clarification. Is it possible to
reterive the absolute path of a file present in a
tomcat web application without using Servlet/JSP. What if the file is in a WAR? What do you do then?
I
have a normal java class which uses this file to
read the configuration parameters. There are other, better ways to do this.
I like to know
whether I need to create a seperate servlet which
will read the parameters from web.xml.What do you really want it for? You shouldn't need an absolute path. Use the class loader to get an InputStream.
% -
Download Multiple Files?? (Servlets/Jsp)
Hello Forum Members,
I need to download multiple files from Server on a single click of button thats says "download". Using Servlets/Jsp only( I don't want to use applets/or Zip the files).
The scenario would be on the browser I will have 'n' number of checkboxes each corresponding to a file and there is a button that say's download. Once I click "download" the browser should prompt me to save in a directory.I don't know if there's a Java implementation already out there (i'm sure there must be), but I think you'd need a separate Download Manager to be able to handle multiple file downloads. I'm all but positive that the standard download isn't gonna cut it, especially if the user selects a whole bunch of files. I don't think the built in download function allows for more than one file to download at a time, so unless you want a whole bunch of download windows all going at once, you'll need to either find (or implement) something that can.
-
File Upload into CVS through Servlets/JSP
Hi,
I am new to servlets/jsp. I have a task which has following requirments:
1. File(text/pic) uploading feature for client. ( i am using com.oreilly.servletpackage for this)
2. I need to upload this file to CVS repository with all the version controls, check in, check out features. (how should i do it?)
pls help.which IDE are you using ?
Maybe you are looking for
-
I am trying to set up my old iphone 3gs for my 7 year old child. Any suggestions on what i should do ? I am not tech savvy at all
-
MacBook and MAcBook Pro with ProTools
I have both a MAcBook and and a MAcBook Pro and ProTools runs fine on the Pro, however on the MAcBook ( 2 gig dual with 1 gig ram) the USB bus does not seem to have the power to drive the PRoTools MBOX 2 interface. ANy info on that? I'm surprised tha
-
Hi,All I Use "SAP NetWeaver BI Diagnostics & Support Desk Tool" to check the portal configurations. Some items show the RED status, one of them is "BI iView Permissions". The system gives solution as the following: Add 'End User' permission for user
-
Adobe Standard Installation error "WebGet request failed"
While trying to install Adobe Standard on a Win7 PC through Chrome, I keep getting the error message "WebGet request failed". What do I do to correct this?
-
TS3276 How can i retrieve my yahoo mail on my computer?
I am not receiving my yahoo email........on my mac air but am on my Iphone.....How can I start getting my mail again?