Re: [xwiki-users] office importer vs graphics

2009-12-07 Thread Peter Lees
thanks for all the responses to this.

to be clear, importing the document /without/ graphics works as expected.

these are MS word for windows (2003) documents; the graphics are 
embedded (not linked to external files)

when timing out, no data is produced.


Asiri Rathnayake wrote:

 
 Few questions for you:
 
 1. Is openoffice server listening on port 8100? Can XE connect to that port?

yes:

# telnet localhost 8100
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
`ø'com.sun.star.bridge.XProtocolPropertiesUrpProtocolPropertiesäX{É[ÐABKt^]
telnet close


Administer Xwiki - OpenOffice Server : Server state = Connected



 2. What does the XE log tell you when this problem occurs.



# tail -f xwiki.log

2009-12-07 11:44:16,060
[http://10.128.48.247:8080/xwiki/bin/view/XWiki/OfficeImporterResults]
ERROR rterVelocityContextInitializer  - task did not complete within timeout
org.xwiki.officeimporter.OfficeImporterException: task did not complete
within timeout
 at
org.xwiki.officeimporter.internal.DefaultOfficeImporter.importStream(DefaultOfficeImporter.java:175)
 at
org.xwiki.officeimporter.internal.OfficeImporterVelocityBridge.importDocument(OfficeImporterVelocityBridge.java:94)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:616)
 at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
 at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
 at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
[.
  .
  .]
Caused by: net.sf.jodconverter.office.OfficeException: task did not
complete within timeout
 at
net.sf.jodconverter.office.ManagedProcessOfficeManager.execute(ManagedProcessOfficeManager.java:93)
 at
net.sf.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConverter.java:71)
 at
org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeDocumentConverter.convert(DefaultOpenOfficeDocumentConverter.java:99)
 at
org.xwiki.officeimporter.internal.DefaultOfficeImporter.importStream(DefaultOfficeImporter.java:151)
 ... 110 more
Caused by: java.util.concurrent.TimeoutException
 at
java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:258)
 at java.util.concurrent.FutureTask.get(FutureTask.java:119)
 at
net.sf.jodconverter.office.ManagedProcessOfficeManager.execute(ManagedProcessOfficeManager.java:90)
 ... 113 more




 Another possibility is that there might be a problem with your openoffice
 profile. Usually this should not happen because jodconverter automatically
 creates a profile. Just in case, in xwiki.properties file try uncommenting
 openoffice.profile option and point it to a valid (initialized) profile
 directory (like /home/user/.openoffice.org/3).

# grep profilePath /var/xwiki/webapps/xwiki/WEB-INF/xwiki.properties
openoffice.profilePath=/var/xwiki/.openoffice.org/3

# ls -l /var/xwiki/.openoffice.org/3
total 8
drwxr-xr-x 17 xwiki xwiki 4096 Nov 25 18:01 user

# ls -l /var/xwiki/.openoffice.org/3/user/
total 128
drwxr-xr-x 2 xwiki xwiki 4096 Nov 25 18:00 autocorr
drwxr-xr-x 2 xwiki xwiki 4096 Nov 25 18:00 autotext
drwxr-xr-x 2 xwiki xwiki 4096 Nov 25 18:00 backup
drwxr-xr-x 3 xwiki xwiki 4096 Nov 25 18:00 basic
drwxr-xr-x 3 xwiki xwiki 4096 Nov 25 18:01 config
drwxr-xr-x 3 xwiki xwiki 4096 Nov 25 18:00 database
drwxr-xr-x 2 xwiki xwiki 4096 Nov 25 18:00 gallery
drwxr-xr-x 4 xwiki xwiki 4096 Nov 25 18:00 psprint
-rw-r--r-- 1 xwiki xwiki 1294 Nov 25 18:01 registration.xml
drwxr-xr-x 4 xwiki xwiki 4096 Nov 25 18:00 registry
drwxr-xr-x 2 xwiki xwiki 4096 Nov 25 18:00 Scripts
drwxr-xr-x 2 xwiki xwiki 4096 Nov 25 18:00 store
drwxr-xr-x 3 xwiki xwiki 4096 Nov 25 18:01 temp
drwxr-xr-x 2 xwiki xwiki 4096 Nov 25 18:00 template
drwxr-xr-x 3 xwiki xwiki 4096 Nov 25 18:00 uno_packages
drwxr-xr-x 2 xwiki xwiki 4096 Nov 25 18:00 wordbook


this directory was created by starting openoffice.org on the gui one 
time as the xwiki user.


please let me know if there are other files/settings i need to check

thanks  regards

p


--
Peter Lees






___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] upgrading standalone xwiki?

2009-12-07 Thread Peter Lees
hi folks,

can anyone point me to a step-by-step example of upgrading a standalone 
xwiki?

replacing the contents of ${XWIKI_HOME}/webapps/xwiki/ with 
xwiki-enterprise-web-2.1-rc-1.war  copying back the hibernate.cfg.xml 
and xwiki.cfg has resulted in:

Problem accessing /xwiki/bin/view/Main/. Reason:

 Error number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3001 in 3: Cannot load class 
com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager 
from param xwiki.store.migration.manager.class
Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
Wrapped Exception: Could not parse mapping document from resource 
xwiki.hbm.xml



i'm upgrading  2.0.3  to 2.1RC1

sorry if this is covered in a FAQ - the upgrade Xwiki Core from 
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUpgradingXWikiCore
 
isn't very explicit

any suggestions?

regards

p

--
Peter Lees

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] upgrading standalone xwiki?

2009-12-07 Thread Valdis Vītoliņš
Don't these errors appear because database connector is not added in
WEB-INF/lib?
Wouldn't it better to include it in xwiki war file to avoid such
mistakes?

Valdis


 hi folks,
 
 can anyone point me to a step-by-step example of upgrading a standalone 
 xwiki?
 
 replacing the contents of ${XWIKI_HOME}/webapps/xwiki/ with 
 xwiki-enterprise-web-2.1-rc-1.war  copying back the hibernate.cfg.xml 
 and xwiki.cfg has resulted in:
 
 Problem accessing /xwiki/bin/view/Main/. Reason:
 
  Error number 3 in 0: Could not initialize main XWiki context
 Wrapped Exception: Error number 3001 in 3: Cannot load class 
 com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager 
 from param xwiki.store.migration.manager.class
 Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
 Wrapped Exception: Could not parse mapping document from resource 
 xwiki.hbm.xml
 
 
 
 i'm upgrading  2.0.3  to 2.1RC1
 
 sorry if this is covered in a FAQ - the upgrade Xwiki Core from 
 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUpgradingXWikiCore
  
 isn't very explicit
 
 any suggestions?
 
 regards
 
 p
 
 --
 Peter Lees
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] office importer vs graphics

2009-12-07 Thread Asiri Rathnayake
Hi,



  2. What does the XE log tell you when this problem occurs.



 # tail -f xwiki.log

 2009-12-07 11:44:16,060
 [http://10.128.48.247:8080/xwiki/bin/view/XWiki/OfficeImporterResults]
 ERROR rterVelocityContextInitializer  - task did not complete within
 timeout
 org.xwiki.officeimporter.OfficeImporterException: task did not complete
 within timeout
 at

 org.xwiki.officeimporter.internal.DefaultOfficeImporter.importStream(DefaultOfficeImporter.java:175)
 at

 org.xwiki.officeimporter.internal.OfficeImporterVelocityBridge.importDocument(OfficeImporterVelocityBridge.java:94)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at

 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:616)
 at

 org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
 at

 org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
 at

 org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
 [.
  .
  .]
 Caused by: net.sf.jodconverter.office.OfficeException: task did not
 complete within timeout
 at

 net.sf.jodconverter.office.ManagedProcessOfficeManager.execute(ManagedProcessOfficeManager.java:93)
 at

 net.sf.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConverter.java:71)
 at

 org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeDocumentConverter.convert(DefaultOpenOfficeDocumentConverter.java:99)
 at

 org.xwiki.officeimporter.internal.DefaultOfficeImporter.importStream(DefaultOfficeImporter.java:151)
 ... 110 more
 Caused by: java.util.concurrent.TimeoutException
 at
 java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:258)
 at java.util.concurrent.FutureTask.get(FutureTask.java:119)
 at

 net.sf.jodconverter.office.ManagedProcessOfficeManager.execute(ManagedProcessOfficeManager.java:90)
 ... 113 more


The images embedded inside Office document, how large are they? (very
high-resolution images?)

- If they are quite large, you might want to increase the time-out for
officeimporter operations (from xwiki.properties file).

- Now, if they are not that large (if the most trivial images also fail),
then it'll be great if you can provide us a sample failing document.

Also, there is a small test you can perform if you have access to a GUI in
your computer:

- Open the failing document in OpenOffice.

- Save the document as HTML into some place.

Does above operation work without issues? And what about images, are they
properly saved? and what type of images are they ? (The last question is
because OpenOffice has a problem with EMF/WMF image formats on windows and
linux boxes).

Thanks.

- Asiri
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] error 500:javax.servlet.ServletException: Error number 3 in 0: Could not initialize main XWiki context

2009-12-07 Thread laurentj

anyone can help me?
before post i search and try every solution :s.


laurentj wrote:
 
 I have this error since yesterday
  javax.servlet.ServletException: Error number 3 in 0: Could not
 initialize main XWiki context
 Wrapped Exception: Error number 3001 in 3: Cannot load class
 com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager
 from param xwiki.store.migration.manager.class
 Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
 Wrapped Exception: invalid configuration
 
 org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
 
 org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
 
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
   org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
   com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:119)
 
 com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
 
 com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
 
 com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
 
 
 i don't change the hibernate configuration since last try.
 
 hibernate.configuration
 
 ?xml version='1.0' encoding='utf-8'?
 !DOCTYPE hibernate-configuration PUBLIC -//Hibernate/Hibernate
 Configuration DTD//EN
   http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd;
 hibernate-configuration
   session-factory
 
 !-- Please refer to the installation guide on
  http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation
 for configuring your
  database. You'll need to do 2 things:
  1) Copy your database driver JAR in WEB-INF/lib or in some shared
 lib directory
  2) Uncomment the properties below for your specific DB (and
 comment the default 
 database configuration if it doesn't match your DB)
 --
 
 !-- Generic parameters common to all Databases --
 
 property name=show_sqlfalse/property
 property name=use_outer_jointrue/property
 
 property name=dbcp.defaultAutoCommitfalse/property
 property name=dbcp.maxActive50/property
 property name=dbcp.maxIdle5/property
 property name=dbcp.maxWait3/property
 property name=dbcp.whenExhaustedAction1/property
 property name=dbcp.ps.whenExhaustedAction1/property
 property name=dbcp.ps.maxActive20/property
 property name=dbcp.ps.maxWait12/property
 property name=dbcp.ps.maxIdle20/property
 !-- Without it, some queries fail in MS SQL. XWiki doesn't need
 scrollable result sets, anyway. --
 property name=jdbc.use_scrollable_resultsetfalse/property
 
 !-- Configuration for the default database.
  Comment out this section and uncomment other sections below if
 you want to use another database.
  Note that the database tables will be created automatically if
 they don't already exist.
 --
 property
 name=connection.urljdbc:hsqldb:file:database/xwiki_db;shutdown=true/property
 property name=connection.usernamesa/property
 property name=connection.password/property
 property
 name=connection.driver_classorg.hsqldb.jdbcDriver/property
 property name=dialectorg.hibernate.dialect.HSQLDialect/property
 property
 name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvider/property
 property name=connection.pool_size2/property
 property name=statement_cache.size2/property
 mapping resource=xwiki.hbm.xml/
 mapping resource=feeds.hbm.xml/
 mapping resource=activitystream.hbm.xml/
 
 !-- MySQL configuration.
  Uncomment if you want to use MySQL and comment out other database
 configurations.
  We need to set the sql_mode to a less strict value, see
 XWIKI-1945
 property
 name=connection.urljdbc:mysql://localhost/xwiki?useServerPrepStmts=falseamp;useUnicode=trueamp;characterEncoding=UTF-8amp;sessionVariables=sql_mode=''/property
 property name=connection.usernamexwiki/property
 property name=connection.passwordxwiki/property
 property
 name=connection.driver_classcom.mysql.jdbc.Driver/property
 property name=dialectorg.hibernate.dialect.MySQLDialect/property
 property
 name=connection.provider_classcom.xpn.xwiki.store.DBCPConnectionProvider/property
 property name=connection.pool_size2/property
 property name=statement_cache.size2/property
 mapping resource=xwiki.hbm.xml/
 mapping resource=feeds.hbm.xml/
 mapping resource=activitystream.hbm.xml/
 --
 
 !-- HSQLDB configuration.
  Uncomment if you want to use 

Re: [xwiki-users] Nice to Meet You!

2009-12-07 Thread Jobling C.P.
unsubscribe

 -Original Message-
 From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On
 Behalf Of Vincent Massol
 Sent: 04 December 2009 6:37 AM
 To: XWiki Users
 Subject: Re: [xwiki-users] Nice to Meet You!
 
 Hi Reiko,
 
 On Dec 4, 2009, at 6:04 AM, Reiko Saito wrote:
 
  Hi all,
 
  Nice to meet you!
 
  I am Reiko Saito from OpenSolaris.org JA community.
  I manages OpenSolaris.org JA site, as one of the leaders.
 
  http://hub.opensolaris.org/bin/view/User+Group+tsug/
 

http://hub.opensolaris.org/bin/view/Community+Group+int_localization/ja
 _group
 
  I've just joined this mailing list to contribute to
  Japanese localization of XWiki.  Jim encouraged me to join this
  list :-)
 
  As you see above, Japanese pages are now recognized as en
 (English).
  Language switch function is very very attractive, so I really want
to
  use it for Japanese, too!
 
  Please someone let me know what I can do to make it happen.
  If it needs more resource, I will ask for contribution
  from OpenSolaris.org user group or globalization group.
 
  Have a nice day!
 
 Great! I'm eager to see a Japanese translation for XWiki
 
 All you need to help is located on http://l10n.xwiki.org/
 
 Please have  a look there and ask us here if you have any question.
 
 Thanks again for the help
 -Vincent
 
 
  -Reiko
 
  Blog: http://blogs.sun.com/reiko
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] history of document deletion

2009-12-07 Thread EBIHARA, Yuichiro
Hi,

I have a question about XWiki's version control functionality.

Q1)document deletion is recorded in the history?

Q2)Is it possible to rollback document deletion?

Thanks,

ebi
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] [myxwiki] XWiki Enterprise 2.1RC1 Upgrade

2009-12-07 Thread Jean-Vincent Drean
Hello,

myxwiki.org has been upgraded to XE 2.1RC1, if you own a wiki hosted
there you should have a look at :
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise21RC1

We also strongly recommend an upgrade to the latest wiki version. To
upgrade you must download XE 2.1RC1 XWiki XAR from :
http://www.xwiki.org/xwiki/bin/view/Main/Download
And follow the upgrade guide available at :
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUpgradingwikidocuments

To be notified of the myxwiki.org server upgrade you can follow
myxwiki on twitter:
http://twitter.com/myxwiki

Thanks,
JV.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] history of document deletion

2009-12-07 Thread Vincent Massol

On Dec 7, 2009, at 12:39 PM, EBIHARA, Yuichiro wrote:

 Hi,

 I have a question about XWiki's version control functionality.

 Q1)document deletion is recorded in the history?

Not right now but I agree we should add them to the history (since  
it's easy to do so).

 Q2)Is it possible to rollback document deletion?

Yes, deleted documents go in the trash, where they can be completely  
removed or restored.

Thanks
-Vincent

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] [myxwiki] new wiki request

2009-12-07 Thread Peter Thalmann
dear admins and xwiki enthusiasts, I say thank you in advance for setting up
the linfocus.myxwiki.org account. we will use this account for first
impression of the system in a collaborative environment. Best, Peter
(pthalmann)
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] history of document deletion

2009-12-07 Thread EBIHARA, Yuichiro
Vincent,

Thank you for your quick response!
It would be great if delete and restore operations are also recorded.

ebi

2009/12/7 Vincent Massol vinc...@massol.net:

 On Dec 7, 2009, at 12:39 PM, EBIHARA, Yuichiro wrote:

 Hi,

 I have a question about XWiki's version control functionality.

 Q1)document deletion is recorded in the history?

 Not right now but I agree we should add them to the history (since
 it's easy to do so).

 Q2)Is it possible to rollback document deletion?

 Yes, deleted documents go in the trash, where they can be completely
 removed or restored.

 Thanks
 -Vincent

 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] history of document deletion

2009-12-07 Thread Vincent Massol

On Dec 7, 2009, at 2:22 PM, EBIHARA, Yuichiro wrote:

 Vincent,

 Thank you for your quick response!
 It would be great if delete and restore operations are also recorded.

Do you think you could create a jira issue for this at 
http://jira.xwiki.org/jira/browse/XWIKI 
  ?

Thanks
-Vincent


 ebi

 2009/12/7 Vincent Massol vinc...@massol.net:

 On Dec 7, 2009, at 12:39 PM, EBIHARA, Yuichiro wrote:

 Hi,

 I have a question about XWiki's version control functionality.

 Q1)document deletion is recorded in the history?

 Not right now but I agree we should add them to the history (since
 it's easy to do so).

 Q2)Is it possible to rollback document deletion?

 Yes, deleted documents go in the trash, where they can be completely
 removed or restored.

 Thanks
 -Vincent
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [myxwiki] new wiki request

2009-12-07 Thread Thomas Mortagne
Hi,

You can access your new wiki on http://linfocus.myxwiki.org

Enjoy !

On Mon, Dec 7, 2009 at 13:55, Peter Thalmann
peter.thalm...@linfocus.com wrote:
 dear admins and xwiki enthusiasts, I say thank you in advance for setting up
 the linfocus.myxwiki.org account. we will use this account for first
 impression of the system in a collaborative environment. Best, Peter
 (pthalmann)
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Components from the wiki

2009-12-07 Thread Lewis Denizen
Thanks again, Vincent!  Yup, ComponentDescriptorFactory did the  
magic :-D

On Dec 4, 2009, at 1:39 AM, Vincent Massol vinc...@massol.net wrote:


 On Dec 3, 2009, at 4:34 PM, Lewis Denizen wrote:

 Thanks Vincent!  That's exactly what I needed :-)  Just one more
 question,
 though..  Is it possible to inject dependencies by using the
 attributes
 defined within the class then?  Right now, using the
 DefaultComponentDescriptor, I can inject dependencies using:

 componentDescriptor.addComponentDependency(QueryManager.class,
 default)

 but would be nice if it could auto-inject into something like:

 class UserXWQLDAO implements UserDAO
 {
   @Requirement
   def QueryManager queryManager
   //...
 }

 You'd need to use the annotation loader to do that.
 new ComponentAnnotationLoader().initialize(componentManager,
 classloader)

 However note that it'll re-register all components for which it finds
 annotations.

 I guess you could also use the ComponentDescriptorFactory class which
 would be much simpler since you pass to it the class to configure.

 See 
 http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-component/xwiki-component-default/src/main/java/org/xwiki/component/annotation/ComponentDescriptorFactory.java

 Thanks
 -Vincent

 Thanks again for a great wiki!

 On Wed, Dec 2, 2009 at 3:56 AM, Vincent Massol vinc...@massol.net
 wrote:

 Hi Lewis,

 On Dec 1, 2009, at 7:12 PM, Lewis Denizen wrote:

 Hi xwiki-users,

 I'm trying to bootstrap a component from the wiki itself (via
 Groovy).  I
 have an interface defined as follows:

 // This is the text inside the User.UserDAO document
 {{groovy}}
 interface UserDAO
 {
  def ROLE = UserDAO.class.name

  /**
   * Returns the current user name.
   */
  def getUserName()

  /**
   * Returns the current user's password
   */
  def getPassword()
 }
 {{/groovy}}

 I also have a dummy implementation defined as follows:

 // This is the text inside the User.UserXWQLDAO document
 {{include document=User.UserDAO /}}
 {{groovy}}
 import org.xwiki.component.annotation.Component
 import org.xwiki.component.annotation.Requirement
 import org.xwiki.component.descriptor.DefaultComponentDescriptor
 import org.xwiki.query.Query
 import org.xwiki.query.QueryManager

 import com.xpn.xwiki.web.Utils

 @Component(roles = [ UserDAO.class ])
 class UserXWQLDAO implements UserDAO
 {
  @Requirement
  def QueryManager queryManager

  /**
   * Returns the current user name.
   */
  def getUserName() {
  return bleh
  }

  /**
   * Returns the current user's password
   */
  def getPassword() {
  return bleh
  }
 }

 if(!Utils.componentManager.hasComponent(UserDAO.class))
 {
  def componentDescriptor = new DefaultComponentDescriptor()
  componentDescriptor.setImplementation(UserDAO.class)

  Utils.componentManager.registerComponent(componentDescriptor, new
 UserXWQLDAO())
 }
 {{/groovy}}

 The first problem I ran into was that Groovy 1.6.5 ran into
 IncompatibleClassChangeErrors (
 http://jira.codehaus.org/browse/GROOVY-3830
 ).
 Upgrading to 1.6.6 fixed this issue.  But, then I ran into a NPE:

 *exception*

 javax.servlet.ServletException: Failed to initialize Request/
 Response or Session

 com
 .xpn
 .xwiki
 .web.XWikiAction.initializeContainerComponent(XWikiAction.java:
 391)

 com
 .xpn.xwiki.web.XWikiAction.initializeXWikiContext(XWikiAction.java:
 372)
 com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:112)

 org
 .apache
 .struts
 .action.RequestProcessor.processActionPerform 
 (RequestProcessor.java:
 431)

 org
 .apache
 .struts.action.RequestProcessor.process(RequestProcessor.java:
 236)

 org.apache.struts.action.ActionServlet.process(ActionServlet.java:
 1196)

 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java: 
 432)
 javax.servlet.http.HttpServlet.service(Unknown Source)
 javax.servlet.http.HttpServlet.service(Unknown Source)

 com
 .xpn
 .xwiki
 .wysiwyg
 .server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
 com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:119)

 com
 .xpn
 .xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:
 68)

 com
 .xpn
 .xwiki
 .web
 .SavedRequestRestorerFilter
 .doFilter(SavedRequestRestorerFilter.java:
 295)

 com
 .xpn
 .xwiki
 .web
 .SetCharacterEncodingFilter
 .doFilter(SetCharacterEncodingFilter.java:
 112)

 *root cause*

 org.xwiki.container.servlet.ServletContainerException: Failed to
 initialize request

 org
 .xwiki
 .container
 .servlet
 .internal
 .DefaultServletContainerInitializer
 .initializeRequest(DefaultServletContainerInitializer.java:98)

 com
 .xpn
 .xwiki
 .web.XWikiAction.initializeContainerComponent(XWikiAction.java:
 387)

 com
 .xpn.xwiki.web.XWikiAction.initializeXWikiContext(XWikiAction.java:
 372)
 com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:112)

 org
 .apache
 .struts
 .action.RequestProcessor.processActionPerform 
 (RequestProcessor.java:
 431)

 org
 .apache
 

Re: [xwiki-users] error 500:javax.servlet.ServletException: Error number 3 in 0: Could not initialize main XWiki context

2009-12-07 Thread Trevor Russ
Hi,

I had this error when I had set up the connector properties incorrectly (they 
didn't match the database).  It looks from your .xml that you have two 
connectors uncommented: the default database and Oracle.  You should only 
have *one* uncommented.  

When you created your database, what did you name it?  What username/password 
did you set up?

Make sure these values in hibernate.cfg.xml match your database:

(default)
  property
  name=connection.urljdbc:hsqldb:file:database/xwiki_db;shutdown=true/property
  property name=connection.usernamesa/property
  property name=connection.password/property

_or_ 

(Oracle)
  property
  name=connection.urljdbc:oracle:thin:@localhost:1521:XE/property
  property name=connection.usernamexwiki/property
  property name=connection.passwordxwiki/property


Trevor
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Hide unneeded stuff at print preview

2009-12-07 Thread etvc

I need to hide all stuff at the print preview form, exept page contents.
Logo, title, and all of them ... How I can do that? As I understand, I need
to edit print.css file in folder of my skin (colibri for example). At this
file exists section with comment /* Hide unneeded stuff */, but I cannot
underdstand what I should add for hidding all? I already hide all objects
below main page content, but for objects above - I cannot do that. What I
should to add in this section in print.css for my situation?
-- 
View this message in context: 
http://n2.nabble.com/Hide-unneeded-stuff-at-print-preview-tp4126306p4126306.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] history of document deletion

2009-12-07 Thread EBIHARA, Yuichiro
Vincent,

I've created a new issue, although I don't know if I could provide
proper information.
http://jira.xwiki.org/jira/browse/XWIKI-4656

Thanks,

ebi

2009/12/7 Vincent Massol vinc...@massol.net:

 On Dec 7, 2009, at 2:22 PM, EBIHARA, Yuichiro wrote:

 Vincent,

 Thank you for your quick response!
 It would be great if delete and restore operations are also recorded.

 Do you think you could create a jira issue for this at 
 http://jira.xwiki.org/jira/browse/XWIKI
  ?

 Thanks
 -Vincent


 ebi

 2009/12/7 Vincent Massol vinc...@massol.net:

 On Dec 7, 2009, at 12:39 PM, EBIHARA, Yuichiro wrote:

 Hi,

 I have a question about XWiki's version control functionality.

 Q1)document deletion is recorded in the history?

 Not right now but I agree we should add them to the history (since
 it's easy to do so).

 Q2)Is it possible to rollback document deletion?

 Yes, deleted documents go in the trash, where they can be completely
 removed or restored.

 Thanks
 -Vincent
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] history of document deletion

2009-12-07 Thread Vincent Massol

On Dec 7, 2009, at 3:44 PM, EBIHARA, Yuichiro wrote:

 Vincent,

 I've created a new issue, although I don't know if I could provide
 proper information.
 http://jira.xwiki.org/jira/browse/XWIKI-4656

That's good thanks. Now you'll get notification when this issue is  
updated so you can keep track of it. Obviously if you want to  
participate and provide patches for it you're most welcome
(see http://dev.xwiki.org/xwiki/bin/view/Community/Contributing).

Thanks
-Vincent


 Thanks,

 ebi

 2009/12/7 Vincent Massol vinc...@massol.net:

 On Dec 7, 2009, at 2:22 PM, EBIHARA, Yuichiro wrote:

 Vincent,

 Thank you for your quick response!
 It would be great if delete and restore operations are also  
 recorded.

 Do you think you could create a jira issue for this at 
 http://jira.xwiki.org/jira/browse/XWIKI
  ?

 Thanks
 -Vincent


 ebi

 2009/12/7 Vincent Massol vinc...@massol.net:

 On Dec 7, 2009, at 12:39 PM, EBIHARA, Yuichiro wrote:

 Hi,

 I have a question about XWiki's version control functionality.

 Q1)document deletion is recorded in the history?

 Not right now but I agree we should add them to the history (since
 it's easy to do so).

 Q2)Is it possible to rollback document deletion?

 Yes, deleted documents go in the trash, where they can be  
 completely
 removed or restored.

 Thanks
 -Vincent
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Hide unneeded stuff at print preview

2009-12-07 Thread Sergiu Dumitriu
On 12/07/2009 03:30 PM, etvc wrote:

 I need to hide all stuff at the print preview form, exept page contents.
 Logo, title, and all of them ... How I can do that? As I understand, I need
 to edit print.css file in folder of my skin (colibri for example). At this
 file exists section with comment /* Hide unneeded stuff */, but I cannot
 underdstand what I should add for hidding all? I already hide all objects
 below main page content, but for objects above - I cannot do that. What I
 should to add in this section in print.css for my situation?

#headerglobal, #hierarchy, #document-title, #document-info {
   display: none;
}

Hint: Firebug ( http://getfirebug.com/ ) is a very useful Firefox 
extension for web developers, that can give you very quick answers to 
such questions. There are similar tools for other browsers as well.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Nice to Meet You!

2009-12-07 Thread Reiko Saito
Thanks, Vincent, Jim, Ebihara-san, for your warm welcome messages :-)

I tried accessing http://l10n.xwiki.org/, but it seems
it is under the maintenance.  Once it's alive,
I will look for the files for localization and how-to.

Regards,

-Reiko


Reiko Saito
Japanese Language Lead
Globalization Project Management
Globalization Services
Sun Microsystems, Inc.
Email: reiko.sa...@sun.com
Phone: +81 3 5962 4912
Blog: http://blogs.sun.com/reiko



Vincent Massol wrote:
 Hi Reiko,
 
 On Dec 4, 2009, at 6:04 AM, Reiko Saito wrote:
 
 Hi all,

 Nice to meet you!

 I am Reiko Saito from OpenSolaris.org JA community.
 I manages OpenSolaris.org JA site, as one of the leaders.

 http://hub.opensolaris.org/bin/view/User+Group+tsug/
 http://hub.opensolaris.org/bin/view/Community+Group+int_localization/ja_group

 I've just joined this mailing list to contribute to
 Japanese localization of XWiki.  Jim encouraged me to join this  
 list :-)

 As you see above, Japanese pages are now recognized as en (English).
 Language switch function is very very attractive, so I really want to
 use it for Japanese, too!

 Please someone let me know what I can do to make it happen.
 If it needs more resource, I will ask for contribution
 from OpenSolaris.org user group or globalization group.

 Have a nice day!
 
 Great! I'm eager to see a Japanese translation for XWiki
 
 All you need to help is located on http://l10n.xwiki.org/
 
 Please have  a look there and ask us here if you have any question.
 
 Thanks again for the help
 -Vincent
 
 -Reiko

 Blog: http://blogs.sun.com/reiko
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] XWQL in DatabaseLists

2009-12-07 Thread Nigel Smith
Hello,

I really like the idea of database lists as it gives me the ability to 
relate pages (objects) together without much effort.

However, I have found it very difficult to use these lists easily as it 
requires an understanding of not only HQL (which isn't hard) and of the 
Hibernate-mapped schema, which to my knowledge is not available. Is this 
hibernate-mapped API / Schema (java objects) published somewhere?

It has also occurred to me that an even easier option would be to use 
XWQL in the DatabaseList query specification. Is this possible somehow?

Regards,
Nigel

Running XE 1.9.3
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Hide unneeded stuff at print preview

2009-12-07 Thread etvc

Thanks a lot!
All is great, except of a small issue ...
I added line
#headerglobal, #hierarchy, #document-title, #document-info, #xdocFooter,
#docextrapanes,
in the corresponding section, and all header and footer objects was fully
hide, but also appeared second empty page, when I tried to print a result.
Second empty page appeared in any case even through my page content consist
of one text line, BUT only if I hide all header and footer objects ... It's
not a big problem, but maybe is it possible to correct this issue?


Sergiu Dumitriu-2 wrote:
 
 On 12/07/2009 03:30 PM, etvc wrote:

 I need to hide all stuff at the print preview form, exept page contents.
 Logo, title, and all of them ... How I can do that? As I understand, I
 need
 to edit print.css file in folder of my skin (colibri for example). At
 this
 file exists section with comment /* Hide unneeded stuff */, but I cannot
 underdstand what I should add for hidding all? I already hide all objects
 below main page content, but for objects above - I cannot do that. What I
 should to add in this section in print.css for my situation?
 
 #headerglobal, #hierarchy, #document-title, #document-info {
display: none;
 }
 
 Hint: Firebug ( http://getfirebug.com/ ) is a very useful Firefox 
 extension for web developers, that can give you very quick answers to 
 such questions. There are similar tools for other browsers as well.
 
 -- 
 Sergiu Dumitriu
 http://purl.org/net/sergiu/
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 

-- 
View this message in context: 
http://n2.nabble.com/Hide-unneeded-stuff-at-print-preview-tp4126306p4130747.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users