Hi All,
We are building Knowledge managment system for our internal use. We want to
give an option to user so that he/she can create new page in selected space
based on templates. I tried modifying the Create New panel by adding drop
down list of templates and existing spaces respectively, however not able to
create new pages in selected space using available templates. Please reply
if you know how to solve this.
Regards
Nitin
Sergiu Dumitriu <sergiu(a)xwiki.com> writes:
>Jean-Vincent Drean wrote:
>> On Tue, Mar 11, 2008 at 9:29 PM, <Dowson_Jim(a)emc.com> wrote:
>> Vincent Massol writes:
>>>
>>> >> - proper versioning (if 2 different users upload the same
>>> document name)
>>>
>>> > What's not working with versioning of attachments? I don't recall
>>> > seeing a problem about this.
>>>
>>> It might only be under 1.2 - but if someone downloads an attachment
>>> created by a different user, updates it & then uploads the file
under
>>> the same name, it does not appear as a version of the prior
document -
>>> it's a new document.
>>>
>>> To get around this we had to have folks doing updates to
authenticate
>>> under the same username (for one particular document).
>>>
>>
>> FWIW I'm not able to reproduce it with 1.4M1 [1].
>>
>> [1] :
http://img206.imageshack.us/my.php?image=multipleauthorattachja4.png
>>
I'm not able to see that link, but I take your word for it.
> I am not able to reproduce it with 1.2.0 or 1.2.2, and as far as I
know
> nobody ever reported a similar problem, and there never were any code
> that considered the user name when uploading files.
> Also, if the files have the same name, it is impossible to store them
> separately, as they are put in a table indexed (unique key constraint)
> by a hash function on the attachment + wiki document name.
There have been some error messages on the console for this instance
(1.2M2 upgraded to 1.2RC2).
I'll attempt to reproduce (per the user's experience) and let you know.
Thanks, Sergiu
Sergiu Dumitriu <sergiu(a)xwiki.com> wrote:
> Dowson_Jim(a)emc.com wrote:
>>>> We're looking to contribute the notion of a simple reputation
engine
>>>> (user and content rating) that we have in prototype now.
>>
>>> Very cool!
>>
>> How should we best do this? Show the code here (or devs)?
> When you have something shareable, better put it somewhere on your
> servers, or on public hosting, and send a link to the devs or users
> list. After that, we'll see.
Sorry, not possible (yet).
--
Jim Dowson
CTO, Global Services, EMC Corporation
Linx: (617) 598-0505
One problem I had was the schema name I was using was "xwiki" however the
user name I was using was "p8xwiki". I guess they need to be the same so
that the default schema name can be determined from the user name. I am
using an Oracle database so I didn't expect this requirement. I had also
tried to use "p8xiki" as the schema name and the user name and add this
entry
<property name="default_schema">p8xwiki</property>
into the hibernate.cfg.xml file to tell it to use a p8xwiki as the default
schema but I didn't get this to work.
I also had to use the newest jdbc driver I could find for Oracle in the
ojdbc14.jar manifest file it lists: Specification-Version: Oracle JDBC
Driver version - "10.2.0.4.0" and this version worked but this version
didn't Specification-Version: "Oracle JDBC Driver version - 9.0.2.0.0"
Glenn Everitt
Everitt, Glenn wrote:
>
>>
> The contents of this e-mail are intended for the named addressee only. It
> contains information that may be confidential. Unless you are the named
> addressee or an authorized designee, you may not copy or use it, or
> disclose it to anyone else. If you received it in error please notify us
> immediately and then destroy it.
>
>> From: Everitt, Glenn
>> Sent: Tuesday, March 11, 2008 10:27 PM
>> To: 'devs(a)xwiki.org'
>> Subject: Xwiki Enterprise / Oracle Install problem
>>
>> You have been a big help as I learn how to configure and set up this
>> great product and I hope you can help again. I couldn't find anything
>> in jira that matched this problem or the release notes.
>>
>> I have installed the xwiki-enterprise-web-1.3.war successfully
>> install on one system using "Oracle9i Enterprise Edition Release
>> 9.2.0.5.0 - Production"
>>
>> However when I install it on another Redhat 3 system with Tomcat 5.5 /
>> "Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production" I
>> have a problem during database intialization (see xwiki.log snippet
>> below).
>>
>> The "Failed to load the xwiki.cfg" message - I believe to be an
>> incorrrect message. However, the messages/exceptions further down
>> seem to be a real problem I think this is the important lines:
>>
>> 2008-03-11 14:21:16,557
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] ERROR store.XWikiHibernateBaseStore - Failed
>> updating schema while executing query "update xwikidoc set
>> xwd_translation=0 where xwd_translation is null"
>> java.sql.SQLException: ORA-00942: table or view does not exist
>>
>> This statement looks like it failed to do the update because the table
>> name isn't qualified with the schema name at least that is my guess.
>> I don't know why it doesn't have the schema name. Any help here would
>> be very very appreciated.....
>>
>> I would also like to know if there is a way to install to a schema
>> named something other than "xwiki". I would to create another schema
>> for xwiki enterprise on the same DBMS at least until I figure out how
>> to use virtual wikis.
>>
>> Thanks for any help...and Thanks for a great product.
>>
>> Xwiki.log - sorry this is big
>>
>> 2008-03-11 14:21:10,416
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG xwiki.XWiki - Failed to load
>> the file [/WEB-INF/xwiki.cfg] as a resource using the Servlet Context.
>> Trying to load it as classpath resource...
>> 2008-03-11 14:21:10,418
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG xwiki.XWiki - Failed to load
>> the file [/WEB-INF/xwiki.cfg] using any method.
>> 2008-03-11 14:21:10,535
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.XWikiHibernateBaseStore - Hibernate
>> configuration file: [/WEB-INF/hibernate.cfg.xml]
>> 2008-03-11 14:21:10,541
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] INFO impl.OSCacheService - Initializing
>> OSCacheService
>> 2008-03-11 14:21:10,541
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] INFO impl.OSCacheService - Loading cache
>> properties: oscache.properties
>> 2008-03-11 14:21:10,542
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] INFO impl.OSCacheService - Properties
>> loaded: oscache.properties
>> 2008-03-11 14:21:10,542
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] INFO impl.OSCacheService - Loading cache
>> properties: oscache-local.properties
>> 2008-03-11 14:21:10,542
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] INFO impl.OSCacheService - Properties
>> loaded: oscache-local.properties
>> 2008-03-11 14:21:10,543
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] INFO impl.OSCacheService - Initialized
>> OSCacheService
>> 2008-03-11 14:21:10,560
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] INFO impl.OSCacheService - Created Cache
>> # 1 of size 100 at Tue, 11 Mar 2008 14:21:10 +0000, current count is 1
>>
>> 2008-03-11 14:21:10,560
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] INFO impl.OSCacheService - Created Cache
>> # 2 of size 10000 at Tue, 11 Mar 2008 14:21:10 +0000, current count is
>> 2
>> 2008-03-11 14:21:10,564
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.XWikiHibernateBaseStore - Hibernate
>> configuration file: [/WEB-INF/hibernate.cfg.xml]
>> 2008-03-11 14:21:10,568
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.XWikiHibernateBaseStore - Hibernate
>> configuration file: [/WEB-INF/hibernate.cfg.xml]
>> 2008-03-11 14:21:10,569
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.XWikiHibernateBaseStore - Hibernate
>> configuration file: [/WEB-INF/hibernate.cfg.xml]
>> 2008-03-11 14:21:10,569
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] INFO xwiki.XWiki - Running
>> storage migrations
>> 2008-03-11 14:21:10,762
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [OSCacheService Cache Monitor] INFO impl.OSCacheService -
>> OSCacheCache item count for Cache # 1 = 0 capacity is 100
>> 2008-03-11 14:21:10,762
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [OSCacheService Cache Monitor] INFO impl.OSCacheService -
>> OSCacheCache item count for Cache # 2 = 0 capacity is 10000
>> 2008-03-11 14:21:11,243
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.DBCPConnectionProvider - Configure
>> DBCPConnectionProvider
>> 2008-03-11 14:21:11,244
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.DBCPConnectionProvider - Creating a
>> DBCP BasicDataSource with the following DBCP factory properties:
>> 2008-03-11 14:21:11,244
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.DBCPConnectionProvider - -- listing
>> properties --
>> whenExhaustedAction=1
>> url=jdbc:oracle:thin:@portaldb.covisint.c...
>> ps.maxActive=20
>> maxIdle=5
>> maxOpenPreparedStatements=20
>> maxActive=50
>> driverClassName=oracle.jdbc.driver.OracleDriver
>> maxWait=30000
>> username=p8xwiki
>> poolPreparedStatements=true
>> connectionProperties=user=XXXXXX;password=XXXXXX;SetBigS...
>> defaultAutoCommit=false
>> ps.maxIdle=20
>> ps.maxWait=120000
>> password=p8xwiki
>> ps.whenExhaustedAction=1
>>
>> 2008-03-11 14:21:11,768
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] INFO store.DBCPConnectionProvider - active: 0
>> (max: 50) idle: 1(max: 5)
>> 2008-03-11 14:21:11,768
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.DBCPConnectionProvider - Configure
>> DBCPConnectionProvider complete
>> 2008-03-11 14:21:11,769
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] INFO store.DBCPConnectionProvider - active: 1
>> (max: 50) idle: 0(max: 5)
>> 2008-03-11 14:21:11,773
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] INFO store.DBCPConnectionProvider - active: 0
>> (max: 50) idle: 1(max: 5)
>> 2008-03-11 14:21:13,163
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] INFO store.XWikiHibernateBaseStore - Updating
>> schema update for wiki xwiki ...
>> 2008-03-11 14:21:13,164
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.XWikiHibernateBaseStore - Trying to get
>> session from pool
>> 2008-03-11 14:21:13,192
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.XWikiHibernateBaseStore - Taken session
>> from pool
>> SessionImpl(PersistenceContext[entityKeys=[],collectionKeys=[]];Action
>> Queue[insertions=[] updates=[] deletions=[] collectionCreations=[]
>> collectionRemovals=[] collectionUpdates=[]])
>> 2008-03-11 14:21:13,205
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] INFO store.DBCPConnectionProvider - active: 1
>> (max: 50) idle: 0(max: 5)
>> 2008-03-11 14:21:13,205
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.XWikiHibernateBaseStore - Trying to open
>> transaction
>> 2008-03-11 14:21:13,207
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.XWikiHibernateBaseStore - Opened
>> transaction org.hibernate.transaction.JDBCTransaction@19d9c0d
>> 2008-03-11 14:21:13,859
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.XWikiHibernateBaseStore - Releasing
>> hibernate session
>> SessionImpl(PersistenceContext[entityKeys=[],collectionKeys=[]];Action
>> Queue[insertions=[] updates=[] deletions=[] collectionCreations=[]
>> collectionRemovals=[] collectionUpdates=[]])
> .
> .
> .
> .
> . snip
> .
> .
> .
> .
> .
> .
>> Schema sql: alter table xwiki.xwikistringclasses add constraint
>> FK300D1FCD99E425B2 foreign key (XWS_ID, XWS_NAME) references
>> xwiki.xwikiclassesprop
>> 2008-03-11 14:21:16,531
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.XWikiHibernateBaseStore - Update Schema
>> sql: alter table xwiki.xwikistrings add constraint FK2780715A3433FD87
>> foreign key (XWS_ID, XWS_NAME) references xwiki.xwikiproperties
>> 2008-03-11 14:21:16,540
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.XWikiHibernateBaseStore - Update Schema
>> sql: create sequence xwiki.hibernate_sequence
>> 2008-03-11 14:21:16,551
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.XWikiHibernateBaseStore - Update Schema
>> sql: update xwikidoc set xwd_translation=0 where xwd_translation is
>> null
>> 2008-03-11 14:21:16,557
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] ERROR store.XWikiHibernateBaseStore - Failed
>> updating schema while executing query "update xwikidoc set
>> xwd_translation=0 where xwd_translation is null"
>> java.sql.SQLException: ORA-00942: table or view does not exist
>>
>> at
>> oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
>> at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
>> at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:590)
>> at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1973)
>> at
>> oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1119
>> )
>> at
>> oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.jav
>> a:2191)
>> at
>> oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java
>> :2064)
>> at
>> oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatemen
>> t.java:2989)
>> at
>> oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:
>> 891)
>> at
>> org.apache.commons.dbcp.DelegatingStatement.executeUpdate(DelegatingSt
>> atement.java:225)
>> at
>> org.apache.commons.dbcp.DelegatingStatement.executeUpdate(DelegatingSt
>> atement.java:225)
>> at
>> com.xpn.xwiki.store.XWikiHibernateBaseStore.updateSchema(XWikiHibernat
>> eBaseStore.java:453)
>> at
>> com.xpn.xwiki.store.XWikiHibernateBaseStore.updateSchema(XWikiHibernat
>> eBaseStore.java:310)
>> at
>> com.xpn.xwiki.store.XWikiHibernateBaseStore.updateSchema(XWikiHibernat
>> eBaseStore.java:258)
>> at
>> com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibern
>> ateBaseStore.java:519)
>> at
>> com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBase
>> Store.java:1027)
>> at
>> com.xpn.xwiki.store.XWikiHibernateBaseStore.executeRead(XWikiHibernate
>> BaseStore.java:1066)
>> at
>> com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager
>> .getDBVersion(XWikiHibernateMigrationManager.java:62)
>> at
>> com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.<init>(Abs
>> tractXWikiMigrationManager.java:68)
>> at
>> com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager
>> .<init>(XWikiHibernateMigrationManager.java:49)
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructo
>> rAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCo
>> nstructorAccessorImpl.java:27)
>> at
>> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>> at com.xpn.xwiki.XWiki.createClassFromConfig(XWiki.java:827)
>> at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:770)
>> at com.xpn.xwiki.XWiki.<init>(XWiki.java:721)
>> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:292)
>> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:490)
>> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:118)
>> at
>> org.apache.struts.action.RequestProcessor.processActionPerform(Request
>> Processor.java:431)
>> at
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.jav
>> a:236)
>> at
>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196
>> )
>> at
>> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
>> cationFilterChain.java:269)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
>> lterChain.java:188)
>> at
>> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnco
>> dingFilter.java:117)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
>> cationFilterChain.java:215)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
>> lterChain.java:188)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
>> lve.java:213)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
>> lve.java:174)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
>> va:127)
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
>> va:117)
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv
>> e.java:108)
>> at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
>> :151)
>> at
>> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
>> at
>> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
>> at
>> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
>> at
>> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.jav
>> a:703)
>> at
>> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocke
>> t.java:895)
>> at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo
>> ol.java:689)
>> at java.lang.Thread.run(Thread.java:595)
>> 2008-03-11 14:21:16,565
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.XWikiHibernateBaseStore - Releasing
>> hibernate session
>> SessionImpl(PersistenceContext[entityKeys=[],collectionKeys=[]];Action
>> Queue[insertions=[] updates=[] deletions=[] collectionCreations=[]
>> collectionRemovals=[] collectionUpdates=[]])
>> 2008-03-11 14:21:16,565
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.XWikiHibernateBaseStore - Releasing
>> hibernate transaction org.hibernate.transaction.JDBCTransaction@8a6fc
>> 2008-03-11 14:21:16,567
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] INFO store.DBCPConnectionProvider - active: 0
>> (max: 50) idle: 1(max: 5)
>> 2008-03-11 14:21:16,567
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] INFO store.XWikiHibernateBaseStore - Schema update
>> for wiki xwiki done
>> 2008-03-11 14:21:16,567
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.XWikiHibernateBaseStore - Trying to get
>> session from pool
>> 2008-03-11 14:21:16,567
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.XWikiHibernateBaseStore - Taken session
>> from pool
>> SessionImpl(PersistenceContext[entityKeys=[],collectionKeys=[]];Action
>> Queue[insertions=[] updates=[] deletions=[] collectionCreations=[]
>> collectionRemovals=[] collectionUpdates=[]])
>> 2008-03-11 14:21:16,568
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] INFO store.DBCPConnectionProvider - active: 1
>> (max: 50) idle: 0(max: 5)
>> 2008-03-11 14:21:16,568
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.XWikiHibernateBaseStore - Trying to open
>> transaction
>> 2008-03-11 14:21:16,568
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.XWikiHibernateBaseStore - Opened
>> transaction org.hibernate.transaction.JDBCTransaction@e4d0cd
>> 2008-03-11 14:21:16,593
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] WARN util.JDBCExceptionReporter - SQL Error:
>> 942, SQLState: 42000
>> 2008-03-11 14:21:16,593
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] ERROR util.JDBCExceptionReporter - ORA-00942:
>> table or view does not exist
>>
>> 2008-03-11 14:21:16,594
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.XWikiHibernateBaseStore - Releasing
>> hibernate session
>> SessionImpl(PersistenceContext[entityKeys=[],collectionKeys=[]];Action
>> Queue[insertions=[] updates=[] deletions=[] collectionCreations=[]
>> collectionRemovals=[] collectionUpdates=[]])
>> 2008-03-11 14:21:16,594
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] DEBUG store.XWikiHibernateBaseStore - Releasing
>> hibernate transaction org.hibernate.transaction.JDBCTransaction@e4d0cd
>>
>> 2008-03-11 14:21:16,595
>> [http://coe.portal8.stg.covisint.com/xwiki/bin/view/Main/WebHome]
>> [TP-Processor3] INFO store.DBCPConnectionProvider - active: 0
>> (max: 50) idle: 1(max: 5)
>> 2008-03-11 14:21:16,604 [] [TP-Processor3] WARN
>> action.RequestProcessor - Unhandled Exception thrown: class
>> com.xpn.xwiki.XWikiException
>> 2008-03-11 14:21:16,604 [] [TP-Processor3] ERROR [/xwiki].[action]
>> - Servlet.service() for servlet action threw exception
>> 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: could not execute query
>> at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:302)
>> at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:490)
>> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:118)
>> at
>> org.apache.struts.action.RequestProcessor.processActionPerform(Request
>> Processor.java:431)
>>
>
> _______________________________________________
> devs mailing list
> devs(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/devs
>
>
--
View this message in context: http://www.nabble.com/FW%3A-Xwiki-Enterprise---Oracle-Install-problem-tp159…
Sent from the XWiki- Dev mailing list archive at Nabble.com.
Hi,
I've finally been able to start working on the new Rendering
architecture again.
I've re-read all our past discussion and I've summarized everything on
this page:
http://dev.xwiki.org/xwiki/bin/view/Design/NewRenderingArchitecture
I'm now going to start implementing it and thus I'd like to have
everyone's feedback and I'd especially like to know if there are any
use cases that I haven't covered or things that you don't like.
Thanks a lot
-Vincent
Currently the albatross skin loads around 10 js and 10 css, which is
quite a lot.
We can improve loading time by:
- compression and cache (raffaello will provide Apache configs specific
to XWiki to help for that)
- merging and optimizations of css/js (I've published
http://www.xwiki.org/xwiki/bin/view/Code/MergeCSS to help on that)
- removing unused css/js (now we need to find which one are unused)
- conditional loading of css and js.
This last improvement can help us a lot since some of the css/js are not
even used in view mode, or are only used by a specific panel.
For this my proposal is to add a feature to the core to allow
conditional loading of CSS and JS files.
The current macros in the header would instead of putting CSS and JS add
a placeholder for additional CSS and JS.
Then everywhere where we need these CSS/JS (in a panel, in a wiki page,
in a template) we would call a macro #includecss or #includejs
This macro would add in the context the CSS and JS to add.
At the end of the template rendering the placeholder would be replaced
by the added CSS and JS.
The page would be served.
This would allow to manage the way CSS and JS are added.
WDYT ?
Ludovic
--
Ludovic Dubost
Blog: http://www.ludovic.org/blog/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
AIM: nvludo Yahoo: ludovic
Hi Sergiu,
On Mar 11, 2008, at 3:01 AM, sdumitriu (SVN) wrote:
> Author: sdumitriu
> Date: 2008-03-11 03:01:30 +0100 (Tue, 11 Mar 2008)
> New Revision: 8341
>
> Modified:
> xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/
> XWiki.java
> Log:
> XWIKI-2173
> Fixed.
>
>
> Modified: xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/
> xwiki/XWiki.java
> ===================================================================
> --- xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/
> XWiki.java 2008-03-11 00:13:35 UTC (rev 8340)
> +++ xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/
> XWiki.java 2008-03-11 02:01:30 UTC (rev 8341)
> @@ -1492,9 +1492,16 @@
> // Try parsing a file located in the directory with the same
> name.
> try {
> String path = "/skins/" + skin + "/" + template;
> - String content = getResourceContent(path);
> - return XWikiVelocityRenderer.evaluate(content, path,
> (VelocityContext) context
> - .get("vcontext"), context);
> + File f = new File(path);
> + path = f.getCanonicalPath();
Why do we need these 2 lines?
We really need a comment here to explain why we're checking for "/
skins/".
> + if (path.startsWith("/skins/")) {
> + String content = getResourceContent(path);
> + return XWikiVelocityRenderer.evaluate(content,
> path, (VelocityContext) context
> + .get("vcontext"), context);
> + } else {
> + LOG.warn("Illegal access, tried to use file [" +
> path + "] as a template." +
> + " Possible break-in attempt!");
I would be more neutral in the log message. Also I don't understand
how you deduce some user is trying to use a file as a template. Cannot
it be simply someone trying to use a skin file?
I'd use something like: "Invalid access. For security reasons only
resources located in the skins directory are allowed."
Thanks
-Vincent
>
> + }
> } catch (Exception e) {
> }
Hi,
If I build the plugins, web and and wiki of the product and then
1. make the plugin available on the lib folder
2. skin under the skins directory
3. import the xar
Then will I be able to view the workspace product?
>From the list of features it seems cooler than the current enterprise wiki's
Blog, Main and Photo spaces.
Also since name is same for Main and XWiki space of the space of the two
products would it cause any problem while importing the workspace xar?
Thanks
Sachin
-----
http://www.assembla.com/wiki/show/sachin_mittal about me:
--
View this message in context: http://www.nabble.com/integrating-workspaces-product-with-enterprise-web-tp…
Sent from the XWiki- Dev mailing list archive at Nabble.com.