Re: [xwiki-users] Integration of my webapplication with xwiki.

2011-12-13 Thread mohit gupta
Thanks thomas for bringing clarity.

 i am trying to build the xwiki source in eclipse as per the instructions
given at

http://dev.xwiki.org/xwiki/bin/view/Community/BuildingInEclipse#H5C5BOptional5C5DImporttheWARasawebproject.

 i have given the repository location as below in setting.xml in eclispe

* repositories
   repository
 idfip/id
 namexwiki Archiva Repository/name
 urlhttps://github.com/xwiki/xwiki-platform/url
 releases
   enabledtrue/enabled
 /releases
 snapshots
   enabledtrue/enabled
 /snapshots
   /repository
 /repositories*

 But after updating the setting.xml(lying under .m2 folder) to above
location  i get  below message on eclipse console

* 12/13/11 5:28:54 PM IST: Unable to update index for fip|
https://github.com/xwiki/xwiki-platform*

 And when i try to build the  project in eclipse, eclipse console shows
the below error message

* Project build error: Non-resolvable parent POM for
org.xwiki.platform:xwiki-platform-core:3.2-SNAPSHOT:
 Failure to find org.xwiki.platform:xwiki-platform:pom:3.2-SNAPSHOT in *
*https://github.com/xwiki/xwiki-platform*https://github.com/xwiki/xwiki-platform
* was cached in the local repository, resolution will not be
reattempted until the update interval of fip has elapsed
 or updates are forced and 'parent.relativePath' points at wrong local
POM pom.xml /xwiki-platform-action line 1 Maven Problem*

* i am not getting what is the problem here. Please provide your
valuable inputs.
*
On Tue, Dec 13, 2011 at 1:44 AM, Thomas Mortagne
thomas.morta...@xwiki.comwrote:

 On Mon, Dec 12, 2011 at 8:13 PM, mohit gupta motgu...@gmail.com wrote:
  Thanks  Thomas Mortagne and Vincent a lot  for pointing out to
 repository.
  One question on Repository structure. i downloaded the
  xwiki-enterprise-web-3.2.war file and found out that
  XWikiAuthServiceImpl.class lies under  jar
  xwiki-platform-legacy-oldcore-3.2.jar
   and path is
  xwiki-platform-legacy-oldcore-3.2.jar\com\xpn\xwiki\user\impl\xwiki. But
 in
  the repository you guys pointed out same file
   lies under
 
 xwiki-platform-core\xwiki-platform-oldcore\src\main\java\com\xpn\xwiki\user\impl\xwiki.
  But in my dowloaded war file
   there is no jar by the name of  xwiki-platform-core or
  xwiki-platform-oldcore. There is jar file with the name
  xwiki-platform-legacy-oldcore-3.2.jar.
  could you brief about this discrepency?

 xwiki-platform-legacy-oldcore is actually a bit special: it's
 repackaging xwiki-platform-oldcore and inject some deprecated APIs to
 it.

 
  On Sun, Dec 11, 2011 at 6:52 PM, Vincent Massol vinc...@massol.net
 wrote:
 
 
  On Dec 10, 2011, at 7:30 PM, mohit gupta wrote:
 
   Thanks all for sharing the information. I started working on the xwiki
   project.
  
   I downloaded the war file xwiki-enterprise-web-3.2 and started
  working
  on
   that. I have got some questions/issues  while working
   on this. These are:-
  
   1) Is it possible to  get the source code of xwiki java files so that
 if
   want have some understanding/or modification as per my
  requirements i can go ahead?
 
  See
 
 http://dev.xwiki.org/xwiki/bin/view/Community/SourceRepository#HGettingSources
  (I've updated the page with more information)
 
  Thanks
  -Vincent
 
   2) As i said earlier too, i want my customer authentication. So i
  explored
   the downloaded war file and found there is a property
 xwiki.authentication.authclass inside xwiki.cfg file against which
 file
   name(com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl)
 is written. So i can provide my own customer class say
   MyProjectXWikiAuthentication.java instead of WikiAuthServiceImpl.So
 my question is in which library it should be packed with and what
 are
   interfaces/parent class it should extend how i can find
 it out?
  
   it would be a great help if you some one can brief about each point?
  
  
   On Fri, Dec 2, 2011 at 11:53 PM, mohit gupta motgu...@gmail.com
 wrote:
  
  
   Thanks Andreas a lot for sharing the information. Let me explain what
  got
   from the links you have mentioned above.
  
   i typed the URL http://www.teamsched.com/docs or
  http://www.teamsched.com in
   address bar. Both link took me to
 http://www.teamsched.com/docs/info/
   which seems to be a xwiki site based on java classes which must be
  hosted
   on some webserver(can you name the webserver which you used for
 this).
  Now
   i click the hyperlink getting started given on this site which takes
 me
  to
   another web application  i.e http://shept.org/docs/Shept/(which is
  again
   some java application hosted on another instance of webserver ). Is
 that
   correct? If yes i  also need to do same kind of stuff. Thanks.
  
  
   On Fri, Dec 2, 2011 at 11:04 PM, Andreas Hahn ah...@gmx.net wrote:
  
  
   Hi mohit,
  
   I think I have done something similar a while ago.
   Look at http://www.teamsched.com.
 

Re: [xwiki-users] Integration of my webapplication with xwiki.

2011-12-13 Thread mohit gupta
one new development on below error

i updated the repository location to new one as shown below as it took the
code from
https://github.com/xwiki/xwiki-platform/branches/stable-3.2.x/xwiki-platform-core/

repositories
   repository
 idfip/id
 namexwiki Archiva Repository/name
 url
https://github.com/xwiki/xwiki-platform/branches/stable-3.2.x/xwiki-platform-core/xwiki-platform-oldcore
/url
 releases
   enabledtrue/enabled
 /releases
 snapshots
   enabledtrue/enabled
 /snapshots
   /repository
 /repositories

 But after updating the setting.xml(lying under .m2 folder) to above
location  i get  below message on eclipse console

*12/13/11 5:48:14 PM IST: Unable to update index for fip-plugin|
https://github.com/xwiki/xwiki-platform/branches/stable-3.2.x/xwiki-platform
 -core/xwiki-platform-oldcore*

 And when i try to build the  project in eclipse, eclipse console shows
the below error message

*   Project build error: Non-parseable POM
C:\Users\mgupta\.m2\repository\org\xwiki\platform\xwiki-platform\3.2-SNAPSHOT\xwiki-platform-3.2-SNAPSHOT.pom:

   end tag name /head must be the same as start tag META from
line 26 (position: TEXT seen ...i-platform:stable-3.2.x
type=application/atom+xml /
\n\n  /head... @31:10)
 pom.xml /xwiki-platform-annotation-maintainer line 1 Maven Problem*

**
*Looks like wrong pom file in repository. Not sure what is the issue here?*
*

*

On Tue, Dec 13, 2011 at 5:37 PM, mohit gupta motgu...@gmail.com wrote:

 Thanks thomas for bringing clarity.

  i am trying to build the xwiki source in eclipse as per the instructions
 given at

 http://dev.xwiki.org/xwiki/bin/view/Community/BuildingInEclipse#H5C5BOptional5C5DImporttheWARasawebproject.

  i have given the repository location as below in setting.xml in eclispe

 * repositories
repository
  idfip/id
  namexwiki Archiva Repository/name
  urlhttps://github.com/xwiki/xwiki-platform/url
  releases
enabledtrue/enabled
  /releases
  snapshots
enabledtrue/enabled
  /snapshots
/repository
  /repositories*

  But after updating the setting.xml(lying under .m2 folder) to above
 location  i get  below message on eclipse console

 * 12/13/11 5:28:54 PM IST: Unable to update index for fip|
 https://github.com/xwiki/xwiki-platform*

  And when i try to build the  project in eclipse, eclipse console
 shows the below error message

 * Project build error: Non-resolvable parent POM for
 org.xwiki.platform:xwiki-platform-core:3.2-SNAPSHOT:
  Failure to find org.xwiki.platform:xwiki-platform:pom:3.2-SNAPSHOT in
 **https://github.com/xwiki/xwiki-platform*https://github.com/xwiki/xwiki-platform
 * was cached in the local repository, resolution will not be
 reattempted until the update interval of fip has elapsed
  or updates are forced and 'parent.relativePath' points at wrong local
 POM pom.xml /xwiki-platform-action line 1 Maven Problem*

 * i am not getting what is the problem here. Please provide your
 valuable inputs.
 *
 On Tue, Dec 13, 2011 at 1:44 AM, Thomas Mortagne 
 thomas.morta...@xwiki.com wrote:

 On Mon, Dec 12, 2011 at 8:13 PM, mohit gupta motgu...@gmail.com wrote:
  Thanks  Thomas Mortagne and Vincent a lot  for pointing out to
 repository.
  One question on Repository structure. i downloaded the
  xwiki-enterprise-web-3.2.war file and found out that
  XWikiAuthServiceImpl.class lies under  jar
  xwiki-platform-legacy-oldcore-3.2.jar
   and path is
  xwiki-platform-legacy-oldcore-3.2.jar\com\xpn\xwiki\user\impl\xwiki.
 But in
  the repository you guys pointed out same file
   lies under
 
 xwiki-platform-core\xwiki-platform-oldcore\src\main\java\com\xpn\xwiki\user\impl\xwiki.
  But in my dowloaded war file
   there is no jar by the name of  xwiki-platform-core or
  xwiki-platform-oldcore. There is jar file with the name
  xwiki-platform-legacy-oldcore-3.2.jar.
  could you brief about this discrepency?

 xwiki-platform-legacy-oldcore is actually a bit special: it's
 repackaging xwiki-platform-oldcore and inject some deprecated APIs to
 it.

 
  On Sun, Dec 11, 2011 at 6:52 PM, Vincent Massol vinc...@massol.net
 wrote:
 
 
  On Dec 10, 2011, at 7:30 PM, mohit gupta wrote:
 
   Thanks all for sharing the information. I started working on the
 xwiki
   project.
  
   I downloaded the war file xwiki-enterprise-web-3.2 and started
  working
  on
   that. I have got some questions/issues  while working
   on this. These are:-
  
   1) Is it possible to  get the source code of xwiki java files so
 that if
   want have some understanding/or modification as per my
  requirements i can go ahead?
 
  See
 
 http://dev.xwiki.org/xwiki/bin/view/Community/SourceRepository#HGettingSources
  (I've updated the page with more information)
 
  Thanks
  -Vincent
 
   2) As i said 

Re: [xwiki-users] Integration of my webapplication with xwiki.

2011-12-13 Thread Thomas Mortagne
On Tue, Dec 13, 2011 at 1:07 PM, mohit gupta motgu...@gmail.com wrote:
 Thanks thomas for bringing clarity.

  i am trying to build the xwiki source in eclipse as per the instructions
 given at

 http://dev.xwiki.org/xwiki/bin/view/Community/BuildingInEclipse#H5C5BOptional5C5DImporttheWARasawebproject.

  i have given the repository location as below in setting.xml in eclispe

 *         repositories
       repository
         idfip/id
         namexwiki Archiva Repository/name
         urlhttps://github.com/xwiki/xwiki-platform/url

That's not a maven repository, you should look at
http://dev.xwiki.org/xwiki/bin/view/Community/Building#HInstallingMaven
for how to properly setup maven with the exact thing to put in
settings.xml.

Using 
http://dev.xwiki.org/xwiki/bin/view/Community/BuildingInEclipse#H5C5BOptional5C5DImporttheWARasawebproject
is not recommended IMO, this doc is pretty old and
http://dev.xwiki.org/xwiki/bin/view/Community/DebugXEWithEclipse makes
it way easier to debug on Eclipse.

         releases
           enabledtrue/enabled
         /releases
         snapshots
           enabledtrue/enabled
         /snapshots
       /repository
     /repositories*

     But after updating the setting.xml(lying under .m2 folder) to above
 location  i get  below message on eclipse console

 *     12/13/11 5:28:54 PM IST: Unable to update index for fip|
 https://github.com/xwiki/xwiki-platform*

     And when i try to build the  project in eclipse, eclipse console shows
 the below error message

 *     Project build error: Non-resolvable parent POM for
 org.xwiki.platform:xwiki-platform-core:3.2-SNAPSHOT:
     Failure to find org.xwiki.platform:xwiki-platform:pom:3.2-SNAPSHOT in *
 *https://github.com/xwiki/xwiki-platform*https://github.com/xwiki/xwiki-platform
 *     was cached in the local repository, resolution will not be
 reattempted until the update interval of fip has elapsed
     or updates are forced and 'parent.relativePath' points at wrong local
 POM pom.xml /xwiki-platform-action line 1 Maven Problem*

 *     i am not getting what is the problem here. Please provide your
 valuable inputs.
 *
 On Tue, Dec 13, 2011 at 1:44 AM, Thomas Mortagne
 thomas.morta...@xwiki.comwrote:

 On Mon, Dec 12, 2011 at 8:13 PM, mohit gupta motgu...@gmail.com wrote:
  Thanks  Thomas Mortagne and Vincent a lot  for pointing out to
 repository.
  One question on Repository structure. i downloaded the
  xwiki-enterprise-web-3.2.war file and found out that
  XWikiAuthServiceImpl.class lies under  jar
  xwiki-platform-legacy-oldcore-3.2.jar
   and path is
  xwiki-platform-legacy-oldcore-3.2.jar\com\xpn\xwiki\user\impl\xwiki. But
 in
  the repository you guys pointed out same file
   lies under
 
 xwiki-platform-core\xwiki-platform-oldcore\src\main\java\com\xpn\xwiki\user\impl\xwiki.
  But in my dowloaded war file
   there is no jar by the name of  xwiki-platform-core or
  xwiki-platform-oldcore. There is jar file with the name
  xwiki-platform-legacy-oldcore-3.2.jar.
  could you brief about this discrepency?

 xwiki-platform-legacy-oldcore is actually a bit special: it's
 repackaging xwiki-platform-oldcore and inject some deprecated APIs to
 it.

 
  On Sun, Dec 11, 2011 at 6:52 PM, Vincent Massol vinc...@massol.net
 wrote:
 
 
  On Dec 10, 2011, at 7:30 PM, mohit gupta wrote:
 
   Thanks all for sharing the information. I started working on the xwiki
   project.
  
   I downloaded the war file xwiki-enterprise-web-3.2 and started
  working
  on
   that. I have got some questions/issues  while working
   on this. These are:-
  
   1) Is it possible to  get the source code of xwiki java files so that
 if
   want have some understanding/or modification as per my
      requirements i can go ahead?
 
  See
 
 http://dev.xwiki.org/xwiki/bin/view/Community/SourceRepository#HGettingSources
  (I've updated the page with more information)
 
  Thanks
  -Vincent
 
   2) As i said earlier too, i want my customer authentication. So i
  explored
   the downloaded war file and found there is a property
     xwiki.authentication.authclass inside xwiki.cfg file against which
 file
   name(com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl)
     is written. So i can provide my own customer class say
   MyProjectXWikiAuthentication.java instead of WikiAuthServiceImpl.So
     my question is in which library it should be packed with and what
 are
   interfaces/parent class it should extend how i can find
     it out?
  
   it would be a great help if you some one can brief about each point?
  
  
   On Fri, Dec 2, 2011 at 11:53 PM, mohit gupta motgu...@gmail.com
 wrote:
  
  
   Thanks Andreas a lot for sharing the information. Let me explain what
  got
   from the links you have mentioned above.
  
   i typed the URL http://www.teamsched.com/docs or
  http://www.teamsched.com in
   address bar. Both link took me to
 http://www.teamsched.com/docs/info/
   which seems to be a xwiki site based on java classes which must be
  hosted
   on