List Info

Thread: Shared Tomcat?




Shared Tomcat?
user name
2008-05-07 16:39:01
Hi all,-

does anyone have experience with getting Pebble to work on a
shared
Tomcat? I have bought a hosting account with one and have
deployed a
.war file with many customizations to the raw Pebble look.
When I view
the webapp however, only the default Pebble look is visible.
The login
doesn't work, and neither does viewing of blog entries.

Does this have to do with having a shared Tomcat? Because on
my
localhost, the webapp works perfectly.

Thanks, Vahagn

------------------------------------------------------------
-------------
This SF.net email is sponsored by the 2008 JavaOne(SM)
Conference 
Don't miss this year's exciting event. There's still time to
save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;1987
57673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Pebble-user mailing list
Pebble-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pebble-user


Re: Shared Tomcat?
user name
2008-05-07 16:45:30
On Wed, May 7, 2008 at 5:39 PM, Vahagn Hayrapetyan
<vahagnhgmail.com> wrote:
> Hi all,-
>
> does anyone have experience with getting Pebble to work
on a shared
> Tomcat? I have bought a hosting account with one and
have deployed a
> .war file with many customizations to the raw Pebble
look. When I view
> the webapp however, only the default Pebble look is
visible. The login
> doesn't work, and neither does viewing of blog
entries.
>
> Does this have to do with having a shared Tomcat?
Because on my
> localhost, the webapp works perfectly.
>
> Thanks, Vahagn

It is probably the shared Tomcat configuration.  Years ago I
had
something like that and what they had to do to Tomcat to get
it to
support multiple accounts made it unworkable for many
applications.

I currently run a private Tomcat instance that runs several
webapps
including several Pebble instances.

-- 
cordially,
Marty Milligan PO Box 434, Falling Waters, WV 25419
http://milligansisland.co
m/ http://adventureswithb
uck.com/
http://byteslinger.com/
http://creepinglunacy.com/
 http://mopedia.org/
http://mill-co.com/ http://oarl.org/ http://virtualgarage.net/

------------------------------------------------------------
-------------
This SF.net email is sponsored by the 2008 JavaOne(SM)
Conference 
Don't miss this year's exciting event. There's still time to
save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;1987
57673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Pebble-user mailing list
Pebble-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pebble-user


Re: Shared Tomcat?
user name
2008-05-07 16:53:58
Cheers mate! Just what I needed to know.

/ Vahagn

On Wed, May 7, 2008 at 11:45 PM, marty milligan
<martymilligansisland.com> wrote:
>
> On Wed, May 7, 2008 at 5:39 PM, Vahagn Hayrapetyan
<vahagnhgmail.com> wrote:
>  > Hi all,-
>  >
>  > does anyone have experience with getting Pebble
to work on a shared
>  > Tomcat? I have bought a hosting account with one
and have deployed a
>  > .war file with many customizations to the raw
Pebble look. When I view
>  > the webapp however, only the default Pebble look
is visible. The login
>  > doesn't work, and neither does viewing of blog
entries.
>  >
>  > Does this have to do with having a shared Tomcat?
Because on my
>  > localhost, the webapp works perfectly.
>  >
>  > Thanks, Vahagn
>
>  It is probably the shared Tomcat configuration.  Years
ago I had
>  something like that and what they had to do to Tomcat
to get it to
>  support multiple accounts made it unworkable for many
applications.
>
>  I currently run a private Tomcat instance that runs
several webapps
>  including several Pebble instances.
>
>  --
>  cordially,
>  Marty Milligan PO Box 434, Falling Waters, WV 25419
>  http://milligansisland.co
m/ http://adventureswithb
uck.com/
>  http://byteslinger.com/
http://creepinglunacy.com/
 http://mopedia.org/
>  http://mill-co.com/
http://oarl.org/ http://virtualgarage.net/
>
> 
------------------------------------------------------------
-------------
>  This SF.net email is sponsored by the 2008 JavaOne(SM)
Conference
>  Don't miss this year's exciting event. There's still
time to save $100.
>  Use priority code J8TL2D2.
>  http://ad.doubleclick.net/clk;1987
57673;13503038;p?http://java.sun.com/javaone
>  _______________________________________________
>  Pebble-user mailing list
>  Pebble-userlists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/pebble-user

>

------------------------------------------------------------
-------------
This SF.net email is sponsored by the 2008 JavaOne(SM)
Conference 
Don't miss this year's exciting event. There's still time to
save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;1987
57673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Pebble-user mailing list
Pebble-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pebble-user


Re: Shared Tomcat?
user name
2008-05-08 15:38:44
Hi Vahagn ,

Remember me?  We help launch the Pebble User Group last
Fall.

I should speak up here as I have been fiddling with the
whole shared
Tomcat Pebble install thing for a while now.  I started a
blog entry
on the subject in the PebbleUserGroup.org blog (which itself
is one of
many Pebble blogs running in one of many different virtual
hosts - all
sharing the same Tomcat instance).

I too tried a few of the generic Apache Java Hosting
provider
solutions, and none of them worked for me either, so what I
have is
slightly custom. There are still a few quirks I need to iron
out in my
own installation, and I hope to get a chance to work on this
again
soon, but in the meantime, you might get a few ideas from
the Pebble
User Group blog entry entitled "Apache/Tomcat
Configuration" :

http://pebbleusergroup.org/pebble
/PebbleUserGroup/2007/11/17/1195319760000.html

David McLure

On Wed, May 7, 2008 at 5:53 PM, Vahagn Hayrapetyan
<vahagnhgmail.com> wrote:
> Cheers mate! Just what I needed to know.
>
> / Vahagn
>
> On Wed, May 7, 2008 at 11:45 PM, marty milligan
> <martymilligansisland.com> wrote:
>>
>> On Wed, May 7, 2008 at 5:39 PM, Vahagn Hayrapetyan
<vahagnhgmail.com> wrote:
>>  > Hi all,-
>>  >
>>  > does anyone have experience with getting
Pebble to work on a shared
>>  > Tomcat? I have bought a hosting account with
one and have deployed a
>>  > .war file with many customizations to the raw
Pebble look. When I view
>>  > the webapp however, only the default Pebble
look is visible. The login
>>  > doesn't work, and neither does viewing of
blog entries.
>>  >
>>  > Does this have to do with having a shared
Tomcat? Because on my
>>  > localhost, the webapp works perfectly.
>>  >
>>  > Thanks, Vahagn
>>
>>  It is probably the shared Tomcat configuration. 
Years ago I had
>>  something like that and what they had to do to
Tomcat to get it to
>>  support multiple accounts made it unworkable for
many applications.
>>
>>  I currently run a private Tomcat instance that
runs several webapps
>>  including several Pebble instances.
>>
>>  --
>>  cordially,
>>  Marty Milligan PO Box 434, Falling Waters, WV
25419
>>  http://milligansisland.co
m/ http://adventureswithb
uck.com/
>>  http://byteslinger.com/
http://creepinglunacy.com/
 http://mopedia.org/
>>  http://mill-co.com/ http://oarl.org/ http://virtualgarage.net/
>>
>> 
------------------------------------------------------------
-------------
>>  This SF.net email is sponsored by the 2008
JavaOne(SM) Conference
>>  Don't miss this year's exciting event. There's
still time to save $100.
>>  Use priority code J8TL2D2.
>>  http://ad.doubleclick.net/clk;1987
57673;13503038;p?http://java.sun.com/javaone
>>  _______________________________________________
>>  Pebble-user mailing list
>>  Pebble-userlists.sourceforge.net
>>  https://lists.sourceforge.net/lists/listinfo/pebble-user

>>
>
>
------------------------------------------------------------
-------------
> This SF.net email is sponsored by the 2008 JavaOne(SM)
Conference
> Don't miss this year's exciting event. There's still
time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;1987
57673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Pebble-user mailing list
> Pebble-userlists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pebble-user

>

------------------------------------------------------------
-------------
This SF.net email is sponsored by the 2008 JavaOne(SM)
Conference 
Don't miss this year's exciting event. There's still time to
save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;1987
57673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Pebble-user mailing list
Pebble-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pebble-user


Re: Shared Tomcat?
user name
2008-05-09 05:30:59
Hi Dave,-

sure I remember; I frequently kick myself for "not
having time" to
write more on the PUG.

I've read the blog entry, however at present moment the
most
economical solution for me seems to be to just separate my
two Pebble
instances until I've learned how to accommodate two or more
on the
same server / JVM.

Certain sites need to be online swiftly.

All the best, Vahagn

On Thu, May 8, 2008 at 10:38 PM, David McLure <davidmclures.net> wrote:
> Hi Vahagn ,
>
> Remember me?  We help launch the Pebble User Group last
Fall.
>
> I should speak up here as I have been fiddling with the
whole shared
> Tomcat Pebble install thing for a while now.  I started
a blog entry
> on the subject in the PebbleUserGroup.org blog (which
itself is one of
> many Pebble blogs running in one of many different
virtual hosts - all
> sharing the same Tomcat instance).
>
> I too tried a few of the generic Apache Java Hosting
provider
> solutions, and none of them worked for me either, so
what I have is
> slightly custom. There are still a few quirks I need to
iron out in my
> own installation, and I hope to get a chance to work on
this again
> soon, but in the meantime, you might get a few ideas
from the Pebble
> User Group blog entry entitled "Apache/Tomcat
Configuration" :
>
> http://pebbleusergroup.org/pebble
/PebbleUserGroup/2007/11/17/1195319760000.html
>
> David McLure
>
> On Wed, May 7, 2008 at 5:53 PM, Vahagn Hayrapetyan
<vahagnhgmail.com> wrote:
>> Cheers mate! Just what I needed to know.
>>
>> / Vahagn
>>
>> On Wed, May 7, 2008 at 11:45 PM, marty milligan
>> <martymilligansisland.com> wrote:
>>>
>>> On Wed, May 7, 2008 at 5:39 PM, Vahagn
Hayrapetyan <vahagnhgmail.com> wrote:
>>>  > Hi all,-
>>>  >
>>>  > does anyone have experience with getting
Pebble to work on a shared
>>>  > Tomcat? I have bought a hosting account
with one and have deployed a
>>>  > .war file with many customizations to the
raw Pebble look. When I view
>>>  > the webapp however, only the default
Pebble look is visible. The login
>>>  > doesn't work, and neither does viewing of
blog entries.
>>>  >
>>>  > Does this have to do with having a shared
Tomcat? Because on my
>>>  > localhost, the webapp works perfectly.
>>>  >
>>>  > Thanks, Vahagn
>>>
>>>  It is probably the shared Tomcat
configuration.  Years ago I had
>>>  something like that and what they had to do to
Tomcat to get it to
>>>  support multiple accounts made it unworkable
for many applications.
>>>
>>>  I currently run a private Tomcat instance that
runs several webapps
>>>  including several Pebble instances.
>>>
>>>  --
>>>  cordially,
>>>  Marty Milligan PO Box 434, Falling Waters, WV
25419
>>>  http://milligansisland.co
m/ http://adventureswithb
uck.com/
>>>  http://byteslinger.com/
http://creepinglunacy.com/
 http://mopedia.org/
>>>  http://mill-co.com/ http://oarl.org/ http://virtualgarage.net/
>>>
>>> 
------------------------------------------------------------
-------------
>>>  This SF.net email is sponsored by the 2008
JavaOne(SM) Conference
>>>  Don't miss this year's exciting event. There's
still time to save $100.
>>>  Use priority code J8TL2D2.
>>>  http://ad.doubleclick.net/clk;1987
57673;13503038;p?http://java.sun.com/javaone
>>> 
_______________________________________________
>>>  Pebble-user mailing list
>>>  Pebble-userlists.sourceforge.net
>>>  https://lists.sourceforge.net/lists/listinfo/pebble-user

>>>
>>
>>
------------------------------------------------------------
-------------
>> This SF.net email is sponsored by the 2008
JavaOne(SM) Conference
>> Don't miss this year's exciting event. There's
still time to save $100.
>> Use priority code J8TL2D2.
>> http://ad.doubleclick.net/clk;1987
57673;13503038;p?http://java.sun.com/javaone
>> _______________________________________________
>> Pebble-user mailing list
>> Pebble-userlists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/pebble-user

>>
>
>
------------------------------------------------------------
-------------
> This SF.net email is sponsored by the 2008 JavaOne(SM)
Conference
> Don't miss this year's exciting event. There's still
time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;1987
57673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Pebble-user mailing list
> Pebble-userlists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pebble-user

>

------------------------------------------------------------
-------------
This SF.net email is sponsored by the 2008 JavaOne(SM)
Conference 
Don't miss this year's exciting event. There's still time to
save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;1987
57673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Pebble-user mailing list
Pebble-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pebble-user


Re: Shared Tomcat?
user name
2008-05-09 10:36:04
Hi Olaf,

Yes, this is the problem that re-emerged when I had to
back-rev to an
earlier version of my Apache / Tomcat config files in which
my
multiple web domains and their respective mod_jk workers are
all
currently sharing the same worker port.

I actually had a multi-port version working, but things got
a little
messed up when I forgot to script things for cpanel and
later added a
couple of new web domains using the automated cpanel
software which
goes in and writes to the apache.conf on its own
(long story).  At the time, I didn't have time to mess with
it, so I
just pulled out the earlier version which allows me to sort
of limp
along.

I'll see if I can't fix this and post an update.

Stay tuned...

Dave


On Fri, May 9, 2008 at 10:37 AM, Olaf Kock <okockabstrakt.de> wrote:
> David McLure schrieb:
>> Hi Vahagn ,
>>
>> Remember me?  We help launch the Pebble User Group
last Fall.
>>
>> [..] you might get a few ideas from the Pebble
>> User Group blog entry entitled "Apache/Tomcat
Configuration" :
>>
>> http://pebbleusergroup.org/pebble
/PebbleUserGroup/2007/11/17/1195319760000.html
>
> Hi,
>
> I vaguely remember to have commented on that entry some
long time ago -
> but can't find any comments there.
>
> Also I see, that the site seems to mix some virtual
hosts as fits - e.g.
> if you click the title in your entry, this leads you to
the same entry
> on wordsheard.org.
>
> I believe that this also gets back to ${base.url} that
I wrote about
> some days earlier here.
>
> Please check if there are comments that are not yet
approved - otherwise
> I'll try to remember what I wrote some time ago and
re-comment, probably
> here.
>
> Cheers,
> Olaf
>
>
>
------------------------------------------------------------
-------------
> This SF.net email is sponsored by the 2008 JavaOne(SM)
Conference
> Don't miss this year's exciting event. There's still
time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;1987
57673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Pebble-user mailing list
> Pebble-userlists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pebble-user

>

------------------------------------------------------------
-------------
This SF.net email is sponsored by the 2008 JavaOne(SM)
Conference 
Don't miss this year's exciting event. There's still time to
save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;1987
57673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Pebble-user mailing list
Pebble-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pebble-user


Re: Tomcat/Apache configuration files and comments (was: Shared Tomcat?)
user name
2008-05-09 21:00:32
If you're not load balancing, (which you aren't in the above config because your load balancer worker isn't in your worker.list), none of the load balancer properties are needed.

On Sat, May 10, 2008 at 3:54 AM, Olaf Kock < okockabstrakt.de">okockabstrakt.de> wrote:
David McLure schrieb:
> Hi Olaf,
&gt;
> Yes, this is the problem that re-emerged when I had to back-rev to an
> earlier version of my Apache / Tomcat config files in which my
> multiple web domains and their respective mod_jk workers are all
> currently sharing the same worker port.

Hi,

I've skimmed through your config files and believe they are a bit too
verbose and contain some duplication and some misleading parts.

First: From httpd.conf it looks like the domains mydomain.com,
foodomain.com and bardomain.com are all resolving to the same IP
address. If this is the case, a single worker in worker.properties would
be sufficient.

I9;ll try to sketch the config files here. Attention: They have been
typed into thunderbird and never touched a real server.

workers.properties:
 worker.list=theworker
 #
 worker.theWorker.port=8009
 worker.theWorker.host=localhost
 worker.theWorker.type=ajp13
 #
 # don't know how much of these is required:
 worker.theWorker.lbfactor=1
 worker.loadbalancer.type=lb
 worker.loadbalancer.balance_workers=theWorker

httpd.conf:
 <VirtualHost 1.2.3.4&gt;
    ServerName www.mydomain.com
    # omitting some irrelevant stuff for connecting to tomcat
    JkMount /pebble theWorker
    JkMount /pebble/* theWorker
 </VirtualHost>

mod_jk.conf:
 <IfModule !mod_jk.c&gt;
   LoadModule jk_module libexec/mod_jk.so
 </IfModule&gt;
 JkWorkersFile /path/to/your/workers.properties
 # Don't know how much of JkShmFile, JkLogFile,
 # JkLogLevel and JkLogStampFormat are required.
 # JkMount instructions are definitely not
 # required here. It's sufficient to have them
 # within the VirtualHost sections.

I've omitted *.jsp and *.do mounts, as everything under /pebble is
delegated to tomcat. For the purpose of this mail I don't care for other
content besides pebble.

Having multiple independent installations of pebble could be done either
through Virtual Hosts on the tomcat side (see tomcats server.xml for
configuration) or through deploying multiple pebble instances with
different names. E.g. on http://www.olafkock.de/ok, ok is the name I've
deployed pebble as.

For some securityByObscurity reasons I prefer to always install
applications under different names than the original anyways - judging
from all the /phpmyadmin/* hits my server gets even though it doesn't
even know anything about php, I feel this is a good baby step protecting
from random security problems.

I hope this helps. If this leaves questions open, don't hesitate to ask
- I might summarize this and even add tested config files soon: My
server will be updated some time soon and I'll start clean.

Cheers,
Olaf

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Pebble-user mailing list
Pebble-userlists.sourceforge.net">Pebble-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pebble-user

[1-7]

about | contact  Other archives ( Real Estate discussion Medical topics )