Not able to compile servlet pgm - using Tomcat
Hi,
I have a servlet pgm that I'm trying to compile.I using Tomcat application server.I have my servlet class in D:\servlet_wrk\project1\src
and my deployment descriptor in D:\servlet_wrk\project1\etc
my CLASSPATH var is set to C:\Sun\AppServer\jdk\bin
and
my PATH var is set to C:\Sun\AppServer\bin.
When I compile my servlet class Ch1Servlet.java in the command line from the directory
D:\servlet_wrk\project1 using the command
javac -classpath D:\applications\tomcat-5.5.12\common\lib\servlet-api.jar -d classes src/Ch1Servlet.java,
it says error:cannot read: src/Ch1Servlet.java
Can somebody help me to solve this problem and help me to compile my servlet class.
Thanks.
**MAJOR SPAMMING SCUM BAG ALERT**
I was puzzled in that you asked a SQL Server question in one post and then in another thread asked a Oracle related question... and then I noticed you had cross posted one of your questions at JavaRanch and I was more annoyed....
and then I found this....
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=10&t=002447
You sir -> Michael Byrd -> are a scum sucking dirtbag.
To quickly explain. Mr. Byrd posts his messages (which he copies wholesale from other posters) so that he can get better google caching for the website listed in his profile.
This is such scummy behaviour I don't even know what to say. Other than basically everyone that has ever helped you had totally wasted their time.
You are scum. Your company is scum. I hope you rot in hell.
Similar Messages
-
Not Able to compile Servlet from ?
Hi All,
I am not able to compile Servlet from my package:
1) I Have set the CLASSPATH Variable using below line in System Variables:
C:\CC4\prog\jakarta-tomcat-4.1.30\common\lib\servlet.jar
2) Also Set the CATALINA_HOME with value
C:\CC4\prog\jakarta-tomcat-4.1.30
as per above setting servlet should be compiled but still i m getting error message:
1) C:\CC4\prog\jakarta-tomcat-4.1.30\project\classes\com\example>javac ListenerTest
er.java
ListenerTester.java:17: cannot resolve symbol
symbol : class Dog
location: class com.example.ListenerTester
Dog dog = (Dog) getServletContext().getAttribute("dog");
^
ListenerTester.java:17: cannot resolve symbol
symbol : class Dog
location: class com.example.ListenerTester
Dog dog = (Dog) getServletContext().getAttribute("dog");
^
2 errors
2) Error while compiling other file:
C:\CC4\prog\jakarta-tomcat-4.1.30\project\classes\com\example>javac MyServletCon
textListener.java
MyServletContextListener.java:12: cannot resolve symbol
symbol : class Dog
location: class com.example.MyServletContextListener
Dog d = new Dog(dogBreed);
^
MyServletContextListener.java:12: cannot resolve symbol
symbol : class Dog
location: class com.example.MyServletContextListener
Dog d = new Dog(dogBreed);
^
2 errors
So what could be the posible solution here :
do reply !!!
please
Thanks
prabhatI have added servlet.jar in the classpath. But the program is not compiling.The error message says that it can not find classes like ServletConfig, ServletException, Cookie etc. Please help.
-
NOT able to compile servlet and EE java files
hi
i am not able to compile java files of servlet
it is showing cannot resolve symbol for servlet classes
since i have installed tomcat j2sdk1.4.2_06 and also facing problem with the classpath since i have to set the classpath everytime as i have already created it in environment variables
show me the way out**MAJOR SPAMMING SCUM BAG ALERT**
I was puzzled in that you asked a SQL Server question in one post and then in another thread asked a Oracle related question... and then I noticed you had cross posted one of your questions at JavaRanch and I was more annoyed....
and then I found this....
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=10&t=002447
You sir -> Michael Byrd -> are a scum sucking dirtbag.
To quickly explain. Mr. Byrd posts his messages (which he copies wholesale from other posters) so that he can get better google caching for the website listed in his profile.
This is such scummy behaviour I don't even know what to say. Other than basically everyone that has ever helped you had totally wasted their time.
You are scum. Your company is scum. I hope you rot in hell. -
Hello
I would like some one to help me.
I have WindowsXp professional on my Laptop. I downloaded jdk and I am able to compile and run the core java files.
I downloaded j2sdk1.4.2_10 from the website www.java.sun.com. and then set the path in the environment variables. But in the command promt I was not able to compile the servlet.
Could you please guide me about what more has to be done so that The servlet can compile.
Thanking you**MAJOR SPAMMING SCUM BAG ALERT**
I was puzzled in that you asked a SQL Server question in one post and then in another thread asked a Oracle related question... and then I noticed you had cross posted one of your questions at JavaRanch and I was more annoyed....
and then I found this....
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=10&t=002447
You sir -> Michael Byrd -> are a scum sucking dirtbag.
To quickly explain. Mr. Byrd posts his messages (which he copies wholesale from other posters) so that he can get better google caching for the website listed in his profile.
This is such scummy behaviour I don't even know what to say. Other than basically everyone that has ever helped you had totally wasted their time.
You are scum. Your company is scum. I hope you rot in hell. -
Problem in compiling servlet class - using Tomcat
Hi,
I have a servlet pgm that I'm trying to compile.I using Tomcat application server.I have my servlet class in D:\servlet_wrk\project1\src
and my deployment descriptor in D:\servlet_wrk\project1\etc
my CLASSPATH var is set to C:\Sun\AppServer\jdk\bin
and
my PATH var is set to C:\Sun\AppServer\bin.
When I compile my servlet class Ch1Servlet.java in the command line from the directory
D:\servlet_wrk\project1 using the command
javac -classpath D:\applications\tomcat-5.5.12\common\lib\servlet-api.jar -d classes src/Ch1Servlet.java,
it says error:cannot read: src/Ch1Servlet.java
Can somebody help me to solve this problem and help me to compile my servlet class.
Thanks.Thanks...as u said I tried putting dir & found that
my file was saved as Ch1Servlet.java.txt instead for
Ch1Servlet.java......So that was a problem.Now I'm
able to compile.Oh, yeah. Notepad will do that to you. I think when you save in Notepad if you put quotes around the name "Whatever.java" then it won't add the .txt.
But on compiling I'm getting the following error
package java.servlet.* does not exist
package java.servlet.http.* does not exist
package java.io.* does not exist
Do u the reason for this??? The servlet stuff is java[b]x.servlet. For the io stuff, I don't know, I'd have to see your code. Either you have a typo or a corrupt installation. -
I am not able to compile a program on my mac...
I am not able to compile a program on my mac; i am getting the following message :"Class names, 'ClassName.Java', are only accepted if annotation processing is explicitly requested". I am new to programming, and I am using a MAC. Any suggestions? I am typing: "Javac ClassName.Java" at the command prompt.
You might want to be posting to the developer forum here:
https://discussions.apple.com/community/developer_forums -
Not able to compile wrapped package bodies.
Hi All
Can anybody pls help me finding me the reason why I m not able to compile .plb (wrapped package body). There are no compilation errors. But when I run the .plb file (as @xyz.plb), sqlplus window hangs. No error shown. Everytime I had to close the window after waiting for 8-10 minutes.
This is happening only with 11 files out of 200.Rest were compiled.
Any ideas? Do we have any other way to wrap than using pl/sql wrap utility or pl/sql plug-in for wrapping(which is actually the same as former)??
ThanksInAdvance!!
Keep striking the iron until it's hot!yes, I did check for locks from pl/sql developer only. No Locks.
I waited for 10 minutes for a 6 kb .plb file to get compiled. But had to close the session after that.
I am using oracle 10g, pl/sql developer 7.1.0.1337
sql*plus Release 10.2.0.2.0 -
Hi Java Gurus
I am not able to compile this code Pl help
class For {
public static void main (String [] args) {
int I = 0;
show:
if (I < 2) {
System.out.print("I is " + I);
I++;
continue show;
}class For {
public static void main (String [] args) {
for(int i = 0; i < 2; i++){
System.out.print("I is " + i);
}this does the same as your program: the for loop is the best for this, but i agree with the others read some tutorials on loops in java. As posted before java has no concept of the GoTo syntax, loops or recursion are your only options -
Not able to change the password using FNDCPASS
I am not able to change password using FNDCPASS. I am getting follwoing error while executing following command with APPLMGR user ( before that I have source the .env file ) (OS-Linux)
[applmgr@ora11 /]$ FNDCPASS apps/apps 0 Y system/manager SYSTEM APPLSYS WELCOME
Log filename : L2741743.log
Report filename : O2741743.out
APP-FND-01630: Cannot open file L2741743.log for appending
Cause: FDPFOP encountered an error when attempting to open file L2741743.log for appending.
Action: Verify that the filename is correct and that the environment variables controlling that filename are correct.
Action: If the file is opened in read mode, check that the file exists. Check that you have privileges to read the file in the file directory. Contact your system administrator to obtain read privileges.
Action: If the file is opened in write or append mode, check that you have privileges to create and write files in the file directory. Contact your system administrator to obtain create and write privileges.
Can some one pls guide me on thisDuplicate post-
Not able to change the password using FNDCPASS
Please post only once.
Thanks, -
Certen user is not able to create the sc using sepecific vendor
Hi,
User is not able to create the SC entering specific vendor .
This vendor is in maintained in SRM for one pur.org (I have checked in PPOMA_BBP).
Then why he is not able to creating the sc using this Vendorwhether user is belong to same region of the Vendor or different. Is there any enhancements you have like that.
Please check those things.
Hope this will help.
Thanks
Venkatesh P -
I am not able to print double side using HP 2015dn printer using imac
I am not able to print double side using HP 2015dn printer using imac.
I found this information on HP site, but the article was quite old. May still be relevant:
1. Create a multi page document, or something that is more than one page.
2. Go to File/Page Setup.
3. Ensure the printer is listed in the Format for menu.
4. Click OK.
5. Go to File/Print but do not print yet.
6. Change the Copies and Pages menu to 'Layout'.
7. The Two-Sided option will be selectable only if the P2015 is listed in the Printer menu at the top of the print dialogue box.
8. Once you have chosen Long-edged binding, for example, click Print. -
Not able to run Servlet on Tomcat 5.0.24
my web.xml fragment (location is webapps/SG/WEB-INF)
<servlet>
<servlet-name>passAuthen</servlet-name>
<servlet-class>passAuthen</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>passAuthen</servlet-name>
<url-pattern>/passAuthen</url-pattern>
</servlet-mapping>
I'm calling the sevlet like this
http://localhost:8080/SG/passAuthen
and my servlet class is in webapps/SG/WEB-INF/classes/mypackage
Its not running, error is - The requested resource (/SG/passAuthen) is not available
Do i have to make changes to server.xml in conf, or any other changes required.
Could you please help me.I've moved everything over to my blade.
1 rd.xml
1 web.xml
2 jsp's - index.jsp and welcome.jsp
1 Login.java Servlet
in webapps dir:
/app/tomcat/webapps/rd.xml
/app/tomcat/tomcat/webapps/rd <dir>
in rd directory:
/app/tomcat/tomcat/webapps/rd/index.jsp
/app/tomcat/tomcat/webapps/rd/welcome.jsp
/app/tomcat/tomcat/webapps/rd/WEB-INF <dir>
in WEB-INF directory:
/app/tomcat/tomcat/webapps/rd\WEB-INF/web.xml
/app/tomcat/tomcat/webapps/rd/WEB-INF/classes <dir>
/app/tomcat/tomcat/webapps/rd/WEB-INF/lib <dir>
in classes directory:
/app/tomcat/tomcat/webapps/rd/WEB-INF/classes/Login.class
<< Also, you have to specify index.jsp and welcome.jsp as welcome pages in the web.xml, right?
I did not do this. This is what it looks like. What do I need to do?
web.xml:
<servlet>
<servlet-name>Login</servlet-name>
<servlet-class>http//:localhost:8080.rd.Login</servlet-class> // this is probably wrong. I am just using tomcat right now. localhost.
</servlet>
<servlet-mapping>
<servlet-name>Login</servlet-name>
<url-pattern>/Login</url-pattern>
</servlet-mapping>
rd.xml is just:
<Context path="/rd" docBase="/app/tomcat/webapps/rd">
</Context> -
OCI demos-not able to compile on red hat Linux
Can anyone narrate how can I get the OCI routines (demo) working.
I feel that they are failing to run. what are the check points needed
that I should verify that an OCI program executes.
Does this needs any special settings or running any script files
before hand?.
I am running on Red hat 6.1 and Oracle 8.1.6 based on Linux.
when I detected the installations, following program folders are
missing
1. plsql/public
2. lib/libextp.a
I used one of the porgrams in the sample oci13.c and changed the user
account and password. I then compiled as follows
gcc -I(include files) -c oci13new.c
But after this it gave me successfully the object file. But I could not
able to link this to produce any a.out file!.
Can anyone suggest how can I do this?
NatStep 1) is needed, you cannot got directly from 8.1.5 to 10g.
When you are on level 8.1.7.4 (Step 2)) there are alternatives to export/import, for example DBUA. But first, you are right, you have to build up a 8.1.7.4 database on Linux, because this release does not allow other methods of transportation across different platforms. Or you import directly into a new built database on Linux.
For database upgrade see
http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14238/preup.htm#sthref52
Step 3) is described step-by-step here:
http://www.oracle.com/technology/pub/articles/chan_sing2rac_install.html -
Hi
I am new to J2me technology. i downloaded cldc and midp. i have jdk already installed at c:\program files\java\jdk.
when i try to compile i got error saying not able to find javax.microedition.midlet.* package
please tell me how to install cldc and midp to run my first programHello
I would suggest using an IDE for writing the code (like eclipse maybe) and testing it on Sun's Wireless Toolkit which comes already with all the needed libraries.
Of course you can find all this information by searching google..
Mihai -
Not able to compile .pll or .fmb through installation file in R12 Upgrade.
While compiling .pll or .fmb individually using this command
1. frmcmp_batch module=$AU_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmb userid=apps/appla1na output_file=$XXIB_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmx compile_all=special batch=yes
OR
2.frmcmp_batch module=XXIB_I10_EXT_SEARCH.fmb userid=apps/appla1na output_file=$XXIB_TOP/forms/US/XXIB_I10_EXT_SEARCH.fmx compile_all=special
The file gets compiled and .plx & .fmx is generated.
Same command in .install file doesnt get compiled. Sample given below
# +======================================================================+
# Generation of English Forms
# +======================================================================+
echo "------------------------------- " | tee -a $LOG_FILE
echo "Generating Forms in English ... " | tee -a $LOG_FILE
echo "------------------------------- \n" | tee -a $LOG_FILE
export FORMS_PATH=$AU_TOP/resource:$AU_TOP/forms/US:$XXIB_TOP/forms/US:$FORMS_PATH
#exportFORMS60_PATH=$XXIB_TOP/forms/US:$AU_TOP/resource:$XXIB_TOP/resource:$AU_TOP/forms/US:$FORMS60_PATH
rmf $XXIB_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmx
#commented out for R12 Upgrade by KISHAN WIPRO
#f60gen $XXIB_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmb $APPS_LOGIN_ID Compile_All=YES output_file=$XXIB_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmx >> $LOG_FILE 2>> $LOG_FILE
#command used to compile in R12
frmcmp_batch module=$AU_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmb userid=$APPS_LOGIN_ID output_file=$XXIB_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmx compile_all=special batch=yes
if [ $? -eq 0 ];
then
echo "Billed Accounts Level Form Generation successful. " | tee -a $LOG_FILE
else
echo "Billed Accounts Level Form Generation failed. \n Please check the log file for error details and re-run." | tee -a $LOG_FILE
exit 1
fi
Need some help urgent
Contact me @ [email protected]
Edited by: 862540 on Oct 2, 2011 11:23 PMHi,
I have tried it, by inserting it before the form compilation code the echo command works , but then while compilation it gives me an error as file not found . This file XXIB_I10_BA_BALEVEL.fmb is existing in the given path . Is it a problem with the userid being given so. As i am able to compile the file individually(During individual compilation i have hard coded the username and password), not through a installlation file . Have even checked the FORMS_PATH even thats right .
Command used in installation file :
# +======================================================================+
echo "------------------------------- " | tee -a $LOG_FILE
echo "Generating Forms in English ... " | tee -a $LOG_FILE
echo "------------------------------- \n" | tee -a $LOG_FILE
export FORMS_PATH=$AU_TOP/resource:$AU_TOP/forms/US:$XXIB_TOP/forms/US:$FORMS_PATH
#export FORMS60_PATH=$XXIB_TOP/forms/US:$AU_TOP/resource:$XXIB_TOP/resource:$AU_TOP/forms/US:$FORMS60_PATH
rmf $XXIB_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmx
#commented out for R12 Upgrade by KISHAN WIPRO
#f60gen $XXIB_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmb $APPS_LOGIN_ID Compile_All=YES output_file=$XXIB_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmx >> $LOG_FILE 2>> $LOG_FILE
echo "Starting with compilation of English Form BA_BALEVEL"
frmcmp_batch module=XXIB_I10_BA_BALEVEL.fmb userid=$APPS_LOGIN_ID output_file=$XXIB_TOP/forms/US/XXIB_I10_BA_BALEVEL.fmx compile_all=special
if [ $? -eq 0 ];
then
echo "Billed Accounts Level Form Generation successful. " | tee -a $LOG_FILE
else
echo "Billed Accounts Level Form Generation failed. \n Please check the log file for error details and re-run." | tee -a $LOG_FILE
exit 1
fi
Not able to diagonis the error .
Regards
KISHAN.M.G
Maybe you are looking for
-
I want to preview images from my Nikon DSLR on my ipad2. It would also be nice to see the same video when the camera is in live mode. I bought the Apple ipad-to-HDMI connector and an hdmi (camera to connector) cable. Everything hooks up but nothing h
-
How can I change the email address associated with my iCloud account?
How can I change the email address associated with my iCloud account? Somehow, accidentally have my wife's email address on my iCloud account and on hers as well.
-
Multitrack View not showing up on Adobe Audtion 3.0
You have your Edit View, Multitrack View, and Cd View. Edit View and Cd View work when I click on them but Multitrack view doesn't come up when i click on it. The time selection although does change and I am able to navigate my cursor blindly not kno
-
Adding Metadata in pages for an epub
Hi I am going to use Pages to create and epub for itunes and kindle. One thing I cannot find is where to add a more comprehensive metadate, like ISBN etc. Can this be done in Pages? Regards
-
Mandatory custom metadata field with current system date as default value.
I want to create a custom metadata field of type Date. I want to make it mandatory and want to set its default value as system date. I have already created field of type Date. What expression I should write to make system date as default value? Becau