Thanks Boris

I have downloaded 2.1rc1 and put the two war files in one instance of
tomcat (5.5.9) on Linux Fedora Core 3. I found with trial and error that
it is best to drop the author war file in to webapps, start tomcat, let
it bootstrap, stop tomcat, add the public war and then start tomcat
again. The public war always took longer to expand and build than the
author. I also found that to build the initial repository I needed to
increase the java heep size (iXmx) and set it to 2048M. After building I
reset the size to 128 and the author environment worked, however in case
the memory size was causing problems, I increased it to 512M

Initially I renamed the war files to be catalyst and catalystAuthor but
when I was having problems I reverted to the original names to eliminate
the change.

I have changed the magnolia.root to magnoliaPublic.root in the public
web.xml and adjusted the log4j.xml file accordingly in the same
environment. I use the startup.sh script from within the bin directory.

I am accessing the two environments using IE 6.0 on an XP machine
connected via a local LAN.

In the author environment, I use superuser to create 2 website nodes all
at the same level as features. I then activated these and they were
visible in the public environment.

I then set up the role "guest" which has "read only" for "selected and
sub pages" for "/catalyst" and a user called "guest" which was assigned
the guest role. The user and the role were activated but a user
id/password dialog was not displayed for the public area and therefore
both catalyst and consultant pages are visible.

I then changed Config: server/secureURIList/0001/URI to /.magnolia and
activated 0001 and below. This caused the sign-in dialog to appear in
public but a 403 error was reported.

I then changed URI back to / but when I tried to activate 0001 again,
Magnolia threw this error:

ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/magnolia
Author].[AdminTreeServlet] ApplicationDispatcher.java(invoke:712)
06.07.2005 15:29:16  Servlet.service() for servlet AdminTreeServlet
threw exception
java.lang.NullPointerException
        at
info.magnolia.cms.beans.config.Server.isAdmin(Server.java:265)
        at
info.magnolia.module.admininterface.trees.AdminTreeConfig.prepareTree(Ad
minTreeConfig.java:101)
        at
info.magnolia.module.admininterface.AdminTreeMVCHandler.renderTree(Admin
TreeMVCHandler.java:366)
        at
info.magnolia.module.admininterface.AdminTreeMVCHandler.renderHtml(Admin
TreeMVCHandler.java:317)
        at
info.magnolia.cms.servlets.MVCServlet.doGet(MVCServlet.java:103)
        at
info.magnolia.cms.servlets.MVCServlet.doPost(MVCServlet.java:49)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
        at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:672)
        at
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
nDispatcher.java:463)
        at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:398)
        at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:301)
        at
info.magnolia.cms.servlets.EntryServlet.redirect(EntryServlet.java:249)
        at
info.magnolia.cms.servlets.EntryServlet.doGet(EntryServlet.java:114)
        at
info.magnolia.cms.servlets.EntryServlet.doPost(EntryServlet.java:161)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
        at
info.magnolia.cms.filters.MultipartRequestFilter.doFilter(MultipartReque
stFilter.java:64)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
        at
info.magnolia.cms.filters.ContentTypeFilter.doFilter(ContentTypeFilter.j
ava:48)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:85
6)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:744)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:80)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
        at java.lang.Thread.run(Thread.java:595)
ERROR  info.magnolia.cms.servlets.EntryServlet
EntryServlet.java(redirect:252) 06.07.2005 15:29:16  Failed to forward -
/admintemplates/adminCentral/extractTree.jsp


I then restored copies of the webapps directories that I had made before
changing the server/secureURIList/0001/URI and again the public
environment showed both pages without requiring a sign-in. 

I then created a role called "consultant" with "read only" for "selected
and sub pages" for "/consultant" but when I tried to press save,
Magnolia threw this exception:

ERROR  info.magnolia.cms.servlets.MVCServletHandlerImpl
MVCServletHandlerImpl.java(execute:73) 06.07.2005 16:22:37  can't ca
ll command: save
java.lang.NumberFormatException: For input string: ""
        at
java.lang.NumberFormatException.forInputString(NumberFormatException.jav
a:48)
        at java.lang.Long.parseLong(Long.java:424)
        at java.lang.Long.parseLong(Long.java:461)
        at
info.magnolia.module.admininterface.dialogs.UserRolesEditDialog.onPostSa
ve(UserRolesEditDialog.java:171)
        at
info.magnolia.module.admininterface.DialogMVCHandler.save(DialogMVCHandl
er.java:196)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
info.magnolia.cms.servlets.MVCServletHandlerImpl.execute(MVCServletHandl
erImpl.java:70)
        at
info.magnolia.cms.servlets.MVCServlet.doGet(MVCServlet.java:100)
        at
info.magnolia.cms.servlets.MVCServlet.doPost(MVCServlet.java:49)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
        at
info.magnolia.cms.filters.MultipartRequestFilter.doFilter(MultipartReque
stFilter.java:64)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
        at
info.magnolia.cms.filters.ContentTypeFilter.doFilter(ContentTypeFilter.j
ava:48)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:85
6)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:744)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:80)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
        at java.lang.Thread.run(Thread.java:595)

At this point I started to seriously doubt the integrity of the 2.1rc1
and hence my note.

I would realy appreciate some advice on how my objectives may be
achieved

Thanks

Mike

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] 
Sent: 07 July 2005 15:02
To: [email protected]
Subject: Re: [magnolia-user] Am I wasting my time with 2.1?


On 07.07.2005, at 10:58, Mike Bennett wrote:

> Hello
>
> I am getting increaingly frustrated and disappointed.
>
> Frustrated that after two days I am still struggling to get a simple 
> set-up working
>
> Disappointed because after trialing a number of php based CMS 
> products, I thought Magnolia was the solution I was looking for.
>
> I am not new to Java, servlets, jsp, etc but every step is a time 
> consuming leap into the dark which usually fails followed by a further

> time consuming trawl through list postings and Wiki contents that span

> several versions of Magnolia.
>
> I initially set up a structure in the author environment using version
> 1
> and was very impressed, I then tried to activate this to the public
> environment without success as the repository appeared corrupt. At
this
> point Boris Kraft's solution was to move to version 2. When I next had
> the opportunity to progress this project 2.1rc1 was available and
> judging by the other comments on the list, there would be potential
> problems migrating from 2.0 to 2.1 so I restarted with 2.1.
>
> Based on my initial tests, I have persuaded a client that Magnolia 
> should be the basis of a documentation project. I now have two weeks 
> to prepare a demonstration to prove my point. At this rate it is not 
> going to happen which will be a great shame.
>
> Am I wasting my time with 2.1? Should I go to 2.0.1 with two separate 
> instances of tomcat running? I am not trying to do anything 
> revolutionary, just set up 4 users each of whom can only see their 
> part of the content.
>
>
> Mike


Hi Mike,

please let us know what you try to do and we'll see what we can do 
about it. 2.1 RC1 should be fine, we are using it for magnolia.info 
amongst others, and I do have restricted user accounts set up that 
work.

Thanks
Boris




----------------------------------------------------------------
for list details see http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------




----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to