Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Access GUI from Tomcat localhost

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to get a Java program GUI to show up on the web using the local link http://localhost:8080/licenseForm. I keep getting an error

type Status report

message /licenseForm

description The requested resource (/licenseForm) is not available.

The .java file is in
/home/c047647/tomcat

The .class file is in
/home/me/tomcat/webapps/ROOT/WEB-INF/classes

the .java file compiles with no problem, but it just won't show up on the webpage.
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My guess is that the problem is with your deployment descriptor (the web.xml file), but I'm going to move this to the Tomcat forum for expert advice...
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat hosts web applications.
If you want to run Java apps in a browser, you would need to deploy them as applets.

If your Java class is an applet, you'll need to place it in a diretory that can be seen by browsers. The WEB-INF directory and it's subdirectories can not be accessed from a web client. It is for server side java classes only.
[ February 28, 2006: Message edited by: Ben Souther ]
 
Jeanne Pierre
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh I didn't know that...Thank you so much Ben.
 
Try 100 things. 2 will work out, but you will never know in advance which 2. This tiny ad might be one:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic