Hi
Here is my relevant code snippter fro hibernate,cfg , my user name is
my_wiki
<property
name="connection.url">jdbc:mysql://localhost:3306/my_wiki</property>
<property name="connection.username">my_wiki</property>
<property name="connection.password">my_wiki</property>
<property
name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property
name="dialect">org.hibernate.dialect.MySQL5InnoDBDialect</property>
<property name="dbcp.poolPreparedStatements">true</property>
<property name="dbcp.maxOpenPreparedStatements">20</property>
<mapping resource="xwiki.hbm.xml"/>
<mapping resource="feeds.hbm.xml"/>
<mapping resource="activitystream.hbm.xml"/>
<mapping resource="instance.hbm.xml"/>
<mapping resource="mailsender.hbm.xml"/>
Here is the code snippet from xwiki.cfg
xwiki.db=my_wiki
xwiki.home=http://localhost:8888/myWiki/
xwiki.webapppath=myWiki
I used to work xwiki around 2 years back, it used to work like charm. But
with latest version , i am not able to start xwiki. First i tried with
oracle . Now i am trying with mysql.
Thanks
Mohit
On Mon, Sep 21, 2015 at 1:15 PM, Thomas Mortagne <thomas.mortagne(a)xwiki.com>
wrote:
He is using a different app name, not database name.
And according to
his mail he is setting the right property (xwiki.webapppath,
xwiki.home is not used for this try disabling it back).
Are you sure you removed the # and that it's the right xwiki.cfg you
are modifying (sometimes in the battle... :)). If all is right then it
looks like there is a bug somewhere in the URL factory.
On Mon, Sep 21, 2015 at 8:33 AM, vincent(a)massol.net <vincent(a)massol.net>
wrote:
Hi Mohit,
Not sure why you needed to use a different database name for the main
wiki but in
case you need this you can configure xwiki to use this new
name, see
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HConfigur…
Thanks
-Vincent
On 21 Sep 2015 at 07:22:37, Mohit Gupta (motgupta(a)gmail.com(mailto:
motgupta(a)gmail.com)) wrote:
> Hi,
>
> Any help on above ?
>
> Thanks
> Mohit
>
> On Sun, Sep 20, 2015 at 4:38 PM, Mohit Gupta wrote:
>
> > looks like for generated urls xwiki not appending right application
> > context name i.e "myWiki" but instead using "xwiki" . it
should be
> > /myWiki/resources/uicomponents/logging/logging.js
> >
> >
> > i tried below configuration in xwiki.cfg but it did not help
> >
> > xwiki.home=http://localhost:8888/myWiki/
> > xwiki.webapppath=myWiki
> >
> > On Sun, Sep 20, 2015 at 4:19 PM, Mohit Gupta wrote:
> >
> >> Hi All,
> >>
> >> I switched to MySQL. Server starts without any error. But when i hit
url
> >> in browser. Page is stuck(looks like
its refreshing but not
proceeding)
> >>
> >> XWiki is initializing (12%)...
> >>
> >>
> >> Here are the logs from localhost_access_log.2015-09-20 file
> >>
> >>
> >> 0:0:0:0:0:0:0:1 - - [20/Sep/2015:16:14:26 +0530] "GET
> >> /myWiki/bin/view/Main/ HTTP/1.1" 503 2823
> >> 0:0:0:0:0:0:0:1 - - [20/Sep/2015:16:14:26 +0530] "GET
> >>
/xwiki/bin/webjars/resources/path?value=requirejs%2F2.1.15%2Frequire.min.js
> >> HTTP/1.1" 404 1015
> >> 0:0:0:0:0:0:0:1 - - [20/Sep/2015:16:14:26 +0530] "GET
> >> /xwiki/resources/uicomponents/logging/logging.js HTTP/1.1" 404 1045
> >>
> >> I am not getting what is missing here
> >>
> >> On Thu, Sep 17, 2015 at 3:20 PM, Clemens Klein-Robbenhaar <
> >> c.robbenhaar(a)espresto.com> wrote:
> >>
> >>> Hi *,
> >>>
> >>> > Hi Mohit,
> >>> >
> >>> >
> >>> > On 1 Sep 2015 at 15:32:48, Mohit Gupta (motgupta(a)gmail.com
(mailto:
> >>> motgupta(a)gmail.com)) wrote:
> >>> >
> >>> >> Hi Vincet,
> >>> >>
> >>> >> I took the latest war
> >>> file(xwiki-enterprise-web-7.2-20150828.151901-292.war
> >>> >> )
> >>> >> from the link
> >>> >>
> >>>
http://maven.xwiki.org/snapshots/org/xwiki/enterprise/xwiki-enterprise-web/…
> >>> >> but getting exception
when i hit the wiki url in browser. Here
is the
> >>> full
> >>> >> stack trace
> >>> >
> >>> > [snip]
> >>> >
> >>> >> java.lang.NullPointerException
> >>> >>
> >>>
org.hibernate.hql.ast.HqlSqlWalker.lookupProperty(HqlSqlWalker.java:560)
> >>> >
> >>> > Strange, I don’t remember seeing this error before. It looks like
an
> >>> Hibernate bug.
> >>> >
> >>>
> >>> Has been reported as such, and usually rejected, e.g.:
> >>>
https://hibernate.atlassian.net/browse/HHH-3715
> >>>
> >>> I feel that the problem is that the XWQL-Query is not translated to
HQL
> >>> properly
> >>>
> >>> > The query we send is:
> >>> >
> >>> > "where doc.object(XWiki.XWikiServerClass).server = :wikiAlias
and
> >>> doc.name like 'XWikiServer%’"
> >>> >
> >>>
> >>> This is a XWQL query, however, and the HQL that is created from it
(I
> >>> guess its created from the
query, as that is what is shown in the
error
> >>> message):
> >>>
> >>> select doc.fullName from XWikiDocument as doc , BaseObject as _o1
where
> >>> ( doc.object (
XWiki.XWikiServerClass ) . server = :wikiAlias
> >>> and doc.name like 'XWikiServer%' ) and doc.fullName=_o1.name
and
> >>> _o1.className='XWiki.XWikiServerClass'
> >>>
> >>> Of course the "( doc.object ( XWiki.XWikiServerClass ) .
server" is
not
> >>> proper HQL, something must have
gone amiss when translating the
XWQL to HQL.
> >>>
> >>> What puzzles me is why this has something to do with the Oracle
driver
> >>> (It is no general bug for sure,
otherwise it would have blocked any
> >>> development ...)
> >>> I just checked and I get basically the same error message when I
try to
> >>> execute the generated HQL
"manually" (from a groovy script in a
page),
> >>> but of course no such error when
executing the XWQL (would not have
been
> >>> able to start the server then).
> >>>
> >>>
> >>> Is it possible to direct the installation temporarily to e.g.
HSQL-DB
> >>> (something along
> >>>
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationHSQL )
> >>> - just for testing if the issue
goes away then? (It is sure not
useful
> >>> for production use that way
until switched back to Oracle ...)
> >>> If the issue does not go away, then it must be something else ...
> >>>
> >>>
> >>> > Do you still have the problem?
> >>> >
> >>> > Could you provide the exact JDBC driver and Oracle versions you
use?
>> >
>> > Thanks
>> > -Vincent
>> >
>> > [snip]
>> >
>> > _______________________________________________
>> > users mailing list
>> > users(a)xwiki.org
>> >
http://lists.xwiki.org/mailman/listinfo/users
>> >
>>
>> _______________________________________________
>> users mailing list
>> users(a)xwiki.org
>>
http://lists.xwiki.org/mailman/listinfo/users
>>
>
>
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users