List Info

Thread: Creating multiple blogs in the same server




Creating multiple blogs in the same server
user name
2006-11-09 02:22:38
Gocha. I will give that a shot.


On Wed, 08 Nov 2006 21:07:21 -0500
David Czarnecki <davidblojsom.com> wrote:

> Permissions as in UNIX permissions for the user running
the Tomcat instance.
> They should have the ability to read and write to
directories in Tomcat.
> 
> 
> On 11/8/06 7:52 PM, "Antonio Kamiya"
<kamiyafujisan.co.jp> wrote:
> 
> > How should the permissions be set?
> > 
> > 
> > On Wed, 08 Nov 2006 16:55:33 -0500
> > David Czarnecki <davidblojsom.com> wrote:
> > 
> >> I just D/L'd the WAR file from SourceForge and
started with a new MySQL
> >> database. No errors:
> >> 
> >> Nov 08 16:52:36 DEBUG [http-8080-Processor24]
servlet.BlojsomServlet -
> >> blojsom plugin execution:
org.blojsom.plugin.admin.EditBlogsPlugin
> >> Nov 08 16:52:36 DEBUG [http-8080-Processor24]
admin.EditBlogsPlugin - User
> >> requested add blog action
> >> Nov 08 16:52:36 DEBUG [http-8080-Processor24]
admin.EditBlogsPlugin - Adding
> >> new blog id: fink
> >> Nov 08 16:52:37 DEBUG [http-8080-Processor24]
servlet.BlojsomServlet -
> >> Adding last-modified header for current date
> >> Nov 08 16:52:37 DEBUG [http-8080-Processor24]
velocity.VelocityDispatcher -
> >> Retrieved template for page:
> >>
org/blojsom/plugin/admin/templates/admin-edit-blogs.vm
> >> Nov 08 16:52:37 DEBUG [http-8080-Processor24]
velocity.VelocityDispatcher -
> >> Dispatched to flavor page template:
> >>
org/blojsom/plugin/admin/templates/admin-edit-blogs.vm
> >> 
> >> I checked and the "fink" resources
and templates directories are there and
> >> have all the files they're supposed to have.
> >> 
> >> My only guess is that you both had ownership
permissions issues when the
> >> plugin tried to copy files to the new blog
directory. But, I can't reproduce
> >> this error at all.
> >> 
> >> On 11/8/06 4:41 PM, "David
Czarnecki" <davidblojsom.com> wrote:
> >> 
> >>> I'll take a look at the Edit Blogs plugin
code to see if there is a bug.
> >>> 
> >>> On 11/8/06 4:31 PM, "akamiya"
<kamiyafujisan.co.jp> wrote:
> >>> 
> >>>> 
> >>>> That did the job, thanks!
> >>>> 
> >>>> Is someone already working to fix this
bug? If not I can help.
> >>>> 
> >>>> 
> >>>> Adrian Silveanu wrote:
> >>>>> 
> >>>>> Currently when you create a new
blog, not all the files are automatically
> >>>>> created.
> >>>>> 
> >>>>> You will need to do the following:
> >>>>> 
> >>>>> cp -R
/var/lib/tomcat4/webapps/blojsom/resources/default/
> >>>>>
/var/lib/tomcat4/webapps/blojsom/resources/test/
> >>>>> 
> >>>>> 
> >>>>> ----- Original Message ----
> >>>>> From: akamiya <kamiyafujisan.co.jp>
> >>>>> To: blojsom-userslists.sourceforge.net
> >>>>> Sent: Wednesday, November 8, 2006
12:52:36 AM
> >>>>> Subject: Re: [Blojsom-users]
Creating multiple blogs in the same server
> >>>>> 
> >>>>> 
> >>>>> I have the same problem and here
is the error in catalina.out:
> >>>>> 
> >>>>> Nov 08 15:44:13 ERROR
[http-8180-Processor2] admin.EditBlogsPlugin -
> >>>>> java.io.FileNotFoundException:
> >>>>>
/var/lib/tomcat4/webapps/blojsom/resources/test/asual-bg.jpg
(No such file
> >>>>> or directory)
> >>>>> 
> >>>>> Configuration is Blojsom 3
(quickstart) on Debian Sarge + Tomcat4 + MySQL
> >>>>> 5.
> >>>>> 
> >>>>> 
> >>>>> David Czarnecki wrote:
> >>>>>> 
> >>>>>> And still no errors in Tomcat
when it tries to create a new blog? Very
> >>>>>> very
> >>>>>> odd.
> >>>>>> 
> >>>>>> 
> >>>>>> On 10/31/06 4:46 PM,
"Adrian Silveanu" <silveanuyahoo.com> wrote:
> >>>>>> 
> >>>>>>> Setting
all_permissions_permission / true in DBUserMetadata worked. 
I
> >>>>>>> was
> >>>>>>> able to log in as admin in
my new blog.
> >>>>>>> 
> >>>>>>> Also I noticed that
'user_registered' needs to be entered in DBUser for
> >>>>>>> the
> >>>>>>> user.  It doesn't like the
automatically entered '0000-00-00 00:00:00'.
> >>>>>>> 
> >>>>>>> Regarding permissions for
Tomcat, this also occured to me.  I tried
> >>>>>>> resetting
> >>>>>>> the permissions for
Tomcat, delete the blog and created a new one.  The
> >>>>>>> /WEB-INF/blogs/MyBog2/ and
/resources/MyBlog2/ were still missing.
> >>>>>>> 
> >>>>>>> ----- Original Message
----
> >>>>>>> From: David Czarnecki
<davidblojsom.com>
> >>>>>>> To: blojsom-users
<blojsom-userslists.sourceforge.net>
> >>>>>>> Sent: Tuesday, October 31,
2006 2:43:35 PM
> >>>>>>> Subject: Re:
[Blojsom-users] Creating multiple blogs in the same server
> >>>>>>> 
> >>>>>>> You probably need to add
the permission for the new user created
> >>>>>>> 
> >>>>>>>  
all_permissions_permission / true
> >>>>>>> 
> >>>>>>> I'm wondering if it didn't
create the new blog directory and copy the
> >>>>>>> bootstrap directory and
because of a permissions issue for the user
> >>>>>>> running
> >>>>>>> Tomcat? But, I'd really
expect to see an error in that case. The fact
> >>>>>>> that
> >>>>>>> there wasn't any errors in
the new blog creation is what troubles me.
> >>>>>>> 
> >>>>>>> On 10/31/06 3:38 PM,
"Adrian Silveanu" <silveanuyahoo.com> wrote:
> >>>>>>> 
> >>>>>>>> Actually,
/WEB-INF/blogs/bootstrap does exist, but I didn't include it
> >>>>>>>> because
> >>>>>>>> it was not a blog
name.  I'll include these details in the future.
> >>>>>>>> 
> >>>>>>>> I was able to get the
blank page for MyBlog2 to turn into a normal
> >>>>>>>> "Name
> >>>>>>>> Your
> >>>>>>>> Blog" page by
copying /WEB-INF/blogs/default/ to /WEB-INF/blogs/MyBog2/
> >>>>>>>> and
> >>>>>>>> /resources/default/ to
/resources/MyBlog2/.
> >>>>>>>> 
> >>>>>>>> Now I am trying to log
into:
> >>>>>>>> 
http://a.b.c:8080/blojsom/blog/MyBlog2/?flavor=admin
> >>>>>>>> 
> >>>>>>>> This doesn't work.  It
doesn't recognize the user I created called
> >>>>>>>> BluePen.
> >>>>>>>> I went into my MySQL
database and did a:
> >>>>>>>>  select * from
Properties;
> >>>>>>>> 
> >>>>>>>> I saw that it created
the MyBlog2 'blog-url' and 'blog-admin-url' with
> >>>>>>>> the
> >>>>>>>> name of an old blog
that I previously created and then delete.  So I
> >>>>>>>> changed
> >>>>>>>> that.  I currently
have only two blogs in the database.
> >>>>>>>> 
> >>>>>>>> Then I went into
DBUser and saw that the only user in there is default.
> >>>>>>>> The
> >>>>>>>> user BluePen I created
for MyBlog2 was not inserted.  So I added the
> >>>>>>>> user.
> >>>>>>>> When I did that, I got
the following status in the database "Query OK,
> >>>>>>>> 1
> >>>>>>>> row
> >>>>>>>> affected, 3 warnings
(0.01 sec)".  I hope the three warnings were
> >>>>>>>> because I
> >>>>>>>> didn't enter in info
for 'user_email', 'user_registered' and
> >>>>>>>> 'user_status'.
> >>>>>>>> 
> >>>>>>>> I tried again:
> >>>>>>>> 
http://a.b.c:8080/blojsom/blog/MyBlog2/?flavor=admin
> >>>>>>>> 
> >>>>>>>> It still did not allow
me to log in with BluePen.  What are the other
> >>>>>>>> dependencies?
> >>>>>>>> 
> >>>>>>>> 
> >>>>>>>> 
> >>>>>>>> ----- Original Message
----
> >>>>>>>> From: David Czarnecki
<davidblojsom.com>
> >>>>>>>> To: blojsom-users
<blojsom-userslists.sourceforge.net>
> >>>>>>>> Sent: Tuesday, October
31, 2006 1:48:06 PM
> >>>>>>>> Subject: Re:
[Blojsom-users] Creating multiple blogs in the same server
> >>>>>>>> 
> >>>>>>>> So, no
/WEB-INF/blogs/bootstrap directory exists?
> >>>>>>>> 
> >>>>>>>> 
> >>>>>>>> On 10/31/06 2:39 PM,
"Adrian Silveanu" <silveanuyahoo.com> wrote:
> >>>>>>>> 
> >>>>>>>>> Hi,
> >>>>>>>>> 
> >>>>>>>>> I am using Blojsom
v3 and my application server is Tomcat v5.0.28.
> >>>>>>>>> 
> >>>>>>>>> The process I used
to create a new blog site is:
> >>>>>>>>> 
> >>>>>>>>> Go to: 
http://a.b.c:8080/blojsom/blog/default/?flavor=admin
> >>>>>>>>> In the menu,
select Weblog Settings -> Blogs
> >>>>>>>>> Filled in:
> >>>>>>>>> Weblog ID: MyBlog2
> >>>>>>>>> Also filled in
Login ID, Name and Password.
> >>>>>>>>> 
> >>>>>>>>> Clicked "Add
a weblog".
> >>>>>>>>> 
> >>>>>>>>> The following
showed up in catalina.out:
> >>>>>>>>> 
> >>>>>>>>> Oct 31 13:27:25
DEBUG [http-8080-Processor25] filter.FeedFilter -
> >>>>>>>>> Handling
> >>>>>>>>> feed filter
request: /default/
> >>>>>>>>> Oct 31 13:27:25
DEBUG [http-8080-Processor25] filter.PageFilter -
> >>>>>>>>> Handling
> >>>>>>>>> page filter
request: /default/
> >>>>>>>>> Oct 31 13:27:25
DEBUG [http-8080-Processor25] filter.SkipEntriesFilter
> >>>>>>>>> -
> >>>>>>>>> Handling skip
entries request: /default/
> >>>>>>>>> Oct 31 13:27:25
DEBUG [http-8080-Processor25] filter.PermalinkFilter -
> >>>>>>>>> Handling permalink
request: /default
> >>>>>>>>> Oct 31 13:27:25
DEBUG [http-8080-Processor25] database.DatabaseFetcher
> >>>>>>>>> -
> >>>>>>>>> blojsom path info:
/
> >>>>>>>>> Oct 31 13:27:25
DEBUG [http-8080-Processor25] database.DatabaseFetcher
> >>>>>>>>> -
> >>>>>>>>> User
> >>>>>>>>> requested
category: /
> >>>>>>>>> Oct 31 13:27:25
DEBUG [http-8080-Processor25] servlet.BlojsomServlet -
> >>>>>>>>> blojsom
> >>>>>>>>> plugin execution:
org.blojsom.plugin.admin.EditBlogsPlugin
> >>>>>>>>> Oct 31 13:27:25
DEBUG [http-8080-Processor25] admin.EditBlogsPlugin -
> >>>>>>>>> User
> >>>>>>>>> requested add blog
action
> >>>>>>>>> Oct 31 13:27:25
DEBUG [http-8080-Processor25] admin.EditBlogsPlugin -
> >>>>>>>>> Adding
> >>>>>>>>> new blog id:
MyBlog2
> >>>>>>>>> Oct 31 13:27:25
DEBUG [http-8080-Processor25] servlet.BlojsomServlet -
> >>>>>>>>> Adding
> >>>>>>>>> last-modified
header for current date
> >>>>>>>>> Oct 31 13:27:25
DEBUG [http-8080-Processor25]
> >>>>>>>>>
velocity.VelocityDispatcher -
> >>>>>>>>> Dispatched to
flavor template:
> >>>>>>>>>
org/blojsom/plugin/admin/templates/admin.vm
> >>>>>>>>> 
> >>>>>>>>> There doesn't
appear to be any errors.
> >>>>>>>>> 
> >>>>>>>>> Tried http://a.b.c:
8080/blojsom/blog/MyBlog2/ and it showed up as a
> >>>>>>>>> blank
> >>>>>>>>> page.
> >>>>>>>>> 
> >>>>>>>>> I checked
> >>>>>>>>>
/usr/local/jakarta-tomcat-5.0.28/webapps/blojsom/WEB-INF/blo
gs
> >>>>>>>>> and
> >>>>>>>>>
/usr/local/jakarta-tomcat-5.0.28/webapps/blojsom/resources
> >>>>>>>>> 
> >>>>>>>>> I only found
default.  MyBlog2 does not exist.
> >>>>>>>>> Do I need to add
this manually?
> >>>>>>>>> 
> >>>>>>>>> Thank you,
> >>>>>>>>> 
> >>>>>>>>> Adrian
> >>>>>>>>> 
> >>>>>>>>> 
> >>>>>>>>> ----- Original
Message ----
> >>>>>>>>> From: David
Czarnecki <davidblojsom.com>
> >>>>>>>>> To: blojsom-users
<blojsom-userslists.sourceforge.net>
> >>>>>>>>> Sent: Tuesday,
October 31, 2006 7:34:49 AM
> >>>>>>>>> Subject: Re:
[Blojsom-users] Creating multiple blogs in the same
> >>>>>>>>> server
> >>>>>>>>> 
> >>>>>>>>> What version of
blojsom are you using?
> >>>>>>>>> What application
server are you using?
> >>>>>>>>> What errors do you
see in the log file after creating the new blog?
> >>>>>>>>> After
> >>>>>>>>> accessing the new
blog?
> >>>>>>>>> 
> >>>>>>>>> All this
information would help in solving your issue.
> >>>>>>>>> 
> >>>>>>>>> On 10/31/06 1:54
AM, "Adrian Silveanu" <silveanuyahoo.com> wrote:
> >>>>>>>>> 
> >>>>>>>>>> Hi,
> >>>>>>>>>> 
> >>>>>>>>>> I have tried
to create multiple blogs on the same server.  The
> >>>>>>>>>> default
> >>>>>>>>>> blog
> >>>>>>>>>> show up
properly, but the second blog shows up as a blank page.  Is
> >>>>>>>>>> this a
> >>>>>>>>>> known issue or
am I doing something wrong?  I would like to create a
> >>>>>>>>>> blog
> >>>>>>>>>> that
> >>>>>>>>>> is visible to
everyone and then another one where I can experiment
> >>>>>>>>>> with it.
> >>>>>>>>>> 
> >>>>>>>>>> Thank you,
> >>>>>>>>>> 
> >>>>>>>>>> Adrian
> >>>>>>>>>> 
> >>>>>>>>>> 
> >>>>>>>>>> 
> >>>>>>>>>> 
> >>>>>>>>>> 
> >>>>>>>>>> 
> >>>>>>>>>> 
> >>> 
> >>
------------------------------------------------------------
------------>>>>>
> >> >>
> >>> 
> >>> -
> >>>>>>>>>> Using Tomcat
but need to do more? Need to support web services,
> >>>>>>>>>> security?
> >>>>>>>>>> Get stuff done
quickly with pre-integrated technology to make your
> >>>>>>>>>> job
> >>>>>>>>>> easier
> >>>>>>>>>> Download IBM
WebSphere Application Server v.1.0.1 based on Apache
> >>>>>>>>>> Geronimo
> >>>>>>>>>> 
> >> http:
//sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=26
3057&dat=12164>>>>>>
> >> >>
> >> 2
> >>>>>>>>>>
_______________________________________________
> >>>>>>>>>> Blojsom-users
mailing list
> >>>>>>>>>>
Blojsom-userslists.sourceforge.net
> >>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
> >>>>>> 
> >>>>>> -- 
> >>>>>> David Czarnecki
> >>>>>> 
> >>>>>> http://www.blojsom.com/b
log/ | http://blojsom.sf.net
> >>>>>> 
> >>>>>> 
> >>>>>> 
> >>>>>>
------------------------------------------------------------
-------------
> >>>>>> Using Tomcat but need to do
more? Need to support web services, security?
> >>>>>> Get stuff done quickly with
pre-integrated technology to make your job
> >>>>>> easier
> >>>>>> Download IBM WebSphere
Application Server v.1.0.1 based on Apache
> >>>>>> Geronimo
> >>>>>> http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> >>>>>>
_______________________________________________
> >>>>>> Blojsom-users mailing list
> >>>>>> Blojsom-userslists.sourceforge.net
> >>>>>> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
> >>>>>> 
> >>>>>> 
> >>>>> 
> >>>>> -- 
> >>>>> View this message in context:
> >>>>> 
> >> http://www.nabble.com/Creating-m
ultiple-blogs-in-the-same-server-tf2544200.h>
> >> >>
> >> t
> >>>>> ml#a7233594
> >>>>> Sent from the Blojsom - User
mailing list archive at Nabble.com.
> >>>>> 
> >>>>> 
> >>>>>
------------------------------------------------------------
-------------
> >>>>> Using Tomcat but need to do more?
Need to support web services, security?
> >>>>> Get stuff done quickly with
pre-integrated technology to make your job
> >>>>> easier
> >>>>> Download IBM WebSphere Application
Server v.1.0.1 based on Apache Geronimo
> >>>>> http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> >>>>>
_______________________________________________
> >>>>> Blojsom-users mailing list
> >>>>> Blojsom-userslists.sourceforge.net
> >>>>> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
> >>>>> 
> >>>>> 
> >>>>> 
> >>>>> 
> >>>>> 
> >>>>> 
> >>>>>
------------------------------------------------------------
-------------
> >>>>> Using Tomcat but need to do more?
Need to support web services, security?
> >>>>> Get stuff done quickly with
pre-integrated technology to make your job
> >>>>> easier
> >>>>> Download IBM WebSphere Application
Server v.1.0.1 based on Apache Geronimo
> >>>>> http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> >>>>>
_______________________________________________
> >>>>> Blojsom-users mailing list
> >>>>> Blojsom-userslists.sourceforge.net
> >>>>> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
> >>>>> 
> >>>>> 
> >> 
> >> -- 
> >> David Czarnecki
> >> 
> >> http://www.blojsom.com/b
log/ | http://blojsom.sf.net
> >> 
> >> 
> >> 
> >>
------------------------------------------------------------
-------------
> >> Using Tomcat but need to do more? Need to
support web services, security?
> >> Get stuff done quickly with pre-integrated
technology to make your job easier
> >> Download IBM WebSphere Application Server
v.1.0.1 based on Apache Geronimo
> >> http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> >>
_______________________________________________
> >> Blojsom-users mailing list
> >> Blojsom-userslists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
> 
> -- 
> David Czarnecki
> 
> http://www.blojsom.com/b
log/ | http://blojsom.sf.net
> 
> 
> 
>
------------------------------------------------------------
-------------
> Using Tomcat but need to do more? Need to support web
services, security?
> Get stuff done quickly with pre-integrated technology
to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based
on Apache Geronimo
> http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Blojsom-users mailing list
> Blojsom-userslists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers

-- 
 <>



------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
[1]

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