- Installed jboss-4.2.3.GA-jdk6.zip
- Made databases like this:
mysql -u root -p
create database signserver collate=latin1_general_cs;
grant all privileges on signserver.* to "signserver"@"localhost" identified by
"signserver";
database,user,password is established, I can login mysql.
I am unsure about the port 3306
"signserver"@"localhost:3306", seems like I cannot login on the database
Continuing with the direct Signserver installation:
- export JAVA_HOME=/home/sigbj/jdk1.6.0_21/
- Tried to build with ant after fulfilling the install instruction. Result: Build SUCCESS. Time:1 min 46 seconds.
My Operativ System is SLED_10_SP3 SuSE Linux Enterprise 10 servicepack 3( maybe to old).
Preparing a JAVA_HOME that works on jboss run.sh; my old java is most likely obsolete.
- sigbj@sled-10sp3:~/signserver-3.2.0> export JAVA_HOME=/usr/local/share/webbrowsers/seamonkey/jre1.6.0_18/
Running signserver:
Signserver is asking for port 1099,which I find odd. The problem could be the database port, or maybe not. Here you can have a look:
- sigbj@sled-10sp3:~/signserver-3.2.0> ./bin/signserver.sh getstatus brief all
Assuming JBoss JNDI provider…
===========================================
Executing Command on host : localhost
===========================================
3 ERROR org.signserver.common.ServiceLocator - Error looking up signserver interface
javax.naming.CommunicationException: Could not obtain connection to any of these urls: 127.0.0.1:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is javax.naming.CommunicationException: Failed to connect to server 127.0.0.1:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server 127.0.0.1:1099 ]]
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1562)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
at javax.naming.InitialContext.lookup(Unknown Source)
at org.signserver.common.ServiceLocator.lookupRemote(ServiceLocator.java:75)
at org.signserver.cli.CommonAdminInterface.getGlobalConfigurationSession(CommonAdminInterface.java:395)
at org.signserver.cli.CommonAdminInterface.getGlobalConfiguration(CommonAdminInterface.java:191)
at org.signserver.cli.GetStatusCommand.execute(GetStatusCommand.java:77)
at org.signserver.cli.signserver.<init>(signserver.java:65)
at org.signserver.cli.signserver.main(signserver.java:101)
Caused by: javax.naming.CommunicationException: Failed to connect to server 127.0.0.1:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server 127.0.0.1:1099 ]
Sorry for the inconvenience
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-10-10
This doesn't look like a database problem; it is a EJB/RMI connection issue.
Have you checked server.log? Free from errors?
Anders
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
2011-10-09 23:56:05,968 ERROR [org.apache.catalina.core.ContainerBase...] Servlet /signserver threw load() exception
java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver
2011-10-09 23:58:28,881 WARN SQL Error: 0, SQLState: null
2011-10-09 23:58:28,881 ERROR Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver)); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver)))
2011-10-09 23:55:57,158 ERROR could not get database metadata
org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver)); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver)))
I have downloaded mysql-connector-java-5.1.18 that probably contains the driver setup, but how do I install it? With ant? There is no reaction with the build.xml.
What is the precise name of the driver?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, I did this: copied the file to where it should belong: /opt/jboss-4.2.3.GA/server/default/lib/mysql-connector-java-5.1.18-bin.jar
Restarted the jboss ./run.sh
jboss went much cleaner without ERROR, only INFO nodes, and a couple of WARNS. Log has only DEBUG nodes, no ERROR
Recompiled the signserver with all the necessary HOME_variables declared anew, and not to forget jdk: ant clean deploy
BUILD SUCCESS
(maybe not necessary with recompile)
Restarted signserver.sh, but now (unfortunately):
sigbj@sled-10sp3:~/signserver-3.2.0> ./bin/signserver.sh getstatus brief all
Assuming JBoss JNDI provider…
===========================================
Executing Command on host : localhost
===========================================
2 ERROR org.signserver.common.ServiceLocator - Error looking up signserver interface
javax.naming.CommunicationException: Could not obtain connection to any of these urls: 127.0.0.1:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is javax.naming.CommunicationException: Failed to connect to server 127.0.0.1:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server 127.0.0.1:1099 ]]
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1562)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I dont have the ss command and dont know where to get it. It is not listed in my YaST installation tool. I might maybe use the command 'netstat' , but I need the precise switches you are asking for
Here are the WARNS; I cannot read out if RMI or JNDI is involved:
2011-10-11 16:54:07,272 WARN InitialContext did not implement EventContext
2011-10-11 16:54:12,768 WARN Unable to calculate 'WebServiceSecurePort', using default '8443'
2011-10-11 17:58:04,903 WARN jboss.j2ee:ear=signserver.ear,jar=SignServer-ejb-AdminWS.jar,name=AdminWS,service=EJB3 is not registered
2011-10-11 17:58:04,967 WARN jboss.j2ee:ear=signserver.ear,jar=SignServer-ejb-ValidationWS.jar,name=ValidationWS,service=EJB3 is not registered
2011-10-11 17:58:05,036 WARN jboss.j2ee:ear=signserver.ear,jar=signserver-ejb.jar,name=ClusterClassLoaderManagerSessionBean,service=EJB3 is not registered
2011-10-11 17:58:05,047 WARN jboss.j2ee:ear=signserver.ear,jar=signserver-ejb.jar,name=GlobalConfigurationSessionBean,service=EJB3 is not registered
2011-10-11 17:58:05,048 WARN jboss.j2ee:ear=signserver.ear,jar=signserver-ejb.jar,name=ServiceTimerSessionBean,service=EJB3 is not registered
2011-10-11 17:58:05,052 WARN jboss.j2ee:ear=signserver.ear,jar=signserver-ejb.jar,name=StatusRepositorySessionBean,service=EJB3 is not registered
2011-10-11 17:58:05,052 WARN jboss.j2ee:ear=signserver.ear,jar=signserver-ejb.jar,name=WorkerSessionBean,service=EJB3 is not registered
2011-10-11 17:58:05,055 WARN persistence.units:ear=signserver.ear,jar=signserver-ejb.jar,unitName=SignServerJPA is not registered
2011-10-11 17:58:05,055 WARN persistence.units:ear=signserver.ear,jar=signserver-ejb.jar,unitName=SignServerJPA is not registered
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
2011-10-12 13:23:28,764 DEBUG JNDI bootstrap JNP=/127.0.0.1:1099, RMI=/127.0.0.1:1098, backlog=50, no client SocketFactory, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@e048aaa4
I tried to install signserver with all the components and configoratory adjustments on a quite newer version: openSuSE 11.3, but the same problem occurs. Could be I am doing something wrong during the setup, but there was BUILD SUCCESS and duration 4 min 31 sek (slower machine).
Here is signserver_build_properties; I only changed the lines that were supposed according to the installation guide:
My guess is that you have firewalled so that ports are blocked, or something else. I don't see any regular port in your netstat so I don't thing you had JBoss running when you ran netstat…
JBoss is a network application and uses several ports (on localhost).
Cheers,
Tomas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am doing so many mistakes that I do not deserve to be in this Forum:
For the first time I realise that signserver.sh has to be started WHILE jboss is running. I thought that signserver.sh would start jboss inherently, but I never checked the script.
OK here is output of ./signserver.sh while jboss is running:
sigbj@sled-10sp3:~/signserver-3.2.0/bin> ./signserver.sh getstatus brief all
Assuming JBoss JNDI provider…
===========================================
Executing Command on host : localhost
===========================================
Current version of server is : SignServer 3.2.0
The moral behind this is: "Never believe that the dwergs on the west side have learned anything during 100 years of Swedish administration, they need everything with teaspoon!"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
- Installed jboss-4.2.3.GA-jdk6.zip
- Made databases like this:
mysql -u root -p
create database signserver collate=latin1_general_cs;
grant all privileges on signserver.* to "signserver"@"localhost" identified by
"signserver";
database,user,password is established, I can login mysql.
I am unsure about the port 3306
"signserver"@"localhost:3306", seems like I cannot login on the database
Continuing with the direct Signserver installation:
- export JAVA_HOME=/home/sigbj/jdk1.6.0_21/
- Tried to build with ant after fulfilling the install instruction. Result: Build SUCCESS. Time:1 min 46 seconds.
My Operativ System is SLED_10_SP3 SuSE Linux Enterprise 10 servicepack 3( maybe to old).
Preparing a JAVA_HOME that works on jboss run.sh; my old java is most likely obsolete.
- sigbj@sled-10sp3:~/signserver-3.2.0> export JAVA_HOME=/usr/local/share/webbrowsers/seamonkey/jre1.6.0_18/
Running signserver:
Signserver is asking for port 1099,which I find odd. The problem could be the database port, or maybe not. Here you can have a look:
- sigbj@sled-10sp3:~/signserver-3.2.0> ./bin/signserver.sh getstatus brief all
Assuming JBoss JNDI provider…
===========================================
Executing Command on host : localhost
===========================================
3 ERROR org.signserver.common.ServiceLocator - Error looking up signserver interface
javax.naming.CommunicationException: Could not obtain connection to any of these urls: 127.0.0.1:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is javax.naming.CommunicationException: Failed to connect to server 127.0.0.1:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server 127.0.0.1:1099 ]]
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1562)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
at javax.naming.InitialContext.lookup(Unknown Source)
at org.signserver.common.ServiceLocator.lookupRemote(ServiceLocator.java:75)
at org.signserver.cli.CommonAdminInterface.getGlobalConfigurationSession(CommonAdminInterface.java:395)
at org.signserver.cli.CommonAdminInterface.getGlobalConfiguration(CommonAdminInterface.java:191)
at org.signserver.cli.GetStatusCommand.execute(GetStatusCommand.java:77)
at org.signserver.cli.signserver.<init>(signserver.java:65)
at org.signserver.cli.signserver.main(signserver.java:101)
Caused by: javax.naming.CommunicationException: Failed to connect to server 127.0.0.1:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server 127.0.0.1:1099 ]
Sorry for the inconvenience
This doesn't look like a database problem; it is a EJB/RMI connection issue.
Have you checked server.log? Free from errors?
Anders
I hope the jboss_server_log is the right logfile
rg.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver)); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver)))
rg.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver)); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver)))
2011-10-09 23:56:05,821 ERROR Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver)); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver)))
2011-10-09 23:56:05,822 DEBUG mark transaction for rollback
2011-10-09 23:56:05,823 DEBUG ************** closing entity managersession **************
2011-10-09 23:56:05,949 ERROR [org.apache.catalina.core.ContainerBase...] StandardWrapper.Throwable
javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open conne
2011-10-09 23:56:05,949 ERROR [org.apache.catalina.core.ContainerBase...] StandardWrapper.Throwable javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection
2011-10-09 23:56:05,968 ERROR [org.apache.catalina.core.ContainerBase...] Servlet /signserver threw load() exception
java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver
2011-10-09 23:58:28,881 WARN SQL Error: 0, SQLState: null
2011-10-09 23:58:28,881 ERROR Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver)); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver)))
2011-10-09 23:55:57,158 ERROR could not get database metadata
org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver)); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver)))
2011-10-09 23:56:05,820 WARN SQL Error: 0, SQLState: null
:
It looks like you haven't installed a MySQL JDBC driver.
It could be loaded in server/default/lib
Anders
I have downloaded mysql-connector-java-5.1.18 that probably contains the driver setup, but how do I install it? With ant? There is no reaction with the build.xml.
What is the precise name of the driver?
http://signserver.org/manual/installguide.html#4.%20Setup%20database
Copy is all you do.
Error will occurr during startup if something is missing.
You are on the right track now!
Regards,
Anders
Well, I did this: copied the file to where it should belong: /opt/jboss-4.2.3.GA/server/default/lib/mysql-connector-java-5.1.18-bin.jar
Restarted the jboss ./run.sh
jboss went much cleaner without ERROR, only INFO nodes, and a couple of WARNS. Log has only DEBUG nodes, no ERROR
Recompiled the signserver with all the necessary HOME_variables declared anew, and not to forget jdk: ant clean deploy
BUILD SUCCESS
(maybe not necessary with recompile)
Restarted signserver.sh, but now (unfortunately):
sigbj@sled-10sp3:~/signserver-3.2.0> ./bin/signserver.sh getstatus brief all
Assuming JBoss JNDI provider…
===========================================
Executing Command on host : localhost
===========================================
2 ERROR org.signserver.common.ServiceLocator - Error looking up signserver interface
javax.naming.CommunicationException: Could not obtain connection to any of these urls: 127.0.0.1:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is javax.naming.CommunicationException: Failed to connect to server 127.0.0.1:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server 127.0.0.1:1099 ]]
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1562)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
Try the following command:
demo@localhost clientToolBox]$ ss -l -t
It should list two rmi entries as shown below
Recv-Q Send-Q Local Address:Port Peer Address:Port
0 128 :::ssh :::*
0 128 *:ssh *:*
0 128 127.0.0.1:ipp *:*
0 128 ::1:ipp :::*
0 128 *:40727 *:*
0 128 127.0.0.1:postgres *:*
0 128 ::1:postgres :::*
0 100 ::1:smtp :::*
0 100 127.0.0.1:smtp *:*
0 100 *:cybro-a-bus *:*
0 100 *:pcsync-https *:*
0 128 127.0.0.1:krb524 *:*
0 128 127.0.0.1:upnotifyp *:*
0 128 127.0.0.1:n1-fwp *:*
0 128 127.0.0.1:fagordnc *:*
0 128 127.0.0.1:ff-fms *:*
0 50 *:59495 *:*
0 50 127.0.0.1:4712 *:*
0 100 127.0.0.1:8009 *:*
0 50 127.0.0.1:4713 *:*
0 128 127.0.0.1:prRegister *:*
0 128 127.0.0.1:rmiactivation *:*
0 50 *:mysql *:*
0 50 127.0.0.1:rmiregistry *:*
0 50 127.0.0.1:34476 *:*
0 128 :::54893 :::*
0 128 :::sunrpc :::*
0 128 *:sunrpc *:*
0 100 *:webcache *:*
0 50 127.0.0.1:54835 *:*
0 50 127.0.0.1:us-srv *:*
0 5 192.168.122.1:domain *:*
Anders
I dont have the ss command and dont know where to get it. It is not listed in my YaST installation tool. I might maybe use the command 'netstat' , but I need the precise switches you are asking for
netstat
netstat {-route|-r}
netstat {-interfaces|-i}
netstat {-masquerade|-M}
netstat {-netlink|-N}
Okey I'll try these 2 variants:
sigbj@sled-10sp3:~/signserver-3.2.0/bin> netstat -nat
Aktive Internetverbindungen (Server und stehende Verbindungen)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:3310 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:2544 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 0 :::25 :::* LISTEN
sigbj@sled-10sp3:~/signserver-3.2.0/bin> netstat -at
Aktive Internetverbindungen (Server und stehende Verbindungen)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:mysql *:* LISTEN
tcp 0 0 localhost:dyna-access *:* LISTEN
tcp 0 0 *:sunrpc *:* LISTEN
tcp 0 0 localhost:novell-zen *:* LISTEN
tcp 0 0 *:ipp *:* LISTEN
tcp 0 0 *:smtp *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
tcp 0 0 *:smtp *:* LISTEN
sigbj@sled-10sp3:~/signserver-3.2.0/bin>
It is clear that JBoss isn't running properly.
Nobody is listening to 127.0.0.1:1999.
Take a look at the logs again and see if it WARNs about RMI or JNDI.
Anders
Here are the WARNS; I cannot read out if RMI or JNDI is involved:
2011-10-11 16:54:07,272 WARN InitialContext did not implement EventContext
2011-10-11 16:54:12,768 WARN Unable to calculate 'WebServiceSecurePort', using default '8443'
2011-10-11 17:58:04,903 WARN jboss.j2ee:ear=signserver.ear,jar=SignServer-ejb-AdminWS.jar,name=AdminWS,service=EJB3 is not registered
2011-10-11 17:58:04,967 WARN jboss.j2ee:ear=signserver.ear,jar=SignServer-ejb-ValidationWS.jar,name=ValidationWS,service=EJB3 is not registered
2011-10-11 17:58:05,036 WARN jboss.j2ee:ear=signserver.ear,jar=signserver-ejb.jar,name=ClusterClassLoaderManagerSessionBean,service=EJB3 is not registered
2011-10-11 17:58:05,047 WARN jboss.j2ee:ear=signserver.ear,jar=signserver-ejb.jar,name=GlobalConfigurationSessionBean,service=EJB3 is not registered
2011-10-11 17:58:05,048 WARN jboss.j2ee:ear=signserver.ear,jar=signserver-ejb.jar,name=ServiceTimerSessionBean,service=EJB3 is not registered
2011-10-11 17:58:05,052 WARN jboss.j2ee:ear=signserver.ear,jar=signserver-ejb.jar,name=StatusRepositorySessionBean,service=EJB3 is not registered
2011-10-11 17:58:05,052 WARN jboss.j2ee:ear=signserver.ear,jar=signserver-ejb.jar,name=WorkerSessionBean,service=EJB3 is not registered
2011-10-11 17:58:05,055 WARN persistence.units:ear=signserver.ear,jar=signserver-ejb.jar,unitName=SignServerJPA is not registered
2011-10-11 17:58:05,055 WARN persistence.units:ear=signserver.ear,jar=signserver-ejb.jar,unitName=SignServerJPA is not registered
No, I dont really find much that can help.
2011-10-12 13:23:28,764 DEBUG JNDI bootstrap JNP=/127.0.0.1:1099, RMI=/127.0.0.1:1098, backlog=50, no client SocketFactory, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@e048aaa4
I tried to install signserver with all the components and configoratory adjustments on a quite newer version: openSuSE 11.3, but the same problem occurs. Could be I am doing something wrong during the setup, but there was BUILD SUCCESS and duration 4 min 31 sek (slower machine).
Here is signserver_build_properties; I only changed the lines that were supposed according to the installation guide:
appserver.type=jboss
j2ee.web-nohttps=true
httpserver.privhttps=8443
datasource.jndi-name=SignServerDS
datasource.jndi-name-prefix=java:/
database.name=mysql
database.url=jdbc:mysql://127.0.0.1:3306/signserver
database.driver=com.mysql.jdbc.Driver
database.username=signserver
database.password=signserver
signserverws.enabled=true
genericws.enabled=true
validationws.enabled=true
adminws.enabled=true
module.xmlsigner.enabled=true
module.xmlsigner.include=true
admingui.enabled=true
includemodulesinbuild=true
useclusterclassloader=true
clusterclassloader.useclassversions=true
clusterclassloader.requiresignature=false
clusterclassloader.pathtotruststore=
clusterclassloader.truststorepwd=
healthcheck.authorizedips=127.0.0.1;::1;0:0:0:0:0:0:0:1
healthcheck.minimumfreememory=1
healthcheck.checkdbstring=Select count(*) from signerconfigdata
My guess is that you have firewalled so that ports are blocked, or something else. I don't see any regular port in your netstat so I don't thing you had JBoss running when you ran netstat…
JBoss is a network application and uses several ports (on localhost).
Cheers,
Tomas
I am really sorry for this, my friends!
I did not have the jboss running.
Now is netstat run while jboss is up and running at the same time:
sigbj@sled-10sp3:~> netstat -nat
Aktive Internetverbindungen (Server und stehende Verbindungen)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:3873 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:8009 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:15946 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:1098 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:1099 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:3310 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:2544 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:23506 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:8083 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:4444 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:8093 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:4445 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:4446 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:12734 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:3306 127.0.0.1:21508 VERBUNDEN
tcp 0 0 127.0.0.1:3306 127.0.0.1:21509 VERBUNDEN
tcp 0 0 127.0.0.1:3306 127.0.0.1:21510 VERBUNDEN
tcp 0 0 127.0.0.1:3306 127.0.0.1:21506 VERBUNDEN
tcp 0 0 127.0.0.1:3306 127.0.0.1:21507 VERBUNDEN
tcp 0 0 127.0.0.1:15755 127.0.0.1:1098 TIME_WAIT
tcp 0 0 127.0.0.1:15756 127.0.0.1:1098 TIME_WAIT
tcp 0 0 127.0.0.1:21506 127.0.0.1:3306 VERBUNDEN
tcp 0 0 127.0.0.1:21507 127.0.0.1:3306 VERBUNDEN
tcp 0 0 127.0.0.1:21510 127.0.0.1:3306 VERBUNDEN
tcp 0 0 127.0.0.1:21508 127.0.0.1:3306 VERBUNDEN
tcp 0 0 127.0.0.1:21509 127.0.0.1:3306 VERBUNDEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 0 :::25 :::* LISTEN
sigbj@sled-10sp3:~> netstat -at
Aktive Internetverbindungen (Server und stehende Verbindungen)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 localhost:fagordnc *:* LISTEN
tcp 0 0 localhost:8009 *:* LISTEN
tcp 0 0 *:15946 *:* LISTEN
tcp 0 0 localhost:rmiactivation *:* LISTEN
tcp 0 0 *:mysql *:* LISTEN
tcp 0 0 localhost:rmiregistry *:* LISTEN
tcp 0 0 localhost:dyna-access *:* LISTEN
tcp 0 0 *:sunrpc *:* LISTEN
tcp 0 0 localhost:http-alt *:* LISTEN
tcp 0 0 localhost:novell-zen *:* LISTEN
tcp 0 0 *:23506 *:* LISTEN
tcp 0 0 localhost:us-srv *:* LISTEN
tcp 0 0 *:ipp *:* LISTEN
tcp 0 0 *:smtp *:* LISTEN
tcp 0 0 localhost:nv-video *:* LISTEN
tcp 0 0 localhost:8093 *:* LISTEN
tcp 0 0 localhost:upnotifyp *:* LISTEN
tcp 0 0 localhost:n1-fwp *:* LISTEN
tcp 0 0 *:12734 *:* LISTEN
tcp 0 0 localhost:mysql localhost:21508 VERBUNDEN
tcp 0 0 localhost:mysql localhost:21509 VERBUNDEN
tcp 0 0 localhost:mysql localhost:21510 VERBUNDEN
tcp 0 0 localhost:mysql localhost:21506 VERBUNDEN
tcp 0 0 localhost:mysql localhost:21507 VERBUNDEN
tcp 0 0 localhost:15756 localhost:rmiactivation TIME_WAIT
tcp 0 0 localhost:21506 localhost:mysql VERBUNDEN
tcp 0 0 localhost:21507 localhost:mysql VERBUNDEN
tcp 0 0 localhost:21510 localhost:mysql VERBUNDEN
tcp 0 0 localhost:21508 localhost:mysql VERBUNDEN
tcp 0 0 localhost:21509 localhost:mysql VERBUNDEN
tcp 0 0 *:ssh *:* LISTEN
tcp 0 0 *:smtp *:* LISTEN
sigbj@sled-10sp3:~>
Tell if you other flags to be switched on netstat!
Now RMI is running! Does it still fail to accept signserver commands?
If you still get a connect error there must be a firewall problem.
Anders
I am doing so many mistakes that I do not deserve to be in this Forum:
For the first time I realise that signserver.sh has to be started WHILE jboss is running. I thought that signserver.sh would start jboss inherently, but I never checked the script.
OK here is output of ./signserver.sh while jboss is running:
sigbj@sled-10sp3:~/signserver-3.2.0/bin> ./signserver.sh getstatus brief all
Assuming JBoss JNDI provider…
===========================================
Executing Command on host : localhost
===========================================
Current version of server is : SignServer 3.2.0
The moral behind this is: "Never believe that the dwergs on the west side have learned anything during 100 years of Swedish administration, they need everything with teaspoon!"