Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

vinoth kumartc

Greenhorn
+ Follow
since Aug 10, 2009
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 vinoth kumartc

Ya its true, i tried in a notepad that's why it did'nt recognize..I will try in a word pad and keep yout posted.

thanks for your reply.
12 years ago
I am able to see the result.jsp under my webapplication folder.But i could not invoke directly from url.But still i could access other html files and jsp files from url
12 years ago
hi amit,

I tried to invoke jsp directly from the url.But still i get the 404 resource not found error.

hi anivaran,

The beer expert class just returns a arraylist.I have checked its functionality its working fine..

In the above post if i remove the comments(green color) and remove the jsp part in the BeerSelect class, im getting the result.where the beerservlet formats the html and send to the browser.

But the problem is with the jsp file.The jsp file is under the root directory.Do we need to configure jsp sepearately.Please advice
12 years ago
hi all,

I am using tomcat 5,windows xp
When i am displaying the result using jsp(by using request dispatcher), i am getting 404 error
My result.jsp is under root directory
But when i display result using "BeerSelect" servlet its working fine.
I have set classpath to point tomcat\common\lib\jsp-api.jar

could anyone help me to trouble shoot this problem.
This is my code

My jsp code is


[ARG: added code tags]
12 years ago
Hi william,misha,joe

I have successfully done my first servlet.I downloaded the tomcat again and set the variabes, it was working fine.Im progressing with other chapters of head first servlets and jsp.But still i dont know what went wrong with my first attempt.Thank you for your best advice.post you if i have any queries

regards
vinoth
12 years ago
Thats what i get when i run startup.bat

i dont know why it appears in quotes,

i have set the environment variables as in my earlier post, I also checked the logs under tomcat directiory as you said.But the logs folder is empty,nothing inside it.

From the error it has thrown, it seems the filename is some where wrong.But i have never changed any file or folder name except for the folder "tomcat" which was previously something different (like tomcat_5.0.26). I am not sure about the previous name of the tomcat directory.

Do you think the name of the directory "tomcat" could be a problem, if so we will change it to the previous name, by downloading again.

Thanks for your reply.

Iam preparing for scwcd.But Iam stuck up with my first step.
12 years ago
After editing the startup.bat

from
call "%EXECUTABLE%" start %CMD_LINE_ARGS%
to
call "%EXECUTABLE%" run %CMD_LINE_ARGS%

i got the following details in the same command window when i run startup.bat

at java.util.logging.Logger.getLogger(Logger.java:228)
at java.util.logging.Logger.<clinit>(Logger.java:181)
at org.apache.commons.logging.impl.Jdk14Logger.getLogger(Jdk14Logger.jav
a:181)
at org.apache.commons.logging.impl.Jdk14Logger.<init>(Jdk14Logger.java:6
1)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(Log
FactoryImpl.java:1116)
at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementat
ion(LogFactoryImpl.java:914)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
Impl.java:604)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
Impl.java:336)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
Impl.java:310)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:54)
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\tomcat" -Dcatalina.home=C:\tomcat"\logs\localh
ost.2009-08-21.log (The filename, directory name, or volume label syntax is incorrect)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at org.apache.juli.FileHandler.open(FileHandler.java:274)
at org.apache.juli.FileHandler.<init>(FileHandler.java:63)
at org.apache.juli.FileHandler.<init>(FileHandler.java:54)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLo
gManager.java:419)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLo
gManager.java:364)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLo
gManager.java:240)
at java.util.logging.LogManager$2.run(LogManager.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:247)
at java.util.logging.LogManager.getLogManager(LogManager.java:230)
at java.util.logging.Logger.<init>(Logger.java:149)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:964)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:961)
at java.util.logging.LogManager$1.run(LogManager.java:179)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.<clinit>(LogManager.java:156)
at java.util.logging.Logger.getLogger(Logger.java:228)
at java.util.logging.Logger.<clinit>(Logger.java:181)
at org.apache.commons.logging.impl.Jdk14Logger.getLogger(Jdk14Logger.java:181)
at org.apache.commons.logging.impl.Jdk14Logger.<init>(Jdk14Logger.java:61)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1116)
at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:914)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
Impl.java:604)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
Impl.java:310)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:54)
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\tomcat" -Dcatalina.home=C:\tomcat"\logs\manager.2009-08-21.log (The filename, directory name, or volume label syntax is incorrect)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at org.apache.juli.FileHandler.open(FileHandler.java:274)
at org.apache.juli.FileHandler.<init>(FileHandler.java:63)
at org.apache.juli.FileHandler.<init>(FileHandler.java:54)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLo
gManager.java:419)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLo
gManager.java:364)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLo
gManager.java:240)
at java.util.logging.LogManager$2.run(LogManager.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.j
ava:247)
at java.util.logging.LogManager.getLogManager(LogManager.java:230)
at java.util.logging.Logger.<init>(Logger.java:149)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:964)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:961)
at java.util.logging.LogManager$1.run(LogManager.java:179)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.<clinit>(LogManager.java:156)
at java.util.logging.Logger.getLogger(Logger.java:228)
at java.util.logging.Logger.<clinit>(Logger.java:181)
at org.apache.commons.logging.impl.Jdk14Logger.getLogger(Jdk14Logger.jav
a:181)
at org.apache.commons.logging.impl.Jdk14Logger.<init>(Jdk14Logger.java:6
1)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(Log
FactoryImpl.java:1116)
at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementat
ion(LogFactoryImpl.java:914)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
Impl.java:604)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
Impl.java:336)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
Impl.java:310)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:54)
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\tomcat" -Dcatalina.home=C:\tomcat"\logs\admin.
2009-08-21.log (The filename, directory name, or volume label syntax is incorrec
t)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at org.apache.juli.FileHandler.open(FileHandler.java:274)
at org.apache.juli.FileHandler.<init>(FileHandler.java:63)
at org.apache.juli.FileHandler.<init>(FileHandler.java:54)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLo
gManager.java:419)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLo
gManager.java:364)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLo
gManager.java:240)
at java.util.logging.LogManager$2.run(LogManager.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.j
ava:247)
at java.util.logging.LogManager.getLogManager(LogManager.java:230)
at java.util.logging.Logger.<init>(Logger.java:149)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:964)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:961)
at java.util.logging.LogManager$1.run(LogManager.java:179)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.<clinit>(LogManager.java:156)
at java.util.logging.Logger.getLogger(Logger.java:228)
at java.util.logging.Logger.<clinit>(Logger.java:181)
at org.apache.commons.logging.impl.Jdk14Logger.getLogger(Jdk14Logger.jav
a:181)
at org.apache.commons.logging.impl.Jdk14Logger.<init>(Jdk14Logger.java:6
1)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(Log
FactoryImpl.java:1116)
at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementat
ion(LogFactoryImpl.java:914)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
Impl.java:604)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
Impl.java:336)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
Impl.java:310)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:54)
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\tomcat" -Dcatalina.home=C:\tomcat"\logs\host-m
anager.2009-08-21.log (The filename, directory name, or volume label syntax is i
ncorrect)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at org.apache.juli.FileHandler.open(FileHandler.java:274)
at org.apache.juli.FileHandler.<init>(FileHandler.java:63)
at org.apache.juli.FileHandler.<init>(FileHandler.java:54)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLo
gManager.java:419)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLo
gManager.java:364)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLo
gManager.java:240)
at java.util.logging.LogManager$2.run(LogManager.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.j
ava:247)
at java.util.logging.LogManager.getLogManager(LogManager.java:230)
at java.util.logging.Logger.<init>(Logger.java:149)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:964)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:961)
at java.util.logging.LogManager$1.run(LogManager.java:179)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.<clinit>(LogManager.java:156)
at java.util.logging.Logger.getLogger(Logger.java:228)
at java.util.logging.Logger.<clinit>(Logger.java:181)
at org.apache.commons.logging.impl.Jdk14Logger.getLogger(Jdk14Logger.jav
a:181)
at org.apache.commons.logging.impl.Jdk14Logger.<init>(Jdk14Logger.java:6
1)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(Log
FactoryImpl.java:1116)
at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementat
ion(LogFactoryImpl.java:914)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
Impl.java:604)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
Impl.java:336)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
Impl.java:310)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:54)
Aug 21, 2009 11:06:32 AM org.apache.catalina.startup.Bootstrap initClassLoaders
SEVERE: Class loader creation threw exception
java.io.IOException: The filename, directory name, or volume label syntax is inc
orrect
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:395)
at java.io.File.getCanonicalPath(File.java:531)
at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(Clas
sLoaderFactory.java:200)
at org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.jav
a:180)
at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java
:104)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:213)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:410)
Aug 21, 2009 11:06:32 AM org.apache.catalina.startup.Bootstrap initClassLoaders
SEVERE: Class loader creation threw exception
java.io.IOException: The filename, directory name, or volume label syntax is inc
orrect
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:395)
at java.io.File.getCanonicalPath(File.java:531)
at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(Clas
sLoaderFactory.java:200)
at org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.jav
a:180)
at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java
:104)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:213)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:410)
C:\tomcat\bin>




Please advise me what to do, to solve this problem,I could see FileNotFound,IOException in the cmd window
12 years ago
hi william,

I first executed "startup.bat" since the command window closed immediately, joe asked me to run catalina to find out the problem.ok i will try what you said in "startup.bat".

Thanks for your reply.keep you posted after trying
12 years ago
I also found the following error when running catalina

Aug 20, 2009 1:32:37 PM org.apache.catalina.startup.Bootstrap initClassLoaders SEVERE: Class loader creation threw exception java.io.IOException: The filename, directory name, or volume label syntax is incorrect

I could see the same error twice

Help me to overcome this problem
12 years ago
when i run catailna i got the following error messges

java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\tomcat" -Dcatalina.home=C:\tomcat"\logs\host-m
anager.2009-08-20.log (The filename, directory name, or volume label syntax is i
ncorrect)

The same above error was repeated in two more places


Hi Misha,
The log file under tomcat is empty
c:/tomcat/logs
I could not find anything inside the logs folder,its empty
12 years ago
Thanks joe, wil try as you said and getback to you with my problem.For your information Iam running my server in windows xp
12 years ago
hi everyone

Iam getting problems in running tomcat

i have downloade tomcat version 5

my jdk location is
C:\Program Files\Java\jdk1.5.0_01

my tomcat location is
C:\tomcat

i have set the environment variable as
JAVA_HOME=c:\program files\java\jdk1.5.0_01
CATALINA_HOME=C:\tomcat\

when iam starting startup.bat from command prompt
c:\tomat\bin>startup.bat
A new command opens and runs something, but gets closed automatically and
i get the following in my command window
C:\tomcat\bin>startup.bat
Using CATALINA_BASE: C:\tomcat\
Using CATALINA_HOME: C:\tomcat\
Using CATALINA_TMPDIR: C:\tomcat\\temp
Using JRE_HOME: c:\program files\java\jdk1.5.0_01
Using CLASSPATH: C:\tomcat\\bin\bootstrap.jar

when i start the server from internet explorer
http://localhost:8080
Im getting the error
internet explorer cannot display the webpage


Please helpme to run the tomcat server
12 years ago