Hitachi Vantara Pentaho Community Forums
Results 1 to 5 of 5

Thread: java.net.BindException: Address already in use <null>:8080

  1. #1

    Default java.net.BindException: Address already in use <null>:8080

    Hello devs,

    I'm having a provlem running the BI platform.

    My software versions:
    OS: Linux Ubuntu 12.04 LTS
    Java: jdk1.6.0_43.
    Pentaho: biserver-ce-5.0.1-stable

    When executing the run_pehtano.sh script, I get the following error (see the full trace below): java.net.BindException: Address already in use <null>:8080.

    Does anyone have an idea what shall be done in order to have it working?

    ---

    See the full trace at pastebin: http://pastebin.com/5x7DDuFG

    Mar 24, 2014 9:42:29 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /home/artur/jdk1.6.0_43/jre/lib/amd64/server:/home/artur/jdk1.6.0_43/jre/lib/amd64:/home/artur/jdk1.6.0_43/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
    Mar 24, 2014 9:42:29 AM org.apache.coyote.http11.Http11Protocol init
    SEVERE: Error initializing endpoint
    java.net.BindException: Address already in use <null>:8080
    at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:549)
    at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:180)
    at org.apache.catalina.connector.Connector.initialize(Connector.java:1123)
    at org.apache.catalina.core.StandardService.initialize(StandardService.java:703)
    at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:838)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:562)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Caused by: java.net.BindException: Address already in use
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
    at java.net.ServerSocket.bind(ServerSocket.java:328)
    at java.net.ServerSocket.<init>(ServerSocket.java:194)
    at java.net.ServerSocket.<init>(ServerSocket.java:150)
    at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
    at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538)
    ... 12 more
    Mar 24, 2014 9:42:29 AM org.apache.catalina.core.StandardService initialize
    SEVERE: Failed to initialize connector [Connector[HTTP/1.1-8080]]
    LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use <null>:8080
    at org.apache.catalina.connector.Connector.initialize(Connector.java:1125)
    at org.apache.catalina.core.StandardService.initialize(StandardService.java:703)
    at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:838)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:562)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Mar 24, 2014 9:42:29 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 580 ms
    Mar 24, 2014 9:42:29 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Mar 24, 2014 9:42:29 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.36
    Mar 24, 2014 9:42:29 AM org.apache.catalina.startup.HostConfig deployDescriptor
    INFO: Deploying configuration descriptor pentaho.xml
    Mar 24, 2014 9:42:31 AM org.apache.catalina.startup.ContextConfig validateSecurityRoles
    INFO: WARNING: Security role name PENTAHO_ADMIN used in an <auth-constraint> without being defined in a <security-role>
    09:42:34,184 ERROR [ContextLoader] Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'filterChainProxy' defined in file [/home/artur/pentaho/biserver-ce/pentaho-solutions/system/applicationContext-spring-security.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'basicProcessingFilter' defined in file [/home/artur/pentaho/biserver-ce/pentaho-solutions/system/applicationContext-spring-security.xml]: Cannot resolve reference to bean 'authenticationManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager' defined in file [/home/artur/pentaho/biserver-ce/pentaho-solutions/system/applicationContext-spring-security.xml]: Cannot create inner bean 'pen:bean#135c40eb' of type [org.pentaho.platform.engine.core.system.objfac.spring.BeanBuilder] while setting bean property 'providers' with
    key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pen:bean#135c40eb': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.providers.dao.DaoAuthenticationProvider#1' defined in file [/home/artur/pentaho/biserver-ce/pentaho-solutions/system/applicationContext-spring-security-jackrabbit.xml]: Cannot create inner bean 'pen:bean#1531164' of type [org.pentaho.platform.engine.core.system.objfac.spring.BeanBuilder] while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pen:bean#1531164': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cachingUserDetailsService' defined in file [/home/artur/pentaho/biserver-ce/
    pentaho-solutions/system/pentahoObjects.spring.xml]: Cannot resolve reference to bean 'UserDetailsService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'UserDetailsService': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDetailsService' defined in file [/home/artur/pentaho/biserver-ce/pentaho-solutions/system/applicationContext-spring-security-jackrabbit.xml]: Cannot resolve reference to bean 'userRoleDaoTxn' while setting bean property 'userRoleDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userRoleDaoTxn' defined in file [/home/artur/pentaho/biserver-ce/pentaho-solutions/system/repository.spring.xml]: Cannot resolve reference to bean 'userRoleDao' while setting bean property 'target'; nested exception is org.springframework.beans.
    factory.BeanCreationException: Error creating bean with name 'userRoleDao' defined in file [/home/artur/pentaho/biserver-ce/pentaho-solutions/system/repository.spring.xml]: Cannot resolve reference to bean 'adminJcrTemplate' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'adminJcrTemplate' defined in file [/home/artur/pentaho/biserver-ce/pentaho-solutions/system/repository.spring.xml]: Cannot resolve reference to bean 'jcrAdminSessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jcrAdminSessionFactory' defined in file [/home/artur/pentaho/biserver-ce/pentaho-solutions/system/repository.spring.xml]: Cannot resolve reference to bean 'jcrRepository' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '
    jcrRepository' defined in file [/home/artur/pentaho/biserver-ce/pentaho-solutions/system/repository.spring.xml]: Invocation of init method failed; nested exception is javax.jcr.RepositoryException: The repository home /home/artur/pentaho/biserver-ce/pentaho-solutions/system/jackrabbit/repository appears to be in use since the file named .lock is locked by another process.

  2. #2
    Join Date
    Apr 2008
    Posts
    4,685

    Default

    Quote Originally Posted by barseghyanartur View Post
    Address already in use <null>:8080.
    It means exactly what it says - something is already listening on port 8080.
    Looking through your stack trace, it looks like you are trying to run two copies of BIServer at the same time.

  3. #3

    Default

    Thank you. After some debugging I've found out that somehow older processes keep hanging in the memory with ports being left open. I have to kill them all manually, which is quite annoying, since I would expect the stop-pentaho.sh script having it done for me.

    Still, I haven't managed to get Pentaho running. No errors, just this

    Mar 25, 2014 3:45:46 PM org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /home/artur/jdk1.6.0_43/jre/lib/amd64/server:/home/artur/jdk1.6.0_43/jre/lib/amd64:/home/artur/jdk1.6.0_43/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
    Mar 25, 2014 3:45:47 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8788
    Mar 25, 2014 3:45:47 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 697 ms
    Mar 25, 2014 3:45:47 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Mar 25, 2014 3:45:47 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.36
    Mar 25, 2014 3:45:47 PM org.apache.catalina.startup.HostConfig deployDescriptor
    INFO: Deploying configuration descriptor pentaho.xml
    Mar 25, 2014 3:45:48 PM org.apache.catalina.startup.ContextConfig validateSecurityRoles
    INFO: WARNING: Security role name PENTAHO_ADMIN used in an <auth-constraint> without being defined in a <security-role>

    And the http://localhost:8788/pentaho doesn't load.

  4. #4
    Join Date
    Mar 2014
    Posts
    7

    Default

    i have a similar problem,
    i followed this guide: http://anonymousbi.wordpress.com/201...llation-guide/
    and now when i try to start pentaho i don't receive any errors,but it wont load

    this is my catalina log:

    mar 28, 2014 9:46:19 AM org.apache.catalina.core.AprLifecycleListener init
    Informazioni: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.7.0_51\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Lenovo\Bluetooth Software\;C:\Program Files\Lenovo\Bluetooth Software\syswow64;C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\;C:\Program Files (x86)\MySQL\MySQL Utilities 1.3.6\;C:\Program Files (x86)\QuickTime\QTSystem\;;.
    mar 28, 2014 9:46:20 AM org.apache.coyote.http11.Http11Protocol init
    Informazioni: Initializing Coyote HTTP/1.1 on http-8080
    mar 28, 2014 9:46:20 AM org.apache.catalina.startup.Catalina load
    Informazioni: Initialization processed in 872 ms
    mar 28, 2014 9:46:20 AM org.apache.catalina.core.StandardService start
    Informazioni: Starting service Catalina
    mar 28, 2014 9:46:20 AM org.apache.catalina.core.StandardEngine start
    Informazioni: Starting Servlet Engine: Apache Tomcat/6.0.36
    mar 28, 2014 9:46:20 AM org.apache.catalina.startup.HostConfig deployDescriptor
    Informazioni: Deploying configuration descriptor pentaho.xml
    mar 28, 2014 9:46:21 AM org.apache.catalina.startup.HostConfig deployDirectory
    Informazioni: Deploying web application directory pentaho-style
    mar 28, 2014 9:46:21 AM org.apache.catalina.startup.HostConfig deployDirectory
    Informazioni: Deploying web application directory ROOT
    mar 28, 2014 9:46:21 AM org.apache.catalina.startup.HostConfig deployDirectory
    Informazioni: Deploying web application directory sw-style
    mar 28, 2014 9:46:21 AM org.apache.coyote.http11.Http11Protocol start
    Informazioni: Starting Coyote HTTP/1.1 on http-8080
    mar 28, 2014 9:46:21 AM org.apache.jk.common.ChannelSocket init
    Informazioni: JK: ajp13 listening on /0.0.0.0:8009
    mar 28, 2014 9:46:21 AM org.apache.jk.server.JkMain start
    Informazioni: Jk running ID=0 time=0/22 config=null
    mar 28, 2014 9:46:21 AM org.apache.catalina.startup.Catalina start
    Informazioni: Server startup in 1485 ms


    and it won't load, it keeps giving me error 404


    edit:i found a solution for this problem:
    i don't know how but i didn't have the file web.xml in biserver-ce\tomcat\webapps\pentaho\WEB-INF
    then i looked back at the guide that i linked before and i re-did the section #6 being careful to do exactly what it says (comment out mysql rows and comment others) plus i i deleted the rows refering to the class localfilesystem, example,i changed this:

    <!--
    <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
    <param name="driver" value="com.mysql.jdbc.Driver"/>
    <param name="url" value="jdbc:mysql://localhost:3306/jackrabbit"/>
    <param name="user" value="jcr_user"/>
    <param name="password" value="password"/>
    <param name="schema" value="mysql"/>
    <param name="schemaObjectPrefix" value="fs_repos_"/>
    </FileSystem>


    <FileSystem class="org.apache.jackrabbit.core.fs.db.OracleFileSystem">
    <param name="url" value="jdbcracle:thin:@localhost:1521/XE"/>
    <param name="user" value="jcr_user"/>
    <param name="password" value="password"/>
    <param name="schemaObjectPrefix" value="fs_repos_"/>
    <param name="tablespace" value="jackrabbit"/>
    </FileSystem>


    <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
    <param name="driver" value="org.postgresql.Driver"/>
    <param name="url" value="jdbcostgresql://localhost:5432/jackrabbit"/>
    <param name="user" value="jcr_user"/>
    <param name="password" value="password"/>
    <param name="schema" value="postgresql"/>
    <param name="schemaObjectPrefix" value="fs_repos_"/>
    </FileSystem>
    -->


    <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
    <param name="path" value="${rep.home}/repository"/>
    </FileSystem>


    <!--

    to:




    <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
    <param name="driver" value="com.mysql.jdbc.Driver"/>
    <param name="url" value="jdbc:mysql://localhost:3306/jackrabbit"/>
    <param name="user" value="jcr_user"/>
    <param name="password" value="password"/>
    <param name="schema" value="mysql"/>
    <param name="schemaObjectPrefix" value="fs_repos_"/>
    </FileSystem>
    <!--
    <FileSystem class="org.apache.jackrabbit.core.fs.db.OracleFileSystem">
    <param name="url" value="jdbcracle:thin:@localhost:1521/XE"/>
    <param name="user" value="jcr_user"/>
    <param name="password" value="password"/>
    <param name="schemaObjectPrefix" value="fs_repos_"/>
    <param name="tablespace" value="jackrabbit"/>
    </FileSystem>


    <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
    <param name="driver" value="org.postgresql.Driver"/>
    <param name="url" value="jdbcostgresql://localhost:5432/jackrabbit"/>
    <param name="user" value="jcr_user"/>
    <param name="password" value="password"/>
    <param name="schema" value="postgresql"/>
    <param name="schemaObjectPrefix" value="fs_repos_"/>
    </FileSystem>



    <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
    <param name="path" value="${rep.home}/repository"/>
    </FileSystem>
    -->
    Last edited by daniele88; 03-28-2014 at 08:24 AM. Reason: solved

  5. #5
    Join Date
    Apr 2008
    Posts
    4,685

    Default

    Quote Originally Posted by barseghyanartur View Post
    And the http://localhost:8788/pentaho doesn't load.
    try http://localhost:8080/pentaho

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.