Re: Hello World Tutorial - Requested Resource not available

2009-06-12 Thread viola.lu

pls add  hello.jsp entry in your web.xml under
WEB-INF.

caof2005 wrote:
> 
> Thanks Viola.
> I was wrong when writing the error message that I got. The correct one is:
> 
> HTTP status 404/HelloWorld/
> type status report
> mesage /HelloWorld/
> description "The requested resource (/HelloWorld/) is not available.
> 
> And http://localhost:8080/HelloWorld/ address automatically appeared in
> the url address bar of the embedded browser after I run/deploy.
> 
> So as you see nothing changes but the name of the resource.
> 
> However, while I was trying to inspect that address, I  appended  the
> "hello.jsp" part to the end of the address. And it worked perfectly!
> Thanks a lot!
> 
> But I still have the question...:
> Is there a way to configure the embedded browser, so that it automatically
> detects the correct URL?
> 
> I carefully followed each of the steps indicated in the tutorial, so I
> supposed that I will get no error message at all, or had to change
> anything in any view/browser.
> 
> The parameters that I used while I was in the Dynamic Project Wizard were:
> 
> Project Name: HelloWorld
> Directory: D:\SWExercises\eclipse\HelloWorld
> Target Runtime: Apache Geronimo v2.1
> Dynamic WebModule Version: 2.5
> Configuration: Default Configuration for Apache v2.1
> Context Root: HelloWorld
> Content Directory: WebContent
> Java Source Directory: src
> Generate Deployment Descriptor - yes
> Group Id: default
> Artifact Id:
> Version: 1.0
> Artifact Type: car
> Add runtime dependency to Geronimo shared library - no
> 
> Parent Folder: HellWorld/WebContent
> Name of the JSP added to the project: hello.jsp
> 
> 
> Could you clarify what I did wrong?
> 
> Thanks
> Carlos
> 
> 
> viola.lu wrote:
>> 
>> For hello world sample, access link is
>> http://localhost:8080/HelloWorld/hello.jsp, not
>> http://localhost:8080/Hello/hello.jsp.
>> 
>> caof2005 wrote:
>>> 
>>> Hi, folks, I´m totally newbe to Geronimo so this question:
>>> 
>>> I have tried to do the "Hello World Web Application" that is described
>>> in the Geronimo´s v2.1 Developers Guide Tutorial Section.
>>> 
>>> I am using Eclipse Gamynedes 3.4.2 with the Geronimo Eclipse Plugin
>>> (GEP) 2.1.4.
>>> 
>>> I followed each of the steps indicated in the tutorial, however at the
>>> end when trying to run and deploy a simple Hello.jsp page from within
>>> Eclipse GEP, what I got from the embedded browser is the following
>>> error:
>>> 
>>> HTTP status 404/hello/
>>> type status report
>>> mesage /hello/
>>> description "The requested resource (/hello/) is not available.
>>> 
>>> Does anybody have an idea what can be happening?
>>> 
>>> Regards.
>>> Carlos
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Hello-World-Tutorial---Requested-Resource-not-available-tp24000364s134p24008438.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Hello World Tutorial - Requested Resource not available

2009-06-12 Thread caof2005

Thanks Viola.
I was wrong when writing the error message that I got. The correct one is:

HTTP status 404/HelloWorld/
type status report
mesage /HelloWorld/
description "The requested resource (/HelloWorld/) is not available.

And http://localhost:8080/HelloWorld/ address automatically appeared in the
url address bar of the embedded browser after I run/deploy.

So as you see nothing changes but the name of the resource.

However, while I was trying to inspect that address, I  appended  the
"hello.jsp" part to the end of the address. And it worked perfectly! Thanks
a lot!

But I still have the question...:
Is there a way to configure the embedded browser, so that it automatically
detects the correct URL?

I carefully followed each of the steps indicated in the tutorial, so I
supposed that I will get no error message at all, or had to change anything
in any view/browser.

The parameters that I used while I was in the Dynamic Project Wizard were:

Project Name: HelloWorld
Directory: D:\SWExercises\eclipse\HelloWorld
Target Runtime: Apache Geronimo v2.1
Dynamic WebModule Version: 2.5
Configuration: Default Configuration for Apache v2.1
Context Root: HelloWorld
Content Directory: WebContent
Java Source Directory: src
Generate Deployment Descriptor - yes
Group Id: default
Artifact Id:
Version: 1.0
Artifact Type: car
Add runtime dependency to Geronimo shared library - no

Parent Folder: HellWorld/WebContent
Name of the JSP added to the project: hello.jsp


Could you clarify what I did wrong?

Thanks
Carlos


viola.lu wrote:
> 
> For hello world sample, access link is
> http://localhost:8080/HelloWorld/hello.jsp, not
> http://localhost:8080/Hello/hello.jsp.
> 
> caof2005 wrote:
>> 
>> Hi, folks, I´m totally newbe to Geronimo so this question:
>> 
>> I have tried to do the "Hello World Web Application" that is described in
>> the Geronimo´s v2.1 Developers Guide Tutorial Section.
>> 
>> I am using Eclipse Gamynedes 3.4.2 with the Geronimo Eclipse Plugin (GEP)
>> 2.1.4.
>> 
>> I followed each of the steps indicated in the tutorial, however at the
>> end when trying to run and deploy a simple Hello.jsp page from within
>> Eclipse GEP, what I got from the embedded browser is the following error:
>> 
>> HTTP status 404/hello/
>> type status report
>> mesage /hello/
>> description "The requested resource (/hello/) is not available.
>> 
>> Does anybody have an idea what can be happening?
>> 
>> Regards.
>> Carlos
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Hello-World-Tutorial---Requested-Resource-not-available-tp24000364s134p24008420.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: The Geronimo is developed based OSGI?

2009-06-12 Thread Boern
It`s very nice!

On Sat, Jun 13, 2009 at 12:12 AM, David Jencks wrote:

>
> On Jun 12, 2009, at 2:57 AM, Boern wrote:
>
>  Hi,all:
>> I want to know the Geronimo core framwork whether based OSGI,anybody can
>> tell me?
>>
>
> Not yet.  We expect 2.2 to be the last non-osgi release and we are working
> on basing future releases on osgi.
>
> thanks
> david jencks
>
>
>>
>> --
>> Boern Parx
>>
>


-- 
Boern Parx


Re: configure 3 IP based apache vhosts to 1 geronimo host

2009-06-12 Thread Bill Brown

Hi David: 

Thanks for the suggestions.  I managed to get the sites to load now by
adding the trailing slash / character in my ProxyPass directive after the
app name.  

ProxyPass / balancer://tomcat/hostaApp stickysession=JSESSIONID 
changed to 
ProxyPass / balancer://tomcat/hostaApp/ stickysession=JSESSIONID

This is good but now there is another error for the app which has container
managed security:

I'm using j_security_check in a form and evertyime I attempt to access a
protected page I'm kicked to the login form as standard, but when I
authenticate,  I get a 408 error with this error message in Firefox:

Connection Interrupted
The connection to the server was reset while the page was loading.
The network link was interrupted while negotiating a connection. Please try
again. 

The url displaying in the browser is "http://hosta/j_security_check";

Does this look anymore fimiliar to something you've seen previously? 

Thanks again. 
Bill.

-- 
View this message in context: 
http://www.nabble.com/configure-3-IP-based-apache-vhosts-to-1-geronimo-host-tp24001954s134p24004315.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: configure 3 IP based apache vhosts to 1 geronimo host

2009-06-12 Thread David Jencks
I don't understand what you want to do yet. I'm also not that  
familiar with vhosts.


one possibility...

deploy all three apps on geronimo at / rather than at /hostxApp, with  
virtual hosts specified for each app.  Is this the configuration you  
tried, works, and you don't like?


another possiblilty
deploy apps at separate context roots as at present,  but have  
mod_proxy unrewrite the urls on the return so they appear to not have  
the extra goo in them.  I have no idea if this is in any way  
plausible :-/


something else?

thanks
david jencks

On Jun 12, 2009, at 9:13 AM, Bill Brown wrote:



Greetings geronimo users.

I have a question for people regarding the configuration of geronimo  
2.1.4

I'm trying to get working.

I have 3 apache IP based virtual hosts.  hosta, hostb, hostc

I have 1 backend geronimo instance with three apps: localhost/ 
hostaApp,

localhost/hostbApp, localhost/hostcApp

Im using mod_proxy ajp/load balancing to attempt connect the two  
together
in each vhost configuration, I have the balancer setup and  
configured as so:



   ServerName www.hosta.com
   ServerAlias hosta.com *.hosta.com

   
   BalancerMember ajp://localhost:8009 route=tomcat1
   

   ProxyPass / balancer://tomcat/hostaApp stickysession=JSESSIONID

   CustomLog /var/log/apache2/hosta.log combined
   LogLevel debug


with this setup, I type in at the browser "http://www.hosta.com";   
and what I

get back is the url "http://www.hosta.com/hostaApp";

I want the proxy to work with out rewriting the url and adding the / 
hostaApp

at the end.

In the debug logs I see stuff like

[Fri Jun 12 10:34:31 2009] [debug] mod_proxy_balancer.c(536): proxy:
BALANCER (balancer://
tomcat) worker (ajp://localhost:8009) rewritten to
ajp://localhost:8009/hostahostaApp/
...
[Fri Jun 12 10:34:31 2009] [debug] proxy_util.c(1916): proxy:  
connecting

ajp://localhost:8
009/hostahostaApp/ to localhost:8009
[Fri Jun 12 10:34:31 2009] [debug] proxy_util.c(2015): proxy:  
connected

/hostahostaApp/ to localhost:8009
...

Does someone here know if a setup like this is possible.  Having 3  
apache
vhosts proxied to a single vhost geronimo backend serving a  
different app

for the 3 vhosts?

I have had this configuring working in the past by making 3 geronimo  
vhosts
one for each app but I'm hoping to avoid the added geronimo  
configuration if

possible.

Maybe there is some changes I can make to the ajp connector?

Thanks for you help in looking at this.
Bill.


--
View this message in context: 
http://www.nabble.com/configure-3-IP-based-apache-vhosts-to-1-geronimo-host-tp24001954s134p24001954.html
Sent from the Apache Geronimo - Users mailing list archive at  
Nabble.com.




configure 3 IP based apache vhosts to 1 geronimo host

2009-06-12 Thread Bill Brown

Greetings geronimo users.  

I have a question for people regarding the configuration of geronimo 2.1.4
I'm trying to get working. 

I have 3 apache IP based virtual hosts.  hosta, hostb, hostc

I have 1 backend geronimo instance with three apps: localhost/hostaApp,
localhost/hostbApp, localhost/hostcApp

Im using mod_proxy ajp/load balancing to attempt connect the two together  
in each vhost configuration, I have the balancer setup and configured as so: 


ServerName www.hosta.com
ServerAlias hosta.com *.hosta.com


BalancerMember ajp://localhost:8009 route=tomcat1


ProxyPass / balancer://tomcat/hostaApp stickysession=JSESSIONID

CustomLog /var/log/apache2/hosta.log combined
LogLevel debug


with this setup, I type in at the browser "http://www.hosta.com";  and what I
get back is the url "http://www.hosta.com/hostaApp";

I want the proxy to work with out rewriting the url and adding the /hostaApp
at the end.  

In the debug logs I see stuff like 

[Fri Jun 12 10:34:31 2009] [debug] mod_proxy_balancer.c(536): proxy:
BALANCER (balancer://
tomcat) worker (ajp://localhost:8009) rewritten to
ajp://localhost:8009/hostahostaApp/
...
[Fri Jun 12 10:34:31 2009] [debug] proxy_util.c(1916): proxy: connecting
ajp://localhost:8
009/hostahostaApp/ to localhost:8009
[Fri Jun 12 10:34:31 2009] [debug] proxy_util.c(2015): proxy: connected
/hostahostaApp/ to localhost:8009
...

Does someone here know if a setup like this is possible.  Having 3 apache
vhosts proxied to a single vhost geronimo backend serving a different app
for the 3 vhosts?  

I have had this configuring working in the past by making 3 geronimo vhosts
one for each app but I'm hoping to avoid the added geronimo configuration if
possible.  

Maybe there is some changes I can make to the ajp connector? 

Thanks for you help in looking at this.
Bill.


-- 
View this message in context: 
http://www.nabble.com/configure-3-IP-based-apache-vhosts-to-1-geronimo-host-tp24001954s134p24001954.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: The Geronimo is developed based OSGI?

2009-06-12 Thread David Jencks


On Jun 12, 2009, at 2:57 AM, Boern wrote:


Hi,all:
I want to know the Geronimo core framwork whether based OSGI,anybody  
can tell me?


Not yet.  We expect 2.2 to be the last non-osgi release and we are  
working on basing future releases on osgi.


thanks
david jencks




--
Boern Parx


Re: Hello World Tutorial - Requested Resource not available

2009-06-12 Thread viola.lu

For hello world sample, access link is
http://localhost:8080/HelloWorld/hello.jsp, not
http://localhost:8080/Hello/hello.jsp.

caof2005 wrote:
> 
> Hi, folks, I´m totally newbe to Geronimo so this question:
> 
> I have tried to do the "Hello World Web Application" that is described in
> the Geronimo´s v2.1 Developers Guide Tutorial Section.
> 
> I am using Eclipse Gamynedes 3.4.2 with the Geronimo Eclipse Plugin (GEP)
> 2.1.4.
> 
> I followed each of the steps indicated in the tutorial, however at the end
> when trying to run and deploy a simple Hello.jsp page from within Eclipse
> GEP, what I got from the embedded browser is the following error:
> 
> HTTP status 404/hello/
> type status report
> mesage /hello/
> description "The requested resource (/hello/) is not available.
> 
> Does anybody have an idea what can be happening?
> 
> Regards.
> Carlos
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Hello-World-Tutorial---Requested-Resource-not-available-tp24000364s134p24000701.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Hello World Tutorial - Requested Resource not available

2009-06-12 Thread caof2005

Hi, folks, I´m totally newbe to Geronimo so this question:

I have tried to do the "Hello World Web Application" that is described in
the Geronimo´s v2.1 Developers Guide Tutorial Section.

I am using Eclipse Gamynedes 3.4.2 with the Geronimo Eclipse Plugin (GEP)
2.1.4.

I followed each of the steps indicated in the tutorial, however at the end
when trying to run and deploy a simple Hello.jsp page from within Eclipse
GEP, what I got from the embedded browser is the following error:

HTTP status 404/hello/
type status report
mesage /hello/
description "The requested resource (/hello/) is not available.

Does anybody have an idea what can be happening?

Regards.
Carlos

-- 
View this message in context: 
http://www.nabble.com/Hello-World-Tutorial---Requested-Resource-not-available-tp24000364s134p24000364.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: jar files for org.openejb.client.RemoteInitialContextFactory

2009-06-12 Thread Shawn Jiang
The jar file could be found in place like this:
$geronimo_home\repository\org\apache\openejb\openejb-client\3.0.1\openejb-client-3.0.1.jar

The version might varies according to the geronimo version you are using.


BTW. geronimo 2.2 is not released yet.  The latest geronimo release is
2.1.4.  : )

On Fri, Jun 12, 2009 at 7:39 PM, pookie1973 wrote:

>
> I've downloaded WebSphere Application Server Community Edition which is
> based
> on Geronimo 2.2, when running my client it bombs with a no class found
> exeption on the class org.openejb.client.RemoteInitialContextFactory,
> obviously there is something I need to add to my build path. But I can't
> seem to find any jar containing this under my installation. Do I need to
> download OPenEJB to get hold of the jar containing this class, if so could
> someone point me in the direction of the correct jar to use. Or should I be
> using a different initial context factory class ?.
> --
> View this message in context:
> http://www.nabble.com/jar-files-for-org.openejb.client.RemoteInitialContextFactory-tp23997291s134p23997291.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


-- 
Shawn


jar files for org.openejb.client.RemoteInitialContextFactory

2009-06-12 Thread pookie1973

I've downloaded WebSphere Application Server Community Edition which is based
on Geronimo 2.2, when running my client it bombs with a no class found
exeption on the class org.openejb.client.RemoteInitialContextFactory,
obviously there is something I need to add to my build path. But I can't
seem to find any jar containing this under my installation. Do I need to
download OPenEJB to get hold of the jar containing this class, if so could
someone point me in the direction of the correct jar to use. Or should I be
using a different initial context factory class ?.
-- 
View this message in context: 
http://www.nabble.com/jar-files-for-org.openejb.client.RemoteInitialContextFactory-tp23997291s134p23997291.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



The Geronimo is developed based OSGI?

2009-06-12 Thread Boern
Hi,all:
I want to know the Geronimo core framwork whether based OSGI,anybody can
tell me?

-- 
Boern Parx