Hi all,

The tomcat 7 plugin used in marmotta loads Tomcat 7.0.37 (which should be
ok).
Anyway, when I run
~/marmotta/launchers/marmotta-webapp$  mvn tomcat7:run
I get nothing out of
http://localhost:8080/marmotta-webapp/core/admin/about.html

Resource is reachable at URU http://localhost:8080/core/admin/about.html

But whenever I click on any internal link on the web page a resource in the
http://localhost:8080/marmotta-webapp/ context is asked.
That fails.

The only way for me to make it work is to change the tomcat context in
pom.xml

diff --git a/launchers/marmotta-webapp/pom.xml
b/launchers/marmotta-webapp/pom.xml
index 60d6f86..bf92123 100644
--- a/launchers/marmotta-webapp/pom.xml
+++ b/launchers/marmotta-webapp/pom.xml
@@ -35,7 +35,7 @@
     <properties>
         <!-- these are used for the goals tomcat6/7:run or jetty:run -->
         <marmotta.home>/tmp/marmotta</marmotta.home>
-        <marmotta.context>/</marmotta.context>
+        <marmotta.context>/marmotta-webapp</marmotta.context>
         <marmotta.port>8080</marmotta.port>
     </properties>

Is this happening to me only?

Cheers
Andrea


2013/11/25 Andrea Di Menna <ninn...@gmail.com>

> Hi Raffaele,
> I was running marmotta with Tomcat 7 maven plugin from the launcher-webapp
> folder (which should use a compatible version - i.e. > 7.0.30)
> I am going to check today which version of tomcat it runs.
> Thanks
> Andrea
> Il 23/nov/2013 17:12 "Raffaele Palmieri" <raffaele.palmi...@gmail.com> ha
> scritto:
>
> Hi Andrea,
>> what version of Tomcat 7 do you use? You should use versions >= 7.0.30.
>> Give a look to the following issue:
>> https://issues.apache.org/jira/browse/MARMOTTA-224 , there you can find
>> the same problem.
>> Cheers,
>> Raffaele.
>>
>>
>> On 23 November 2013 16:59, Andrea Di Menna <ninn...@gmail.com> wrote:
>>
>>> I am sorry to bug you again :(
>>> Yesterday I was trying Marmotta but had the following problems which I
>>> am not able to resolve yet:
>>> - deployed the marmotta war (downloaded from the website) on a Tomcat 6
>>> installation:  the webui was showing up but some functionalities were not
>>> available due to missing jQuery and other JavaScript libraries
>>> - after that I cloned the git repo and compiled marmotta following
>>> instructions on the website. Run the war using Tomcat 7 maven plugin but
>>> marmotta webui was not showing up (jquery and stuff were available though)
>>>
>>> As far as I understood the problems with Tomcat 6 were due to
>>> incompatibilities between webjars packaging and servlet < 3.0
>>> Problems with Tomcat 7 should be due to incompatibilities between
>>> packaging of marmotta-core webapp and the way the war is built (all the jar
>>> dependencies are added to WEB-INF/lib but marmotta-core has resources
>>> outside of the resources dir).
>>>
>>> What I am doing wrong?
>>> Thanks a lot.
>>> Andrea
>>> Il 22/nov/2013 16:54 "Sergio Fernández" <
>>> sergio.fernan...@salzburgresearch.at> ha scritto:
>>>
>>> Hi,
>>>>
>>>> On 22/11/13 16:52, Andrea Di Menna wrote:
>>>>
>>>>> The problem was that JAVA_HOME was not set and it was commented out in
>>>>> /etc/default/tomcat6
>>>>> Tomcat was auto-selecting /usr/lib/jvm/java-6-openjdk-amd64.
>>>>>
>>>>> I have now uncommented JAVA_HOME in  /etc/default/tomcat6 and
>>>>> everything is
>>>>> working fine.
>>>>>
>>>>
>>>> I knew should be something like that... great! issue solved
>>>>
>>>> --
>>>> Sergio Fernández
>>>> Senior Researcher
>>>> Knowledge and Media Technologies
>>>> Salzburg Research Forschungsgesellschaft mbH
>>>> Jakob-Haringer-Straße 5/3 | 5020 Salzburg, Austria
>>>> T: +43 662 2288 318 | M: +43 660 2747 925
>>>> sergio.fernan...@salzburgresearch.at
>>>> http://www.salzburgresearch.at
>>>>
>>>
>>

Reply via email to