RE: aaargh!

2001-04-12 Thread Sandy McPherson

Once you have cygwin32 (with gcc-2.95) and you can get the ant environment
variables sorted out using the apache/tomcat combo is a piece of cake. There
are also cygwin versions of SSL out there, if you just look...
http://sources.redhat.com/cygwin/
Sandy




> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Crooke
> Sent: Thursday, April 12, 2001 8:47 AM
> To: [EMAIL PROTECTED]
> Subject: Re: aaargh!
>
>
> Horses for courses..
>
> Win98 is designed to run games and Microsoft Office; it's not a webserver
> platform. Yes, it's possible to build a Unix-like development
> environment, but
> it will take work. Most Unix-esque open source stuff can be made
> to run on some
> versions of Windows, but it can take work.
>
> Conversely, Linux requires some hassle to support MS-Office
> documents (you have
> to tell Netscape to launch StarOffice / ABIword / ApplixWare) has limited
> support for browser plug-ins, and no games to speak of, but has
> an extremely
> comprehensive development environment out of the box (gcc, make,
> emacs, perl,
> tcl, cvs, ..) and you can build Apache from scratch like this:
>
> tar xvzf apache-1.3.19.tar.gz ; cd apache-1.3.19 ; ./configure ;
> make ; make
> install
>
> I must say I'm slightly surprised that you can't find a pre-built
> gcc binary for
> Win98 that you can use without needing to bootstrap via another compiler.
>
> I'd seriously suggest partitioning your hard disk and doing your
> Java servlet
> tinkering in Linux - you'll find it a lot less stressful. At
> minimum, can 98 in
> favour of NT.
>
> Cheers
> Dave
>
> Michael McElligott wrote:
>
> > Okay, so I want to hook up apache with Tomcat on my development
> box (win98).
> > So I read server.xml, and it tells me I need to make these
> modifications to
> > httpd.conf.  Then it says: here's how you make mod_webapp.so.
> Of course, to
> > make mod_webapp.so, I need make, right?  And since I'm on 98, I
> don't have
> > it.  That's aside from the fact that I need a compiler (I'm
> thinking gcc,
> > right?). So I download gcc.  It has to be made as well.  From the
> > documentation that I went through, looks like it encourages you
> to start with
> > Visual C++.  I don't *have* Visual C++.  I'm a java guy.  I was
> very happy to
> > leave pointers at school and go to a nice warm
> everything-done-for-you Java
> > world.  So then I think, well I guess I need to get make anyway
> (regardless of
> > the VC++ question).  Make has to be made too.  Hmm.. So I spot something
> > called egcs at one point and for some reason think it's an
> executable that
> > will run on Intel hardware.  Wrong.  Doesn't support windows at
> this time. The
> > point of this rant is not (as you might think) that the
> universe needs to
> > satisfy me.. it's just that I'm a little concerned that I need
> to go buy a
> > Microsoft product to get open source software to run on my
> machine.. Just
> > ranting at 2:15... Mike P.S.  I do have VC around here somewhere, but I
> > imagine lots of folks don't.. how do they get everything set up, without
> > having to guy buy VC++? P.P.S.  I suppose the easy answer would
> be to download
> > Red Hat, huh? ;)
>
>




Re: aaargh!

2001-04-11 Thread David Crooke

Horses for courses..

Win98 is designed to run games and Microsoft Office; it's not a webserver
platform. Yes, it's possible to build a Unix-like development environment, but
it will take work. Most Unix-esque open source stuff can be made to run on some
versions of Windows, but it can take work.

Conversely, Linux requires some hassle to support MS-Office documents (you have
to tell Netscape to launch StarOffice / ABIword / ApplixWare) has limited
support for browser plug-ins, and no games to speak of, but has an extremely
comprehensive development environment out of the box (gcc, make, emacs, perl,
tcl, cvs, ..) and you can build Apache from scratch like this:

tar xvzf apache-1.3.19.tar.gz ; cd apache-1.3.19 ; ./configure ; make ; make
install

I must say I'm slightly surprised that you can't find a pre-built gcc binary for
Win98 that you can use without needing to bootstrap via another compiler.

I'd seriously suggest partitioning your hard disk and doing your Java servlet
tinkering in Linux - you'll find it a lot less stressful. At minimum, can 98 in
favour of NT.

Cheers
Dave

Michael McElligott wrote:

> Okay, so I want to hook up apache with Tomcat on my development box (win98).
> So I read server.xml, and it tells me I need to make these modifications to
> httpd.conf.  Then it says: here's how you make mod_webapp.so. Of course, to
> make mod_webapp.so, I need make, right?  And since I'm on 98, I don't have
> it.  That's aside from the fact that I need a compiler (I'm thinking gcc,
> right?). So I download gcc.  It has to be made as well.  From the
> documentation that I went through, looks like it encourages you to start with
> Visual C++.  I don't *have* Visual C++.  I'm a java guy.  I was very happy to
> leave pointers at school and go to a nice warm everything-done-for-you Java
> world.  So then I think, well I guess I need to get make anyway (regardless of
> the VC++ question).  Make has to be made too.  Hmm.. So I spot something
> called egcs at one point and for some reason think it's an executable that
> will run on Intel hardware.  Wrong.  Doesn't support windows at this time. The
> point of this rant is not (as you might think) that the universe needs to
> satisfy me.. it's just that I'm a little concerned that I need to go buy a
> Microsoft product to get open source software to run on my machine.. Just
> ranting at 2:15... Mike P.S.  I do have VC around here somewhere, but I
> imagine lots of folks don't.. how do they get everything set up, without
> having to guy buy VC++? P.P.S.  I suppose the easy answer would be to download
> Red Hat, huh? ;)




RE: aaargh!

2001-04-10 Thread Mishler, Abe

Investigate cygwin...GNU development tools and utilities for Windows 95, 98,
and NT

http://cygwin.com/

Abe

-Original Message-
From: Danny Angus [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 5:24 AM
To: [EMAIL PROTECTED]
Subject: RE: aaargh!


>The point of this rant is not (as you might think) that the universe needs
to satisfy me.. it's just that I'm a little
>concerned that I need to go buy a Microsoft product to get open source
software to run on my machine..

I agree with this guy, VC++ seems a bit of a strange recommendation,
understandable in that it is the authoritative compiler for Windows, but
sits uneasily with the philosophy, and.. are non developers going to pay out
that much just to compile a slightly non-centered version of apache?

I'm not ranting, just curious.

d



RE: aaargh!

2001-04-06 Thread Danny Angus

>The point of this rant is not (as you might think) that the universe needs
to satisfy me.. it's just that I'm a little
>concerned that I need to go buy a Microsoft product to get open source
software to run on my machine..

I agree with this guy, VC++ seems a bit of a strange recommendation,
understandable in that it is the authoritative compiler for Windows, but
sits uneasily with the philosophy, and.. are non developers going to pay out
that much just to compile a slightly non-centered version of apache?

I'm not ranting, just curious.

d




Re: aaargh!

2001-04-06 Thread Pae Choi




Mike,
 
Which TOMCAT are you playing with?
 
 
Pae
 

-Original Message-From: 
Michael McElligott <[EMAIL PROTECTED]>To: 
[EMAIL PROTECTED] 
<[EMAIL PROTECTED]>Date: 
Friday, April 06, 2001 2:15 AMSubject: 
aaargh!
Okay, so I want to hook up apache with Tomcat 
on my development box (win98).  So I read server.xml, and it tells me I 
need to make these modifications to httpd.conf.  Then it says: here's 
how you make mod_webapp.so.
 
Of course, to make mod_webapp.so, I need make, 
right?  And since I'm on 98, I don't have it.  That's aside from 
the fact that I need a compiler (I'm thinking gcc, right?).
 
So I download gcc.  It has to be made as 
well.  From the documentation that I went through, looks like it 
encourages you to start with Visual C++.  I don't *have* Visual 
C++.  I'm a java guy.  I was very happy to leave pointers at 
school and go to a nice warm everything-done-for-you Java world.  So 
then I think, well I guess I need to get make anyway (regardless of the VC++ 
question).  Make has to be made too.  Hmm..
 
So I spot something called egcs at one point 
and for some reason think it's an executable that will run on Intel 
hardware.  Wrong.  Doesn't support windows at this 
time.
 
The point of this rant is not (as you might 
think) that the universe needs to satisfy me.. it's just that I'm a little 
concerned that I need to go buy a Microsoft product to get open source 
software to run on my machine..
 
Just ranting at 2:15...
 
Mike
 
P.S.  I do have VC around here somewhere, 
but I imagine lots of folks don't.. how do they get everything set up, 
without having to guy buy VC++?
 
P.P.S.  I suppose the easy answer would be 
to download Red Hat, huh? ;)
 


RE: aaargh..

2000-11-16 Thread Ranko Bijelonic

Its all of because where your code gets placed.
That is, the useBean tag is translated into code which comes before any of
the <% %> code in the body of JSP.
So when you use setProperty it is transalted into code that comes before
your <% %> code but there is no bean at that point.

Instead of changing the bean, you could put initialization code inside the
useBean tag.


<%
...any java code
%>


This way, the code you include will be placed at the right point when your
JSP is turned into a servlet.
The setProperty tags will get transalted into code that comes after this.

I hope this helps.

>just for arguments sake, why does then usebean tag need to create a bean
before i can use set-
>and getProperty on it?

thnx,
-Alexander.





Re: aaargh..

2000-11-16 Thread Alexander ten Bruggencate

William Brogden wrote:

> Alexander ten Bruggencate wrote:
> >
> > for the past 3 days i've been trying to get a jsp to work with an ejb of
> > mine.
> > the only problem is that  and  > /> won't work.
> >
> > tomcat reports: org.apache.jasper.JasperException: Attempted a bean
> > operation on a null object.
> > at
> > 
>org.apache.jasper.runtime.JspRuntimeLibrary.handleGetProperty(JspRuntimeLibrary.java:427)
> >
> > part of the jsp file:
> > <%
> > nl.step.stepdb.person.interfaces.Person p;
> > p = pbrowse.createUser();
> > %>
> >
> > now I KNOW that the creation of the person is succesfull because it
> > turns up in the datatbase.
> > so what's wrong here?
> >
> > i use jboss-2.0-final with tomcat 3.2b7.
> > i could really use some help here...
> >
> > -Alexander.
>
> In your useBean tag, did you give the complete package when naming the
> class?
> If you just give the class, the bean will not be created.
>
> --
> WBB - [EMAIL PROTECTED]
> Author of Java Developer's Guide to Servlets and JSP
> ISBN 0-7821-2809-2

Hi!,

i didn't use the  tag at all, because i made an idGeneratorBean that 
creates a
unique id for a person. Right now this means that  cannot create a 
person
because it doesn't know how to give that person a unique id...

So you are saying that the usebean tag should create the instance of my person bean? 
and only
after that can i try getProperty and setProperty?

This would mean some re-writing of my beans, so something like below WOULD work?
:::
add.jsp
:::




just for arguments sake, why does then usebean tag need to create a bean before i can 
use set-
and getProperty on it?

thnx,
-Alexander.




RE: aaargh..

2000-11-15 Thread Ranko Bijelonic

not an ejb, right, just a bean?  and what is your bean here? pbrowse?

> for the past 3 days i've been trying to get a jsp to work with an ejb of

-Original Message-
From: Danno Ferrin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 15, 2000 12:00 PM
To: [EMAIL PROTECTED]
Subject: Re: aaargh..


try storing the object p in the page attributes under the name that the
setProperty attribute is attempting to modify.  setProperty and
getProperty cannot function without the objects existing in one of the
attributes set.  (incidentally the jsp:useBean automatically exports the
object to the page attributes, which is why it works seamlessly).

--Danno

Alexander ten Bruggencate wrote:

> for the past 3 days i've been trying to get a jsp to work with an ejb of
> mine.
> the only problem is that  and  ./> won't work.
>
> tomcat reports: org.apache.jasper.JasperException: Attempted a bean
> operation on a null object.
> at
>
org.apache.jasper.runtime.JspRuntimeLibrary.handleGetProperty(JspRuntimeLibr
ary.java:427)
>
> part of the jsp file:
> <%
> nl.step.stepdb.person.interfaces.Person p;
> p = pbrowse.createUser();
> %>
>
> now I KNOW that the creation of the person is succesfull because it
> turns up in the datatbase.
> so what's wrong here?
>
> i use jboss-2.0-final with tomcat 3.2b7.
> i could really use some help here...
>
> -Alexander.
>
>
>
>





Re: aaargh..

2000-11-15 Thread Danno Ferrin

try storing the object p in the page attributes under the name that the 
setProperty attribute is attempting to modify.  setProperty and 
getProperty cannot function without the objects existing in one of the 
attributes set.  (incidentally the jsp:useBean automatically exports the 
object to the page attributes, which is why it works seamlessly).

--Danno

Alexander ten Bruggencate wrote:

> for the past 3 days i've been trying to get a jsp to work with an ejb of
> mine.
> the only problem is that  and  ./> won't work.
> 
> tomcat reports: org.apache.jasper.JasperException: Attempted a bean
> operation on a null object.
> at
> 
>org.apache.jasper.runtime.JspRuntimeLibrary.handleGetProperty(JspRuntimeLibrary.java:427)
> 
> part of the jsp file:
> <%
> nl.step.stepdb.person.interfaces.Person p;
> p = pbrowse.createUser();
> %>
> 
> now I KNOW that the creation of the person is succesfull because it
> turns up in the datatbase.
> so what's wrong here?
> 
> i use jboss-2.0-final with tomcat 3.2b7.
> i could really use some help here...
> 
> -Alexander.
> 
> 
> 
> 




Re: aaargh..

2000-11-15 Thread William Brogden



Alexander ten Bruggencate wrote:
> 
> for the past 3 days i've been trying to get a jsp to work with an ejb of
> mine.
> the only problem is that  and  /> won't work.
> 
> tomcat reports: org.apache.jasper.JasperException: Attempted a bean
> operation on a null object.
> at
> 
>org.apache.jasper.runtime.JspRuntimeLibrary.handleGetProperty(JspRuntimeLibrary.java:427)
> 
> part of the jsp file:
> <%
> nl.step.stepdb.person.interfaces.Person p;
> p = pbrowse.createUser();
> %>
> 
> now I KNOW that the creation of the person is succesfull because it
> turns up in the datatbase.
> so what's wrong here?
> 
> i use jboss-2.0-final with tomcat 3.2b7.
> i could really use some help here...
> 
> -Alexander.

In your useBean tag, did you give the complete package when naming the
class?
If you just give the class, the bean will not be created.

-- 
WBB - [EMAIL PROTECTED]
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2