Discussions
Categories
- 197K All Categories
- 2.5K Data
- 546 Big Data Appliance
- 1.9K Data Science
- 450.8K Databases
- 221.9K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 552 MySQL Community Space
- 479 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.1K ORDS, SODA & JSON in the Database
- 556 SQLcl
- 4K SQL Developer Data Modeler
- 187.2K SQL & PL/SQL
- 21.4K SQL Developer
- 296.4K Development
- 17 Developer Projects
- 139 Programming Languages
- 293.1K Development Tools
- 110 DevOps
- 3.1K QA/Testing
- 646.1K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 161 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.2K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 19 Java Essentials
- 162 Java 8 Questions
- 86K Java Programming
- 81 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 205 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 475 LiveLabs
- 39 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 175 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 233 Portuguese
pl/sql java stored procedure :: package-info.java compiled with error

Hi,
In Oracle Database 12.1, when I compile the below java procedure it failing, When then same java code in compiled in eclipse its successful.
create or replace and compile java source named "packageinfo" as/** * *//** * @author User * */@javax.xml.bind.annotation.XmlSchema(namespace="", xmlns = { @javax.xml.bind.annotation.XmlNS(prefix = "xsi", namespaceURI = "http://www.w3.org/2001/XMLSchema-instance"), @javax.xml.bind.annotation.XmlNs(prefix = "xi", namespaceURI = "http://www.w3.org/2001/XInclude"), @javax.xml.bind.annotation.XmlNs(prefix = "", namespaceURI = "urn:cbm:cbmnet:business:cct010001") })package com.tremp.FIToFICustomerCreditTransfer;
How to make it valid? or What is the correct way to create package-info.java in Oracle Database?
Regards,
Shijesh
Answers
-
MOD: moved from General XML
-
What error?!!!
You miss out the most important information of your question.
-
Hi, In Pl/SQL developer, the error show in "Compiled with Error". I was wondering whether Oracle JVM in Oracle Database supports package-info.java or not. If yes, then how to create the same. Regards, Shijesh
-
Hi, Any help. I create a JAR file using eclipse and this jar has package-info.class file. The purpose of the JAR file is to generate XML using JAXB library. The purpose of package-info.class is to add package level annotation for namespace. When i write a java using the above library in eclipse and execute, i get proper xml with name space eg. When I load this jar file in oracle database using loadjava command, everything is working fine. However, it looks like package-info.class was not called. Hence, it did not print namespace with root node. --> Result in plsql java stored procedure. Is there anyway i can make package-info.class get called, so that namespace tags are properly generated. Thanks, Shijesh