-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
 Post subject: Do I still need jsdk*.jar? ... and where can I it?
PostPosted: Sun Jan 14, 2007 2:40 am 
Beginner
Beginner

Joined: Sat Dec 16, 2006 9:53 pm
Posts: 31
Location: Brisbane, Australia
Folks please,

What is jsdk.jar (or jsdk*.jar) ??? Do I still need it to write/run servlets? ... and if so, where can I download it from? ... and does anyone know the correct version for my existing setup?

I'm doing Chapter 1 of the Hibernate tutorial at: http://www.hibernate.org/hib_docs/v3/reference/en/html/tutorial.html
which states
Quote:
Before you compile and deploy the web application, note that an additional library is required: jsdk.jar. This is the Java servlet development kit, if you don't have this library already, get it from the Sun website and copy it to your library directory. However, it will be only used for compliation and excluded from the WAR package.


and yep, when I build I get "ant war" output:
Code:
Buildfile: build.xml

clean:
   [delete] Deleting directory C:\Java\src\Tutorials\Hibernate\bin
   [mkdir] Created dir: C:\Java\src\Tutorials\Hibernate\bin

copy-resources:
     [copy] Copying 4 files to C:\Java\src\Tutorials\Hibernate\bin
     [copy] Copied 2 empty directories to 1 empty directory under C:\Java\src\Tutorials\Hibernate\bin

compile:
    [javac] Compiling 5 source files to C:\Java\src\Tutorials\Hibernate\bin
    [javac] C:\Java\src\Tutorials\Hibernate\src\events\EventManagerServlet.java:4: [b]package javax.servlet.http does not exist[/b]
    [javac] import javax.servlet.http.HttpServlet;
    [javac]                           ^
    .... lots more javax.* not found, and a few typos ....


I'm using Hibernate 3.1.3 (March 20, 2006), on HSQL-DB (which I presume is packaged with hibernate) and Apache Tomcat 5.5.17 (circa August 12, 2006)

I just down loaded Enterprise Edition 5 SDK Update 2 (Sun Java System Application Server Platform Edition 9):, which I thought would include jsdk.jar ... but I've search My Computer and still can't find any "jsdk*.jar"

... so I had a bit of a dig around Suns website and came up with http://java.sun.com/products/servlet/download.html which says
Quote:
J2EE 1.4 SDK contains an implementation of the Java Servlet 2.4 specification.
, and if you follow the tomcat link on that page to http://java.sun.com/products/jsp/tomcat/ it says
Quote:
Tomcat 5 supports the Servlet 2.4 and JSP 2.0 specifications.


So I reckon I've got everything I need, and now I suspect that jsdk.jar is defunct ... so what's it's replacement? so I searched my computer (note to self: must get smaller harddisks next time) for "*.jar" containing text "javax.servlet" and came up with another blank.

... and I'm so confused ! ...

Please can anyone shed any light?

Thanx. Keith.


Top
 Profile  
 
 Post subject: javax.servlet.* is in servlet-api.jar in tomcat 5*
PostPosted: Sun Jan 14, 2007 3:05 am 
Beginner
Beginner

Joined: Sat Dec 16, 2006 9:53 pm
Posts: 31
Location: Brisbane, Australia
Google to the rescue again...

I just went simple and googled "jsdk.jar" ... near top is:
http://www.arcknowledge.com/gmane.comp.cms.open-xchange.user/2005-06/msg00066.html
which says
Quote:
>I'm new to OX and must bea rock. I can find nearly everything else that
> I need to install except for jsdk.jar. Can someone tell me where to find
> it? It doesn't appear to be on sun's website.

On my Tomcat 5 installation it's actually called servlet-api.jar. Try looking for that.
David

yep, I found servlet-api.jar in C:\Program Files\Apache\Tomcat5.5\common\lib and yep, it contains javax.servlet.*

So ... dear Hibernate Team, Please could you update (or make a note in) The Hibernate Tutorial, to save lots of newbies a couple of hours (each) ... and if you need a volunteer then I'm volunteering.

Cheers all. Keith.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 14, 2007 5:23 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
If I type "jsdk.jar" into Google, the first hit is this: http://www.devdaily.com/java/edu/jb/jb0 ... ndex.shtml

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 14, 2007 5:28 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
And why do you expect the Hibernate documentation to also include a Servlet tutorial? Most readers would say "Gee, I don't know what this Servlet stuff is about, maybe I should skip this section!".

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 14, 2007 6:58 am 
Beginner
Beginner

Joined: Sat Dec 16, 2006 9:53 pm
Posts: 31
Location: Brisbane, Australia
christian wrote:
And why do you expect the Hibernate documentation to also include a Servlet tutorial? Most readers would say "Gee, I don't know what this Servlet stuff is about, maybe I should skip this section!".


Quote:
Most people are reasonable, and adapt to suit their environment. Unreasonable poeple expect their environment to adapt to suit them. Therefore all real progress is made by unreasonable people.


Seriously, I think it's important that information presented to "first time users" be impecable... troubles in the early stages can have a disproportionate negative impact on a "first time users" perception of product quality... doco & tuts included.

How long does "the average user" persist with a buggy instal?

I was serious with my offer to update the Hibernate Tutorials to note the change between Tomcat 4 (jsdk.jar) & 5 (servlet-api.jar).

So I'm not most people. Shoot me.

Kindest regards. Keith.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 14, 2007 7:05 am 
Beginner
Beginner

Joined: Sat Dec 16, 2006 9:53 pm
Posts: 31
Location: Brisbane, Australia
christian wrote:
If I type "jsdk.jar" into Google, the first hit is this: http://www.devdaily.com/java/edu/jb/jb0 ... ndex.shtml


I was going to post something extemely narky in response to this, like "Yep, and what's that got to do with anything?" but I have decided to refrain in favour of a dignified silence.

Keith.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 14, 2007 7:32 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Odd reaction - my thought was that Christan was more helpful as he showed you not only the answer but a method to get it faster than a forum. I think that is very helpful and educational.


Top
 Profile  
 
 Post subject: My very first post...
PostPosted: Fri Jan 26, 2007 10:43 am 
Newbie

Joined: Fri Jan 26, 2007 10:27 am
Posts: 1
Location: Stockholm, Sweden
I just wanted to say that I agree with "wookie2u". The reference to jsdk.jar is very confusing and the link given in the response was a very bad example.
No, the tutorial was not about servlets but about hibernate, but it is not good if we newbies get stuck with servlet problems trying to get hibernate working.
Thank you "wookie2u" for giving me/us the details about servlet-api.jar

Thanks for a good forum!

/Stefan


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.