Skip to main content

Posts

Wildfly EJB Remote Client Exceptions.......

Below are exceptions and the solutions I applied while developing a remote client enterprise application. To start with, enable debug for your application server to see the detail and good luck troubleshooting. Exceptions : Starting with  java.lang.ClassNotFoundException: org.hibernate.collection.internal.Persistent......... Solution : I fixed the exception be adding hibernate Entity Manager Dependencies. Exception: Error javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial Solution : Add JBOSS-CLIENT Dependencies to your project Exception : IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling Solution : Confirm that your EJB module have been deployed. Exception : org.jboss.naming.remote.client.initialcontextfactory wildfly     javax.naming.NamingException: WFLYNAM0027: F...

Java EE CDI Annotation Bean name is ambiguous Error

Got this error while deploying one of my applications. After looking around, it appears that the solution to the error I was experiencing was that there was another bean with same identifier. In simple term, verify that you do not have another bean with the same bean identifier/name somewhere in your project. I will suggest that you should change the bean name for a start.

Unable to find the driver com.mysql.jdbc.Driver. Register the driver in the Databases tab

This happened when you tried to create an entity from a database. I am currently using Wildfly 8.1.0, and MySQL 5.1.30 on NetBeans 8.0. To resolve this issue, open the standalone-full.xml of JBOSS. Under the datasources > drivers > driver, make sure the driver name is the same as the datasource > driver. For example, make sure the text highlighted in the following code block is the same: < subsystem xmlns = "urn:jboss:domain:datasources:2.0" > < datasources > < datasource jta = "false" jndi-name = "java:jboss/mysql" pool-name = "mysql" enabled = "true" use-ccm = "false" > < connection-url > jdbc:mysql://localhost:3306/client </ connection-url > < driver-class > com.mysql.jdbc.Driver </ driver-class > < driver > mysql </ driver > </ datasource > < drivers > < dr...

Register MySQL On Wildfly 8(JBOSS SERVER 8)

This is quick trick to register MySQL on Wildfly 8.  Goto  WILDFLY_HOME/modules/system/layers/base/com and create another directories mysql/main Inside the main directory, paste the myql.jar<version>  file inside  and create a "module.xml" file with the follow lines without the code     <?xml version="1.0" encoding="UTF-8"?>         <module xmlns="urn:jboss:module:1.1" name="com.mysql">             <resources>                 <resource-root path="mysql-connector-java-5.1.30-bin.jar"/>             </resources>             <dependencies>                 <module name="javax.api"/>                 <module name="javax.transaction.api"/>           ...

iPhone activation required No Sim Card Installed iPhone 4 after IOS 7 Upgrade Problem Fix

To Bypass the activation required screen after you upgrade to IOS 7.  Note that this process worked for me because I have a SIM card. 1. Power on the iPhone, 2. While the phone is booting and you have the apple logo display,  3. Insert your SIM card. 4. Bypass the wireless connection. 5. Viola. Done. This process works for me. I hope its works for you too. NB: Another way around is to keep clicking try again continuously.