jimmy

Greenhorn
+ Follow
since Sep 01, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by jimmy

Hi All,

I am presently in the process of attending some interview for J2EE jobs.
Can any one post me interview questions for J2EE, PLEASE.

The topics i am highliting are:
Core JAVA, servlets / jsp , jdbc, xml, struts, design patterns, potlets.

I am looking for basic question on the above topic and NOT very deep questions.
Thanks.
16 years ago
Hi ,

I am doing the first web application given in the book.(HFSJ - page 84)

I am now trying to compile 'BeerExpert.java' file but i get error:
----------------------------------------------------------------------
C:\Program Files\Apache Software Foundation\Tomcat 5.5\Myprojects\beerV1>javac -
d classes src/com/example/model/BeerExpert.java
Note: src/com/example/model/BeerExpert.java uses unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.
----------------------------------------------------------------------

But at the same time i see a correspoding class file generated for 'BeerExpert' and placed in floder 'Classes/com/example/model'.

nOW if i try compiling 'BeerSelect.java' file i get error:
----------------------------------------------------------------------
C:\Program Files\Apache Software Foundation\Tomcat 5.5\Myprojects\beerV1>javac -
d classes src/com/example/web/BeerSelect.java
src/com/example/web/BeerSelect.java:3: package com.example.model does not exist
import com.example.model.*;
^
src/com/example/web/BeerSelect.java:18: cannot find symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect
BeerExpert bx = new BeerExpert();
^
src/com/example/web/BeerSelect.java:18: cannot find symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect
BeerExpert bx = new BeerExpert();
^
3 errors
----------------------------------------------------------------------


Please help, thanks.
16 years ago
Hi ,

I am doing the first web application given in the book.(HFSJ - page 84)

I am now trying to compile 'BeerExpert.java' file but i get error:
----------------------------------------------------------------------
C:\Program Files\Apache Software Foundation\Tomcat 5.5\Myprojects\beerV1>javac -
d classes src/com/example/model/BeerExpert.java
Note: src/com/example/model/BeerExpert.java uses unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.
----------------------------------------------------------------------

But at the same time i see a correspoding class file generated for 'BeerExpert' and placed in floder 'Classes/com/example/model'.

nOW if i try compiling 'BeerSelect.java' file i get error:
----------------------------------------------------------------------
C:\Program Files\Apache Software Foundation\Tomcat 5.5\Myprojects\beerV1>javac -
d classes src/com/example/web/BeerSelect.java
src/com/example/web/BeerSelect.java:3: package com.example.model does not exist
import com.example.model.*;
^
src/com/example/web/BeerSelect.java:18: cannot find symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect
BeerExpert bx = new BeerExpert();
^
src/com/example/web/BeerSelect.java:18: cannot find symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect
BeerExpert bx = new BeerExpert();
^
3 errors
----------------------------------------------------------------------


Please help, thanks.
Hey Vishnu,

please send me a note as well as i am also preparing for SCWCD ,,

thanks
Hi Bala,

Instead giving the command from C promt go till the directory structure "C:\MyProjects\Beerv1" and then give the following command there:


C:\>javac -classpath C:\Tomcat\tomcatmain\common\lib\servlet-api.jar;classes;. -d src\com\example\web\BeerSelect.java

This will allow you to type the full path ,, hope this will help ,, or else some other expert will answer after me.

All the best.
Ok i sloved the above errro but now when i try to refer the BeerExpert class from the BeerSelect class its not detecting ,,,

the BeerExpert class is in the 'beerV1\src\com\example\model' derectory and the BeerSelect class 'beerV1\src\com\example\web' derectory and i am using a import package " import com.example.model.*; "

I get an error:
C:\Program Files\Apache Software Foundation\Tomcat 5.5\Myprojects\beerV1>javac -
d classes src/com/example/web/BeerSelect.java
src/com/example/web/BeerSelect.java:3: package com.example.model does not exist
import com.example.model.*;
^
src/com/example/web/BeerSelect.java:18: cannot find symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect
BeerExpert bx = new BeerExpert();
^
src/com/example/web/BeerSelect.java:18: cannot find symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect
BeerExpert bx = new BeerExpert();
^
3 errors
Hi

I write small java programe and try to run in Tomcat when i get the following error:
======================

C:\Program Files\Apache Software Foundation\Tomcat 5.5\Myprojects\beerV1>javac - d classes src/com/example/model/BeerExpert.java
Note: src/com/example/model/BeerExpert.java uses unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.
=========================

Please help.
Hi ben,

Now i am able to compile the first servlet program and see the results( current date in the brower ,, i am following the HFSJ book)

bUT When doing hte second eg ,, i am able to compli the servlet but when i call the servlet from the html ,,it gives the following error:


HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message
description The server encountered an internal error () that prevented it from fulfilling this request.

Thanks
16 years ago
HI ben,

i get the above pasted error when i try to complie the servlet program.

I guess this is bec it is not able to find javax files ,,

Please help.
Thanks for your time.
16 years ago
================================

C:\Program Files\Apache Software Foundation\Tomcat 5.5\project1\src>javac Ch1Ser
vlet.java
Ch1Servlet.java:1: package javax.servlet does not exist
import javax.servlet.*;
^
Ch1Servlet.java:2: package javax.servlet does not exist
import javax.servlet.http;
^
Ch1Servlet.java:3: package javax.io does not exist
import javax.io.*;
^
Ch1Servlet.java:5: cannot find symbol
symbol: class HttpServlet
public class Ch1Servlet extends HttpServlet {
^
Ch1Servlet.java:6: cannot find symbol
symbol : class HttpServletRequest
location: class Ch1Servlet
public void doGet(HttpServletRequest request, HttpServletResponse respon
se) throws IOExpection {
^
Ch1Servlet.java:6: cannot find symbol
symbol : class HttpServletResponse
location: class Ch1Servlet
public void doGet(HttpServletRequest request, HttpServletResponse respon
se) throws IOExpection {
^
Ch1Servlet.java:6: cannot find symbol
symbol : class IOExpection
location: class Ch1Servlet
public void doGet(HttpServletRequest request, HttpServletResponse respon
se) throws IOExpection {

^
Ch1Servlet.java:8: cannot find symbol
symbol : class PrintWriter
=========================================
16 years ago
Hi Scott,

for me the filr 'servlet-api.jar ' was in 'C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib'.
And so i copied the full path 'C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\servlet-api.jar' in the classpath and then tryied without any luck.

I also tryed to see the documentation given ,, but didnt help me.

Please help me. i am just not able to proceed further.
16 years ago
Hi,

when i try to run a small servlet programe i get the following error:
================================

C:\Program Files\Apache Software Foundation\Tomcat 5.5\project1\src>javac Ch1Ser
vlet.java
Ch1Servlet.java:1: package javax.servlet does not exist
import javax.servlet.*;
^
Ch1Servlet.java:2: package javax.servlet does not exist
import javax.servlet.http;
^
Ch1Servlet.java:3: package javax.io does not exist
import javax.io.*;
^
Ch1Servlet.java:5: cannot find symbol
symbol: class HttpServlet
public class Ch1Servlet extends HttpServlet {
^
Ch1Servlet.java:6: cannot find symbol
symbol : class HttpServletRequest
location: class Ch1Servlet
public void doGet(HttpServletRequest request, HttpServletResponse respon
se) throws IOExpection {
^
Ch1Servlet.java:6: cannot find symbol
symbol : class HttpServletResponse
location: class Ch1Servlet
public void doGet(HttpServletRequest request, HttpServletResponse respon
se) throws IOExpection {
^
Ch1Servlet.java:6: cannot find symbol
symbol : class IOExpection
location: class Ch1Servlet
public void doGet(HttpServletRequest request, HttpServletResponse respon
se) throws IOExpection {

^
Ch1Servlet.java:8: cannot find symbol
symbol : class PrintWriter
=========================================

I am gussing this error is bec i have not set the TOMCAT_HOME path.
I just installed tomcat from site and started using it ,, but i get the tomcat home page when i write http://localhost:8080/

Please help.
Thanks.
16 years ago
Hi Giri,

Thanks for the insight , but still more questions:
Can you please explain when and how Rational version will replace the existing 285/286/287

Also please explain if i do SCWCD, which of the two 285 or 286 would be best ?

Thanks.
Hi Dan,

I have one query reg the IBM CERTIFICATION 285/286/287.

Are these certification not in increasing order ,, i mean like 286 covering more on webspher than 285 and same between 287 and 286.

What is the difference.

I am currently working for SCWCD certification and then would be giving any of 285/286 or 287.

Please give your experts comment.
Thanks.
Hey Dishaan,

Every thing you want about IBM-"IBM Certified Associate Developer" ( 285 ) should be here:
http://www-03.ibm.com/certify/tests/obj285.shtml

The one book which is recommended by IBM is:
An Introduction to Web Application Development with IBM WebSphere Studio
Author: Gary Craig, Peter Jakab

This is a book by IBM Press and is highly recommended for this Test.

For discussion on IBM 285 you might have to go to "Product and Other Certifications " thread.

BTW, i am also having the same plan:
Doing SCWCD frist and then give IBM WEBSPHERE but not sure if 285 , 286 or 287 to give.

Some time back i did post my queries on this forum, you might want to read and suggest some thing to me:
Topic "SCWCD and IBM 285 "

Thanks and All the best.