Win a copy of Svelte and Sapper in Action this week in the JavaScript 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

I'm at dummy level...

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry - I can't get jforum to come up.

Just to warn you - I'm new at java and php, and web in general - I've been developing applications in AIX & Windows. for the last 13+ years...

I have Window XP sp1 ( i know, I know...but I'm converting my server from RedHat 8.0 to freeBSD...more stream-lined...so here I am on my laptop)
I have Jave RTE & SDK for 1.4.2_05 (build b04)
I have apache 1.3.26 (Win32) with ZendStudio cli & svr
my web root dir is C:\Program Files\Apache Group\Apache\htdocs
my installation of jforum is in a sub dir of my main web site
C:\Program Files\Apache Group\Apache\htdocs\qotm\f

When I run open my browser (IE6 or FireFox 0.9.2) to
http://localhost/qotm/f/index.htm
I get :

Not Found
The requested URL /qotm/f/forums/list.page was not found on this server.

but from the initial extraction, there is no forums sub dir, and no list.page file exists anywhere..

Is this list.page file in the forums dir a result of the compile with build.xml?
If so - how do I run build.xml and pass paramaters to it to build all?

So many questions...
Can anyone spare some time?
It would be greatly appreciated.

Regards,
R.
[originally posted on jforum.net by robertachmann]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should get a Servlet-Container, like Tomcat ( http://jakarta.apache.org/tomcat ) to run JSP and Servlets. Apache cannot handle Java stuff.

The *.page are processed on-the-fly. I mean: java servlets allow you to create a configuration ( at WEB-INF/web.xml ) like ".. to every request which ends with .page, use that class to process ). So, if you open web.xml, you'll need a mapping named "*.page" pointing to net.jforum.JForum.class, which does the hard job.

But get Tomcat first

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok
- I have Apache Tomcat installed as a service
- I added in the httpd.conf file for apache:
AddHandler /qotm/f/WEB-INF/classes/net/jforum/JForum.class *.page
and I also tried just:
AddHandler JForum.class *.page

[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry..

ok
- I have Apache Tomcat installed as a service
tomcat is in dir:
C:\Program Files\Apache Group\Apache\htdocs\jakarta-tomcat-5.0.27
- I added in the httpd.conf file for apache:
AddHandler /qotm/f/WEB-INF/classes/net/jforum/JForum.class *.page
and I also tried just:
AddHandler JForum.class *.page
I restarted the apache web server and tomcat and still, when opening
http://localhost/qotm/f/index.htm
I get the error:

Not Found
The requested URL /qotm/f/forums/list.page was not found on this server.

Apache/1.3.26 Server at syd-rachmann.corp.crossoff.com Port 80

Any ideas? I'm kinda frustrated on this config stuff... Is Java always this hard to get running?
grrrrr.

R.
[originally posted on jforum.net by robertachmann]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is that you're trying to run a web java application using Apache. You should use tomcat for that ( or, at least, apache with mod_jk, which then redirects to tomcat ).
Apache does not handle java aplications. Tomcat is the guy responsible for this job. You can take a look in tomcat's manual, section "Context". A context in tomcat is much like a VirtualHost in Apache.

And yes, Java is a bit harder to configure ;).

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh, so I have to think or something along those lines then? Oh well. Time to load up the coal hopper and light the fires...

lol...


R.
[originally posted on jforum.net by robertachmann]
 
    Bookmark Topic Watch Topic
  • New Topic