cancel
Showing results for 
Search instead for 
Did you mean: 

j'utilise la version d'Alfresco packagée avec JBoss...

felipe
Champ in-the-making
Champ in-the-making
Bonjour,
j'utilise la version d'Alfresco packagée avec JBoss portal.

Je travaille avec Eclipse et ai importé les différents projets(3rd Party, Core, Repository…).
Je cherche simplement à exécuter un simple code d'accès au repository via jcr mais j'ai sans cesse la même erreur:

CODE:
public static void main(String[] args)throws Exception
    {
        ApplicationContext context = new ClassPathXmlApplicationContext("repository/bean.xml");
        Repository repository = (Repository)context.getBean("JCR.Repository");
    }

ERREUR:

7 avr. 2006 19:11:56 net.sf.joott.uno.UnoConnection connect
INFO: connecting using "socket,host=localhost,port=8100,tcpNoDelay=1"…
7 avr. 2006 19:11:58 net.sf.joott.uno.UnoConnection connect
GRAVE: connection failed: com.sun.star.connection.NoConnectException: java.net.ConnectException: Connection refused: connect
7 avr. 2006 19:11:58 net.sf.joott.uno.UnoConnection connect
INFO: connecting using "socket,host=localhost,port=8100,tcpNoDelay=1"…
7 avr. 2006 19:11:58 net.sf.joott.uno.UnoConnection connect
GRAVE: connection failed: com.sun.star.connection.NoConnectException: java.net.ConnectException: Connection refused: connect
19:12:00,218 INFO  [admin.patch.PatchExecuter] Checking for patches to apply …
19:12:00,288 INFO  [admin.patch.PatchExecuter] No patches were required.
19:12:00,589 INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_06-b05; maximum heap size 63,563MB
19:12:00,589 WARN  [service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 63,563MB is less than recommended 512MB
19:12:00,589 INFO  [service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 1.2.0 schema 6 - Installed version 1.2.0 schema 6

19:12:00,589 ERROR [alfresco.ftp.protocol] FTP Socket error
java.net.BindException: Address already in use: JVM_Bind
   at java.net.PlainSocketImpl.socketBind(Native Method)
   at java.net.PlainSocketImpl.bind(Unknown Source)
   at java.net.ServerSocket.bind(Unknown Source)
   at java.net.ServerSocket.<init>(Unknown Source)
   at java.net.ServerSocket.<init>(Unknown Source)
   at org.alfresco.filesys.ftp.FTPNetworkServer.run(FTPNetworkServer.java:377)
   at java.lang.Thread.run(Unknown Source)


Le même erreur est levée lors du démarrage du serveur.
7 avr. 2006 19:11:56 net.sf.joott.uno.UnoConnection connect
INFO: connecting using "socket,host=localhost,port=8100,tcpNoDelay=1"…
7 avr. 2006 19:11:58 net.sf.joott.uno.UnoConnection connect
GRAVE: connection failed: com.sun.star.connection.NoConnectException: java.net.ConnectException: Connection refused: connect
7 avr. 2006 19:11:58 net.sf.joott.uno.UnoConnection connect
INFO: connecting using "socket,host=localhost,port=8100,tcpNoDelay=1"…
7 avr. 2006 19:11:58 net.sf.joott.uno.UnoConnection connect
GRAVE: connection failed: com.sun.star.connection.NoConnectException: java.net.ConnectException: Connection refused: connect

Quelqu'un aurait-il une idée du problème?


Cordialement
Philippe.
1 REPLY 1

thomasb
Champ in-the-making
Champ in-the-making
Je travaille avec Eclipse et ai importé les différents projets(3rd Party, Core, Repository…).
Je cherche simplement à exécuter un simple code d'accès au repository via jcr mais j'ai sans cesse la même erreur

19:12:00,589 ERROR [alfresco.ftp.protocol] FTP Socket error
java.net.BindException: Address already in use: JVM_Bind
A priori, il y a déjà un serveur FTP qui écoute sur le port 21 de la machine. Un Alfresco déjà lancé ?

Peut-être n'est-il pas utile de "lancer" les serveurs FTP, CIFS et autres pour un "simple" accès via JCR…

7 avr. 2006 19:11:56 net.sf.joott.uno.UnoConnection connect
INFO: connecting using "socket,host=localhost,port=8100,tcpNoDelay=1"…
7 avr. 2006 19:11:58 net.sf.joott.uno.UnoConnection connect
GRAVE: connection failed: com.sun.star.connection.NoConnectException: java.net.ConnectException: Connection refused: connect
Si je ne m'abuse, "UNO" c'est pour se connecter à OpenOffice. Peut-être "PortableOpenOffice" n'est-il pas lancé en arrière plan ?