-
1. Re: Newbie Need Help :)
jaikiran Oct 6, 2006 2:31 AM (in response to scout1lacno)Have a look at:
http://wiki.jboss.org/wiki/Wiki.jsp?page=DebugBindException -
2. Re: Newbie Need Help :)
scout1lacno Oct 6, 2006 3:24 AM (in response to scout1lacno)Hi thank for the reply :)
I've downloaded the TcpView already. I've run it but I cant seem to find the 8083 and 1098.. Maybe the port is inside the firewall?
Follow up question. I understand that to change the 8083 and 1098 port you need to go to the HOME:\jboss-4.0.4.GA\server\default\conf\jboss-service.xml(code below) but on my xml file here I cant see them..
Should I again manualy code the port here?
Thanks<?xml version="1.0" encoding="UTF-8"?> <!-- ===================================================================== --> <!-- JBoss Server Configuration --> <!-- ===================================================================== --> <server> <!-- Load all jars from the JBOSS_DIST/server/<config>/lib directory. This can be restricted to specific jars by specifying them in the archives attribute. --> <classpath codebase="${jboss.server.lib.url:lib}" archives="*"/> <!-- A Thread pool service --> <mbean code="org.jboss.util.threadpool.BasicThreadPool" name="jboss.system:service=ThreadPool"> <attribute name="Name">JBoss System Threads</attribute> <attribute name="ThreadGroupName">System Threads</attribute> <!-- How long a thread will live without any tasks in MS --> <attribute name="KeepAliveTime">60000</attribute> <!-- The max number of threads in the pool --> <attribute name="MaximumPoolSize">10</attribute> <!-- The max number of tasks before the queue is full --> <attribute name="MaximumQueueSize">1000</attribute> <!-- The behavior of the pool when a task is added and the queue is full. abort - a RuntimeException is thrown run - the calling thread executes the task wait - the calling thread blocks until the queue has room discard - the task is silently discarded without being run discardOldest - check to see if a task is about to complete and enque the new task if possible, else run the task in the calling thread --> <attribute name="BlockingMode">run</attribute> </mbean> <!-- ==================================================================== --> <!-- Log4j Initialization --> <!-- ==================================================================== --> <mbean code="org.jboss.logging.Log4jService" name="jboss.system:type=Log4jService,service=Logging" xmbean-dd="resource:xmdesc/Log4jService-xmbean.xml"> <attribute name="ConfigurationURL">resource:log4j.xml</attribute> <!-- Set the org.apache.log4j.helpers.LogLog.setQuiteMode. As of log4j1.2.8 this needs to be set to avoid a possible deadlock on exception at the appender level. See bug#696819. --> <attribute name="Log4jQuietMode">true</attribute> <!-- How frequently in seconds the ConfigurationURL is checked for changes --> <attribute name="RefreshPeriod">60</attribute> </mbean> <!-- ==================================================================== --> <!-- Monitoring and Management --> <!-- ==================================================================== --> <!-- Uncomment to enable JMX monitoring of the bean cache <mbean code="org.jboss.monitor.BeanCacheMonitor" name="jboss.monitor:name=BeanCacheMonitor"/> --> <!-- Uncomment to enable JMX monitoring of the entity bean locking <mbean code="org.jboss.monitor.EntityLockMonitor" name="jboss.monitor:name=EntityLockMonitor"/> --> <!-- ==================================================================== --> <!-- Deployment Scanning --> <!-- ==================================================================== --> <!-- An mbean for hot deployment/undeployment of archives. --> <mbean code="org.jboss.deployment.scanner.URLDeploymentScanner" name="jboss.deployment:type=DeploymentScanner,flavor=URL"> <!-- Uncomment (and comment/remove version below) to enable usage of the DeploymentCache <depends optional-attribute-name="Deployer">jboss.deployment:type=DeploymentCache</depends> --> <depends optional-attribute-name="Deployer">jboss.system:service=MainDeployer</depends> <!-- The URLComparator can be used to specify a deployment ordering for deployments found in a scanned directory. The class specified must be an implementation of java.util.Comparator, it must be able to compare two URL objects, and it must have a no-arg constructor. Two deployment comparators are shipped with JBoss: - org.jboss.deployment.DeploymentSorter Sorts by file extension, as follows: "sar", "service.xml", "rar", "jar", "war", "wsr", "ear", "zip", "*" - org.jboss.deployment.scanner.PrefixDeploymentSorter If the name portion of the url begins with 1 or more digits, those digits are converted to an int (ignoring leading zeroes), and files are deployed in that order. Files that do not start with any digits will be deployed first, and they will be sorted by extension as above with DeploymentSorter. --> <attribute name="URLComparator">org.jboss.deployment.DeploymentSorter</attribute> <!-- <attribute name="URLComparator">org.jboss.deployment.scanner.PrefixDeploymentSorter</attribute> --> <!-- The FilterInstance specifies a URLLister.URLFilter for scanned directories. This DeploymentFilter is initialized with the given prefixes, suffixes and matches that define which URLs should be ignored. --> <attribute name="FilterInstance" attributeClass="org.jboss.deployment.scanner.DeploymentFilter" serialDataType="javaBean"> <!-- Files starting with theses strings are ignored --> <property name="prefixes">#,%,\,,.,_$</property> <!-- Files ending with theses strings are ignored --> <property name="suffixes">#,$,%,~,\,v,.BAK,.bak,.old,.orig,.tmp,.rej,.sh</property> <!-- Files matching with theses strings are ignored --> <property name="matches">.make.state,.nse_depinfo,CVS,CVS.admin,RCS,RCSLOG,SCCS,TAGS,core,tags</property> </attribute> <!-- Frequency in milliseconds to rescan the URLs for changes --> <attribute name="ScanPeriod">5000</attribute> <!-- A flag to disable the scans --> <attribute name="ScanEnabled">true</attribute> <!-- URLs are comma separated and resolve relative to the server home URL unless the given path is absolute. If the URL ends in "/" it is considered a collection and scanned, otherwise it is simply deployed; this follows RFC2518 convention and allows discrimination between collections and directories that are simply unpacked archives. URLs may be local (file:) or remote (http:). Scanning is supported for remote URLs but unpacked deployment units are not. Example URLs: deploy/ scans ${jboss.server.url}/deploy/, which is local or remote depending on the URL used to boot the server ${jboss.server.home}/deploy/ scans ${jboss.server.home}/deploy, which is always local file:/var/opt/myapp.ear deploy myapp.ear from a local location file:/var/opt/apps/ scans the specified directory http://www.test.com/netboot/myapp.ear deploys myapp.ear from a remote location http://www.test.com/netboot/apps/ scans the specified WebDAV location --> <attribute name="URLs"> deploy/ </attribute> <!-- Indicates if the scanner should recursively scan directories that contain no "." in their names. This can be used to group applications and services that must be deployed and that have the same logical function in the same directory i.e. deploy/JMX/ deploy/JMS/ ... --> <attribute name="RecursiveSearch">True</attribute> </mbean> </server>
-
3. Re: Newbie Need Help :)
jaikiran Oct 6, 2006 3:53 AM (in response to scout1lacno)Strange since the file that comes by default contains the following(apart from all other things):
<!-- ==================================================================== --> <!-- Class Loading --> <!-- ==================================================================== --> <mbean code="org.jboss.web.WebService" name="jboss:service=WebService"> <attribute name="Port">8083</attribute> <!-- Should non-EJB .class files be downloadable --> <attribute name="DownloadServerClasses">true</attribute> <!-- Should resources other than .class files be downloadable. Both DownloadServerClasses and DownloadResources must be true for resources to be downloadable. This is false by default because its generally a bad idea as server configuration files that container security information can be accessed. --> <attribute name="DownloadResources">false</attribute> <attribute name="Host">${jboss.bind.address}</attribute> <attribute name="BindAddress">${jboss.bind.address}</attribute> <!-- Use the default thread pool for dynamic class loading --> <depends optional-attribute-name="ThreadPool" proxy-type="attribute">jboss.system:service=ThreadPool</depends> </mbean> <!-- ==================================================================== --> <!-- JNDI --> <!-- ==================================================================== --> <mbean code="org.jboss.naming.NamingService" name="jboss:service=Naming" xmbean-dd="resource:xmdesc/NamingService-xmbean.xml"> <!-- The call by value mode. true if all lookups are unmarshalled using the caller's TCL, false if in VM lookups return the value by reference. --> <attribute name="CallByValue">false</attribute> <!-- The listening port for the bootstrap JNP service. Set this to -1 to run the NamingService without the JNP invoker listening port. --> <attribute name="Port">1099</attribute> <!-- The bootstrap JNP server bind address. This also sets the default RMI service bind address. Empty == all addresses --> <attribute name="BindAddress">${jboss.bind.address}</attribute> <!-- The port of the RMI naming service, 0 == anonymous --> <attribute name="RmiPort">1098</attribute> <!-- The RMI service bind address. Empty == all addresses --> <attribute name="RmiBindAddress">${jboss.bind.address}</attribute> <!-- The thread pool service used to control the bootstrap lookups --> <depends optional-attribute-name="LookupPool" proxy-type="attribute">jboss.system:service=ThreadPool</depends> </mbean>
Did you ever change this file? If not, i would suggest you get this file from a fresh installation of the JBoss. -
4. Re: Newbie Need Help :)
scout1lacno Oct 6, 2006 8:53 PM (in response to scout1lacno)
Sorry for the delayed reply. :)
I haven't changed anything on that file.. I tried manually encoding the XML tags on the ports but still the error persist.. Do you have a link on where I could find the the file? like yours?
Thanks :) -
5. Re: Newbie Need Help :)
scout1lacno Oct 6, 2006 10:01 PM (in response to scout1lacno)
My JBOSS just started working... but it shows an erorr
org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.mq:service=DestinationManager
Any idea with this erorr?
Thanks :)org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.mq:service=DestinationManager
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
at org.jboss.system.ServiceController.install(ServiceController.java:226)org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.mq:service=DestinationManager
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)2006-10-07 09:57:53,210 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@bef53c88{ url=file:/D:/jboss-4.0.4.GA/server/default/deploy/jms/mysql-jdbc2-service.xml, deployedLastModified=0 }
org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.mq:service=DestinationManager
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103) -
6. Re: Newbie Need Help :)
scout1lacno Oct 7, 2006 3:34 AM (in response to scout1lacno)
No worry of the previous post I just solved it my self. I just erased the file hsqldb-jdbc2-service.xml.. I dont know why :) maybe it conflicts with mysql-ds.xml i just dont know. :)
Anyway just solve it..however they say that if you solve one problem another problem will arise.. sounds true.. well i have this error below.--MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM -- Object name: jboss.jca:service=DataSourceBinding,name =DefaultDS State: NOTYETINSTALLED Depends on me: jboss.ejb:service=EJBTimerService,persistencePolicy-database jboss.mq:service=StateManager jboss.mq:service=PersistenceManager
Hope some one can help thanks :) -
7. Re: Newbie Need Help :)
jaikiran Oct 8, 2006 5:16 AM (in response to scout1lacno)2006-10-07 09:57:53,210 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@bef53c88{ url=file:/D:/jboss-4.0.4.GA/server/default/deploy/jms/mysql-jdbc2-service.xml, deployedLastModified=0 }
org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.mq:service=DestinationManager
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)
The mysql-jdbc2-service.xml appears to be the culprit. As far as i know, this file does not come by default in the JBoss installation. Did your application put in this file at this location?I just erased the file hsqldb-jdbc2-service.xml..
Undo this. Place the hsqldb-jdbc2-service.xml back into the jms folder.I dont know why :) maybe it conflicts with mysql-ds.xml i just dont know. :)
No. hsqldb-jdbc2-service.xml is conflicting with mysql-jdbc2-service.xml and not mysql-ds.xml.
Solution to these problems would be to reintroduce the hsqldb-jdbc2-service.xml into the jms folder and remove the mysql-jdbc2-service.xml from the jms folder.
By the way, were you trying to use mysql-jdbc2-service.xml for deploying your datasource. If so then you will need to write a file named mysql-ds.xml (or *-ds.xml) and place it in "deploy" folder.
Have a look at:
http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigDataSources
http://wiki.jboss.org/wiki/Wiki.jsp?page=SetUpAMysqlDatasource -
8. Re: Newbie Need Help :)
scout1lacno Oct 8, 2006 8:45 PM (in response to scout1lacno)THANKZ VERY MUCH :)
The mysql-jdbc2-service.xml appears to be the culprit. As far as i know, this file does not come by default in the JBoss installation. Did your application put in this file at this location?
Yes it came with the default installation of JBOSS-4.0.4.GA on NB 5.5 Beta 2 JBOSS Bundle. I deleted "hssqldb-jdbc2-service.xml" so as not to cause conflict with my MySQL connectionUndo this. Place the hsqldb-jdbc2-service.xml back into the jms folder.
I restored the "hsqldb-jdbc2-service.xml" and replace it with "mysql-jdbc2-service.xml". I then restarted the server all is fine except for one error..--MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM -- Object name: jboss.jca:service=DataSourceBinding,name =DefaultDS State: NOTYETINSTALLED Depends on me: jboss.ejb:service=EJBTimerService,persistencePolicy-database jboss.mq:service=StateManager jboss.mq:service=PersistenceManager
Following the instructions on the link you gave me on http://wiki.jboss.org/wiki/Wiki.jsp?page=SetUpAMysqlDatasource
I just changed the "<jndi-name>MySqlDS</jndi-name>" tags in mysql-ds.xml to "<jndi-name>DefaultDS</jndi-name>". I then restarted the server and all if fine.. No Long line of errors..
I thank you for all your help.. :).. I hope peopl with similar problems will find this forum.
THANK YOU SO MUCH FOR THE HELP :) -
9. Re: Newbie Need Help :)
scout1lacno Oct 10, 2006 8:59 PM (in response to scout1lacno)
Hello,
The MySQL DataSources are fine now.. But I have this re occuring error again.
Port 8083 already in use
Port 1098 already in use
I can solve this by:run.bat -b 182.xxx.x.xxx
on the command prompt.
But when I start NB 5.5 Beta 2 JBOSS Bundle it shows the error. Is there anyway where I could bind the IP address or change the port. Again the ports are not not included in my jboss-service.xml.
Thankz :) -
10. Re: Newbie Need Help :)
jaikiran Oct 11, 2006 2:29 AM (in response to scout1lacno)You might have to reserve the ports as mentioned here:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=64248
There are tools like, Fport, which help in identfying which process is using a particular port:
http://www.ibiblio.org/security/articles/fport.html
And there are tools which can then be used to kill that particular process
http://www.sysinternals.com/Utilities/PsKill.html -
11. Re: Newbie Need Help :)
jaikiran Oct 11, 2006 2:32 AM (in response to scout1lacno)Having said all this, i am still not sure why your jboss-service.xml does not have mention of the ports. You mention that you are using JBoss-4.0.4GA. I have downloaded the same version and i can find the port numbers mentioned in that file. Are you sure that you are looking at the correct file and also that you have a proper installation?
-
12. Re: Newbie Need Help :)
scout1lacno Oct 11, 2006 8:59 PM (in response to scout1lacno)
Hi,
Thankz for the reply :)
Have you tried downloading NetBeans 5.5 Beta 2 with JBOSS Bundle?
I have located the files but in different file names on \jboss-4.0.4.GA\server\default\deploy
The files arenaming-service.xml
dynaclassloader-service.xml
invokers-service.xml
I have tried changing the ports. It works for the first run of the server. But when you restart the server is shows an error again.
Like if I change port 8083 to 18083. When I start the server it fine when you restart it shows an error "Port 18083 already in use"
It seems that the port is cached or in the firewall. Some suggest that I should disable the firewall. Does disabling the firewall has security issue? I work in a company and I dont have control over it unless im with the Systems.
Thankz :) -
13. Re: Newbie Need Help :)
jaikiran Oct 12, 2006 2:24 AM (in response to scout1lacno)Have you tried downloading NetBeans 5.5 Beta 2 with JBOSS Bundle?
No. I havent done it.I have tried changing the ports. It works for the first run of the server. But when you restart the server is shows an error again.
How are shutting down the server. Looks like the shutdown is not happening properly resulting in the previous instance of the server holding on to the ports. Do a proper shutdown and once the shutdown is done, use the utility mentioned in the earlier posts to check whether those ports have been released. -
14. Re: Newbie Need Help :)
scout1lacno Oct 12, 2006 11:11 PM (in response to scout1lacno)The ports are ok for now.It seems that NetBeans is not shutting down JBOSS properly.. Im using my command line to start and shutdown JBOSS. I think by doing this, it will shutdown JBOSS properly.
Im ok for the ports for now. But Im having problem an error on my datasources again.
Im having an error below:2006-10-13 10:54:16,047 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing: --- MBeans waiting for other MBeans --- ObjectName: persistence.units:ear=CRMIBCJapan.ear,jar=CRMIBCJapan-ejb.jar,unitName=CRMIBCJapan-ejbPU State: NOTYETINSTALLED I Depend On: jboss.jca:name=MySqlDS,service=ManagedConnectionFactory Depends On Me: jboss.j2ee:ear=CRMIBCJapan.ear,jar=CRMIBCJapan-ejb.jar,name=tblCustomerFacade,service=EJB3 ObjectName: jboss.j2ee:ear=CRMIBCJapan.ear,jar=CRMIBCJapan-ejb.jar,name=tblCustomerFacade,service=EJB3 State: NOTYETINSTALLED I Depend On: persistence.units:ear=CRMIBCJapan.ear,jar=CRMIBCJapan-ejb.jar,unitName=CRMIBCJapan-ejbPU --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- ObjectName: jboss.jca:name=MySqlDS,service=ManagedConnectionFactory State: NOTYETINSTALLED Depends On Me: persistence.units:ear=CRMIBCJapan.ear,jar=CRMIBCJapan-ejb.jar,unitName=CRMIBCJapan-ejbPU
Any ideas with this one? XML files? Im using MySQL as a datasource.
Thankz :)