Skip to main content

Posts

ORA-12514: TNS:listener does not currently know of service requested in connect descriptor /ora-12505 tns listener does not currently know of sid

If you intend to connect with service name XE, edit your listener.ora to look include the XE name. Sample below SID_LIST_LISTENER =   (SID_LIST =   (SID_DESC =       (SID_NAME = XE)       (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)     )     (SID_DESC =       (SID_NAME = PLSExtProc)       (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)       (PROGRAM = extproc)     )     (SID_DESC =       (SID_NAME = CLRExtProc)       (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)       (PROGRAM = extproc)     )   ) LISTENER =   (DESCRIPTION_LIST =     (DESCRIPTION =       (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))       (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))     )   ) ...

Not Able to Start OracleXNTNSListener in Windows Environment

To resolve this issue, Goto your oraclexe directory and navigate to network/ADMIN     e.g oraclexe\app\oracle\product\11.2.0\server\network\ADMIN Open ( listener .ora) in notepad and replace the HOST address with your localhost or current-ip e.g LISTENER =   (DESCRIPTION_LIST =     (DESCRIPTION =       (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))       (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))     )   ) DEFAULT_SERVICE_LISTENER = (XE) Open ( tnsnames .ora) with notepad and replace HOST address with your localhost or current-ip address. e.g XE =   (DESCRIPTION =     (ADDRESS = (PROTOCOL = TCP)(HOST =  localhost )(PORT = 1521))     (CONNECT_DATA =       (SERVER = DEDICATED)       (SERVICE_NAME = XE)     )   ) Open your command prompt as adminstrator and run  lsnrctl start NB: Yo...

No EJB found with interface of type with Jboss annotation @Management in JavaEE6

“JBoss-specific @Management is not supported with Java EE6-specified @Singleton,” as quoted here: https://developer.jboss.org/thread/164844 . A workaround will be to annotate with @Singleton and @Startup. Also, you could expose your bean through JMX with the snippet below: MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();          ObjectName name = new ObjectName("com.example:type=Hello");          Hello mbean = new Hello();          mbs.registerMBean(mbean, name); Read More  

Quartz Scheduler ... Caused by: java.lang.IncompatibleClassChangeError: Found interface org.quartz.JobDetail, but class was expected

Remove              <dependency>             <groupId>quartz</groupId>             <artifactId>quartz</artifactId>             <version>1.6.0</version>             <type>jar</type>         </dependency> and replace with                    <dependency>             <groupId>org.quartz-scheduler</groupId>             <artifactId>quartz</artifactId>             <version>2.2.3</version>         </dependency>

Not generating any bean definitions from... because of underlying class loading error: Type .... from Service Module Loader] not found

This error is common with JBoss module dependencies. I fixed this issue by adding jboss-structure.xml to my src project directory and adding the missing module to the dependencies node. An example of the file's content is below: <?xml version="1.0" encoding="UTF-8"?> <jboss-deployment-structure>   <deployment>     <dependencies>         <module name="location.missingdependency.jar" services="export" />     </dependencies>   </deployment> </jboss-deployment-structure> Just to mention that this issue was experienced with the EJB jar. For a normal jar/WAR file, a manifest.ft file will do.