Re: [xwiki-users] Bulletin Board cannot display topic title and first post !?

2008-02-21 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi Guillaume!

Guillaume Lerouge wrote:
 It makes sense, discussions àla Wikipedia if I'm right ;-)

I am not sure this is a good comparison. I must recognize that the last 
MediaWiki release I've installed and used is a bit old (1.9.3), but as 
far as I see the possibilities open by the XWiki arquitecture are far 
from being comparable to the ones provided by MediaWiki. In MediaWiki 
you have an interface to create new headed paragraphs of the same level 
in the discussion page. But what you have done is to provide a tool to 
create an object for each post, topic,... and this opens an universe (or 
multiverse!) of opportunities.

 The quickest way to do this is to create a specific skin with a new 
 displayer for comments. In fact, that's what was done for 
 http://wikipeople.elle.fr, see for 
 instance http://wikipeople.elle.fr/xwiki/bin/view/People/DrewBarrymore .

The example from Elle is PERFECT. But instead of using comments, I would 
like to use BBCode. It is not possible to categorize comments as we can 
categorize Category(sic)TopicMessage.

 As for the rights setting (people seeing the page but not the 
 comments), I'm not sure that XWiki can do that out of the box... What 
 you could do though is to create 2 spaces, MySpace  MySpaceDiscussion 
 - then on each page of /MySpace you put a button such as 
 [PageDiscussionMySpaceDiscussion.$doc.getName()] (through a panel for 
 instance). Then people can create a discussion page with different 
 rights for each existing page. With the parent set right it's easy to 
 get back from the page in the discussion space to the original one...

 Then you'd need to create a topic in your panel in the second space. 
 You could try to put this in a panel on the 2nd space :

 $doc.getObject('BBCode.TopicClass', true) - this creates a topic in 
 your page, but you'd still miss all the content on the 
 TopicClassSheet... Maybe playing a bit with an input form in the panel :-)


 But this looks like a big hack... Good luck if you wanna try and do it 
 though ;-)


 Guillaume


 PS: if you wait a few hours, I'll may have the time to improve the 
 BB's remaining rough edges and upload a new XAR...



Thanks for the tips! I have these hours indeed. In the meantime, I keep 
trying to make the pieces fit!

Cheers,

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] Bulletin Board cannot display topic title and first post !?

2008-02-21 Thread Guillaume Lerouge
Hi there,
The last version of the Bulletin Board Application is now available for
download at
http://code.xwiki.org/xwiki/bin/view/Applications/BulletinBoardApplicationDownloads
.

Description of the application available here :
http://code.xwiki.org/xwiki/bin/view/Applications/BulletinBoardApplication

This version adds a few layout changes and introduces a new panel that lists
the bulletin boards an user has access to in a given wiki, available at [
Panels.BulletinBoardList]

Hope you will like it,

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


[xwiki-users] [XE 1.2.2] Space characters trimmed in attachment names

2008-02-21 Thread BOUSQUET Jeremie
Hello,

 

Don't know if it's a bug or an evolution, but after migrating my xwiki
to 1.2.2, when I attach a new file to a page, all spaces characters are
trimmed from the name. I didn't found anything about that in Jira.

For example My Doc Attached.doc gets renamed to MyDocAttached.doc.

 

I see at least one issue coming from this : if you attach the same file
it's not considered the same because it's renamed. Your existing links
also link to the previous version, and it's not easy to find by
end-user.

And anyway you don't want the file to be renamed when attached ...

 

I'm using XE 1.2.2 on MySql 4.0 and RedHat R4.

 

WDTY ?

 

Thanks,

Jeremie

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


Re: [xwiki-users] Bulletin Board cannot display topic title and f irst post !?

2008-02-21 Thread goldring, richard
Hi,
 
The Bulletin Board application is looking good - I'll certainly try it when
I have a chance - will it be include with the lastest version of XWiki?
 
Regards,
 
Richard

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
Guillaume Lerouge
Sent: 21 February 2008 08:55
To: XWiki Users
Subject: Re: [xwiki-users] Bulletin Board cannot display topic title and
first post !?


Hi there,  

The last version of the Bulletin Board Application is now available for
download at
http://code.xwiki.org/xwiki/bin/view/Applications/BulletinBoardApplicationDo
wnloads
http://code.xwiki.org/xwiki/bin/view/Applications/BulletinBoardApplicationD
ownloads .


Description of the application available here :
http://code.xwiki.org/xwiki/bin/view/Applications/BulletinBoardApplication
http://code.xwiki.org/xwiki/bin/view/Applications/BulletinBoardApplication



This version adds a few layout changes and introduces a new panel that lists
the bulletin boards an user has access to in a given wiki, available at
[Panels.BulletinBoardList]


Hope you will like it,


Guillaume


Thales UK Ltd (Wells) DISCLAIMER: The information contained in this e-mail
is confidential. It may also be legally privileged. It is intended only for
the stated addressee(s) and access to it by any other person is
unauthorised. If you are not an addressee, you must not disclose, copy,
circulate or in any other way use or rely on the information contained in
this e-mail. Such unauthorised use may be unlawful. We may monitor all
e-mail communications through our networks. If you have received this e-mail
in error, please inform us immediately on +44 (0) 1749 672081 and delete it
and all copies from your system. We accept no responsibility for changes to
any e-mail which occur after it has been sent.  Attachments to this e-mail
may contain software viruses which could damage your system.  We therefore
recommend you virus-check all attachments before opening. A business of
Thales UK Ltd. Registered Office: 2 Dashwood Lang Road, The Bourne Business
Park, Addlestone, Weybridge, Surrey KT15 2NX Registered in England No.
868273
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] ParseErrorException / Upgrade problems

2008-02-21 Thread David Delbecq
Here is toplevel menu, retrieved from old still running xwiki, in 
xwiki/bin/edit/XWiki/XWikiPreferences?xpage=editprefs - presentation - 
top menu

 a href=../../view/Main/WebHomeHome/aspan | /span
 !--
 a href=../../view/Blog/WebHomeBlog/aspan | /span a 
 href=../../view/Main/KnowledgeBaseKnowledge Base/aspan | /span
 --
 a href=../../view/Main/WhatsNewWhat's new/aspan | /span a 
 href=../../view/Main/WebSearchSearch/aspan | /span 
 #if($xwiki.hasAdminRights())
 a href=../../view/XWiki/WebHomeAdmin/aspan | /span #end
 a href=../../view/Doc/WebHomeDoc/aspan | /span
 !--
 a href=../../view/XWiki/RegisterNewUserRegister/aspan | /span
 --

After inspection, it seems upgrade tool converted it to that awfull stuff:

 a href=$xwiki.getURL(Main.WebHome,view)Home/aspan | /span
 !--
 a href=$xwiki.getURL(Blog.WebHomeBlogaspan | .span a 
 href=..view.Main.KnowledgeBase,view)Knowledge Base/aspan 
 | /span
 --
 a href=$xwiki.getURL(Main.WhatsNewWhat's new/aspan | /span 
 a href=..view.Main.WebSearch,view)Search/aspan | /span
 #if($xwiki.hasAdminRights())
 a href=$xwiki.getURL(XWiki.WebHome,view)Admin/aspan | /span
 #end
 a href=$xwiki.getURL(Doc.WebHome,view)Doc/aspan | /span
 !--
 a 
 href=$xwiki.getURL(XWiki.RegisterNewUser,view)Register/aspan 
 | /span
 --
See the broken tags and incomplete xwiki rules? I don't know why this 
happened. I hope the upgrading tool did not do that to *all* my documents !


Now we have another problem we try to solve. We followed upgrading rules 
(mysql dump + mysql import on test server, then deploy xwiki and wait 
for it to upgrade documents), but all our utf-8 characters are broken. 
It looks like they got interpreted as ISO-8859 in the middle of process, 
somewhere. Take a look at before (current production wiki 0.9) and after 
(test wiki 1.2):
http://img299.imageshack.us/img299/6695/utf8oh6.png

Both old and upgraded test wiki connect using the useUnicode=true and 
characterEncoding=UTF-8 but somehow upgraded database is broken :/ Any hint?


En l'instant précis du 21/02/08 05:13, Sergiu Dumitriu s'exprimait en 
ces termes:
 David Delbecq wrote:

 Try opening server address/xwiki/bin/view/XWiki/Menu?xpage=code and 
 server address/xwiki/bin/view/XWiki/Toolbar?xpage=code and post the 
 code there.


 Or try using a new skin. Some of the new features can't be accessed from 
 the old skin.


   
 This errors happens on every page, which document should i post? The one 
 mentioned in exception? Here it is, but i doubt it's the one at cause:


 
 1 Wiki Knowledge Base

 This is the Wiki Knowledge Base, where you can start writing about 
 your favorite subjects.

 To create new pages, use brackets around the words you want to create 
 links for:

 * [Example Link 1]
 * [Example Link 2]
   
 I'll be glad to post top menu, if i knew where it's stored...

 This seems limited to top menu rendering in xwiki, i see part of error 
 there, complete error (in original mail) was logged in tomcat logs

 Any help appreciated!


 En l'instant précis du 19/02/08 17:34, Sergiu Dumitriu s'exprimait en 
 ces termes:
 
 Can you post the document content?


 David Delbecq wrote:
   
   
 Hello,

 we get this error in xwiki top menu after importing from 0.9. Can someone 
 explain me how to solve this? thanks!




 org.apache.velocity.exception.ParseErrorException: Encountered
 Blog.aspan | .span a
 href=\..view.Main.KnowledgeBase\,\view\)\Knowledge
 Base/aspan | /span \r\n--\r\na href=\ at line 3, column 38 of
 view.Main
 Was expecting one of:
 , ...
 ) ...
 WHITESPACE ...

 at
 com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:212)
 at
 com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152)
 at
 com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:95)
 at
 com.xpn.xwiki.render.XWikiVelocityRenderer.interpret(XWikiVelocityRenderer.java:60)
 at
 com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:247)
 at
 com.xpn.xwiki.render.DefaultXWikiRenderingEngine.interpretText(DefaultXWikiRenderingEngine.java:150)
 at com.xpn.xwiki.XWiki.parseContent(XWiki.java:1313)
 at com.xpn.xwiki.api.XWiki.parseContent(XWiki.java:554)
 at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
 org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
 at
 org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
 at
 org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
 at
 org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
 at
 org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
 at
 

Re: [xwiki-users] Bulletin Board cannot display topic title and f irst post !?

2008-02-21 Thread Guillaume Lerouge
Hi Richard,

The Bulletin Board application is looking good - I'll certainly try it when
I have a chance - will it be included with the lastest version of XWiki?


no, most probably not. The XWiki dev strategy is that modules  applications
shall be separated from each other as much as possible. Therefore the BB
won't probably be in the next release of XE.

However please note that since none of the BB files overwrites existing XE
pages, you can safely and easily import it in a fresh install of XE. The
full process will take around 3 minutes, each step is detailed here :
http://code.xwiki.org/xwiki/bin/view/Applications/BulletinBoardApplicationDownloads


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


Re: [xwiki-users] Bulletin Board cannot display topic title and first post !?

2008-02-21 Thread [Ricardo Rodriguez]

Hi! Sorry for posting this message again, but I've done something wrong in my
previous post and it is hard to read it.


Guillaume Lerouge wrote:
 
 This version adds a few layout changes and introduces a new panel that
 lists
 the bulletin boards an user has access to in a given wiki, available at [
 Panels.BulletinBoardList]
 
 Hope you will like it,
 
 Guillaume
 

I do! At least for us, this is a longly desired application/feature.

Of course we will use it and report back any issue. I know it will be
desirable we can contribute in a more active way, but I am afraid we have to
keep learning prior to be helpful.

Just a detail and another thing that could be considered as a bug:

1. The title of the panel list reads: Your Bulletin Boards. There is
another useful panel listing recent modifications that reads My Recent
Modifications. I do prefer the my instead of the your: the user has
this nice feeling of control over what s/he is accessing. Of course it is
quite easy to modify this, but you have to do that each time the panel is
reimported. I don't know it if is worthing to consider this.

2. See this...

http://mire.environmentalchange.net/~webmaster/images/BBCodeRRodriguez.png

I've rights to read all three BB created in this wiki. So, the panel shows
the right contents. But see this...

http://mire.environmentalchange.net/~webmaster/images/BBCodeXPontevedra.png

User Xabier has access only to BB Red Natura 2000. Each one of the three
links points to one of the three created BB to which I've access, but access
is correctly denied.

Perhaps this makes sense for your before I am able to dig into the code to
see what is happening here. Thanks!

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team


-- 
View this message in context: 
http://www.nabble.com/Bulletin-Board-cannot-display-topic-title-and-first-post-%21--tp15547458p15609022.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] Bulletin Board cannot display topic title and first post !?

2008-02-21 Thread Guillaume Lerouge
There's a problem indeed...
Here is the code :

#set ($sql = , BaseObject as obj where obj.name=doc.fullName and
obj.className='BBCode.BBClass' and obj.name'BBCode.BBClassTemplate' order
by doc.date desc)

#set($bbs = $xwiki.searchDocuments($sql))


#foreach ($item in $bbs)

#set ($bbdoc = $xwiki.getDocument($item))


#if ($bbdoc.hasAccessLevel('view', $context.user) == 'true')

#if ($bbdoc.getValue('bbtitle') != )

* [$bbdoc.display('bbtitle')$item]

#else

* [$item]

#end

#end

#end


- the check on rights is done before the moment each Bulletin Board is
displayed, so it may have something to do with the rights configuration...
Do you explicitely deny the view right to your user ?

(Locally when I deny view right to an user he cannot see the bulletin boards
he can't access in the list, ie I don't get the bug)


In the meanwhile I've updated the XAR for the panel to read My instead of
Your ;-)


Guillaume

On 21/02/2008, [Ricardo Rodriguez] [EMAIL PROTECTED]
wrote:

 Hi!

 Guillaume Lerouge wrote:
  This version adds a few layout changes and introduces a new panel that
 lists the bulletin boards an user has access to in a given wiki, available
 at [ Panels.BulletinBoardList] Hope you will like it, Guillaume

 I do! At least for us, this is a longly desired application/feature. Of
 course we will use it and report back any issue. I know it will be desirable
 we can contribute in a more active way, but I am afraid we have to keep
 learning prior to be helpful. Just a detail and another thing that could be
 considered as a bug: 1. The title of the panel list reads: Your Bulleting
 Boards. There is another useful panel listing recent modifications that
 reads My Recent Modifications. I do prefer the my instead of the your:
 the user has this nice feeling of control over what s/he is accessing. Of
 course it is quite easy to modify this, but you have to do that each time
 the panel is reimported. I don't know it if is worthing to consider this. 2.
 See this...
 http://mire.environmentalchange.net/~webmaster/images/BBCodeRRodriguez.pngI've
  rights to read all three BB created in this wiki. So, the panel shows
 the right contents. But see this...
 http://mire.environmentalchange.net/~webmaster/images/BBCodeXPontevedra.pngUser
  Xabier has access only to BB Red Natura 2000. Each one of the three
 links points to one of the three created BB to which I've access, but access
 is correctly denied. Perhaps this makes sense for your before I am able to
 dig into the code to see what is happening here. Thanks! Cheers, Ricardo --
 Ricardo Rodríguez Your EPEC Network ICT Team
 --
 View this message in context: Re: Bulletin Board cannot display topic
 title and first post 
 !?http://www.nabble.com/Bulletin-Board-cannot-display-topic-title-and-first-post-%21--tp15547458p15609017.html
 Sent from the XWiki- Users mailing list 
 archivehttp://www.nabble.com/XWiki--Users-f2565.htmlat
 Nabble.com.

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




-- 
http://wikibc.blogspot.com/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Anyone is successful when he install xwiki on Oracle 9i?

2008-02-21 Thread Sergiu Dumitriu
Hi,

Did you properly configure the hibernate configuration file?
hibernate.cfg.xml
The distributed file uses the hibernate 10g Dialect.

Liu Aijun wrote:
 Anyone is successful when install on Oracle 9i?
 
 I searched this maillist,and tryed several solution, but I failed runing 
 xwiki with Oracle 9i.
 
 Are there any new solutions? =
 I have tryed two version:
 xwiki 1.2.2and   xwiki 1.3m2.
 Oracle 9.2.x.x , Oracle JDBC driver version:Oracle 10.0.1.0
 
 Error Message:
 Error number 3201 in 3: Exception while saving document Main.WebHome
 Wrapped Exception: could not update: 
 [com.xpn.xwiki.doc.rcs.XWikiRCSNodeContent#component[docId,version1,version2]{docId=-114121954,
  
 version2=1, version1=1}]
 com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while 
 saving document Main.WebHome
 Wrapped Exception: could not update: 
 [com.xpn.xwiki.doc.rcs.XWikiRCSNodeContent#component[docId,version1,version2]{docId=-114121954,
  
 version2=1, version1=1}]
 at 
 com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:455)
  
 
 
 at 
 com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:97)
 at 
 com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:91)
 at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1077)
 at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:120)
 at 
 com.xpn.xwiki.web.SaveAndContinueAction.action(SaveAndContinueAction.java:64) 
 
 
 at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:187)
 at 
 org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
  
 
 
 at 
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) 
 
 
 at 
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
 at 
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  
 
 
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  
 
 
 at 
 com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
  
 
 
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  
 
 
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  
 
 
 at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
  
 
 
 at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  
 
 
 at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) 
 
 
 at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 
 
 
 at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  
 
 
 at 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
 at 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
 at 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
  
 
 
 at 
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
 at java.lang.Thread.run(Thread.java:619)
 
 
 Wrapped Exception:
 
 java.sql.SQLException: ORA-01483: DATE 或 NUMBER 赋值变量的长度无效
 
 at 
 oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145)
 at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
 at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
 at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
 at 
 oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:213)
  
 
 
 at 
 oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1117)
  
 
 
 at 
 oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1270)
  
 
 
 at 
 oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3415)
  
 
 
 at 
 oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3498)
  
 
 
 at 
 org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101)
  
 
 

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


Re: [xwiki-users] Bulletin Board cannot display topic title and first post !?

2008-02-21 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Guillaume Lerouge wrote:


 - the check on rights is done before the moment each Bulletin Board 
 is displayed, so it may have something to do with the rights 
 configuration... Do you explicitely deny the view right to your user ? 

 (Locally when I deny view right to an user he cannot see the bulletin 
 boards he can't access in the list, ie I don't get the bug)


 In the meanwhile I've updated the XAR for the panel to read My instead 
 of Your ;-)


 Guillaume


Thanks for the My :-)

As for the bug, I have not been able yet to find a pattern. It happens 
with some users, but not with others. And I am not able to find the 
differences between them concerning rights assignments. Come back as 
soon as possible.

Thanks!

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

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


Re: [xwiki-users] How to solve a HTTP Status 500 error?

2008-02-21 Thread Gijs
Thanks Sergiu,

I created a new .xml file as provided by Tobias, tried to use the
default .xml file and the oracle one but I keep getting the same
error. Where exactly should I copy the xwiki(.mssql/oracle).hbm.xml
to?


On Thu, Feb 21, 2008 at 2:36 PM, Sergiu Dumitriu [EMAIL PROTECTED] wrote:

 Gijs wrote:
  What do I need to check when I get below error page when going to
  http://localhost:8080/xwiki? My setup is XWiki with GlassFish and
  Microsoft SQL Server.
  Thanks in advance!
 
 
  HTTP Status 500 -
  
  type Exception report
 
  message
 
  descriptionThe server encountered an internal error () that prevented
  it from fulfilling this request.
 
  exception
 
  javax.servlet.ServletException: com.xpn.xwiki.XWikiException: 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: resource: xwiki.mssql.hbm.xml not found
  root cause
 
  com.xpn.xwiki.XWikiException: 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: resource: xwiki.mssql.hbm.xml not found
  note The full stack traces of the exception and its root causes are
  available in the Sun Java System Application Server 9.1_01 logs.
  
  Sun Java System Application Server 9.1_01


 You don't have a file called xwiki.mssql.hbm.xml, although you
 registered it in hibernate.cfg.xml

 You either try to use the default xwiki.hbm.xml, or
 xwiki.oracle.hbm.xml, or try the mapping file from
 http://www.nabble.com/SQL-files-to13670575.html#a13670909

 The file from that mail might be a bit deprecated, so it might need to
 be compared with the default xwiki.hbm.xml and updated as needed.
 --
 Sergiu Dumitriu
 http://purl.org/net/sergiu/
 ___
 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] How to attach and deattach file by code

2008-02-21 Thread Ngo Thi Hong Nga
I have a document with a input type=file and a submit button. After I
click submit button, the following action is performed:
- attach the file to the document
- do something with the file content...
- deattach the file out of the document

Can I reuse the action /xwiki/bin/upload/.. to write my action ?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How to attach and deattach file by code

2008-02-21 Thread Ngo Thi Hong Nga
I have already known how to do that. I have another question:
I have a form with 3 file inputs and an Attach button. After click this
button, 3 files are attached to the current document. How can I do this
using the XWiki action /xwiki/bin/upload ?. I tried but only 1 file is
allowed.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Firefox and IE file link problem

2008-02-21 Thread Arin Morfopoulos

Hi All,

Although the documentation states that [file linkfile:///C:/test.txt] should 
provide a file link, when you click on such a link in IE or firefox nothing 
happens.  No error, no response.  With IE you can at least right click the link 
and Save Target As, but not in Firefox.

I can verify that the link to test.txt is correct by writing a simple html
file that contains only a href=file:///C:/test.txtClick here
for text.txt/a.  That simple html file works fine- click
the link and you get a test.txt.

Has anyone else seen this behavior? 

I am using Firefox 2.0.0.12, and IE 6.0, and Xwiki 1.2.2 on windows.  

_
Connect and share in new ways with Windows Live.
http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_012008___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Firefox and IE file link problem

2008-02-21 Thread Dean Sellers
not really an XWiki bug, but try this;
 
http://kb.mozillazine.org/Links_to_local_pages_don't_work#Firefox_1.5.2C
_SeaMonkey_1.0_and_newer
 
 

Dean Sellers
Applications Engineer
Rinstrum Pty. Ltd
P: +61 7 3216 7166
F: +61 7 3216 6211
mailto:remove[EMAIL PROTECTED]
mailto:remove[EMAIL PROTECTED] 
Products, support and applications at www.rinstrum.com  

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Arin Morfopoulos
Sent: Friday, 22 February 2008 3:50 PM
To: users@xwiki.org
Subject: [xwiki-users] Firefox and IE file link problem


Hi All,

Although the documentation states that [file
linkfile:///C:/test.txt] should provide a file link, when you click on
such a link in IE or firefox nothing happens.  No error, no response.
With IE you can at least right click the link and Save Target As, but
not in Firefox.

I can verify that the link to test.txt is correct by writing a
simple html file that contains only a href=file:///C:/test.txtClick
here for text.txt/a.  That simple html file works fine- click the
link and you get a test.txt.

Has anyone else seen this behavior? 

I am using Firefox 2.0.0.12, and IE 6.0, and Xwiki 1.2.2 on
windows.  




Connect and share in new ways with Windows Live. Get it now!
http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_01
2008  
-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/
, and is 
believed to be clean. 

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