facebook

JBoss deployment issue

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #236069 Reply

    Chris Parsons
    Participant

    Bit odd this – I keep gettiing a deployment error;

    Error during deploy; – nested throwable: (javax.naming.NameNotFoundException: comp not bound)

    Which does not always happen, and if I try redeploying a couple of times the app deploys properly

    I uninstalled MyEclipse and did a -clean and installed the GA release but if anything it now happens more
    often

    At worst this means I have to redeploy perhaps 3 times to get it to work but this is becoming a bit irritating!

    Cheers

    Chris

    #236079

    Greg
    Member

    Chris,

    This problem you are seeing doesn’t have anything to do with your MyEclipse installation. A NameNotFoundException means something is wrong with your EJB or WAR package. So when you reply, post the following deatils:

    1. what you are trying to deploy EAR, WAR, or EJB
    2. source code that is either creating a new JNDI Name or code that is trying to bind to a name (that is where the error is likely occurring)
    3. The full jboss console log to see if there are any other releated errors

    #236324

    Chris Parsons
    Participant

    1. what you are trying to deploy EAR, WAR, or EJB

    WAR

    2. source code that is either creating a new JNDI Name or code that is trying to bind to a name (that is where the error is likely occurring)

    Not sure if I am doing either?

    3. The full jboss console log to see if there are any other releated errors

    I have just installed the latest copy (4.0.2) of JBoss and the application WAR and the console output is as below;

    09:41:14,724 INFO  [Server] Starting JBoss (MX MicroKernel)...
    09:41:14,724 INFO  [Server] Release ID: JBoss [Zion] 4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)
    09:41:14,724 INFO  [Server] Home Dir: C:\java\jboss-4.0.2
    09:41:14,724 INFO  [Server] Home URL: file:/C:/java/jboss-4.0.2/
    09:41:14,724 INFO  [Server] Library URL: file:/C:/java/jboss-4.0.2/lib/
    09:41:14,724 INFO  [Server] Patch URL: null
    09:41:14,724 INFO  [Server] Server Name: default
    09:41:14,724 INFO  [Server] Server Home Dir: C:\java\jboss-4.0.2\server\default
    09:41:14,974 INFO  [Server] Server Home URL: file:/C:/java/jboss-4.0.2/server/default/
    09:41:14,974 INFO  [Server] Server Data Dir: C:\java\jboss-4.0.2\server\default\data
    09:41:14,974 INFO  [Server] Server Temp Dir: C:\java\jboss-4.0.2\server\default\tmp
    09:41:14,974 INFO  [Server] Server Config URL: file:/C:/java/jboss-4.0.2/server/default/conf/
    09:41:14,974 INFO  [Server] Server Library URL: file:/C:/java/jboss-4.0.2/server/default/lib/
    09:41:14,974 INFO  [Server] Root Deployment Filename: jboss-service.xml
    09:41:14,990 INFO  [Server] Starting General Purpose Architecture (GPA)...
    09:41:15,661 INFO  [ServerInfo] Java version: 1.5.0_04,Sun Microsystems Inc.
    09:41:15,661 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_04-b05,Sun Microsystems Inc.
    09:41:15,661 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
    09:41:17,458 INFO  [Server] Core system initialized
    09:41:19,083 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
    09:41:19,161 INFO  [WebService] Using RMI server codebase: http://TOR03286:8083/
    09:41:19,302 INFO  [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
    09:41:22,911 INFO  [Embedded] Catalina naming disabled
    09:41:23,286 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-7000
    09:41:23,286 INFO  [Catalina] Initialization processed in 312 ms
    09:41:23,286 INFO  [StandardService] Starting service jboss.web
    09:41:23,286 INFO  [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.9
    09:41:23,333 INFO  [StandardHost] XML validation disabled
    09:41:23,349 INFO  [Catalina] Server startup in 63 ms
    09:41:23,615 INFO  [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=file:/C:/java/jboss-4.0.2/server/default/deploy/http-invoker.sar/invoker.war/
    09:41:23,880 INFO  [WebappLoader] Dual registration of jndi stream handler: factory already defined
    09:41:24,349 INFO  [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=file:/C:/java/jboss-4.0.2/server/default/tmp/deploy/tmp40194jboss-ws4ee-exp.war/
    09:41:24,490 INFO  [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/C:/java/jboss-4.0.2/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/
    09:41:24,677 INFO  [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=file:/C:/java/jboss-4.0.2/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
    09:41:26,646 INFO  [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/C:/java/jboss-4.0.2/server/default/deploy/management/console-mgr.sar/web-console.war/
    09:41:27,193 INFO  [MailService] Mail Service bound to java:/Mail
    09:41:27,849 INFO  [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/java/jboss-4.0.2/server/default/deploy/jboss-ha-local-jdbc.rar
    09:41:27,974 INFO  [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/java/jboss-4.0.2/server/default/deploy/jboss-ha-xa-jdbc.rar
    09:41:28,068 INFO  [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/java/jboss-4.0.2/server/default/deploy/jboss-local-jdbc.rar
    09:41:28,177 INFO  [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/java/jboss-4.0.2/server/default/deploy/jboss-xa-jdbc.rar
    09:41:28,286 INFO  [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/java/jboss-4.0.2/server/default/deploy/jms/jms-ra.rar
    09:41:28,365 INFO  [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/java/jboss-4.0.2/server/default/deploy/mail-ra.rar
    09:41:29,599 INFO  [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS to JNDI name 'java:DefaultDS'
    09:41:29,865 INFO  [A] Bound to JNDI name: queue/A
    09:41:29,865 INFO  [B] Bound to JNDI name: queue/B
    09:41:29,865 INFO  [C] Bound to JNDI name: queue/C
    09:41:29,880 INFO  [D] Bound to JNDI name: queue/D
    09:41:29,880 INFO  [ex] Bound to JNDI name: queue/ex
    09:41:29,896 INFO  [testTopic] Bound to JNDI name: topic/testTopic
    09:41:29,896 INFO  [securedTopic] Bound to JNDI name: topic/securedTopic
    09:41:29,896 INFO  [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
    09:41:29,896 INFO  [testQueue] Bound to JNDI name: queue/testQueue
    09:41:29,974 INFO  [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
    09:41:30,005 INFO  [DLQ] Bound to JNDI name: queue/DLQ
    09:41:30,208 INFO  [ConnectionFactoryBindingService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA to JNDI name 'java:JmsXA'
    09:41:35,458 INFO  [TomcatDeployer] deploy, ctxPath=/ServiceDirectoryWeb, warUrl=file:/C:/java/jboss-4.0.2/server/default/tmp/deploy/tmp40240ServiceDirectoryWeb-exp.war/
    09:41:37,568 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/C:/java/jboss-4.0.2/server/default/deploy/jmx-console.war/
    09:41:37,896 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-7000
    09:41:38,036 INFO  [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
    09:41:38,052 INFO  [JkMain] Jk running ID=0 time=0/62  config=null
    09:41:38,068 INFO  [Server] JBoss (MX MicroKernel) [4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)] Started in 23s:78ms

    I then ran the application to check it and got the following additional output;

    09:42:56,990 INFO  [Environment] Hibernate 3.0.5
    09:42:57,005 INFO  [Environment] hibernate.properties not found
    09:42:57,005 INFO  [Environment] using CGLIB reflection optimizer
    09:42:57,005 INFO  [Environment] using JDK 1.4 java.sql.Timestamp handling
    09:42:57,099 INFO  [Configuration] configuring from resource: /hibernate.cfg.xml
    09:42:57,099 INFO  [Configuration] Configuration resource: /hibernate.cfg.xml
    09:42:57,208 INFO  [Configuration] Mapping resource: uk/gov/torbay/sd/Accessibility.hbm.xml
    09:42:57,302 INFO  [HbmBinder] Mapping class: uk.gov.torbay.sd.Accessibility -> accessibility
    09:42:57,411 INFO  [Configuration] Mapping resource: uk/gov/torbay/sd/BusinessUnit.hbm.xml
    09:42:57,443 INFO  [HbmBinder] Mapping class: uk.gov.torbay.sd.BusinessUnit -> business_unit
    09:42:57,443 INFO  [Configuration] Mapping resource: uk/gov/torbay/sd/Faq.hbm.xml
    09:42:57,458 INFO  [HbmBinder] Mapping class: uk.gov.torbay.sd.Faq -> faq
    09:42:57,458 INFO  [Configuration] Mapping resource: uk/gov/torbay/sd/Keyword.hbm.xml
    09:42:57,474 INFO  [HbmBinder] Mapping class: uk.gov.torbay.sd.Keyword -> keyword
    09:42:57,474 INFO  [Configuration] Mapping resource: uk/gov/torbay/sd/Link.hbm.xml
    09:42:57,490 INFO  [HbmBinder] Mapping class: uk.gov.torbay.sd.Link -> link
    09:42:57,490 INFO  [Configuration] Mapping resource: uk/gov/torbay/sd/Period.hbm.xml
    09:42:57,505 INFO  [HbmBinder] Mapping class: uk.gov.torbay.sd.Period -> period
    09:42:57,505 INFO  [Configuration] Mapping resource: uk/gov/torbay/sd/Provider.hbm.xml
    09:42:57,521 INFO  [HbmBinder] Mapping class: uk.gov.torbay.sd.Provider -> provider
    09:42:57,521 INFO  [Configuration] Mapping resource: uk/gov/torbay/sd/Service.hbm.xml
    09:42:57,536 INFO  [HbmBinder] Mapping class: uk.gov.torbay.sd.Service -> service
    09:42:57,536 INFO  [Configuration] Mapping resource: uk/gov/torbay/sd/Subunit.hbm.xml
    09:42:57,536 INFO  [HbmBinder] Mapping class: uk.gov.torbay.sd.Subunit -> subunit
    09:42:57,536 INFO  [Configuration] Configured SessionFactory: null
    09:42:57,536 INFO  [Configuration] processing extends queue
    09:42:57,536 INFO  [Configuration] processing collection mappings
    09:42:57,536 INFO  [HbmBinder] Mapping collection: uk.gov.torbay.sd.BusinessUnit.subunitSet -> subunit
    09:42:57,536 INFO  [HbmBinder] Mapping collection: uk.gov.torbay.sd.Provider.serviceSet -> service
    09:42:57,536 INFO  [HbmBinder] Mapping collection: uk.gov.torbay.sd.Service.accessibilitySet -> accessibility
    09:42:57,536 INFO  [HbmBinder] Mapping collection: uk.gov.torbay.sd.Service.faqSet -> faq
    09:42:57,536 INFO  [HbmBinder] Mapping collection: uk.gov.torbay.sd.Service.keywordSet -> keyword
    09:42:57,536 INFO  [HbmBinder] Mapping collection: uk.gov.torbay.sd.Service.periodSet -> period
    09:42:57,536 INFO  [HbmBinder] Mapping collection: uk.gov.torbay.sd.Subunit.serviceSet -> service
    09:42:57,536 INFO  [Configuration] processing association property references
    09:42:57,536 INFO  [Configuration] processing foreign key constraints
    09:42:57,552 INFO  [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!)
    09:42:57,552 INFO  [DriverManagerConnectionProvider] Hibernate connection pool size: 20
    09:42:57,552 INFO  [DriverManagerConnectionProvider] autocommit mode: false
    09:42:57,552 INFO  [DriverManagerConnectionProvider] using driver: net.sourceforge.jtds.jdbc.Driver at URL: jdbc:jtds:sqlserver://egov-apps1:1433/sd
    09:42:57,552 INFO  [DriverManagerConnectionProvider] connection properties: {user=sd, password=d1r3ct0ry}
    09:42:57,724 INFO  [SettingsFactory] RDBMS: Microsoft SQL Server, version: 08.00.0194
    09:42:57,724 INFO  [SettingsFactory] JDBC driver: jTDS Type 4 JDBC Driver for MS SQL Server and Sybase, version: 1.1
    09:42:57,755 INFO  [Dialect] Using dialect: org.hibernate.dialect.SQLServerDialect
    09:42:57,771 INFO  [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
    09:42:57,771 INFO  [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
    09:42:57,771 INFO  [SettingsFactory] Automatic flush during beforeCompletion(): disabled
    09:42:57,771 INFO  [SettingsFactory] Automatic session close at end of transaction: disabled
    09:42:57,771 INFO  [SettingsFactory] Scrollable result sets: enabled
    09:42:57,771 INFO  [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
    09:42:57,771 INFO  [SettingsFactory] Connection release mode: null
    09:42:57,771 INFO  [SettingsFactory] Default batch fetch size: 1
    09:42:57,771 INFO  [SettingsFactory] Generate SQL with comments: disabled
    09:42:57,771 INFO  [SettingsFactory] Order SQL updates by primary key: disabled
    09:42:57,771 INFO  [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
    09:42:57,786 INFO  [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
    09:42:57,786 INFO  [SettingsFactory] Query language substitutions: {}
    09:42:57,786 INFO  [SettingsFactory] Second-level cache: enabled
    09:42:57,786 INFO  [SettingsFactory] Query cache: disabled
    09:42:57,786 INFO  [SettingsFactory] Cache provider: org.hibernate.cache.EhCacheProvider
    09:42:57,786 INFO  [SettingsFactory] Optimize cache for minimal puts: disabled
    09:42:57,786 INFO  [SettingsFactory] Structured second-level cache entries: disabled
    09:42:57,786 INFO  [SettingsFactory] Statistics: disabled
    09:42:57,786 INFO  [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
    09:42:57,802 INFO  [SettingsFactory] Default entity-mode: pojo
    09:42:57,958 INFO  [SessionFactoryImpl] building session factory
    09:42:57,974 WARN  [Configurator] No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/java/jboss-4.0.2/server/default/tmp/deploy/tmp40240ServiceDirectoryWeb-exp.war/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
    09:42:59,052 INFO  [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
    09:42:59,052 INFO  [SessionFactoryImpl] Checking 9 named queries

    Application worked as expected

    I then ‘redeployed’ the same WAR and got the following output;

    09:44:22,833 INFO  [TomcatDeployer] undeploy, ctxPath=/ServiceDirectoryWeb, warUrl=file:/C:/java/jboss-4.0.2/server/default/tmp/deploy/tmp40240ServiceDirectoryWeb-exp.war/
    09:44:24,333 WARN  [DeploymentInfo] Could not delete file:/C:/java/jboss-4.0.2/server/default/tmp/deploy/tmp40240ServiceDirectoryWeb-exp.war/ restart will delete it
    09:44:27,505 INFO  [TomcatDeployer] deploy, ctxPath=/ServiceDirectoryWeb, warUrl=file:/C:/java/jboss-4.0.2/server/default/tmp/deploy/tmp40241ServiceDirectoryWeb.war/
    09:44:28,693 INFO  [ContextConfig] Missing application web.xml, using defaults only StandardEngine[jboss.web].StandardHost[localhost].StandardContext[/ServiceDirectoryWeb]

    and then ran the ‘redeploy’ again with no changes and got the following output;

    09:45:29,177 INFO  [TomcatDeployer] undeploy, ctxPath=/ServiceDirectoryWeb, warUrl=file:/C:/java/jboss-4.0.2/server/default/tmp/deploy/tmp40241ServiceDirectoryWeb.war/
    09:45:32,365 INFO  [TomcatDeployer] deploy, ctxPath=/ServiceDirectoryWeb, warUrl=file:/C:/java/jboss-4.0.2/server/default/tmp/deploy/tmp40242ServiceDirectoryWeb-exp.war/
    

    which would be what I would normally expect?

    When this application is due to go live I would use a JNDI name, and not use the built in connection pool.

    Thanks

    Chris

    #236853

    Greg
    Member

    Are you using packaged or exploded deployment? Does switching to the other method (either Packaged or Exploded) change the behavior?

    #237287

    Chris Parsons
    Participant

    Tried with both – less problems with a packaged WAR, looks like the old WAR is not being deleted, see below…

    16:45:08,641 INFO  [TomcatDeployer] undeploy, ctxPath=/ServiceDirectoryWeb, warUrl=file:/C:/java/jboss-4.0.2/server/default/tmp/deploy/tmp51829ServiceDirectoryWeb-exp.war/
    16:45:09,219 WARN  [DeploymentInfo] Could not delete file:/C:/java/jboss-4.0.2/server/default/tmp/deploy/tmp51829ServiceDirectoryWeb-exp.war/ restart will delete it
    16:45:12,766 INFO  [TomcatDeployer] deploy, ctxPath=/ServiceDirectoryWeb, warUrl=file:/C:/java/jboss-4.0.2/server/default/tmp/deploy/tmp51830ServiceDirectoryWeb-exp.war/

    I can carry on like this for a while but get ‘PermGen’ out of memory errors after a while and have to restart JBoss

    (sorry about the slow response!)

    Cheers

    Chris

    #237512

    Hi,
    I have the same problem each time I try to redeploy a war file (exploded or not) I have to stop jboss and restart it.
    Hope that some body can resolve it.

    Thank you
    Regards
    Rinaldo

    #237535

    Scott Anderson
    Participant

    These sound like memory problem with JBoss itself. To increase the RAM given to the server, you can update the launch
    options on the JBoss > JDK preference page and add the same memory options (-Xms128M -Xmx256M -XX:PermSize=128M)

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: JBoss deployment issue

You must be logged in to post in the forum log in