[Geoserver-users] Integrating geoserver with another web application

Hi,

I am working on a project where we will use Geoserver to display maps, info
ans do on, and do some specific functions on alongside.

i have no knowledge of struts and don't want to recompile geoserevr.

I was thinking of modifying the Jetty conf file so i can add our own
beans:servlets/Jsp, but have no clue where to start. I managed to add a
servlet but would prefer JSP + beans.

Can anyone point me to a place qhre i can find a sample or explanations ?

Thanks
--
View this message in context: http://www.nabble.com/Integrating-geoserver-with-another-web-application-tp15039122p15039122.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

bjousse ha scritto:

Hi,

I am working on a project where we will use Geoserver to display maps, info
ans do on, and do some specific functions on alongside.

i have no knowledge of struts and don't want to recompile geoserevr.

I was thinking of modifying the Jetty conf file so i can add our own
beans:servlets/Jsp, but have no clue where to start. I managed to add a
servlet but would prefer JSP + beans.

Can anyone point me to a place qhre i can find a sample or explanations ?

I'd suggest you roll two separate web apps, your own made with whatever
your comfortable with, and geoserver alone. The current geoserver UI
is not well known by any of the current developers and, time permitting,
will be removed and recoded.

Or do you need strict integration with GeoServer for any particular reason?
Cheers
Andrea

Well, on one side, i want to avoid having two separate servers. on the other
side, jetty + geoserver fits the bill for most of what we need for
cartography. I can manage usinf Openlayers to separate requests to one
web-app and geoSerVer, but I don't know how to roll another webapp alongside
Geoserver... If necessary, we'll use two servers.

aaime wrote:

I'd suggest you roll two separate web apps, your own made with whatever
your comfortable with, and geoserver alone.
Cheers
Andrea

--
View this message in context: http://www.nabble.com/Integrating-geoserver-with-another-web-application-tp15039122p15040579.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

bjousse ha scritto:

Well, on one side, i want to avoid having two separate servers. on the other
side, jetty + geoserver fits the bill for most of what we need for
cartography. I can manage usinf Openlayers to separate requests to one
web-app and geoSerVer, but I don't know how to roll another webapp alongside
Geoserver... If necessary, we'll use two servers.

If you want to use the GeoServer windows installer as is, or the .bin
release, I think it's enough to just drop your extra web app in the
"webapps" directory (did not try that thought).

Cheers
Andrea

Hi bjousse,

Yes you can run geoserver as a webapp in the same server Jetty, Tomcat ...
as your application, just drop the geoserver.war into the webapps directory.
It is sometimes/often useful to decouple your webapp from geoserver in this
manner.
  1. geoserver can be moved to other servers or virtual server instances
with minimal impact
  2. geoserver can be updated readily by dropping in a new .war ( make sure
you update GEOSERVER_DATA_DIR context parameter in the web.xml)
  3. multiple webapps can access the same geoserver resources
  4. your webapp can be updated independently
  5. log files can be separated

Others may have items they could add to the list.

Thanks
randy

-----Original Message-----
From: geoserver-users-bounces@lists.sourceforge.net
[mailto:geoserver-users-bounces@lists.sourceforge.net] On Behalf Of Andrea
Aime
Sent: Wednesday, January 23, 2008 6:43 AM
To: bjousse
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Integrating geoserver with another web
application

bjousse ha scritto:

Well, on one side, i want to avoid having two separate servers. on the

other

side, jetty + geoserver fits the bill for most of what we need for
cartography. I can manage usinf Openlayers to separate requests to one
web-app and geoSerVer, but I don't know how to roll another webapp

alongside

Geoserver... If necessary, we'll use two servers.

If you want to use the GeoServer windows installer as is, or the .bin
release, I think it's enough to just drop your extra web app in the
"webapps" directory (did not try that thought).

Cheers
Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

I just did that, destroyed the default install with Jetty, setup
Apache-Tomcat and there it goes.
Exactly what I needed.

By the way, Jonas-jetty was not happy with the XML file, it said it was not
correct.

Thanks for helping a REAL newbie....

Randy George wrote:

Hi bjousse,

Yes you can run geoserver as a webapp in the same server Jetty, Tomcat ...
as your application, just drop the geoserver.war into the webapps
directory.

( make sure you update GEOSERVER_DATA_DIR context parameter in the
web.xml)

--
View this message in context: http://www.nabble.com/Integrating-geoserver-with-another-web-application-tp15039122p15051325.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

bjousse ha scritto:

I just did that, destroyed the default install with Jetty, setup
Apache-Tomcat and there it goes.
Exactly what I needed.

By the way, Jonas-jetty was not happy with the XML file, it said it was not
correct.

Not correct? Which version of Jetty were you using? And which xml file?
Cheers
Andrea

Sorry about that, I did not copy the message....
I just downloaded from the Jonas site option :JOnAS(4.8.6) / Jetty (5.1.10),
checked the install (jonas check reported OK), went to
jonas/admin/deployment/Web modules and selected the geoserver war "as is" (I
had to change the default mem settings to do that).
At some time (restarting Jonas or trying geoserver ?) I got a message
complaining about the web.xml format, something to do with a DTD...
Sorry I did not copy it, but it was quite late and I was in a hurry....
(project meeting coming soon)

aaime wrote:

By the way, Jonas-jetty was not happy with the XML file, it said it was
not
correct.

Not correct? Which version of Jetty were you using? And which xml file?

--
View this message in context: http://www.nabble.com/Integrating-geoserver-with-another-web-application-tp15039122p15060908.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

bjousse ha scritto:

Sorry about that, I did not copy the message.... I just downloaded from the Jonas site option :JOnAS(4.8.6) / Jetty (5.1.10),
checked the install (jonas check reported OK), went to
jonas/admin/deployment/Web modules and selected the geoserver war "as is" (I
had to change the default mem settings to do that).
At some time (restarting Jonas or trying geoserver ?) I got a message
complaining about the web.xml format, something to do with a DTD...
Sorry I did not copy it, but it was quite late and I was in a hurry....
(project meeting coming soon)

Hum, we had an issue about web.xml not being compliant with the
DTD in fact, but that was with geoserver 1.6.0-rc2. rc3 should
have fixed that... which version are you using?

Cheers
Andrea

1.6.0 RC3
bernard

aaime wrote:

Hum, we had an issue about web.xml not being compliant with the
DTD in fact, but that was with geoserver 1.6.0-rc2. rc3 should
have fixed that... which version are you using?

--
View this message in context: http://www.nabble.com/Integrating-geoserver-with-another-web-application-tp15039122p15062439.html
Sent from the GeoServer - User mailing list archive at Nabble.com.