Servlet 2.3 API
where could i exactly download the servlet 2.3 api?? i have hard time looking for it in java.sun.com....can someone give me the exact url for this?? all that i could see is the servlet2.3 specification and i can't see the exact place for the servlet.jar(servlet2.3)..
is there any site in which i could download this api??
thanks again.
Go to http://www.javasoft.com/products/servlet/download.html
Similar Messages
-
When I try to UPDATE my Maven project ( Chapter 8 - Using JSP with AEM 6.0 ) after I updated my main pom.xml with the javax.servlet.jsp dependancy, I get the following error :Missing artifact javax.servlet.jsp:jsp.api:jar:2.1
I even tried to compile from command line using mvn compile and get the same error :
[ERROR] Failed to execute goal on project company-training-project-bundle: Could not resolve dependencies for project com.adobe.training:company-training-project-bundle:bundle:1.0-SNAPSHOT:
Could not find artifact javax.servlet.jsp:jsp.api:jar:2.1 in adobe (http://repo.adobe.com/nexus/content/groups/public/) -> [Help 1]
If I look at my .m2 dir, I can see that it attempted to get the jar, but it wasn't able to grab it :Hi Billy,
Try changing the URL from (http://repo.adobe.com/nexus/content/groups/public/) to (https://repo.adobe.com/nexus/content/groups/public/), i.e. add the https.
That should do it. Let us know if it doesn't work. -
How can I get my servlets to work which are using servlet 2.3 API
I am using the classes and new methods that are introduced in servlet 2.3 and I am not able to get them to work. is there a work around or a patch available for this. I have installed Iplanet application server Enterprise Edition version 6.0 SP3 from the test drive.
In short, no. iAS is a 2.2 servlet container. You would have to backport your application to version 2.2 of the servlet spec.
-
I would like to download a copy of Servlet API 2.4 class files. I know that Servlet API 2.4 is part of the J2EE 1.4 download, but I really don't want (or need) the entire J2EE. So far, all I've been able to do is download the specification.
There is a link to download Servlet API 2.3 class files, which I am currently using with NetBeans 4.1. I would like to add v2.4 to my NetBeans library.
Does a link exist to download the Servlet API 2.4 class files and dox? If so, where can I find it? Any help would be appreciated.Hi Martin,
Ivo is right. Web AS 6.40 is J2EE 1.3 compliant and implements Servlet 2.3 specification. In Servlet 2.3 API its not explicitly said that the contextInitialized() method in ServletContextListener interface should be called before any servlet or filter is initialized. In this release the ServletContextListeners are notified of context initialization after servlet and filter initialization and thus informing them that web application is ready to process requests.
Unfortunately there is no workaround as it is implementation dependent, and of course of reasons for backwards compatibility such changes could not be done.
What concerns your second question is that the J2EE 1.4 (hence, servlet 2.4 API) support is planned for the next release of the Web AS. In that release the contextInitialized event will be thrown before any servlet or filter is initialized.
Regards,
Diyan -
I believe the servlet APIs are outdated in the Oracle 9i AS Portal 3.0.7 distribution, i.e. Servlet 2.0 API. Can anyone confirm or deny this? An application that runs on a 2.1 Servlet API bombs on 9i with the following error:
[18/01/2001 13:47:11:490 CST] java.lang.NoSuchMethodError: javax.servlet.ServletContext: method getRequestDispatcher(Ljava/lang/String;)Ljavax/servlet/RequestDispatcher; not found
at com.agrifusion.cart.Cart.doPost(Cart.java:91)
at com.agrifusion.cart.Cart.doGet(Cart.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java)
at org.apache.jserv.JServConnection.run(JServConnection.java)
at java.lang.Thread.run(Thread.java:479)
The method getRequestDispatcher() was added in the 2.1 Servlet APIs.
Any suggestions? When commenting out the wrapper.classpath=d:\iSuites\Apache\Jsdk\lib\jsdk.jar line and inserting a 2.1 Servlet API the app still fails, same error. Is the API bundled in another jar file?
Still investigating myself, if anyone has run upon error please post a solution.
Thanks,
JasonJason,
Are you trying to develop a portlet? If so, please direct your question to the Portal Development Kit forum.
If this is a general question about iAS servlets, we hope to have an iAS forum available by the end of January. In the meantime, I'll request that someone from iAS product management respond to your question.
Regards,
Jerry -
Java API's supported in the Jdeveloper, IAS, and RDBMS product components
If there are any technical errors or "mistatement of the facts" in this posting, please let me know about them ..
This article is being delivered in Draft form and may contain
errors. Please use the MetaLink "Feedback" button to advise
Oracle of any issues related to this article.
PURPOSE
This article describes the "Enterprise Java Beans" (EJB), "Java Server Pages"
(JSP) and servlets Application Programming Interfaces (API) supported by the
Oracle products, Jdeveloper, Internet Application Server (IAS) and the Oracle
RDBMS release 2 and release 3, also known as Version 8.1.6 and 8.1.7,
respectively.
SCOPE & APPLICATION
All parties interested in the Java API's supported by these products.
Java API's supported in the Jdeveloper, IAS, and RDBMS product components
JDEVELOPER
JDEVELOPER is Oracle's Java development tool designed for coding / development,
testing / debugging, and deployment of Java Applications to the IAS and
RDBMS platforms.
With the java software api's being in a constant state of evolution, each new
release of Jdeveloper adds support for the "then current" version of the java
software api's, if it does not already have it implemented.
JDEVELOPER SERVLET API JSP API EJB API
VERSION VERSION VERSION VERSION
3.2.X.X 2.2 1.1 1.1
3.1.X.X 2.1 1.0 1.0
NOTE :
Sun Microsystems and their advisory teams (Oracle is on it) is working on
"draft" specifications for the next version of all of these API's
EJB -------> http://java.sun.com/products/ejb/index.html
JSP -------> http://java.sun.com/products/jsp/index.html
Servlets --> http://java.sun.com/products/servlet/?frontpage-javaplatform
It is anticipated that future releases of Jdeveloper will continue to be
upgraded to include support for the next version of each api.
To obtain the latest information on Oracle's Internet Development Suite (IDS)
of tools, please review the "Internet Developer Suite" information located
on Oracle's technet web site at :
http://technet.oracle.com/products/index.htm
IAS
IAS is Oracle's next evolution of the web server and application server
product technology superceeding the Web Application Server (WAS) and Oracle
Application Server (OAS) product lines.
IAS SERVLET API JSP API EJB API EJE VERSION
VERSION VERSION VERSION VERSION SUPPORTED
9I(1.0.2) 2.2 1.1 1.1 817
8i(1.0.1-NT) 2.0 1.0 1.0 816
8i(1.0.0-UNIX) 2.0 1.0 1.0 816
The IAS product contains two Java Virtual Machines (JVM) within it's
architecture.
They are called :
1) APACHE JSERV servlet engine
2) ORACLE ENTERPRISE JAVA ENGINE (EJE)
APACHE JSERV servlet engine
The APACHE JSERV servlet engine is an EXISTING product licensed from the
apache group which supports the servlet api 2.0.ONLY.
The APACHE JSERV product does not support ANY JSP's unless the customer
installs a third party jsp engine.
The IAS 8i/9i which has the APACHE JSERV product embedded in it, comes with
Oracle's JSP engine (OJSP) already integrated into it. OJSP supports JSP's up
to the specific JSP engine version documented in the Oracle Universal
Installer (OUI) for the 8.1.7 RDBMS or the IAS products. It is also documented
in the product's release notes.
Oracle ENTERPRISE JAVA ENGINE (EJE)
The EJE formerly known as :
1) Oracle 8i Java Virtual Machine (JVM)
2) JSERVER component,
3) Aurora JVM
was originally releas ed in the RDBMS 8.1.5 database with jdk 1.1.6 based java
support.
The currently supported versions of the Oracle 8i RDBMS, versions 2 and 3,
also known as Version 8.1.6 and 8.1.7, respectively, provides a jdk 1.2.1
based java virtual machine support.
"EJE" Version 816
This EJE, found in rdbms 8.1.6 and IAS 8i, contains support for the ejb
api 1.0, corba, and java stored procedures.
"EJE" Version 817
This EJE, found in rdbms 8.1.7 and IAS 9i, contains support for the ejb,
corba, and java stored procedures as well as the Oracle Servlet Engine (OSE)
which provides support for the servlets 2.2 api and JSP 1.1 api.
Note :
EJB support in the "EJE" Version 817 has been upgraded to comply with the EJB
1.1 api specification which includes "entity beans" support.
What is the bottom line ??
1) Servlets deployed to the APACHE JSERV must comply with servlet api 2.0.
2) Servlets 2.1 or higher are only supported in EJE's OSE component found in
the rdbms 817 or ias 9i products. Servlets api 2.0 can also run in the OSE.
References
1) "Oracle9i Application Server Technical White Paper" located at :
http://technet.oracle.com/products/ias/pdf/9ias_102.pdf
2) "Whats New? Oracle8i JVM Accelerator, Oracle Servlet Engine, OracleJSP ..."
located at :
http://technet.oracle.com/products/oracle8i/pdf/504.pdf
3) "Oracle8i Release 3 New Features Summary" located at :
http://technet.oracle.com/products/oracle8i/pdf/8iR3_nfs.pdf
nullwhich jvm is used by jserv ?? EJE or a separate jdk ?
The Jserv servlet engine is running in a separate jdk JVM external to the EJE jvm which is embedded within the "database" component of ias and the RDBMS.
See the reference below for more details ...
if jserv only support old apis, why it is in oracle's products ?
i would assume that the oracle servlet engine was under development when ias 8i was released and became available in time for the ias 9i and rdbms 817 products.
looking back in history leads me to believe ias 8i was a migration path to get to ias 9i or rdbms 817.
Based upon the long history of new releases of every oracle product being upgraded with new features, it's reasonable to assume that these products will continue to evolve.
when I deploy a jsp how to deploy in the right servlet container ("EJE") ?
as documented in the reference below, you can deploy JSP's to either the apache jserv jvm or the EJE since the ORACLE JSP engine functionality is in both jvm's.
there are many posts where you can see that people have deploy in jserv and they have problems because they don't use the right container (servlet 2.0 instead of
servlet 2.2) http://technet.oracle.com:89/ubb/Forum2/HTML/006349.html
when ias 8i came out this was clearly an issue since servlet support was at api 2.0, and the current servlet api was probably at 2.1.
oracle clearly made every effort to get ias 9i released quickly to supply a servlet 2.1 and 2.2 capable engine to resolve this issue.
since ias 9i and rdbms 8.1.7 are available this is no longer an issue.
The reference below explains the architecture and understanding it would eliminate a lot of "deploy to the wrong ias 9i component" issues.
so why jserv is bundled with oracle 8i/9ias since EJE support the right api version ?
if in ias 9i release , oracle had removed the jserv component without any advance warning, many customers would have been very upset since oracle makes every attempt to give advance notice before removal of functionality.
References
1) "Oracle9i Application Server Technical White Paper" located at :
http://technet.oracle.com/products/ias/pdf/9ias_102.pdf -
How to get SSLSession in Servlet?
Hello,
Is there any new way to get a SSLSession object inside Servlet?
Why javax.net.ssl.session attribute is no longer available since Servlet 2.1 specification?
See:
http://java.sun.com/products/servlet/2.1/api/javax.servlet.ServletRequest.html#getAttribute(javax.servlet.String)
Thank you.I agree with you, but the question is still remind - how can I destroy Application Session so that transport level (SSL) session will be destroyed also?
The problem is that I need to force the browser to check user certificate which is stored on the smart card. -
How to set a value to an existing element in html page using servlets
i have created a session in my login page and i know how to retrieve it now the actual problem is i want to set the same value to a textbox in an html page........
Use JSTL and/or EL.
Assuming that you mean with "created a session" that you've created a bean and have set it as an attribute of the HttpSession, e.g.httpSession.setAttribute("someBean", someBean);then do for example using the JSTL c:out tag:<p><c:out value="${someBean.someProperty}" /></p>or, if you're using at least Servlet 2.4 API with JSP 2.0 API which allows EL in template text, then do for example:<p>${someBean.someProperty}</p> -
How to get the Application name/fullpath in a servlet deployed in WebLogic
Hi ,
Just like we can get the domain root directory from weblogic.management.DomainDir
String root = DomainDir.getRootDir() ;and domain name from weblogic.management.configuration.DomainMBean
DomainMBean domainMBean = MBeanUtils.getDomainMBean();
String domainName = domainMBean.getName() ;How can i get , the application name in which the servlet is deployed from inside the same servlet ? Which API from weblogic provides that information ?
for eg : application path = Middleware/user_projects/domains/Domain_1/servers/AdminServer/upload/webapp1.war
and application name = webapp1.war
Edited by: Tom on Mar 31, 2011 9:32 PMNot sure about Weblogic Specific API however you can use Java API.
public void init(ServletConfig config) throws ServletException {
// TODO Auto-generated method stub
System.out.println(config.getServletContext().getRealPath(""));
System.out.println(config.getServletContext().getContextPath());
output:
C:\Documents and Settings\user\KEDB\KEDBRISKIT\WebContent --- Application Path
/KEDBRISKIT --- Application Name
-Akshay -
Package javax.servlet doesnot exist
i am using jsp and mysql along with jdk1.3.1_08, tomcat, redhat linux, apache for my current project. i decided to use servlets to enhance my project and make it more efficient.
however, when i compile TestServlet.java, it generates 10 errors.
one of these errors say that 'package javax.servlet' doesn't exist.
i tried searching j2ee.jar in my pc but my search results turn up empty.
so i checked the documentation and this is what it says :
Q: What do I need in my CLASSPATH?
A: All you need is a correct version of JDK (1.1.x or 1.2).
Since the JSP engine also uses 'javac' it needs to be in the CLASSPATH.
If you are using JDK 1.1.x it will automatically be included. If
you are using JDK 1.2 you will need to set JAVA_HOME to the directory
where JDK is installed or alternately you can put "tools.jar" in your
CLASSPATH.
All other classes, jar files that are needed, are put by the startserver
script and you don't need to worry about them.
Q: Where are the classes for JSPs and Servlets?
A: webserver.jar -- class files for Servlet Engine.
lib/jspengine.jar -- class files for JSP Engine.
lib/servlet.jar -- Public APIs for Servlet.
lib/jsp.jar -- Public APIs for JSP.
lib/xml.jar -- classes for parsing XML document
so, after reading the documentation, i put xml.jar, servlet.jar and webserver.jar in my classpath along with tools.jar and rt.jar
i tried searching for jspengine.jar and jsp.jar but my search results turn up empty. what should i do? by the way, below is my classpath (if it's any help at all):
export CLASSPATH=/usr/local/jdk1.3.1_08/jre/lib/rt.jar:/usr/java/lib/tools.jar:/usr/src/jakarta/dist/tomcat/lib/servlet.jar:/usr/src/jakarta/dist/tomcat/lib/webserver.jar:/usr/src/jakarta/dist/tomcat/lib/xml.jar:
i know a bit about java like methods, events, classes but i don't know much about jars and servlets. i'm still new to them so pls don't get mad
thank u very muchmy problem was that i didn't reboot my pc thanks everyone for ur help!
-
Do Weblogic 5.1 support servlet 2,2 web.xml?
Found that a lot of tags in web.xml according to Java servlet 2.2 API didn't work in Weblogic server 5.1, tags such as <session-mapping>, <session-timeout> didn't work at all. Is these tags didn't support in 5.1?
Thank for your correction on the <servlet-mapping>, it is a typing error, it works
after I correct it.
But the <session-timout> tag still didn't work.
I set it up as follow in my web.xml:
<session-config>
<session-timeout>30</session-timeout>
</session-config>
My testing servlet code as follows, it always shows a timeout value of 1800 seconds
instead of my preset 30 seconds in the web.xml:
public void doGet(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException {
HttpSession session = request.getSession();
response.setContentType("text/html");
OutputStreamWriter osw = new OutputStreamWriter(response.getOutputStream());
PrintWriter out = new PrintWriter (response.getOutputStream());
out.println("<html>");
out.println("<head><title>HelloWorld</title></head>");
out.println("<body>Hello From HelloWorld doGet()");
out.println("<P>Session will be timeout for " + session.getMaxInactiveInterval()
+ " secs.");
out.println("</body></html>");
out.close();
Kumar Allamraju <[email protected]> wrote:
><!doctype html public "-//w3c//dtd html 4.0 transitional//en">
><html>
>Do you mean servlet mapping? I can't seem to find out session-mapping
>in
>the dtd
><br>Yes we do support session-timeout in 5.1
><br>see http://www.weblogic.com/docs51/classdocs/webappguide.html
><p>--
><br>Kumar
><p>Alfred Leung wrote:
><blockquote TYPE=CITE>Found that a lot of tags in web.xml according to
>Java servlet 2.2 API didn't work in Weblogic server 5.1, tags such as
><session-mapping>,
><session-timeout> didn't work at all. Is these tags didn't support
>in
>5.1?</blockquote>
></html>
>
-
Hi,
I've downloaded and installed jswdk-1.0.1.But I don't know how to specify the classpath variable to make my servlet program to run.Also I don't knpw where to save my servlet file.(while running it always says like package javax.servlet.*,javax.servlet.http.* not found).
I've given the classpath variable like this:
variable name :classpath
variable value:
C:\jdk1.2.2\lib\tools.jar;C:\jdk1.2.2;C:\jswdk-1.0.1\;C:\jswdk-1.0.1\Javawork1\;
where javawork1 is userdefined directory where I kept my servlet source file. IS IT CORRECT???????????
Could anyone help me.............
Thanks in advance.
subha.Here's a quote from the file FAQ.html that you installed with the download:
"Where are the classes for JSPs and Servlets?
The files are as follows:
webserver.jar -- class files for the Servlet Engine
lib/jspengine.jar -- class files for the JSP Engine
lib/servlet.jar -- public APIs for Servlets
lib/xml.jar -- classes for parsing XML documents" -
ADF not support Credential Store Framework API
I have used Credential Store Framework API for securing the websevice. By using servlet and csf api i am able to access the web logic credential store but when i change my servlet code to adf managbean code there is access voilation error.
java.security.AccessControlException: access denied (oracle.security.jps.service.credstore.CredentialAccessPermission context=SYSTEM,mapName=Elsevier,
keyName=WebServices read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
at
During the configurzation of credential store i have done one entry in system-jazn-data.xml (present here domain_home\config\fmwconfig). Hence the below permissions were added:
<grant>
<grantee>
<codesource>
<url>file:${domain.home}/servers/${weblogic.Name}/tmp/_WL_user/CredentialsStorePOC/-</url>
</codesource>
</grantee>
<permissions>
<permission>
<class>oracle.security.jps.service.credstore.CredentialAccessPermission</class>
<name>context=SYSTEM,mapName=Elsevier,keyName=WebServices</name>
<actions>read,write,update,delete</actions>
</permission>
</permissions>
</grant>
My Doubt
<url>file:${domain.home}/servers/${weblogic.Name}/tmp/_WL_user/CredentialsStorePOC/-</url>
might be differnent for ADF application as it working fine for servlet appliction
REF:http://download.oracle.com/docs/cd/E15523_01/core.1111/e10043/devcsf.htm#BABEADIAYou should refer to the latest documentation:
http://download.oracle.com/docs/cd/E17904_01/core.1111/e10043/toc.htm
Did you read the packaging requirements?
Your cwallet.sso must be packaged in the META-INF of your EAR file (see http://download.oracle.com/docs/cd/E17904_01/core.1111/e10043/scenario.htm#CHDIGIDG)
The chapter you are referring to is now chapter 23 (http://download.oracle.com/docs/cd/E17904_01/core.1111/e10043/devcsf.htm#BABEADIA).
HTH,
--olaf -
Can not use XML API from Sun (JAXP)
Some of my EJBs and Servlets uses XML API from Sun (JAXP) but after deployment the J2EE Container uses its own XML engine (Oracle XML Parser....) instead.
I try to add JAXP library to my deployment file and test again but this problem still occurred.
My question is how to add my libraries to J2EE Container and these libraries can be shared by any applications.
Regards,
NarongPlease post this in the misc or xml newsgroup.
vipuld shah wrote:
i have an application which is running through javaWebStart
if u start the application first time(through clicking on
link of .jnlp file), it will download necessary .jar files
& it will store those files in javaWebStart's cache.
when u will visit second time, it will check files in cache
with the files in server, if both are same, then it will not
download but will use from its cache.
it works fine for .jar files, but is it possible for some .xml
files which are changing very rarely.--
Rajesh Mirchandani
Developer Relations Engineer
BEA Support -
I am new to JavaServerPages. I was wondering:
To use Servlets, do I need to install the J2EE Reference Implementation or do I only need a web server and JDK1.3.1? Do I need to do anything to get required classes (e.g. some javax classes)? I have the impression that TomCat is all you need. What is the advantage of J2EE to SDK?For developing Servlets and JSP you would have to download the J2EE jar files and put them in your class path. Alternately Tomcat comes along with the Servlet and JSP API. you could put these in the class path too. This is fine if you are palnning to build simple servlets. But if you are planning to integrate your servlets with other J2EE technologies like EJB and JavaMail then you have to download the jar files.
You can download them from:
http://java.sun.com/j2ee/download.html
Keep me posted on your progress.
Good Luck!
Eshwar Rao
Developer Technical Support
Sun microsystems Inc
http://www.sun.com/developers/support
Maybe you are looking for
-
4S ios updated to 7 is giving me problems for using wifi Thus it is difficult for me to use internet. The wifi comes ON for a while and goes off in a few minutes The phone is unable to scan networks available for use Am having ipad2, ipad mini and ip
-
Do I need to unlock my iPhone 4S to use it in India????
I'm going to India in a month and wanted to know if I need to unlock it to use it there. It's the iPhone 4S from Verizon Wireless. And no it's not factory unlocked. Thanks for all your help.
-
Accessing data in time capsule
Can I access data from time capsule wirelessly using a smart tv or blu ray player? If not, can I access it with ethernet connection?
-
Group by Left Report for Multiple Queries
Afternoon folks, I have been pretty much writing my queries in Oracle Reports by having one long query (which includes multiple sub-queries) and then displaying the results (Mainly Counts and MEDIAN values). This has resulted in one very long query (
-
Screen "SAPMJ1IFN" 1110 could not be generated.
Hi, I'm creating sub contracting challen tcode J1IF01. Here i'm getting runtime error is Screen "SAPMJ1IFN" 1110 could not be generated. Please guide me where i'm mistake in Sub Contracting. Regards, Balakrishna G