Deployment a java class with Oracle92

Good morning i'm a new friend.
Today i have build a java class to send email with attach,testing this class in jdeveloper is all ok,but when i try to deploy into my database i've an error message:
ORA-29545: classe di formato errato: at offset 265 of package1.mypackage.JEmail.SendEmail expecting a class-javax.activation.DataHandler but encountered a class-javax.activation.DataHandler.
In java class i import:
import java.io.*;
import javax.mail.*;
import javax.mail.Multipart.*;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMultipart;
import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMessage;
import javax.activation.*;
import javax.activation.DataHandler;
import java.util.*;
How can i do?
Thanks a lot
Guerrieri Paolo

Hi,
You need to use Integration technology like BlazeDS or LCDS.

Similar Messages

  • How to display value from java class with output generated with toplink

    i hava a requirement of displaying (distance ie calculated in java class) with output generated by query.
    ie if output is like
    school name (distance)
    physical address
    here the school name and physical address are retrived from database.

    Hi,
    ValueHolders are used by the JSF internal framework. To work with an object (attributes) in a managed bean you don't need to make it returning a value holder.
    Create a POJO, provide accessor methods and register it as a managed bean. Access it from JSF with EL
    Frank

  • Deployment of Java App with 3rd party dll

    Hi,
    I am developing one application on windows environment. I am using netbeans 6.0 as my IDE. in this application I have to use 3rd party dll along with one 3rd party jar library. this jar library hides all the implementation of the native methods. So i don't have to use native methods in my application directly which means that I just need to call the java classes of the vendors jar library. I am able to execute the application in Netbeans. but I am not able to deploy the application. I want to know that how should i deploy my application which will be simple jar with vendors library and the dlls, so that user just have to run the application just through the command line( java -jar myapp.jar)

    no you didn't understood the question. Wrong.
    I understood the question.
    You however didn't understand the response.
    So let me expand on it.
    The library consists of java and dlls. There is absolutely no way that it will run on a client box without the dlls. So they must be delivered in some way.
    Now I suppose they could have encrypted/packed the dlls in some fashion but that isn't likely. And if it is then the java code of the library is responsible for loading them and there will be nothing you can do about it.
    Excluding that.....
    Shared libraries can ONLY be loaded via one of the following methods.
    1. The dlls must be in the PATH environment of the application
    2. The path must be explicitly provided in the application.
    For the libraries you have one of the following will be true
    1. The dlls must be in the PATH environment of the application
    2. The path must be explicitly provided from your code and passed to the library code.
    3. You must explicitly load the dlls in your code and hope that the library code is smart enough to deal with it.
    For option 2 the library must provide a method for you to pass a path.
    For option 3 the library code must be written to support this.
    For option 1 you will need to modify the client in some way to provide for the PATH (which you can do in various ways, none of which have anything to do with Java specifically although 'WebStart' or whatever it is called might do it.)

  • How can I execute a java class with arguments from an air application built from mxml?

    I have an mxml application. It has a button, and when that button select event occurs, I want my mxml air app to pass arguments to a java class I have built, which resides in a package path on my system. I need to be able to pass several arguments to my java method from my mxml call. How do I do this, and what config files are necessary? For the simple task I want to engineer, can you show me an example of a properly configured config file? My java class has been executed at the command line in the past as follows:
    java -cp %CP% com.abc.prism.queue.EmitMessage XYZ "my message text" 192.12.13.14 5672
    where %CP% is an env variable that tells my class the classpath it runs with, and XYZ, "my message text", the IP address, and the port are the arguments I must pass from mxml to my java class. How do I accomplish this?
    How do I make known to the java class I call from mxml the %CP% class path? It tells my java class where to find various rabbitMQ jars.

    Hi,
    You need to use Integration technology like BlazeDS or LCDS.

  • Auto-deployment of java classes in Weblogic 9 is not working

    I have an exploded ear in my autodeploy folder and I am updating some of the java classes inside it. But it looks like weblogic 9 is not reloading new version of them. Did anybody had any success with the similar setup?
    And yes, I am updating timestamp for my REDEPLOY file and -Dweblogic.ProductionModeEnabled=false
    Thanks,

    I think it is missing - you need to do the import on your own. I filed an ER to get this one added.
    Note however that the best practice would be to minimize the usage of scripts in your JSP - since this creates spaghetti code that mixes UI with logic and is hard to maintain.

  • Integrate java class with forms

    dear friends,
    i use forms9i under windows2000,
    i try to implement a java class for a bean area.
    i have some classes who oracle demo provide.
    I DO the following :
    save HTMLTextArea.class in <oracle_home>/forms90/java
    and property palette of bean i write the class name in implementation class property HTMLTextArea
    and also set the Forms60_Builder_Classpath varibale in registry(c:\ora9ids\forms90\java\HTMLTextArea so when i run this form then received an error
    " java.lang.NoClassDefFoundError: HTMLTextArea (wrong name: oracle/forms/demos/HTMLTextArea).
    plz solve this problem.

    I presume that you have to create the full path oracle/forms/demos/HTMLTextArea.class in the forms90/java folder...else,if you save there the java class without the full path (wich corespondds to the package oracle.forms.demos),the server won't find it..
    However,this is bad practice,to keep the class file on the server...create a jar file with this class,and add it the archive_jini tag in formsweb.cfg file..place the jar file in forms90/java folder

  • Link java class with custom taglib in Nitrox

    Hi,
    I am creating a set of Nitrox custom libraries for my company, and I need a tag with the following behavior:
    The tag insert window has to contain a select combo with information retrieved from a file or a database.
    So, my questions are:
    1) How can I call java classes from tlei or tagedit files?
    2) What does it mean the following tag?
    <editor-class>com.m7.wide.struts.tags.tagedit.StrutsSelectTagEditor</editor-class>
    3) What does it mean this other tag?
    <default-bundle>com.m7.wide.struts.resources.html-resources</default-bundle>
    4) Do you have any online documentation about tagedit files and the related classes?
    I am using Eclipse 3.1 and Nitrox 3.0.0 M2
    Thanks in advance,
    Alberto

    The Workshop Java API for tag customization is not public for the time being, sorry for the inconvenience.

  • XSLT mapping calls Java class, with hardcoded values-problem at Transport

    Hi All,
    I know the subject may be  misguiding, but i need some suggestions how to handle the following scenario.
    From my XSLT mapping, i am calling a java function which performs a data connection to an oracle database and then returns some values, whcih i have mapped in the mapping.
    The problem is, i have hardcoded the Connection parameters....
    and now that we transport these objects to production, the connection parameters will change.
    I thought of two solutions
    1) i create a new java class for Production system
    2) i define the parameters as input arguemnts to my method, whcih is called from XSLT mapping
    But in both cases, if theres any chg in future, there will a dependancy on one of the objects to be changed and sent again.
    What is the suggested way? is there nothing like a property file(like in EP), where you define dependant parameters...and the file is only changed.
    XI Gurus, please suggest me the correct way to handle.....
    Thanks a lot.
    Mona

    Mona,
    This is what i do..
    1) Parametrize ur current calling class,
    2) define a separate class called dbConnect.java there, you have all your parameters that way when there is a change your main program is untouched, and you just need to change the dbconnect.
    The call from your current class will be just like
    dbConnect.Runsql("sql as a string");
    the runSql can then internally call
    dbConnect().connect(); //that should do the connection opening.
    then create a prepared statement from your string input and call the db.......
    this is the implementation that would be best suited for your scenario, you can further parametrize the method to where you can add the database params from the calling xml..so all that needs to be done when the machine is changed or any param is changed is ..modify the xml........not too bad was that.....
    Regards
    Ravi

  • Using java classes with Forms 6i

    Hello everyone,
    I want to use some Java.io functionality in Forms 6i but I'm not sure how to go about doing this. How can I access java classes from a forms application?
    Thanks,
    Wes

    Use th Java Importer - information on otn.oracle.com/products/forms or in the on line help.
    Regards
    Grant Ronald
    Forms Product Management

  • Basic Java Class with prints records out of the DEPT table

    Can some one show a basic java class which will query the DEPT table, and print them out?

    Nagarjuna,
    the Oracle DBMS JDBC Developer's Guide is full of code examples.
    http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/toc.htm
    --olaf                                                                                                                                                                                                                                                                                                                       

  • Manual Deployment of Java Class's to Database

    I was using JDeveloper, now my company has bought JBuilder 4.0, Can any one tell me how deploy my class's manually becuase JBuilder doesnt support deployment=(

    You will need to use the loadjava command line facility that comes with Oracle8i. JDeveloper's deployment feature just calls loadjava.
    You can find the doc for this in the Oracle8i Java Stored Procedures Developer's Guide, which is available on the Documentation pages of OTN.

  • Deployment of Java WebService with OC4J and JDeveloper

    Hi,
    I have created a sample java webservice following instructions given in one OTN tutorial (Developing, Deploying and Managing Web Services Using JDeveloper and Oracle Application Server ) at http://www.oracle.com/technology/obe/obe1013jdev/ws/wsandascontrol.htm
    We were able to create the webservice as shown in the tutorial but are facing problem while deploying it. The deployment message console in JDeveloper shows one "Deployment failed : ClassCastException".
    Some of the lines from Jdeveloper console are ::
    "Binding WebServices web-module for application JavaWebService-GetDates-WS to site default-web-site under context root JavaWebService-GetDates-context-root failed"
    I have gone through the stack trace in the OC4J console but couldnt figure out much out of it as all the culprit classes are from different jar files...Here is the Stack trace for your ref::
    06/05/05 19:07:12 WARNING: DeployerRunnable.run java.lang.ClassCastExceptionoracle.oc4j.admin.intern
    al.DeployerException: java.lang.ClassCastException
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:126)
    at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnabl
    e.java:52)
    at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.ClassCastException
    at oracle.j2ee.ws.server.deployment.WebServiceEndpoint.writeRuntimeXml(WebServiceEndpoint.ja
    va:660)
    at com.evermind.server.Application.getHttpApplication(Application.java:512)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFr
    omReference(HttpSite.java:1975)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:18
    94)
    at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1591)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:206)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:96)
    at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:541)
    at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:197)
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
    ... 4 more
    2006-05-05 19:07:12.713 WARNING java.lang.ClassCastException
    I am using J2SE1.4.2_08 version. Earlier when I used java 5 version I got an error something like "Found runtime environment 49.0 expected environment is 48.0"....so I moved over to J2SE1.4.2_08 version but now I am getting above error as shown in the stack trace.
    Looking at the success message shown in the OTN tutorial it seems that only step that failed while this deployment is Initialization of servlet : Oracle.j2ee.ws.server.JAXRPCServlet for webapplication Webservices.

    Hi, thanks for your quick help.
    Shay, I agree with you that the specific tutorial uses JDeveloper 10.1.3 and I need to use JDK 5 to run that version of JDeveloper.
    Earlier when I used JDK 5 with JDeveloper 10.1.3, I got different error saying "Found runtime environment 49.0 expected environment is 48.0".....so I moved over to J2SE1.4.2_08 version but now I am getting an error as shown in the stack trace given in the very first post to this thread.

  • Deployment of JAVA-Patches with SUM failed, MOPZ has downloaded malicious code

    some time ago, we did an upgrade of our doublestack PI-System from NW-PI-700-SPS18 to NW-PI-731-SPS05.
    Now, i wanted to upgrade this PI-system from NW-PI-731-SPS05 to NW-PI-731-SPS07.
    with SUM 1.0 SP10 PL4 we are now failing in the Execution-phase (Downtime):
    Error in phase 5.6. execution (downtime) of the JAVA-Part
    F  ********************************************************************************
    F  *** ERROR => Node 'deployment' failed with exit code 67.
    F  ***
    F  *** Please see section 'Failures in the 'deploying offline components' phase'
    F  *** in SAP Note 1316652 for additional information and trouble shooting advice.
    F  ********************************************************************************
    and the instance could not start up anymore !?
    in sap-note 1316652 there is mentioned a separate sap-note 1550641 for this error
    http://service.sap.com/sap/support/notes/1316652
    in sap-note 1550641 - Update fails-Node 'deployment' failed with exit code 67.           
    http://service.sap.com/sap/support/notes/1550641
    Solution:
    A fix cannot be deployed as a patch, because the deployer itself is broken.
    The solution is to reset a back up state of the system, to download the new version of the stack from SAP Marketplace, and to rerun the update/upgrade procedure.
    i downloaded the patch-stack (with Solman MOPZ) some days ago,
    so MOPZ did download the malicious code of deployment components..... ?!
    so what to do?

    Hi,
    sorry for my late reply,
    but the whole story needs a lot of time (nearly 2 month) and finally ends successfully.
    first: (summary) the main-title of this thread is wrong,
    it was not MOPZ or Solman download, what caused this issue.
    the problem was caused by a remaining (old) sapxmltoolkit.jar in the java-bootstrap folder
    details are coming ...
    (all dates in yyyy-mm-dd)
    =========================================
    2014-05-16 at 13:04 CET: 
    SUM upgrade hangs with java-server did not start (in phase 5.2. Execution = downtime)
    i opend OSS-ticket with several details + logs attached and opened the connection to our system.
    SAP-Ticket, prio_Medium (because it is "only" a sandbox issue),
    2014-05-30 at 20:21 CET:
    1."sign-of-live" from sap-support,
    Asking for additional logfiles from the work-directory of the sap-system
    2014-06-02 at 11:14 CET:
    my Answer to the questions and adding the demanded logfiles.
    2014-06-02 at 21:57 CET:
    2.answer from SAP-support, asking to repeat the last SUM-step, to see, if the issue is still there
    2014-06-03 at 10:22 CET:
    my answer after repeating SUM-step and attaching new logfiles.
    2014-06-03 at 21:18 CET:
    3.answer from SAP-support, i should check if system is up and running, if hostname, port-no is correct.
    2014-06-03 at 10:22 CET:
    my answer: hostname + portnr are o.k. - but system still did not startup (java-server)
    2014-06-04 at 19:30 CET:
    4.answer from SAP-support, delivering an upload-URL, could not read attached splitted .zip-files of log-files
    2014-06-05 at 07:28 CET:
    i did collect all logfiles again and uploaded them to the 1.upload-URL
    2014-06-05 at 16:48 CET:
    5.answer from SAP-support, give hint to sap-note: 1550641 - Update fails-Node 'deployment' failed with exit code 67
    2014-06-06 at 10:17 CET:
    i answered that (in my opinion) the mentioned sap-note did not match the issue (only to NW-7.00) ,
    because i did not have to change anything, only i should do a restore from tape and start SUM from the beginning,
    i insisted in more and deeper investigations by SAP-support.
    2014-06-06 at 19:00 CET:
    6.answer of SAP-support: moving the ticket to the next support-level (developm.support)
    2014-06-09 at 10:11 CET:
    7.answer from SAP-support: asking for new submittion of logfiles of work-dir.
    2014-06-10 at 08:39 CET:
    asking for a new upload-URL because of large logfiles
    2014-06-10 at 17:31 CET:
    8.answer from SAP-support: providing an new upload-URL
    2014-06-10 at 17:53 CET:
    i did collect all logfiles again and uploaded them to the 2.upload-URL
    2014-06-12 at 09:07 CET:
    9.answer from SAP-support: asking for more details, listings of directory-content of ..../j2ee/cluster/...
    2014-06-12 at 10:23 CET:
    i did collect all dir-infos and attached a doc to the ticket
    2014-06-19 at 10:11 CET:
    10.answer from SAP-support: asking for WTS-connection to start investigate and debung on our systems
    2014-06-23 at 10:44 CET:
    i answered, and provided WTS-connection info
    2014-06-26 at 13:12 CET:
    11.answer from SAP-support: could not see a running SID-engine, no SAP-MC, no directory, no folder, where is the engine?
    2014-06-27 at 08:01 CET:
    i answered, and provided detailed server-info and WTS-connection info,
    remembering that SID is in SUM-downtime and java-server is not running, because could not be startet,
    2014-06-30 at 14:01 CET:
    12.answer from SAP-support: asking for an installed java6-sdk(jdk), the java6-jre is not enough to debug.
    2014-07-02 at 11:40 CET:
    my answer after installing java6-sdk on the WTS-server,
    2014-07-07 at 15:11 CET:
    13.answer from SAP-support: after debugging found an very old sapxmltoolkit.jar in the java-bootstrap folder
    moving the ticket to SUM-support - java-developm-support.
    2014-07-09 at 08:36 CET:
    14.answer from SAP-support: (SUM-support - java-developm-support) asking for attaching the SUM stack-xml file to the ticket.
    2014-07-09 at 14:32 CET:
    16.answer from SAP-support: asking to remove the sapxmltoolkit.jar from the java-bootstrap folder and restart SUM (repeat last step)
    2014-07-09 at 15:00 CET:
    i am happy to get the solution to this issue, 
    after removing the .jar file from java-bootstrap folder, SUM restart last step,
    the SUM-phase execution continues to run, java-server could start, ....
    .... finally SUM ended successfully.
    ==================================
    remarks:
    formerly, we did a copy of that mentioned sapxmltoolkit.jar to the java-bootstrap folder (in March 2013) because of investigation PI-processes
    after upgrading from NW-7.00 to NW-7.31, to get PI-system running after upgrade to NW-7.31
    but maybe that formerly issues were caused by other things, cache or so ...
    and since then (March 2013) we could start/stop that PI-system several times without any problem, only SUM-upgrade could not ......
    i really understand that investigating problems in SAP-software (e.g. SUM-process, java-startup ...) is not easy and could have many causes.
    but in summary this SUM-downtime was really large (55 days of downtime) , because of sandbox-system we want to investigate this time,
    to get the solution to this issue.
    if some SAP people want to look for speed-up options in the whole support-process, the OSS_ticket-no is:  ( 459757 / 2014 )
    Thanks to SAP-support (for the helpful solution)
    Christoph

  • Deploying the java classes

    Hello ,
    The story:
    I have developed a swing application with 3 classes in the same folder , images folders and help files folder which means my folder is like this:
    [ x.class - (main class)
    y.class
    z.class
    (images) - folder
    (help files) - folder ]
    The problem:
    I want to distribute the application to user who dont have JDK in their machines , which means they must install JRE .... but the problem is how do i package my application? , how will my users run it ?
    please help !!! i'll appreciate that , thanks.,...

    A JRE is definitely required, either advise them to download a free copy from sun or package it together with your application using InstallShield

  • Hot Deploying supporting Java class files

    I have a statful session bean that has supporting classes. Is there a way I can hot deploy these into WLS 5.1?
              

    Hi
    I guess u r running apache-jserv as servlet engine for your jsp and servlets. If its so, jsp files can be run without any additonal configuration by putting the jsp file under document root or any subdirectory and for running servlets u have to add classpath entries for your servlet in jserv.properties file.
    To make sure that your servlet engine is working, try
    http://servername:port/servlet/IsItWorking, if u get success msg that means servlet engine is working fine.
    Hope this will help
    Regards
    Kumaran

Maybe you are looking for

  • Hosting Client Sites with Business Catalyst?

         Do I have to HOST potential client sites with Business Cataylst in order for the forms widget to work? I am very excited about this tool but this is one major issue that I need clarity on that plan old experience and practice will not answer. I

  • How do I create a single PDF Portfolio from an Outlook 2011 email with multiple non-pdf attachments?

    How do I create a single PDF Portfolio from an Outlook 2011 email with multiple non-pdf attachments? Email has 3 attachments--some are not pdf. I'd like all three converted into pdf files along with the email itself, and all appear in the email's pdf

  • MDM 7.1 installation / system copy

    Hi, New to MDM administration here so please help. I have a MDM 7.1 Production system running on windows and ms sql. Now i need to create a new QA system as a copy of this prod system. I am confused as to whether i should use the archive/unarchive pr

  • FTP thru ABAP program

    Hello ABAP Gurus, Kindly attached an example program for FTP process in ABAP... i have this project wherein i need to gather data from SAP and transfer it to an another server box for another applicaiton.... Thank you in advance.

  • Record video no sound!

    Record video no sound! <Edited by Host>