[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Help on Named Query
Hi, My code are the following @Entity | @Table(name = tblName) | @NamedQueries( { | @NamedQuery(name = TblName.findFilteredDate, query = select * from table ), | @NamedQuery(name = TblName.findStuff, query = select * from tableStuff ) | }) On your code you have: @NamedQuery (name=Groupmember.findGroupsByMemberId, query=SELECT gm FROM Groupmember gm) Try putting @NamedQueries first and then you can use @NamedQuery. refer to my code above View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4038226#4038226 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038226 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Help on Named Query
Hi elsieq, May you please post your code? FYI: On my previous code, it seems that you can only use '%' on strings. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4037822#4037822 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4037822 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Help on Named Query
Hi all, Im having problem upon using LIKE with '%' statements on NamedQuery. anonymous wrote : Ordinary query using LIKE without '%' | | SQL | select o.field1,o.field1 from TblMessages AS o WHERE o.CategoryID = '+CategoryID+' and o.date LIKE '+Date+' ORDER BY o.datReceived DESC ) | | | | Named Query | | | | @NamedQuery(name = TblMessages.findMessage, query = select o.field1,o.field1 + | | from TblMessages AS o WHERE o.CategoryID = :CategoryID and + | | and o.date LIKE :date ORDER BY o.datReceived DESC ) | | | | Query queryTest = em.createNamedQuery(TblMessages.findMessages); | | queryTest.setParameter(CategoryID, CategoryID ); | | queryTest.setParameter(date, date); | | List employees = queryTest.getResultList(); | | return employees; The abovde code would work. But My question now is how to use the '%' on my named query. anonymous wrote : SQL | select o.field1,o.field1 from TblMessages AS o WHERE o.CategoryID = '+CategoryID+' and o.date LIKE '+Date+%' ORDER BY o.datReceived DESC ) | | | | Name Query | @NamedQuery(name = TblMessages.findMessage, query = select o.field1,o.field1 + | | from TblMessages AS o WHERE o.CategoryID = :CategoryID and + | | and o.date LIKE :date ORDER BY o.datReceived DESC ) | | | | Query queryTest = em.createNamedQuery(TblMessages.findMessages); | | queryTest.setParameter(CategoryID, CategoryID ); | | queryTest.setParameter(date, date); | | List employees = queryTest.getResultList(); | | return employees; I have read that you can set the parameter as: queryTest.setParameter(string, C%); this would work on strings.. But what If I use dates or integers... date = 2007/01/02 queryTest.setParameter(date, date+%); Doea anyone there have some suggestions? Thanks in advance. :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4028656#4028656 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4028656 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Need help on converting SQL to EJB QL
Hi all, Im having problems with my EJB QL statements. Im using MySQL as my database.. The SQL statement below works perfectly on MySQL: | select o.dateArrived, o.custName , o.IDCategory | from tblMessages AS o WHERE o.IDCategory = +categoryId+ and DATE_SUB( '+dateReceived+' , INTERVAL 2 DAY ) = o.datArrived ORDER BY o.datArrived DESC When transfered the statements to my facade: | public List getData(String categoryId, String dateReceived){ | | return em.createQuery |(select o.dateArrived, o.custName , o.IDCategory+ |from TblMessages AS o WHERE o.IDCategory = +categoryId+ and + | and DATE_SUB( '+dateReceived+' , INTERVAL 2 DAY ) = o.dateArrived, | ORDER BY o.datReceived DESC).getResultList(); | | } It produce an exception: javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.hql.ast.QuerySyntaxException: unexpected token: 2 Any suggestions? Thanks. :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3997761#3997761 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3997761 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Need help on java.lang.NoSuchMethod exception
Hi all, Im stuck with this for quite a time now. The situation is that im developing an EJB application. I have JBOSS-4.0.4.GA app server in my local machine( Windows 2000 ) and JBOSS-4.0.4.GA in the remote machine (Linux). When I deploy my apps on my local server there is no exception. But when I deploy my ear file on the remote machine an exception occur... The exception probably occur when I added a new method in my facade and facade local (TblMessagesFacade) and deploy it to the remote server. In my local machine there is no exception. The remote server doesnt seem to recognize the new method. The problem was solve by creating a new facade (TblMessageFacade)(TblMessageFacadeLocal) Does anyone have an idea why the exception happen? I erased the tmp file in the remote server. Restart the server.. check up the ear and the modification was there.. But again the server keeps on producing the error. Any ideas? Thankz so mch :) Exception: java.lang.NoSuchMethodError: ph.icomm.ibccrm.entity.TblCSCSubCategoryFacadeLocal.updateUnreadMailLocal(Ljava/lang/Short;Ljava/lang/Short;)V | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3988069#3988069 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3988069 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Need help on java.lang.NoSuchMethod exception
Sorry the exception above is not the right one java.lang.NoSuchMethodError: ph.icomm.ibccrm.entity.TblMessageFacade.getHeaderLocal | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3988071#3988071 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3988071 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - CPU Usage at 100% upon deployment
Hi All, Im developing an EJB3.0 app. I just installed the NetBeans 5.5 with JBOSS bundle release. Im clueless why everytime I deploy my app the CPU usage rose up to 100%,the IDE hangs up,and after deployment it comes back to normal again, this never happened from the Beta2. The max cpu usage was between 70 to 80% for the Beta2. Im using Windows 2000. I just wanna ask if this is a JBOSS issue or Windows issue because some of my freinds using LINUX is ok. Hope for a kind response :) Thankz :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3982803#3982803 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3982803 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Newbie Need Help :)
Hi all, This is just a follow up. My JBOSS app server is working ok now. If anyone there encounters error just like mine specially on port 8083 or 1098, just disable your local firewall first then start JBOSS. After that you can start your firewall again. Just an FYI :) Thankz :) Keith View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3979776#3979776 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3979776 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Help on java.lang.ClassCastException: java.lang.String
Hi Jaikiran, Have tried your advice on: String country = (String) myList.get(i); I have changed my code to: for (int i = 0; i length; i++) { | //TblCountry region = (TblCountry) myList.get(i) ; | String country = (String) myList.get(i); | System.out.println(country); | } But it return an error. The error is: java.lang.ClassCastException: [Ljava.lang.Object; | crm.ui.servlets.CountryBean.processRequest(CountryBean.java:46) | crm.ui.servlets.CountryBean.doGet(CountryBean.java:70) | Thankz in advance :) Keith View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3979309#3979309 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3979309 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Help on java.lang.ClassCastException: java.lang.String
Line 46 is this: String country = (String) myList.get(i); My full code is: protected void processRequest(HttpServletRequest request, HttpServletResponse response) | throws ServletException, IOException { | response.setContentType(text/html;charset=UTF-8); | PrintWriter out = response.getWriter(); | | TblCountryFacadeLocal myCountryBean = lookupTblCountryFacade(); | List myList = myCountryBean.findAllCat(); | int length = myList.size(); | | out.println(html); | out.println(head); | out.println(titleServlet CountryBean/title); | out.println(/head); | out.println(body); | | for (int i = 0; i length; i++) { | //TblCountry region = (TblCountry) myList.get(i) ; | String country = (String) myList.get(i); | System.out.println(country); | } | /*for (Iterator iter = myList.iterator(); iter.hasNext();) { | //String cityName = ( String )new String( iter.next().toString() ); | String cityName = ( String ) new String( iter.next().toString() ); | out.println(p+ cityName +/p); | | }*/ | | | out.println(/body); | out.println(/html); | | out.close(); | } Any suggestions? :) Thankz :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3979313#3979313 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3979313 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Help on javax.persistence.NonUniqueResultException
Hi all, Im developing and EJB 3.0 application with JBOSS 4.0.4.GA and NB 5.5. Im having an error below: 2006-10-18 14:11:08,690 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/CRM-war].[PlaceBean]] Servlet.service() for servlet PlaceBean threw exception | javax.ejb.EJBException: javax.persistence.NonUniqueResultException: org.hibernate.NonUniqueResultException: query did not return a unique result: 161 | at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83) | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62) The entity: @Entity | @Table(name = tblCountry) | public class TblCountry implements Serializable { | | @Id | @Column(name = IDCountry, nullable = false) | private Integer iDCountry; | | @Column(name = strCountry, nullable = false) | private String strCountry; | | @Column(name = strRegion) | private String strRegion; Does anyone has an idea about this error? A link? Hope for a kind reply Thankz :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3978978#3978978 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3978978 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Help on java.lang.ClassCastException: java.lang.String
Hi, Hi all im having an error java.lang.ClassCastException: java.lang.String Does anyone have an idea on this error? My codes are: | TblCountryFacadeLocal myCountryBean = lookupTblCountryFacade(); | List myList = myCountryBean.findAll(); | int length = myList.size(); | | for (int i = 0; i length; i++) { | TblCSCSubCategory region = (TblCSCSubCategory) myList.get(i) ; | System.out.println((i + 1)+. +region.getStrName().toString()); | } And for my Entity code is: public List findAll() { | return em.createQuery(select o.strCountry from TblCountry as o).getResultList(); | } Hope for a kind response. Thankz :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3979249#3979249 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3979249 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Unable to deploy webservice in Jboss using netbeans IDE
Hi, Hello there... are you trying to deploy an EJB3.0 application? If so then download the Beta release of NetBeans.You can choose NetBeans 5.5 Beta 2 with JBOSS bundle.. I think NetBeans 5.0 is not compatible with JBOSS. I maybe wrong. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3978688#3978688 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3978688 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Unable to deploy webservice in Jboss using netbeans IDE
Im sorry, i tought you were trying to deploy an EJB apps. I havn't tried deploying webservice yet on JBOSS. However you can check on this site http://blogs.sun.com/blog/ Maybe that will help you. :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3978691#3978691 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3978691 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Newbie Need Help :)
Hi, Thanks for the reply. :) I have it running now. I reinstalled my JBOSS.. Reset the MySQL Datasources. and there it goes. It's ok for now... maybe patience is all that is needed. Thank you very much jaikiran, genman and among others.. Thankz :) Keith from the Philippines. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3978683#3978683 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3978683 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Newbie Need Help :)
Hi jaikiran. Ports are ok now. Im using my command line to start and stop JBOSS. Since NetBeans 5.5 Beta 2 with JBOSS bundle seems not to shutdown JBOSS properly. Is thi a bug to the NetBeans or in JBOSS side? I just wanna ask. Im running into problems when Im deploying. Im running into this errors: | 2006-10-16 11:26:28,879 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing: | --- MBeans waiting for other MBeans --- | ObjectName: jboss.j2ee:ear=SampleEJB.ear,jar=SampleEJB-ejb.jar,name=DealerBeanFacade,service=EJB3 | State: FAILED | Reason: java.lang.NullPointerException | I Depend On: | persistence.units:ear=SampleEJB.ear,jar=SampleEJB-ejb.jar,unitName=SampleEJB-ejbPU | | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- | ObjectName: jboss.j2ee:ear=SampleEJB.ear,jar=SampleEJB-ejb.jar,name=DealerBeanFacade,service=EJB3 | State: FAILED | Reason: java.lang.NullPointerException | I Depend On: | persistence.units:ear=SampleEJB.ear,jar=SampleEJB-ejb.jar,unitName=SampleEJB-ejbPU jboss.j2ee:ear=SampleEJB.ear,jar=SampleEJB-ejb.jar,name=DealerBeanFacade,service=EJB3 | java.lang.NullPointerException | at org.jboss.ejb3.stateless.StatelessRemoteProxyFactory.getInterfaces(StatelessRemoteProxyFactory.java:62) | at org.jboss.ejb3.stateless.BaseStatelessProxyFactory.init(BaseStatelessProxyFactory.java:53) | at org.jboss.ejb3.stateless.StatelessRemoteProxyFactory.init(StatelessRemoteProxyFactory.java:78) | at org.jboss.ejb3.stateless.BaseStatelessProxyFactory.start(BaseStatelessProxyFactory.java:62) | at org.jboss.ejb3.stateless.StatelessRemoteProxyFactory.start(StatelessRemoteProxyFactory.java:85) | at org.jboss.ejb3.ProxyDeployer.start(ProxyDeployer.java:85) | at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:85) | at org.jboss.ejb3.stateless.StatelessContainer.start(StatelessContainer.java:80) I dont know if this is related in your issue in http://jira.jboss.com/jira/browse/EJBTHREE-664 I hope someone can help.. thankz :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3978430#3978430 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3978430 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Newbie Need Help :)
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 :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3978055#3978055 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3978055 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Newbie Need Help :)
Thankz for the reply. I have change the name from DefaultDS to MySqlDs. I only have one error right now the error is : | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- | ObjectName: jboss.jca:service=DataSourceBinding,name=DefaultDS | State: NOTYETINSTALLED | Depends On Me: | jboss.ejb:service=EJBTimerService,persistencePolicy=database | jboss.mq:service=PersistenceManager What specific XML file should I change the Data Source? Thankz :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3978070#3978070 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3978070 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: Windows 2003 - Ports In Use
Does any one here found the solution yet? Im having same problems too Thankz :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3977426#3977426 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3977426 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Newbie Need Help :)
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 are anonymous wrote : naming-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 :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3977742#3977742 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3977742 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Newbie Need Help :)
Hello, The MySQL DataSources are fine now.. But I have this re occuring error again. anonymous wrote : | Port 8083 already in use | Port 1098 already in use I can solve this by: anonymous wrote : 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 :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3977392#3977392 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3977392 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Problems starting JBoss for a second ou third time
Im running to similar problems also. Im using JBOSS-4.0.4.GA that came up along with NetBeans 5.5 Beta 2 JBOSS Bundle.. Has anyone here overcome this problem? I sometime solve this problem by using the run.bat -b 182.xxx.x.xxx but what about running the JBOSS server in NetBeans? it produce an error, is there a way I can bind the port in NetBeans 5.5 Beta 2 JBOSS Bundle? Its looks like the port is cached somewhere. A firewall maybe.. some suggest to disable the firwall. But it's risky. Hope for a kind reply :) Thankz View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3977401#3977401 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3977401 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss and NetBeans] - Re: Newbie Need Help :)
Thankz for the reply :) I have changed the ports already. When I run the server it went fine. But when I close it and run it for the 2nd time the error will then show up.. Maybe it cached some where? or hidden in the firewall? Hope some one can help me. :) Thankz View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3977406#3977406 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3977406 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Newbie Need Help :)
THANKZ VERY MUCH :) anonymous wrote : 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 connection anonymous wrote : Undo 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-nameMySqlDS/jndi-name tags in mysql-ds.xml to jndi-nameDefaultDS/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 :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3976860#3976860 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3976860 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Newbie Need Help :)
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 :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3976732#3976732 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3976732 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Newbie Need Help :)
Hi there, Im new to JBOSS. Ive been setting up JBOSS for 3 days with mySQL... The JBOSS came from Netbeans 5.5 Beta 2 Bundle with JBOSS-4.0.4.GA I followed the instructions on http://ltiwww.epfl.ch/Eclipse/LoadingJBoss.html. To connect to mySQL . I just successfully run it yesterday. But this morning when I started JBOSS it shows an error: java.lang.exception: Port 8083 is already in use. java.rmi.server.ExportException: Port already in use: 1098; nested exception is: java.net.BindException: Address already in use: JVM Bind When I netstat I cannot see 8083 or 1098 is being used...How can I view the processes that are using this port when I cant see them on Netstat? I found some forums regarding with this error. Some suggest on locating HOME\jboss-4.0.4.GA\server\default\conf\jboss-service.xml and edit the port number there. I've searched the tags anf the RMI tags but I cant find them. I havent change anything since this the deafault file that came with the Bundle. I've added the tags to jboss-service.xml manualy but to no avail.. Is there someone there who experienced this error? A link where could I find solution? Thankz in advance :) ps...im using JBOSS-4.0.4.GA on WindowsNT Server 2000 anonymous wrote : 14:22:04,085 WARN [ServiceController] Problem starting service jboss:service=WebService | java.lang.Exception: Port 8083 already in use. | | Additional erorr | 14:22:06,257 ERROR [MainDeployer] Could not create deployment: file:/D:/jboss-4.0.4.GA/server/default/deploy/jms/mysql-jdbc2-service.xml | org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.mq:service=DestinationManager | | [ServiceController] Problem starting service jboss:service=Naming | java.rmi.server.ExportException: Port already in use: 1098; nested exception is: | java.net.BindException: Address already in use: JVM_Bind View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3976492#3976492 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3976492 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Newbie Need Help :)
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=NameJBoss System Threads/attribute | attribute name=ThreadGroupNameSystem Threads/attribute | !-- How long a thread will live without any tasks in MS -- | attribute name=KeepAliveTime6/attribute | !-- The max number of threads in the pool -- | attribute name=MaximumPoolSize10/attribute | !-- The max number of tasks before the queue is full -- | attribute name=MaximumQueueSize1000/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=BlockingModerun/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=ConfigurationURLresource: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=Log4jQuietModetrue/attribute | !-- How frequently in seconds the ConfigurationURL is checked for changes -- | attribute name=RefreshPeriod60/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=Deployerjboss.deployment:type=DeploymentCache/depends | -- | depends optional-attribute-name=Deployerjboss.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
[jboss-user] [JBoss and NetBeans] - Newbie Need Help :)
Hi there, I posted this from another forum I think im gonna repost it again here sound more inclined with this forum. :) Im new to JBOSS. Ive been setting up JBOSS for 3 days with mySQL... The JBOSS came from Netbeans 5.5 Beta 2 Bundle with JBOSS-4.0.4.GA I followed the instructions on http://ltiwww.epfl.ch/Eclipse/LoadingJBoss.html . To connect to mySQL . I just successfully run it yesterday. But this morning when I started JBOSS it shows an error: java.lang.exception: Port 8083 is already in use. java.rmi.server.ExportException: Port already in use: 1098; nested exception is: java.net.BindException: Address already in use: JVM Bind When I netstat I cannot see 8083 or 1098 is being used...How can I view the processes that are using this port when I cant see them on Netstat? I found some forums regarding with this error. Some suggest on locating HOME\jboss-4.0.4.GA\server\default\conf\jboss-service.xml and edit the port number there. I've searched the tags anf the RMI tags but I cant find them. I havent change anything since this the deafault file that came with the Bundle. I've added the tags to jboss-service.xml manualy but to no avail.. Is there someone there who experienced this error? A link where could I find solution? Thankz in advance :) ps...im using JBOSS-4.0.4.GA on WindowsNT Server 2000 Quote: 14:22:04,085 WARN [ServiceController] Problem starting service jboss:service=WebService java.lang.Exception: Port 8083 already in use. Additional erorr 14:22:06,257 ERROR [MainDeployer] Could not create deployment: file:/D:/jboss-4.0.4.GA/server/default/deploy/jms/mysql-jdbc2-service.xml org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.mq:service=DestinationManager [ServiceController] Problem starting service jboss:service=Naming java.rmi.server.ExportException: Port already in use: 1098; nested exception is: java.net.BindException: Address already in use: JVM_Bind View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3976505#3976505 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3976505 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Newbie Need Help :)
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 :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3976712#3976712 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3976712 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Newbie Need Help :)
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 :) anonymous wrote : 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) anonymous wrote : 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) anonymous wrote : 2006-10-07 09:57:53,210 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: [EMAIL PROTECTED] 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) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3976717#3976717 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3976717 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user