Java Files API

I have a J2EE application that allows a user to upload scanned documents from a web page. I then write them to a blob in an Oracle database. I would like to write them out to files and store the URL in the database.
Is there and API for files for 9.0.4? If so where is the docs and what jar files do I need?
Thanks,
Alan

Thanks Ravikiran for the response,
If I understood correctly , then you mean that
"Oracle files doesnt need any customised installation if the application requires arbitrary users to upload contents from remote locations. i just need a script or an upload program which can give the user an interface to locate the file and click upload."
I shall be configuring Oracle Files in two or three days. Do I need to install the complete Collboration Suite for Oracle files? I dont need any other features as of yet from collaboration suite.
Will a servlet be enough for the uploading of documents?If no, then what can be the best option in Java?
Please do reply for the above queries.
Thanks in advance
Ziby

Similar Messages

  • Can New Java 7 File API Path Objs Be Used For Windows Virtual Folders

    Hello,
    I'm trying to duplicate a JFileChooser's drop-down list containing root directories of the file system. For Windows machines, its combobox lists the roots in a nice tree-like layout. For example:
    + Desktop
      + Computer
        + Local Disk (C:)
        + Data (D:)I cannot find an offical way to do this; I ended up using a class called "ShellFolder" to do it. Based on the "File" objects returned by the "ShellFolder" operation, I wanted to use the "toPath" method of the "java.io.File" object to convert the object to a "java.io.file.Path" object. Unfortunately, when I try to convert it, a java.nio.file.InvalidPathException" occurs.
    Therefore, is there a way to use the the new Path object (provided by Java7's new File NIO APIs) that can map to Windows special virtual folders (like "My Computer" which is mapped to a CLSID like "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}")?
    Note: It looks like NetBeans suffered from the same problem. See their bug report here: [https://netbeans.org/bugzilla/show_bug.cgi?id=214011] .
    Here's some sample code to reproduce the problem:
    static public void main(final String[] asArguments)
         javax.swing.SwingUtilities.invokeLater(new Runnable() {
              @Override
              public void run()
                   java.io.File homeFile = FileSystemView.getFileSystemView().getHomeDirectory();
                   System.out.printf("File obj for home dir = %s\r\n", homeFile.getAbsolutePath());
                   java.nio.file.Path homePath = homeFile.toPath();
                   System.out.printf("Path obj for home dir = %s\r\n", homePath.toString());
                   // get the root directories
                   java.io.File[] rootDirs = (java.io.File[]) sun.awt.shell.ShellFolder.get("fileChooserComboBoxFolders");
                   for (int nIdx = 0; nIdx < rootDirs.length; nIdx++) {
                        java.io.File nextRoot = rootDirs[nIdx];
                        System.out.printf("File obj for next root dir = %s\r\n", nextRoot.getAbsolutePath());
                        // Is this a bug?
                        //          When we encounter a special Windows folder,
                        //          like "My Computer" which has a filename of "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}",
                        //          why do we receive a "java.nio.file.InvalidPathException"?  Should it not resolve the path
                        //          to the virtual Windows folder of "My Computer", just like the java.io.File objects do?
                        //          If not, is there an alternative way to get that information using the new Java 7 File APIs?
                        java.nio.file.Path nextRootPath = nextRoot.toPath();
                        System.out.printf("Path obj for next root dir = %s\r\n", nextRootPath.toString());
                   } // for
              } // run
    } // mainEdited by: RhinoGuy on Aug 10, 2012 11:11 AM

    Hmm don't know about special folders but the File object does have a listRoots() method. Perhaps that only returns mapped drives on Windows though, I remember using it to create my own Eclipse type filechooser which I find a lot more user-friendly than the standard JFileChooser.

  • I want to download  Java Speech API jar file  where can I get that ?

    hi All
    i started development on the Java Speech API. so were i can download the jar file and also if any one having the Maven artifact Id / group Id. please post it.it may helpful for me.
    Thanks
    Jega

    Sun has no such API like Java Speech API in their J2SE but there r other third parties api like FreeTTS which can be used
    to code speech apps.
    http://nchc.dl.sourceforge.net/project/freetts/FreeTTS/FreeTTS%201.2.2/freetts-1.2.2-bin.zip

  • Java File not found exception

    We get the followign when we navigate to the 'Peoplesoft' domain and then
    add a servlet and attempt to "persist".
    everything else seems to work fine.
    By navigating to the peolesoft domain, we open the default server
    and use "edit other domain" to pull up the console. then navigate to portal ->
    edit descriptors.
    OS is an Win2k Server.
    Thanks in advance for any help.
    ---- Error starts below ------
    java.io.FileNotFoundException: f:\bea\weblogic\wlserver6.1\config\peoplesoft\applications
    (Access is denied)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.(FileInputStream.java:64)
         at java.io.FileInputStream.(FileInputStream.java:95)
         at weblogic.utils.jars.RandomAccessJarFile.copyJarToJarDir(RandomAccessJarFile.java:272)
         at weblogic.utils.jars.RandomAccessJarFile.(RandomAccessJarFile.java:144)
         at weblogic.servlet.internal.dd.DescriptorLoader.persist(DescriptorLoader.java:598)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
         at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
         at $Proxy79.persist(Unknown Source)
         at weblogic.management.console.actions.mbean.DoPersistTopLevelDescriptorAction.perform(DoPersistTopLevelDescriptorAction.java:78)
         at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
         at weblogic.management.console.actions.internal.ActionServlet.doGet(ActionServlet.java:91)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    --------------- nested within: ------------------
    weblogic.management.console.actions.ActionException: An error occurred while attempting
    to persist 'WebDescriptor-5' - with nested exception:
    [java.io.FileNotFoundException: f:\bea\weblogic\wlserver6.1\config\peoplesoft\applications
    (Access is denied)]
         at weblogic.management.console.actions.ErrorAction.(ErrorAction.java:68)
         at weblogic.management.console.actions.mbean.DoPersistTopLevelDescriptorAction.perform(DoPersistTopLevelDescriptorAction.java:80)
         at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
         at weblogic.management.console.actions.internal.ActionServlet.doGet(ActionServlet.java:91)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Current Date
    Fri Jun 20 14:16:52 CDT 2003
    Console Release Build
    Console Build
    Server Release Build
    6.1.2.0
    Server Build
    WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
    All Server Product Versions
    WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
    WebLogic XML Module 6.1 SP2 12/18/2001 11:28:02 #154529
    Server System Properties
    awt.toolkit = sun.awt.windows.WToolkit bea.home = F:\bea\weblogic file.encoding
    = Cp1252 file.encoding.pkg = sun.io file.separator = \ java.awt.fonts = java.awt.graphicsenv
    = sun.awt.Win32GraphicsEnvironment java.awt.printerjob = sun.awt.windows.WPrinterJob
    java.class.path = .;.\lib\weblogic_sp.jar;.\lib\weblogic.jar java.class.version
    = 47.0 java.ext.dirs = F:\bea\weblogic\jdk131\jre\lib\ext java.home = F:\bea\weblogic\jdk131\jre
    java.io.tmpdir = C:\DOCUME~1\lackp\LOCALS~1\Temp\ java.library.path = F:\bea\weblogic\jdk131\bin;.;C:\WINNT\System32;C:\WINNT;.\bin;f:\oracle\ora92\bin;C:\Program
    Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
    Files\Dell\OpenManage\Array Manager;C:\Program Files\Dell\OpenManage\oma\bin;C:\Program
    Files\Dell\OpenManage\OMSA\bin;C:\Program Files\Dell\OpenManage\LU\bin;C:\Program
    Files\Dell\OpenManage\RAC\MN;C:\Program Files\Dell\OpenManage\oldiags\bin;C:\PROGRA~1\CA\Common\SCANEN~1;C:\PROGRA~1\CA\eTrust\INOCUL~1;f:\bea\tuxedo\bin
    java.naming.factory.initial = weblogic.jndi.WLInitialContextFactory java.naming.factory.url.pkgs
    = weblogic.jndi.factories java.protocol.handler.pkgs = weblogic.utils|weblogic.utils|weblogic.net|weblogic.management|weblogic.net|weblogic.net
    java.runtime.name = Java(TM) 2 Runtime Environment, Standard Edition java.runtime.version
    = 1.3.1-b24 java.security.policy = =F:\bea\weblogic\wlserver6.1/lib/weblogic.policy
    java.specification.name = Java Platform API Specification java.specification.vendor
    = Sun Microsystems Inc. java.specification.version = 1.3 java.vendor = Sun Microsystems
    Inc. java.vendor.url = http://java.sun.com/ java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi
    java.version = 1.3.1 java.vm.info = mixed mode java.vm.name = Java HotSpot(TM)
    Client VM java.vm.specification.name = Java Virtual Machine Specification java.vm.specification.vendor
    = Sun Microsystems Inc. java.vm.specification.version = 1.0 java.vm.vendor = Sun
    Microsystems Inc. java.vm.version = 1.3.1-b24 javax.rmi.CORBA.PortableRemoteObjectClass
    = weblogic.iiop.PortableRemoteObjectDelegateImpl javax.rmi.CORBA.UtilClass = weblogic.iiop.UtilDelegateImpl
    javax.xml.parsers.DocumentBuilderFactory = weblogic.xml.jaxp.RegistryDocumentBuilderFactory
    javax.xml.parsers.SAXParserFactory = weblogic.xml.jaxp.RegistrySAXParserFactory
    javax.xml.transform.TransformerFactory = weblogic.xml.jaxp.RegistrySAXTransformerFactory
    jmx.implementation.name = JMX RI jmx.implementation.vendor = Sun Microsystems
    jmx.implementation.version = 1.0 jmx.specification.name = Java Management Extensions
    jmx.specification.vendor = Sun Microsystems jmx.specification.version = 1.0 Final
    Release line.separator = org.xml.sax.driver = weblogic.apache.xerces.parsers.SAXParser
    os.arch = x86 os.name = Windows 2000 os.version = 5.0 path.separator = ; sun.boot.class.path
    = F:\bea\weblogic\jdk131\jre\lib\rt.jar;F:\bea\weblogic\jdk131\jre\lib\i18n.jar;F:\bea\weblogic\jdk131\jre\lib\sunrsasign.jar;F:\bea\weblogic\jdk131\jre\classes
    sun.boot.library.path = F:\bea\weblogic\jdk131\jre\bin sun.cpu.endian = little
    sun.cpu.isalist = pentium i486 i386 sun.io.unicode.encoding = UnicodeLittle user.dir
    = F:\bea\weblogic\wlserver6.1 user.home = C:\Documents and Settings\lackp user.language
    = en user.name = lackp user.region = US user.timezone = America/Chicago weblogic.Domain
    = psglisadm weblogic.Name = psglissvr weblogic.ProductionModeEnabled = true weblogic.security.jaas.Configuration
    = weblogic.security.internal.ServerConfig weblogic.security.jaas.Policy = ./lib/Server.policy
    Request Info
    Protocol: HTTP/1.1
    ServerName: 127.0.0.1
    ServerPort: 7500
    Secure: false
    ContextPath: /console
    ServletPath: /common/error.jsp
    QueryString: MBean=psglisadm%3AApplication%3DPORTAL%2CLocation%3Dpsglissvr%2CName%3DWebDescriptor-5%2CType%3DWebDescriptor%2CWebAppComponent%3DPORTAL
    PathInfo: null
    PathTranslated: null
    RequestURI: /console/common/error.jsp
    AuthType: Basic
    ContentType: null
    CharacterEncoding: null
    Locale: en_US
    Method: GET
    Session: weblogic.servlet.internal.session.MemorySessionData@92f6
    RequestedSessionId: 2zcy822KqSaJQpWXGNL1nqUNyhuydJL83nKXQlVvxmElLHcP77pb!157731749!-1620044925!7500!9500!1056136434604
    RequestedSessionIdFromCookie: true
    RequestedSessionIdFromURL: false
    UserPrincipal: system
    RemoteUser: system
    RemoteAddr: 127.0.0.1
    RemoteHost: 127.0.0.1
    Parameters
    MBean = psglisadm:Application=PORTAL,Location=psglissvr,Name=WebDescriptor-5,Type=WebDescriptor,WebAppComponent=PORTAL
    Attributes
    wlinternalaction = weblogic.management.console.actions.internal.InternalActionContext@2229ca
    java.util.Locale = en_US weblogic.auth.status = 0 weblogic.httpd.user = system
    weblogic.management.console.catalog.Catalog = weblogic.management.console.catalog.XmlCatalog@34fa3c
    weblogic.management.console.helpers.BrowserHelper = User-Agent: Mozilla/4.0 (compatible;
    MSIE 6.0; Windows NT 5.0) IE: true Netscape: false Supported: true JavscriptHrefs:
    false TableCellClick: true DocumentReloadedOnResize: false DropdownStretchable:
    true CellSpacingBlank: false EmptyCellBlank: false ImgOnclickSupported: true TableBorderFancy:
    true PartialToWideTables: false DisabledControlSupported: true weblogic.management.console.helpers.DebugHelper
    = weblogic.management.console.helpers.DebugHelper@27a485 weblogic.management.console.helpers.UnitsHelper
    = weblogic.management.console.helpers.UnitsHelper@46fe47 weblogic.management.console.helpers.UrlHelper
    = weblogic.management.console.helpers.UrlHelper@65ce3c
    Headers
    Accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* Accept-Encoding
    = gzip, deflate Accept-Language = en-us Authorization = Basic c3lzdGVtOmdsaXN0ZWFtMDM=
    Connection = Keep-Alive Cookie = JSESSIONID=2zcy822KqSaJQpWXGNL1nqUNyhuydJL83nKXQlVvxmElLHcP77pb!157731749!-1620044925!7500!9500
    Host = 127.0.0.1:7500 Referer = http://127.0.0.1:7500/console/actions/mbean/MBeanDescriptorFramesetAction?isNew=false&sidebarFrameId=wl_console_frame_1056136434809&frameId=wl_console_frame_1056136434850&MBean=peoplesoft%3AApplication%3DPORTAL%2CName%3DPORTAL%2CType%3DWebAppComponent&bodyFrameId=wl_console_frame_1056136434811
    User-Agent = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
    BrowserInfo
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
    IE: true
    Netscape: false
    Supported: true
    JavscriptHrefs: false
    TableCellClick: true
    DocumentReloadedOnResize: false
    DropdownStretchable: true
    CellSpacingBlank: false
    EmptyCellBlank: false
    ImgOnclickSupported: true
    TableBorderFancy: true
    PartialToWideTables: false
    DisabledControlSupported: true

    Editing other domains is a scenario fraught with peril, which is why it was
    deprecated and removed from the console. It looks to me that the error
    message sums up the problem, ther eis no applications directory in the
    peoplesoft domain? Have you tried creating that directory from the file
    system?
    cheers
    mbg
    "Dan" <[email protected]> wrote in message
    news:[email protected]...
    >
    We get the followign when we navigate to the 'Peoplesoft' domain and then
    add a servlet and attempt to "persist".
    everything else seems to work fine.
    By navigating to the peolesoft domain, we open the default server
    and use "edit other domain" to pull up the console. then navigate toportal ->
    edit descriptors.
    OS is an Win2k Server.
    Thanks in advance for any help.
    ---- Error starts below ------
    java.io.FileNotFoundException:f:\bea\weblogic\wlserver6.1\config\peoplesoft\applications
    (Access is denied)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.(FileInputStream.java:64)
    at java.io.FileInputStream.(FileInputStream.java:95)
    atweblogic.utils.jars.RandomAccessJarFile.copyJarToJarDir(RandomAccessJarFile.
    java:272)
    at weblogic.utils.jars.RandomAccessJarFile.(RandomAccessJarFile.java:144)
    atweblogic.servlet.internal.dd.DescriptorLoader.persist(DescriptorLoader.java:
    598)
    at java.lang.reflect.Method.invoke(Native Method)
    atweblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
    .java:636)
    atweblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
    21)
    atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    atcom.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    at $Proxy79.persist(Unknown Source)
    atweblogic.management.console.actions.mbean.DoPersistTopLevelDescriptorAction.
    perform(DoPersistTopLevelDescriptorAction.java:78)
    atweblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:171)
    atweblogic.management.console.actions.internal.ActionServlet.doGet(ActionServl
    et.java:91)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :265)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :200)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:2495)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    --------------- nested within: ------------------
    weblogic.management.console.actions.ActionException: An error occurredwhile attempting
    to persist 'WebDescriptor-5' - with nested exception:
    [java.io.FileNotFoundException:f:\bea\weblogic\wlserver6.1\config\peoplesoft\applications
    (Access is denied)]
    at weblogic.management.console.actions.ErrorAction.(ErrorAction.java:68)
    atweblogic.management.console.actions.mbean.DoPersistTopLevelDescriptorAction.
    perform(DoPersistTopLevelDescriptorAction.java:80)
    atweblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:171)
    atweblogic.management.console.actions.internal.ActionServlet.doGet(ActionServl
    et.java:91)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :265)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :200)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:2495)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Current Date
    Fri Jun 20 14:16:52 CDT 2003
    Console Release Build
    Console Build
    Server Release Build
    6.1.2.0
    Server Build
    WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
    All Server Product Versions
    WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
    WebLogic XML Module 6.1 SP2 12/18/2001 11:28:02 #154529
    Server System Properties
    awt.toolkit = sun.awt.windows.WToolkit bea.home = F:\bea\weblogicfile.encoding
    = Cp1252 file.encoding.pkg = sun.io file.separator = \ java.awt.fonts =java.awt.graphicsenv
    = sun.awt.Win32GraphicsEnvironment java.awt.printerjob =sun.awt.windows.WPrinterJob
    java.class.path = .;.\lib\weblogic_sp.jar;.\lib\weblogic.jarjava.class.version
    = 47.0 java.ext.dirs = F:\bea\weblogic\jdk131\jre\lib\ext java.home =F:\bea\weblogic\jdk131\jre
    java.io.tmpdir = C:\DOCUME~1\lackp\LOCALS~1\Temp\ java.library.path =F:\bea\weblogic\jdk131\bin;.;C:\WINNT\System32;C:\WINNT;.\bin;f:\oracle\ora9
    2\bin;C:\Program
    Files\Oracle\jre\1.3.1\bin;C:\ProgramFiles\Oracle\jre\1.1.8\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
    ;C:\Program
    Files\Dell\OpenManage\Array Manager;C:\ProgramFiles\Dell\OpenManage\oma\bin;C:\Program
    Files\Dell\OpenManage\OMSA\bin;C:\ProgramFiles\Dell\OpenManage\LU\bin;C:\Program
    Files\Dell\OpenManage\RAC\MN;C:\ProgramFiles\Dell\OpenManage\oldiags\bin;C:\PROGRA~1\CA\Common\SCANEN~1;C:\PROGRA~1
    \CA\eTrust\INOCUL~1;f:\bea\tuxedo\bin
    java.naming.factory.initial = weblogic.jndi.WLInitialContextFactoryjava.naming.factory.url.pkgs
    = weblogic.jndi.factories java.protocol.handler.pkgs =weblogic.utils|weblogic.utils|weblogic.net|weblogic.management|weblogic.net|
    weblogic.net
    java.runtime.name = Java(TM) 2 Runtime Environment, Standard Editionjava.runtime.version
    = 1.3.1-b24 java.security.policy ==F:\bea\weblogic\wlserver6.1/lib/weblogic.policy
    java.specification.name = Java Platform API Specificationjava.specification.vendor
    = Sun Microsystems Inc. java.specification.version = 1.3 java.vendor = SunMicrosystems
    Inc. java.vendor.url = http://java.sun.com/ java.vendor.url.bug =
    http://java.sun.com/cgi-bin/bugreport.cgi
    java.version = 1.3.1 java.vm.info = mixed mode java.vm.name = JavaHotSpot(TM)
    Client VM java.vm.specification.name = Java Virtual Machine Specificationjava.vm.specification.vendor
    = Sun Microsystems Inc. java.vm.specification.version = 1.0 java.vm.vendor= Sun
    Microsystems Inc. java.vm.version = 1.3.1-b24javax.rmi.CORBA.PortableRemoteObjectClass
    = weblogic.iiop.PortableRemoteObjectDelegateImpl javax.rmi.CORBA.UtilClass= weblogic.iiop.UtilDelegateImpl
    javax.xml.parsers.DocumentBuilderFactory =weblogic.xml.jaxp.RegistryDocumentBuilderFactory
    javax.xml.parsers.SAXParserFactory =weblogic.xml.jaxp.RegistrySAXParserFactory
    javax.xml.transform.TransformerFactory =weblogic.xml.jaxp.RegistrySAXTransformerFactory
    jmx.implementation.name = JMX RI jmx.implementation.vendor = SunMicrosystems
    jmx.implementation.version = 1.0 jmx.specification.name = Java ManagementExtensions
    jmx.specification.vendor = Sun Microsystems jmx.specification.version =1.0 Final
    Release line.separator = org.xml.sax.driver =weblogic.apache.xerces.parsers.SAXParser
    os.arch = x86 os.name = Windows 2000 os.version = 5.0 path.separator = ;sun.boot.class.path
    =F:\bea\weblogic\jdk131\jre\lib\rt.jar;F:\bea\weblogic\jdk131\jre\lib\i18n.ja
    r;F:\bea\weblogic\jdk131\jre\lib\sunrsasign.jar;F:\bea\weblogic\jdk131\jre\c
    lasses
    sun.boot.library.path = F:\bea\weblogic\jdk131\jre\bin sun.cpu.endian =little
    sun.cpu.isalist = pentium i486 i386 sun.io.unicode.encoding =UnicodeLittle user.dir
    = F:\bea\weblogic\wlserver6.1 user.home = C:\Documents and Settings\lackpuser.language
    = en user.name = lackp user.region = US user.timezone = America/Chicagoweblogic.Domain
    = psglisadm weblogic.Name = psglissvr weblogic.ProductionModeEnabled =true weblogic.security.jaas.Configuration
    = weblogic.security.internal.ServerConfig weblogic.security.jaas.Policy =./lib/Server.policy
    >
    >
    Request Info
    Protocol: HTTP/1.1
    ServerName: 127.0.0.1
    ServerPort: 7500
    Secure: false
    ContextPath: /console
    ServletPath: /common/error.jsp
    QueryString:MBean=psglisadm%3AApplication%3DPORTAL%2CLocation%3Dpsglissvr%2CName%3DWebDe
    scriptor-5%2CType%3DWebDescriptor%2CWebAppComponent%3DPORTAL
    PathInfo: null
    PathTranslated: null
    RequestURI: /console/common/error.jsp
    AuthType: Basic
    ContentType: null
    CharacterEncoding: null
    Locale: en_US
    Method: GET
    Session:weblogic.servlet.internal.session.MemorySessionData@92f6
    RequestedSessionId:2zcy822KqSaJQpWXGNL1nqUNyhuydJL83nKXQlVvxmElLHcP77pb!157731749!-1620044925!7
    500!9500!1056136434604
    RequestedSessionIdFromCookie: true
    RequestedSessionIdFromURL: false
    UserPrincipal: system
    RemoteUser: system
    RemoteAddr: 127.0.0.1
    RemoteHost: 127.0.0.1
    Parameters
    MBean =psglisadm:Application=PORTAL,Location=psglissvr,Name=WebDescriptor-5,Type=We
    bDescriptor,WebAppComponent=PORTAL
    >
    Attributes
    wlinternalaction =weblogic.management.console.actions.internal.InternalActionContext@2229ca
    java.util.Locale = en_US weblogic.auth.status = 0 weblogic.httpd.user =system
    weblogic.management.console.catalog.Catalog =weblogic.management.console.catalog.XmlCatalog@34fa3c
    weblogic.management.console.helpers.BrowserHelper = User-Agent:Mozilla/4.0 (compatible;
    MSIE 6.0; Windows NT 5.0) IE: true Netscape: false Supported: trueJavscriptHrefs:
    false TableCellClick: true DocumentReloadedOnResize: falseDropdownStretchable:
    true CellSpacingBlank: false EmptyCellBlank: false ImgOnclickSupported:true TableBorderFancy:
    true PartialToWideTables: false DisabledControlSupported: trueweblogic.management.console.helpers.DebugHelper
    = [email protected]nagement.console.helpers.UnitsHelper
    = [email protected]nagement.console.helpers.UrlHelper
    = weblogic.management.console.helpers.UrlHelper@65ce3c
    Headers
    Accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*Accept-Encoding
    = gzip, deflate Accept-Language = en-us Authorization = Basicc3lzdGVtOmdsaXN0ZWFtMDM=
    Connection = Keep-Alive Cookie =JSESSIONID=2zcy822KqSaJQpWXGNL1nqUNyhuydJL83nKXQlVvxmElLHcP77pb!157731749!-1
    620044925!7500!9500
    Host = 127.0.0.1:7500 Referer =http://127.0.0.1:7500/console/actions/mbean/MBeanDescriptorFramesetAction?isNew=false&sidebarFrameId=wl_console_frame_1056136434809&frameId=wl_console_frame_1056136434850&MBean=peoplesoft%3AApplication%3DPORTAL%2CName%3DPORTAL%2CType%3DWebAppComponent&bodyFrameId=wl_console_frame_1056136434811
    User-Agent = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
    BrowserInfo
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT5.0)
    IE: true
    Netscape: false
    Supported: true
    JavscriptHrefs: false
    TableCellClick: true
    DocumentReloadedOnResize: false
    DropdownStretchable: true
    CellSpacingBlank: false
    EmptyCellBlank: false
    ImgOnclickSupported: true
    TableBorderFancy: true
    PartialToWideTables: false
    DisabledControlSupported: true

  • Getting an error while accecing resource bundle from java file......

    I want to access the properties file to my java file ..
    My resource file named as "application" is in the resources package...
    and I am using following code to load the resource file into my java file...
    java.util.ResourceBundle rb = java.util.ResourceBundle.getBundle("resources.application",new Locale("en","US"));
    String message = rb.getString("welcome.heading");
    But getting following error....
    Exception in thread "main" java.util.MissingResourceException: Can't find bundle for base name resources.application, locale en_US
    at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521)
    at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260)
    at java.util.ResourceBundle.getBundle(ResourceBundle.java:787)
    at javaapplication1.c.<init>(Main.java:26)
    at javaapplication1.Main.main(Main.java:47)
    Java Result: 1
    can anyone tell me whats the problem and why am i facing this error

    Hi Again,
    Now with a different problem.
    I have removed configuration and imported the configuration again. But now it is not recognizing API ( created by me with all common classes as java project).
    Structre of the application is as follows
    Cedapp -  ear file
    Cedejb   - ejb module
    Cedweb – web module
    Cedapi  - java project with common classes used in both ejb module and  web module and published as library. This refered in both the ejbmodule and web module.
    The problem now I am facing is that cedapi is not getting recognized by ejb module or web module. But it is available in used dcs of each.

  • Error while compiling QuoteRenderer.java file

    Currently I am working on Quotes customizations. As part of customizations, I need to modify the seeded java file (i.e., $JAVA_TOP/oracle/apps/qot/util/QuoteRenderer.java)
    Since i have only class files, I have decompiled the class file using JAD and modified the code and placed in the same path and tried to compile. Then I am getting the below errors: [I am getting the same errors even if i placed the decompiled file without any modifications]. Can you help in resolving this issue.
    Errors:
    oracle/apps/qot/util/QuoteRenderer.java:16: package javax.servlet.jsp does not exist
    import javax.servlet.jsp.JspWriter;
    ^
    oracle/apps/qot/util/QuoteRenderer.java:17: package javax.servlet.jsp does not exist
    import javax.servlet.jsp.PageContext;
    ^
    oracle/apps/qot/util/QuoteRenderer.java:127: cannot find symbol
    symbol : class PageContext
    location: class oracle.apps.qot.util.QuoteRenderer
    public static void loadQuoteLines(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, PageContext pagecontext, int i)
    ^
    oracle/apps/qot/util/QuoteRenderer.java:664: cannot find symbol
    symbol : class PageContext
    location: class oracle.apps.qot.util.QuoteRenderer
    public static void loadQuoteLines(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, PageContext pagecontext, String s, String s1)
    ^
    oracle/apps/qot/util/QuoteRenderer.java:775: cannot find symbol
    symbol : class PageContext
    location: class oracle.apps.qot.util.QuoteRenderer
    public static void loadQuoteLines(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, PageContext pagecontext, String s)
    ^
    oracle/apps/qot/util/QuoteRenderer.java:838: cannot find symbol
    symbol : class PageContext
    location: class oracle.apps.qot.util.QuoteRenderer
    private static void partialLoadQuoteLines(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, PageContext pagecontext, int i)
    ^
    oracle/apps/qot/util/QuoteRenderer.java:916: cannot find symbol
    symbol : class PageContext
    location: class oracle.apps.qot.util.QuoteRenderer
    public static void loadExpandList(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, PageContext pagecontext)
    ^
    oracle/apps/qot/util/QuoteRenderer.java:975: cannot find symbol
    symbol : class PageContext
    location: class oracle.apps.qot.util.QuoteRenderer
    public static void renderQuoteLines(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, PageContext pagecontext, String s, String s1)
    ^
    oracle/apps/qot/util/QuoteRenderer.java:1652: cannot find symbol
    symbol : class PageContext
    location: class oracle.apps.qot.util.QuoteRenderer
    public static void renderQuoteLineSmry(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse, PageContext pagecontext, String s)
    ^
    oracle/apps/qot/util/QuoteRenderer.java:386: reference to QuoteException is ambiguous, both method QuoteException(java.lang.String,java.lang.Object[]) in oracle.apps.qot.core.QuoteException and method QuoteException(java.lang.String,java.lang.String) in oracle.apps.qot.core.QuoteException match
    throw new QuoteException(s2, null);
    ^
    oracle/apps/qot/util/QuoteRenderer.java:982: cannot find symbol
    symbol : class JspWriter
    location: class oracle.apps.qot.util.QuoteRenderer
    JspWriter jspwriter = pagecontext.getOut();
    ^
    oracle/apps/qot/util/QuoteRenderer.java:1659: cannot find symbol
    symbol : class JspWriter
    location: class oracle.apps.qot.util.QuoteRenderer
    JspWriter jspwriter = pagecontext.getOut();
    ^
    Note: oracle/apps/qot/util/QuoteRenderer.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.

    Hi,
    You need to add librabry for j2ee-1.4.jar in your classpath this can be found under JSP Runtime library in your jdevhome\jdevbin folder.
    ~Ankul

  • Java Persistence API and creation of databases

    Hi All
    I have designed a small address book application which uses a database to store the information. I have used the new Java Persistence API to take care of my transactions and querrys with the database. This works great for one set database which is generated the first time the application runs and is used all the time.
    However I would like to make it so that the user can create a new address book (database) with a different name, I am not sure how I would do this using the Java Persistence API. I know the persistence.xml file must be placed in the META-INF directory of the source, so how would I be able manipulate the file or could I place the file somewhere else.
    David

    I am using the Derby database. I can create a database by passing the create command when I create the entity Manager like so:
    Connection c = DriverManager.getConnection("jdbc:derby:AddressBook;create=true", "app", "app");My problem is that as I understand it the persistence.xml file must know the name of the database. Unless there is another way of setting this. The line in the persistence file I am referring to is:
    <property name="toplink.jdbc.url" value="jdbc:derby:AddressBook"/>I wonder if I can progamatically set this value so that I have a default database in the persistence.xml and others can then create there own.
    David

  • How to use standard Java file in custom module

    Hi All,        
    I want to use some CatalogItemImpl.java file in my custom DC but i was unable to find any entry in the standard component in businessobject.xml file as <businessObject name="XYZ" className="x"/>. Can anyone let me know how can we use the file file in my custom DC.
    Please provide your inputs......
    Regards,
    Rahul.

    Hi Rahul,
    You will not find the "CatalogItemImpl" in the 'businessobject.xml'. The 'businessobject.xml' is there to define session based API of modules. Those API have properties and web channel builder values injected when the user start a web session.
    For the "CatalogItem", you will have to use the Generic Factory concept. The Generic Factory is used to allocate instance given a configuration. If no configuration exists, the default implementation is used. By adding an entry in the Generic Factory you can choose to allocate your class instead of the default class.
    Within the catalog module, the alias to use for classes extending "CatalogItemImpl" is "com.sap.wec.app.common.module.catalog.businessobject.ext.interf.CatalogItemExtInterf".
    Please refer to the extension guide on how to manage the Generic Factory configuration file.
    Regards,
    Robin

  • Java Mapping - Not able to compile .Java file

    Hi Experts,
    I am working with a sample scenario which involves Java Mapping. For this I created MappingClass.java file, After compiling the .Java file .Jar file would be used for Java Mapping by using Imported Archives.
    After compiling the MappingClass.java file, I am getting the errors as below.
    --> Java errors after compilation
    C:\j2sdk1.4.2_13\bin>javac MappingClass.java
    MappingClass.java:4: package com.sap.aii.mapping.api does not exist
    import com.sap.aii.mapping.api.AbstractTrace;
                                   ^
    MappingClass.java:5: package com.sap.aii.mapping.api does not exist
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    --> End of java errors
    In the MappingClass.java file, I had given followed imports.
    import java.util.*;
    import com.sap.aii.mapping.api.AbstractTrace;
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    Could some one please guide me to resolve this issue.
    Thanks in advance.
    ..Sree

    Hi
    I had copied " aii_map_api.jar " file in my Java Class path folder.. i.e " C:\j2sdk1.4.2_08\bin "     AND    " C:\j2sdk1.4.2_08\lib " folders too.. and even in C:\ i.e Root Drive also.
    After trying to Compile my java file (ex : MappingClass.java), still I am getting the errors.
    Errors shown as below.
    --> Errors
    C:\mytest>javac MappingClass.java
    MappingClass.java:2: package com.sap.aii.mapping.api does not exist
    import com.sap.aii.mapping.api.AbstractTrace;
                                   ^
    MappingClass.java:3: package com.sap.aii.mapping.api does not exist
    import com.sap.aii.mapping.api.StreamTransformationConstants;
                                   ^
    MappingClass.java:6: cannot resolve symbol
    symbol  : class AbstractTrace
    location: class MappingClass
        private static AbstractTrace trace = null;
                       ^
    MappingClass.java:12: cannot resolve symbol
    symbol  : class AbstractTrace
    location: class MappingClass
            trace = (AbstractTrace)inputparam.get(
                     ^
    MappingClass.java:13: cannot resolve symbol
    symbol  : variable StreamTransformationConstants
    location: class MappingClass
                       StreamTransformationConstants.MAPPING_TRACE );
                       ^
    5 errors
    --> End of Errors
    Could some one please guide me to resolve this issue.
    Thanks in advance.
    ..Sree

  • OIC: Need to find the Source Code for the YTDSummary.java file

    Hi All,
    We have 11.5.10 implemention and we are using the OIC(Incentive Compensation) Application. In the Report Module for the Year-To-Date Summary we need look for the Java Source Code.The cnytdsum.jsp file call the YTDSummary.java file. We have teh following question
    1. How we can get the Java Source Code and where and which directory we need to look into?
    2. Let say if we need to customize the java file how we can do that?
    3. where and which directory we have to complie the java file?
    Highly appreciate for any pointers
    Thanks,
    Johnson.

    But those must be platform dependant, not really that
    interesting to look at. I have never felt any need to
    look at those at least.Wake up and smell the coffee, abbie! I read the source code all the time and constantly tell my students to do that, too.
    1. Java source code is not platform dependent. The original poster wanted to look at linked list code, how could that be platform dependent?
    2. It is the implementation of the SDK APIs, so by definition it is implementation dependent code, liable to change in a later version. So don't assume anything beyond what is claimed in the API documentation. However, sometimes the documentation is incomplete or ambiguous to you, and reading the source can provide some insight, however implementation dependent. (Light a candle or curse the darkness.)
    3. Why read source code? It's a good way to learn how to program. You see something in the API and ask: how'd they do that? Or you realize you want to do something broadly similar, but you can't reuse the source code.
    For example, Images are not Serializable, but suppose you want a small image that is part of an object to be serialized with the rest of the object without too much fuss (ie, without using javax.imageio). You notice ImageIcon is serializable, so you use it. (An ImageIcon has-an Image.) Then you wonder: how'd they do that? You read the source and then you know.
    You live, you learn,
    Nax

  • Unable to compile the JAXB generated java files

    Hi
    I am using JAXB 2.0 API for binding process.
    I have products.xml file as
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE PRODUCTDATA SYSTEM "products.dtd">
    <PRODUCTDATA>
    <PRODUCT PRODID="P001" CATEGORY="Books">
    <PRODUCTNAME>Gone with the wind</PRODUCTNAME>
    <DESCRIPTION>This is abt American Civil War</DESCRIPTION>
    <PRICE>25.00</PRICE>
    <QUANTITY>3</QUANTITY>
    </PRODUCT>
    </PRODUCTDATA>
    and products.xsd(Schema file) as
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="PRODUCTDATA" type="prdt"/>
    <xsd:complexType name="prdt">
    <xsd:sequence>
    <xsd:element name="PRODUCT" type="prd" maxOccurs="unbounded" />
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="prd">
    <xsd:sequence>
    <xsd:element name="PRODUCTNAME" type="xsd:string"/>
    <xsd:element name="DESCRIPTION" type="xsd:string"/>
    <xsd:element name="PRICE" type="xsd:positiveInteger"/>
    <xsd:element name="QUANTITY" type="xsd:nonNegativeInteger"/>
    </xsd:sequence>
    <xsd:attribute name="PRODID" type="pid" use="required"/>
    <xsd:attribute name="CATEGORY" type="xsd:string" use="optional"/>
    </xsd:complexType>
    <xsd:simpleType name="pid">
    <xsd:restriction base="xsd:string">
    <xsd:pattern value="[p]{1}/d{3}"/>
    <xsd:length value="4"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:schema>
    I am converting these schema file to java files by using binding compiler xjc.
    So that three java files are genearated automatically.
    1) ObjectFactory.java
    // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6
    // See http://java.sun.com/xml/jaxb
    // Any modifications to this file will be lost upon recompilation of the source schema.
    // Generated on: 2008.06.23 at 04:09:25 PM IST
    package testing.jaxb;
    import javax.xml.bind.JAXBElement;
    import javax.xml.bind.annotation.XmlElementDecl;
    import javax.xml.bind.annotation.XmlRegistry;
    import javax.xml.namespace.QName;
    * This object contains factory methods for each
    * Java content interface and Java element interface
    * generated in the testing.jaxb package.
    * <p>An ObjectFactory allows you to programatically
    * construct new instances of the Java representation
    * for XML content. The Java representation of XML
    * content can consist of schema derived interfaces
    * and classes representing the binding of schema
    * type definitions, element declarations and model
    * groups. Factory methods for each of these are
    * provided in this class.
    @XmlRegistry
    public class ObjectFactory {
    private final static QName PRODUCTDATAQNAME = new QName("", "PRODUCTDATA");
    * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: testing.jaxb
    public ObjectFactory() {
    * Create an instance of {@link Prd }
    public Prd createPrd() {
    return new Prd();
    * Create an instance of {@link Prdt }
    public Prdt createPrdt() {
    return new Prdt();
    * Create an instance of {@link JAXBElement }{@code <}{@link Prdt }{@code >}}
    @XmlElementDecl(namespace = "", name = "PRODUCTDATA")
    public JAXBElement<Prdt> createPRODUCTDATA(Prdt value) {
    return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value);
    2)Prdt.java
    // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6
    // See http://java.sun.com/xml/jaxb
    // Any modifications to this file will be lost upon recompilation of the source schema.
    // Generated on: 2008.06.23 at 04:09:25 PM IST
    package testing.jaxb;
    import java.util.ArrayList;
    import java.util.List;
    import javax.xml.bind.annotation.XmlAccessType;
    import javax.xml.bind.annotation.XmlAccessorType;
    import javax.xml.bind.annotation.XmlElement;
    import javax.xml.bind.annotation.XmlType;
    * <p>Java class for prdt complex type.
    * <p>The following schema fragment specifies the expected content contained within this class.
    * <pre>
    * <complexType name="prdt">
    * <complexContent>
    * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
    * <sequence>
    * <element name="PRODUCT" type="{}prd" maxOccurs="unbounded"/>
    * </sequence>
    * </restriction>
    * </complexContent>
    * </complexType>
    * </pre>
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "prdt", propOrder = {
    "product"
    public class Prdt {
    @XmlElement(name = "PRODUCT", required = true)
    protected List<Prd> product;
    * Gets the value of the product property.
    * <p>
    * This accessor method returns a reference to the live list,
    * not a snapshot. Therefore any modification you make to the
    * returned list will be present inside the JAXB object.
    * This is why there is not a <CODE>set</CODE> method for the product property.
    * <p>
    * For example, to add a new item, do as follows:
    * <pre>
    * getPRODUCT().add(newItem);
    * </pre>
    * <p>
    * Objects of the following type(s) are allowed in the list
    * {@link Prd }
    public List<Prd> getPRODUCT() {
    if (product == null) {
    product = new ArrayList<Prd>();
    return this.product;
    3) Prd.java
    // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6
    // See http://java.sun.com/xml/jaxb
    // Any modifications to this file will be lost upon recompilation of the source schema.
    // Generated on: 2008.06.23 at 04:09:25 PM IST
    package testing.jaxb;
    import java.math.BigInteger;
    import javax.xml.bind.annotation.XmlAccessType;
    import javax.xml.bind.annotation.XmlAccessorType;
    import javax.xml.bind.annotation.XmlAttribute;
    import javax.xml.bind.annotation.XmlElement;
    import javax.xml.bind.annotation.XmlType;
    * <p>Java class for prd complex type.
    * <p>The following schema fragment specifies the expected content contained within this class.
    * <pre>
    * <complexType name="prd">
    * <complexContent>
    * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
    * <sequence>
    * <element name="PRODUCTNAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
    * <element name="DESCRIPTION" type="{http://www.w3.org/2001/XMLSchema}string"/>
    * <element name="PRICE" type="{http://www.w3.org/2001/XMLSchema}positiveInteger"/>
    * <element name="QUANTITY" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger"/>
    * </sequence>
    * <attribute name="CATEGORY" type="{http://www.w3.org/2001/XMLSchema}string" />
    * <attribute name="PRODID" use="required" type="{}pid" />
    * </restriction>
    * </complexContent>
    * </complexType>
    * </pre>
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "prd", propOrder = {
    "productname",
    "description",
    "price",
    "quantity"
    public class Prd {
    @XmlElement(name = "PRODUCTNAME", required = true)
    protected String productname;
    @XmlElement(name = "DESCRIPTION", required = true)
    protected String description;
    @XmlElement(name = "PRICE", required = true)
    protected BigInteger price;
    @XmlElement(name = "QUANTITY", required = true)
    protected BigInteger quantity;
    @XmlAttribute(name = "CATEGORY")
    protected String category;
    @XmlAttribute(name = "PRODID", required = true)
    protected String prodid;
    * Gets the value of the productname property.
    * @return
    * possible object is
    * {@link String }
    public String getPRODUCTNAME() {
    return productname;
    * Sets the value of the productname property.
    * @param value
    * allowed object is
    * {@link String }
    public void setPRODUCTNAME(String value) {
    this.productname = value;
    * Gets the value of the description property.
    * @return
    * possible object is
    * {@link String }
    public String getDESCRIPTION() {
    return description;
    * Sets the value of the description property.
    * @param value
    * allowed object is
    * {@link String }
    public void setDESCRIPTION(String value) {
    this.description = value;
    * Gets the value of the price property.
    * @return
    * possible object is
    * {@link BigInteger }
    public BigInteger getPRICE() {
    return price;
    * Sets the value of the price property.
    * @param value
    * allowed object is
    * {@link BigInteger }
    public void setPRICE(BigInteger value) {
    this.price = value;
    * Gets the value of the quantity property.
    * @return
    * possible object is
    * {@link BigInteger }
    public BigInteger getQUANTITY() {
    return quantity;
    * Sets the value of the quantity property.
    * @param value
    * allowed object is
    * {@link BigInteger }
    public void setQUANTITY(BigInteger value) {
    this.quantity = value;
    * Gets the value of the category property.
    * @return
    * possible object is
    * {@link String }
    public String getCATEGORY() {
    return category;
    * Sets the value of the category property.
    * @param value
    * allowed object is
    * {@link String }
    public void setCATEGORY(String value) {
    this.category = value;
    * Gets the value of the prodid property.
    * @return
    * possible object is
    * {@link String }
    public String getPRODID() {
    return prodid;
    * Sets the value of the prodid property.
    * @param value
    * allowed object is
    * {@link String }
    public void setPRODID(String value) {
    this.prodid = value;
    Next step is to compile these three files
    So I am compiling these three files it gives me compiler error as:
    testing/jaxb/ObjectFactory.java:31: illegal character: \64
    @XmlRegistry
    ^
    testing/jaxb/ObjectFactory.java:63: illegal character: \64
    @XmlElementDecl(namespace = "", name = "PRODUCTDATA")
    ^
    testing/jaxb/ObjectFactory.java:65: <identifier> expected
    return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value
    ^
    testing/jaxb/ObjectFactory.java:65: <identifier> expected
    return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value
    ^
    testing/jaxb/ObjectFactory.java:65: '{' expected
    return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value
    ^
    testing/jaxb/Prdt.java:38: illegal character: \64
    @XmlAccessorType(XmlAccessType.FIELD)
    ^
    testing/jaxb/Prdt.java:39: illegal character: \64
    @XmlType(name = "prdt", propOrder = {
    ^
    testing/jaxb/Prdt.java:44: illegal character: \64
    @XmlElement(name = "PRODUCT", required = true)
    ^
    testing/jaxb/Prdt.java:45: <identifier> expected
    protected List<Prd> product;
    ^
    testing/jaxb/Prdt.java:69: <identifier> expected
    public List<Prd> getPRODUCT() {
    ^
    testing/jaxb/Prdt.java:75: ';' expected
    ^
    testing/jaxb/Prd.java:43: illegal character: \64
    @XmlAccessorType(XmlAccessType.FIELD)
    ^
    testing/jaxb/Prd.java:44: illegal character: \64
    @XmlType(name = "prd", propOrder = {
    ^
    testing/jaxb/Prd.java:52: illegal character: \64
    @XmlElement(name = "PRODUCTNAME", required = true)
    ^
    testing/jaxb/Prd.java:53: <identifier> expected
    protected String productname;
    ^
    testing/jaxb/Prd.java:54: illegal character: \64
    @XmlElement(name = "DESCRIPTION", required = true)
    ^
    testing/jaxb/Prd.java:55: <identifier> expected
    protected String description;
    ^
    testing/jaxb/Prd.java:56: illegal character: \64
    @XmlElement(name = "PRICE", required = true)
    ^
    testing/jaxb/Prd.java:57: <identifier> expected
    protected BigInteger price;
    ^
    testing/jaxb/Prd.java:58: illegal character: \64
    @XmlElement(name = "QUANTITY", required = true)
    ^
    testing/jaxb/Prd.java:59: <identifier> expected
    protected BigInteger quantity;
    ^
    testing/jaxb/Prd.java:60: illegal character: \64
    @XmlAttribute(name = "CATEGORY")
    ^
    testing/jaxb/Prd.java:61: <identifier> expected
    protected String category;
    ^
    testing/jaxb/Prd.java:62: illegal character: \64
    @XmlAttribute(name = "PRODID", required = true)
    ^
    testing/jaxb/Prd.java:63: <identifier> expected
    protected String prodid;
    ^
    25 errors
    I want all three files to compiled successfully.If it is compiled only then I will continue on Unmarshalling process

    I suspect you are trying to compile the files one by one. You may also be trying to compile them disregarding the package structure.
    From your post, I gather these files are in the package: com.geindustrial.sqms
    Therefore, if they are not so already, put them under a directory structure:
    com/geindustrial/sqms
    and then compile with:
    javac com/geindustrial/sqms/AddCtq.java com/geindustrial/sqms/Ctq.java com/geindustrial/sqms/VariableData.java
    (The above is all on one line.)
    HTH,
    Manuel Amago.

  • Read Attachments using Java Mapping API

    Hello,
    after investigating the Java Mapping API a little deeper I found some very interesting Interfaces "InputAttachments" and "Attachments" which could do exactly what is required:
    Reading attachments and convert them into base64 code.
    As I am not an experienced Java Programmer howeve, I am note sure how to use those interfaces.
    For example there is a method defined in interface "InputAttachments":
    Attachment getAttachment(String contentID)
    How do I use it? If I use it in a way like "InputAttachments.getAttachment("abc");" then I get the error that it is not a static method. However how do I instantiate "InputAttachments".? As it is an interface I am not sure how to do this.
    Any idea how to handle these methods?

    Hi,
    I am working on the similar. I am able to attach txt files and csv files but have trouble attaching xcel and pdf's. Any input is appreciated. Thanks

  • How to create a .java file through a j2me program?

    I am trying to develop a small application in j2me which needs dynamic creation of a .class file. For this purpose I tried to create .java file through my j2me code, but i could not do that..I want to know whether a java file can be created on a mobile phone or not..
    I would be grateful to you on your help in this regard..

    ...develop a program xyz.java using j2me which performs the following functionalities:
    1.create a file called abc.java
    2.extract its class file...For +1+ ie to create a file (any file, no matter java or not) from j2me, device need to support File Connection specified in [jsr 75|http://www.jcp.org/en/jsr/detail?id=75]. If you're interested, learn the jsr API on how to create and manage needed file.
    For +2+ described as extract its class file one needs to have java compiler (javac) on device. *) If you're interested, ask for more details at [Java Compiler forum|http://forums.sun.com/forum.jspa?forumID=7]. Also, if the class file is for CLDC then javac needs to support "JDK 1.3-compliant" compilation. To create CLDC classes on device, one also needs to have a preverifier tool. Check this at Java Compiler forum if needed.
    Good luck - I think you'll need a lot of it...
    *) javac on device -- it should not only be present but also provide a j2me API allowing to invoke it for particular java file with needed options. Same applies to preverifier tool.

  • How to execute one java file in another java file

    Hi All!
    I hava a problem.. I need to validate functionality of one java file in my Junit test case.. so, I need to run that java file in my test file..
    How should I start with???? Are there any java API's for that.. I checked 'system' ..but which function will suite that functionality,,I am not sure about..

    I need to check the functionality of deletetion which
    is done by a java class.. Now I need to check this
    functionality..whether it is deleting or not... in my
    test case.. so, for that I need to execute that java
    file in similar manner as how we normally do it...,
    in my test case..So let the test case create a file and have your class delete it. What's there to run?

  • Issue with JAVA Mail API

    Hi
    We have a requirement to create a custom e mail. For the same I am trying to use Java Mail API.I am facing an issue with the following code:
    session session1 = session.getInstance(properties, null);
    System gives an error Sourced file: inline evaluation of: ``Properties props = new Properties(); session session1 = session.getInstance(prop . . . '' : Typed variable declaration : Class: session not found in namespace
    Is there some specific API i need to import for session class. Kindly suggest.
    Regards
    Shobha

    Hi Shobha,
    I was also facing the same issue from last couple of weeks and just now i have achieved the working functionality.
    Please find below working code and replace values as per your serveru2019s configuration.
    import com.sap.odp.api.util.*;
    import java.util.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    import java.io.File;
    import java.net.*;
    // SUBSTITUTE YOUR EMAIL ADDRESSES HERE!!!
    String to =<email address>;
    String from =<email address>;
    // SUBSTITUTE YOUR ISP'S MAIL SERVER HERE!!!
    String host = <smtp host name>;
    String user = <smtp user name>;
    // Create properties, get Session
    // Properties props = new Properties();
    Properties props = System.getProperties();
    props.put("mail.transport.protocol", "smtp");
    props.put("mail.smtp.host", host);
    props.put("mail.debug", "false");
    props.put("mail.smtp.auth", "false");
    props.put("mail.user",user);
    props.put("mail.from",from);
    Session d_session = Session.getInstance(props,null);//Authenticator object need to be set
    Message msg = new MimeMessage(d_session);
    msg.setFrom(new InternetAddress(from));
    InternetAddress[] address = {new InternetAddress(to)};
    msg.setRecipients(Message.RecipientType.TO, address);
    msg.setSubject("Test E-Mail through Java");
    msg.setSentDate(new Date());
    msg.setText("This is a test of sending a " +
    "plain text e-mail through Java.\n" +
    "Here is line 2.");
    Transport.send(msg);
    Deepak!!!

Maybe you are looking for

  • New User Request cannot be submitted in GRC AC 10

    Hello Gurus, We have configured GRC AC 10 along with workflows and for all scenarios things are working fine , except for "New User". When we select Request Type : New Request Request for: Others User : XYZ (This user is not present in "HR system(ERP

  • Cisco Prime Infrastructure and no new events / alarms since update to 2.2.1

    Hello, I have upgraded our Cisco Prime Infrastructure from version 2.1 to 2.2.1 (with a backup and restore). We have round about 700 APs and three 5208 Controller. So far everything seems to work really fine. The only problem is that there are no new

  • Editable report - preferably interactive

    Hi, I dont do APEX developement on regular basis. so i touch a topic only if i need that functionality. presently i am developing an Interface for the user where he passes 3 fields (Item-textfield) and hit search button. i pick these items and pass i

  • TS4002 Shopping spam email on iPhone & iPad mini

    I am now getting serious spam email and would like to block it from going to iPhone & iPad, but can't figure out how to do it... HELP it is overtaking my email!

  • Ichat not connecting today

    Is anyone having trouble connecting to their Ichat? I've tried several times this morning and under ichat it's not connecting, under Adium, it's asking for my password and does not connect either....