Hi Alex,

If it starts automatically, you should be using the updated version.
But, the other cause may be the older Stanbol related
files(sling,factstore,derby.log) that are created in bin folder of
tomcat. I wasn't able to use newer version of war file, until I had
deleted those files and redeploy the war.

It is enough to drop the war file under webapps as you said. For
aliasing, you don't need to set any configuration. Name of the war file
becomes the context e.g if you deploy stanbol.war, Stanbol root should
be available under {host}/stanbol and static files should be referenced
with {host}/stanbol/static/...

Best,
Suat

On 12/14/2011 04:24 PM, Alex Lopez wrote:
> Suat,
>
> I had some problems deploying to Tomcat 7.0.23 as /stanbol context.
> I'm now updating and will try again. I could see that now it starts
> automatically but I'm still getting wrong static url {host}/static/...
> instead of {host}/{stanbolcontext}/static/...
>
> Just to be sure I'm doing this right, am I just supposed to build
> stanbol like mvn clean install and "drop the war"
> (launchers/full-war/target/stanbol.war) inside tomcat's webapps? Right
> now I'm passing tomcat one property for stanbol (stanbol.dir), I see
> in your notes references to web.static.url and web.alias. Do I have to
> set these for tomcat too?
>
> Thanks,
> Alex
>
> Em 12-12-2011 09:54, Alex Lopez escreveu:
>> Great, I should get back to it, update and test, thanks for letting me
>> know.
>>
>> Em 09-12-2011 14:03, Fabian Christ escreveu:
>>> Hi,
>>>
>>> yes nice - good to hear ;)
>>>
>>> Best
>>> - Fabian
>>>
>>> Am Freitag, 9. Dezember 2011 schrieb Suat Gonul :
>>>
>>>> Hi Alex,
>>>>
>>>> I have made some improvements regarding the war launcher. First, when
>>>> the war file is deployed on Tomcat, it starts automatically. Also,
>>>> static resources e.g css, images are displayed correctly. As far as I
>>>> tried, HTTP service for SOLR cores is also working. For example, I
>>>> executed a query like
>>>> {stanbolhost}/solr/default/dbpedia/select?q=Paris
>>>> and was able to obtain results.
>>>>
>>>> BTW, I used Tomcat 7.0.23 to test the changes.
>>>>
>>>> Best,
>>>> Suat
>>>>
>>>>
>>>> On 11/25/2011 05:43 PM, Alex Lopez wrote:
>>>>> Thanks Suat for clarifications, :) no problem I'll go on with the jar
>>>>> launcher and switch to war into my Tomcat later.
>>>>>
>>>>>> Hi Alex,
>>>>>>
>>>>>> First of all, I am still working on this launcher and it's not fully
>>>>>> tested yet. I just gave a break as I had to focus on other issues.
>>>>>> Please see my other comments inline.
>>>>>>
>>>>>> On 11/25/2011 05:00 PM, Alex Lopez wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> I've been trying to run Stanbol using the full-war launcher (into a
>>>>>>> Tomcat 7.0.21, using the /stanbol context).
>>>>>>>
>>>>>>> The app deployed fine, but after it showed several problems:
>>>>>>>
>>>>>>> - The first visit to host/stanbol to check if everything was OK
>>>>>>> yielded an error (404 if I remember right). Then tomcat log
>>>>>>> start to
>>>>>>> show some "initiating Jersey app" messages, then after some
>>>>>>> seconds a
>>>>>>> subsequent visit to host/stanbol works. So it behaves like it
>>>>>>> needed a
>>>>>>> first request to wake up.
>>>>>>
>>>>>> Yes, this case was same for me.
>>>>>>
>>>>>>> - No CSS or images displayed (no /stanbol context added to path of
>>>>>>> static resources).
>>>>>>
>>>>>> This is related about deployment location of static resources. I was
>>>>>> working on this but I didn't complete yet. I will inform you when I
>>>>>> commit the change that fixes this issue.
>>>>>>
>>>>>>> - SOLR search not working at host/stanbol/solr anymore (I've had
>>>>>>> problems before with SOLR + Tomcat7, could it be this?)
>>>>>>>
>>>>>>
>>>>>> I didn't check the new updates on SOLR yet, so I don't have a clear
>>>>>> idea
>>>>>> on this. As I said, I didn't finish the work on full-war launcher
>>>>>> yet
>>>>>> and will inform through the list when finished. Sorry for the
>>>>>> inconvenience.
>>>>>>
>>>>>> Best,
>>>>>> Suat
>>>>>>
>>>>>>> Are these expected or I am doing something wrong? (I'm running
>>>>>>> Stanbol
>>>>>>> svn revision 1202633)
>>>>>>>
>>>>>>> Regards,
>>>>>>> Alex
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>
>

Reply via email to