Hi all...
I am learning how to read from the default xwiki database xwiki_db using
groovy. This is the code I got from the tutorial ->
-------------
import groovy.sql.Sql
sql =
Sql.newInstance("jdbc:jtds:sqlserver://serverName/dbName-CLASS;domain=domainName",
"username",
"password", "net.sourceforge.jtds.jdbc.Driver")
sql.eachRow("select * from tableName", { println it.id + " --
${it.firstName} --"} );
------------
This is the code which is edited by me ->
-----------
import groovy.sql.Sql
sql =
Sql.newInstance("jdbc:jtds:sqlserver://localhost/xwiki_db-CLASS;domain=domainName",
"sa",
"", "net.sourceforge.jtds.jdbc.Driver")
sql.eachRow("select * from XWIKIDOC", { println it.id + " -- ${it.firstName}
--"} );
----------
Can anyone please rectify any errors here ? Especially the closure in the
third line as I don't know the fields present in XWIKIDOC table...
Thanks,
Harikrishnan
--
View this message in context: http://www.nabble.com/Sample-Groovy-Code-tf4717685.html#a13486121
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
I want to use the function Document.addAttachment(java.lang.String
fileName, byte[] data).
I don't get what information I have to give as second parameter: I've
checked in the API, and there isn't anything.
Vito
Hi All,
I want to be creating the XWiki - User / Admin Login Counter. - (Page
visited for intranet through respective Login).
Please help me, how to do that? If anyone has xwiki code, please send to
me. I am new to XWiki.
Regards,
Prabhakar Gopalsamy
______________________________
Wipro Technologies
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
Hi,
trying to use the registration through e-mail, when registering I get
this error:
Error number 10003 in 10: Exception while sending email from
xwikiadmin(a)vtt.fi to [Ljava.lang.String;@6bf4fe
Wrapped Exception: Connection refused
I put the right information in the preferences, IP of the mail server
and email for the admin on that server.
Did anyone experienced the same problem?
Vito
Hi all,
I was wondering if there is a way to add an attachment directly from a
comment... I looked into the commentsinline.vm and attachmentsinline.vm,
but I don't really find a way to modify those files to have something
similar to what I need.
Basically I want let users comment on a document and give them the
possibility to attach a file in their comments... did anyone do
something similar? Thanks!
Vito
Hi,
As far as I see, XWiki put a blank space after the lowercase letters of
a string. It is quite useful in many cases, but a pain in others. For
instance, LyX is renderized as Ly X. LaTeX as La Te X.
Is there anyway of avoiding this? Thanks!
Cheers,
--
Ricardo Rodríguez
Your XEN ICT Team
Hi,
I spent last day with setting up the UTF-8 encoding in xwiki. I set
all thing according to offical guide, but i had question marks instead
of letters in my database. I realized that i must set up hibernate. So
I made some changes in my hibernate.cfg.xml file. I added these to
lines.
<property name="connection.useUnicode">true</property>
<property name="connection.characterEncoding">UTF-8</property>
it working perfect now. It may help to someone, who will have the same problem.
Honza
Hi,
I am currently trying to migrate a already populated xwiki from hsqldb
to mysql.
The first thing I noticed is, that xwiki needs lots of heap space for
attaching the
backup.xar to the import page. This xar is about 20mb, the wiki is not
that big, yet
the tomcat process consumes about 1Gb resident memory (2Gb in total)
while attaching
which leads to massive swapping and slowdown. I wonder what will happen, if
a wiki is really heavily populated with lots of attachements?
After the xar is attached, I cannot select it, because an exception occurs:
Wrapped Exception: Error number 2002 in 2: Error parsing xml
Wrapped Exception: Error on line 346 of document : Character reference
"" is an invalid XML character. Nested exception: Character reference
"" is an invalid XML character.
at com.xpn.xwiki.web.ImportAction.render(ImportAction.java:94)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:148)
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)
Any hints about how to do the migration?
Cheers,
Hans-Peter
hola ..una pregunta!!
instale la version para principiantes de xwiki enterprise
quiero conectarme a la base de datos usando el mysql gui tools y no he
podido ... como se lla ma la isntancia que queda creada por defecto y
cual es el usuario de mysql??
gracias
--
Julian Valencia
Ingeniero de Sistemas - Especialista en Gerencia Informatica Organizacional
cel 3006532165