Youtube activation.jar

hi,
could anyone build sample.youtube.run using ant and activation.jar ? I keep getting NoClassFoundError, although I kept
all the jar files in classpath.
thanks,
dhiman

tenida wrote:
I keep getting NoClassFoundErrorThis means that the in the message given class was available in the classpath during compile time, but not during run time.
although I kept all the jar files in classpath. Apparently only during compile time.

Similar Messages

  • JSE8 and mail.jar, activation.jar

    Hey, all.
    Does anyone know if there are new mail.jar and activation.jar files for the Sun Java Studio Enterprise 8 system that support the new mail standard 1.4? I tried just putting these new jar files out in the \appserv8.1ur2\lib directory but that didn't work because apparently the JAR files that come with the server are packaged a bit differently (thank a lesser god I had saved off the old versions of the two files so I could put them back!)
    I'd like to use the new mail 1.4 standard that includes the method javax.mail.inetrnet.MimeBodyPart.attachFile(File). It seems much more straightforward than doing the old style mime attachment business.
    Thanks in advance.

    First, when the NEW (javamail 1.4) JAR files aren't there, I get a javax.servlet.ServletException: javax.mail.internet.MimeBodypart.attachFile of "noSuchMethodError". Then, I replaced the old JAR files with the new activation.jar and mail.jar files and I then receive a javax.servlet.ServletException that com/sun/mail/util/SharedByteArrayInputStream has a "NoClassDefFoundError". I think the JSE8 folks must package all the various associated "mail" files (dsn.jar, imap.jar, mailapi.jar, pop3.jar, and smtp.jar) along with the main "mail.jar" file into one big JAR repository.

  • Javamail path for mail.jar & activation.jar?

    I am trying to use javamail but can't get anything to compile or run. I read all the other posts on this and all they say is to set the path correctly as did the directions, I still cannot get this to work did I do something wrong? Whenever I try to compile something it cannot find those jar files "package javax.mail does not exist" or "package javax.activation does not exist"
    here is my path
    C:\j2sdk1.4.2_05\bin;C:\javamail-1.3.2ea:\mail.jar;C:\jaf-1.0.2\activation.jar
    I am runnning XP sp1
    thanks for the help.

    Please check those directions carefully once again - usually it is CLASSPATH variable that needs to be modified to include jar files and not PATH variable...
    Also, note that it looks like you have an extra colon character below:
    C:\javamail-1.3.2ea:\mail.jar
    should probably :have been
    C:\javamail-1.3.2ea\mail.jar

  • Activation.jar and mail.jar version ????

    I have deployed a web service in Weblogic v7.0 which accepts DataHandler as one
    of its paramters ( for attachments).
    When I invoke from a soap client (weblogic v8.0) it works fine. For using with
    soap client (weblogic v7.0) its
    gives a serializer exception.
    What version of activation.jar and mail.jar should I use for sending attachment
    from weblogic 7.0 client.
    Regards
    Kumar Raj

    Hi Kumar,
    Could you post the exception traceback and clarify the configuration
    (v7.x client to v7.x server fails, but v8.1 client to v7.x server works
    OK?)
    You may also want to take a look at the docs on creating portable stubs
    [1] associated with creating the client jar.
    Thanks,
    Bruce
    [1]
    http://edocs.bea.com/wls/docs81/webserv/client.html#1076586
    Kumar Raj wrote:
    >
    I have deployed a web service in Weblogic v7.0 which accepts DataHandler as one
    of its paramters ( for attachments).
    When I invoke from a soap client (weblogic v8.0) it works fine. For using with
    soap client (weblogic v7.0) its
    gives a serializer exception.
    What version of activation.jar and mail.jar should I use for sending attachment
    from weblogic 7.0 client.
    Regards
    Kumar Raj

  • Email: activation.jar and applet alert

    I have written code for sending email. I works on one machine with out errror. When I moved it to my server it gave error for the activation.jar file. After copying this file, the code worked, but now I get applet Alert popup with message as "The applet is attempting to invoke the java/lang/System.getProperty() operation on user home, I need to click on Allow to get the code working. How do I disable this popup?
    What is the difference between settings on two machines. Is it some browser setting for applet or something else? I am using jre version 1.4.2_03 on Windows 2003 server.

    No, I am not using Java Applet. I have written simple Java application with main which I run from Command prompt
    I am not sure why the popup is displayed for Applet.
    Here is the code:
    import java.util.Properties;
    import javax.mail.*;
    import javax.mail.internet.*;
    public class sendMail
    public static void main(String args[])
         //set this variable to be your SMTP host
         String mailHost = "192.24.235.20";
         //set this variable to be your desired email recipient
    String to = "testUser@mclaren";
    //these variables come from the mail form
    String from = "dctmUser@mclaren";
    String subject = "JavaTest";
    String body = "Test";
    if ((from != null) && (to != null) && (subject != null) && (body != null)) // we have mail to send
    try
    //Get system properties
    Properties props = System.getProperties();
    //Specify the desired SMTP server
    props.put("mail.smtp.host", mailHost);
    // create a new Session object
    Session session = Session.getInstance(props,null);
    // create a new MimeMessage object (using the Session created above)
    Message message = new MimeMessage(session);
    message.setFrom(new InternetAddress(from));
    message.setRecipients(Message.RecipientType.TO, new InternetAddress[] { new InternetAddress(to) });
    message.setSubject(subject);
    message.setContent(body, "text/plain");
    Transport.send(message);
    System.out.println("Message Sent");
    catch (Throwable t)
    System.out.println("Error: " + t.getMessage());
    I can't attach the screen shot of the Applet Alert window, but below is the text I get on the Applet Alert window
    First Window
    Title: -- Applet Alert --
    Text: The applet is attempting to invoke the java/lang/System.getProperty() operation on user home
    Buttons: Allow, Disallow, Stop Applet
    Second Window
    Title: -- Applet Alert --
    Text: The applet is attempting to perform read operation on file C:\Documents and Settings\Administrator\.mailcap
    Buttons: Allow, Disallow, Stop Applet
    Third Window
    Title: -- Applet Alert --
    Text: The applet is attempting to invoke the java/lang/System.getProperty() operation on user home
    Buttons: Allow, Disallow, Stop Applet
    Forth Window
    Title: -- Applet Alert --
    Text: The applet is attempting to perform read operation on file C:\j2sdk1.4.2_03\jre\lib\mailcap
    Buttons: Allow, Disallow, Stop Applet
    And following is the text output on the command prompt by the system:
    C:\java>java sendMail *(this is my code file)*
    Current policy properties
    thread.thread_num_limited: true
    file.write.state: disabled
    net.connect_ex_dom_list:
    mmc.sess_cab_act.block_unsigned: false
    mmc.sess_cab_act.action: validate
    mmc.sess_pe_act.block_blacklisted: false
    mmc.sess_pe_act.block_invalid: true
    jscan.sess_applet_act.stub_out_blocked_applet: true
    file.destructive.in_list:
    jscan.sess_applet_act.block_all: false
    file.write.in_list:
    file.nondestructive.in_list:
    window.num_limited: true
    file.read.state: disabled
    jscan.session.origin_uri: http://www.guj.com.br/posts/downloadAttach/330
    .java;jsessionid=76FF899CEACAB3CFFB48E3EEE4E0E89F
    file.nondestructive.state: disabled
    jscan.session.user_ipaddr: 10.122.3.106
    net.connect_other: false
    thread.thread_num_max: 8
    file.destructive.ex_list:
    file.nondestructive.ex_list:
    file.write.ex_list:
    jscan.sess_applet_act.sig_invalid: block
    file.read.in_list:
    mmc.sess_cab_act.block_invalid: true
    jscan.session.policyname: TU1DIERlZmF1bHQgUG9saWN5
    mmc.sess_pe_act.action: validate
    thread.threadgroup_create: false
    net.connect_in_dom_list:
    net.bind_enable: false
    jscan.sess_applet_act.sig_trusted: pass
    jscan.session.user_name: 10.122.3.106
    jscan.session.user_hostname:
    file.read.ex_list:
    jscan.sess_applet_act.sig_blacklisted: block
    jscan.session.daemon_protocol: http
    net.connect_src: true
    jscan.sess_applet_act.unsigned: instrument
    mmc.sess_pe_act.block_unsigned: false
    file.destructive.state: disabled
    mmc.sess_cab_act.block_blacklisted: true
    window.num_max: 5
    -->> returning Frame NULL
    BaseDialog: owner frame is a java.awt.Frame
    -->> returning Frame NULL
    BaseDialog: owner frame is a java.awt.Frame
    -->> returning Frame NULL
    BaseDialog: owner frame is a java.awt.Frame
    -->> returning Frame NULL
    BaseDialog: owner frame is a java.awt.Frame
    Message Sent *(This is the message I print from the code)*

  • Where to set mail.jar,activation.jar

    Hello
    I want to know that
    Where to set the path of activation.jar,mail.jar files
    I am using jsp So plz tell me where i have to save these files
    So that server will access
    pla help
    Shilpa

    If you are using JSP then they should already be in your server. Don't put them anywhere.

  • Activation.jar

    Where can i find activation.jar??

    http://java.sun.com/products/javabeans/glasgow/jaf
    or search for "JavaBeans Activation Framework" in java.sun.com
    Regards.

  • How to send multiple Recipients using the mail.jar and activation.jar

    hi!
    could somebody help me. how do i send multiple Recipient using mail.jar. when i would input 2email address in to Recipient
    (example: [email protected], [email protected])
    i get a DEBUG: setDebug: JavaMail version 1.3.2
    but if i send a single email it just works properly.
    heres my code
    import java.io.*;
    import java.util.*;
    import javax.mail.*;
    import javax.mail.event.*;
    import javax.mail.internet.*;
    public class SendMail
              public SendMail(String to, String from, String subject, String body)
              //public SendMail(String to)
                   String message_recip = to;
                   String message_subject = subject;
                   String message_cc = "";
                   String message_body = body;
                   //The JavaMail session object
                   Session session;
                   //The JavaMail message object
                   Message mesg;
                   // Pass info to the mail server as a Properties, since JavaMail (wisely) allows room for LOTS of properties...
                   Properties props = new Properties( );
                   // LAN must define the local SMTP server as "mailhost" to be able to send mail...
                   //props.put("mail.smtp.host","true");
                   props.put("mail.smtp.host", "mailhost");
                   // Create the Session object
                   session = Session.getDefaultInstance(props, null);
                   session.setDebug(true);
                   try
                        // create a message
                        mesg = new MimeMessage(session);
                        // From Address - this should come from a Properties...
                        mesg.setFrom(new InternetAddress(from));
                        // TO Address
                        InternetAddress toAddress = new InternetAddress(message_recip);
                        mesg.addRecipient(Message.RecipientType.TO, toAddress);
                        // CC Address
                        InternetAddress ccAddress = new InternetAddress(message_cc);
                        mesg.addRecipient(Message.RecipientType.CC, ccAddress);
                        // The Subject
                        mesg.setSubject(message_subject);
                        // Now the message body.
                        mesg.setText(message_body);
                        // XXX I18N: use setText(msgText.getText( ), charset)
                        // Finally, send the message!
                        Transport.send(mesg);
                   }//end of try
                   catch (MessagingException ex)
                        while ((ex = (MessagingException)ex.getNextException( )) != null)
                             ex.printStackTrace( );
                        }//end of while
              }//end of catch
         }//end of SendMail
    public static void main(String[] args)
              //String t = "[email protected], [email protected]"; - this I think causes error
    String t = "[email protected]";
              String f = "[email protected]";
              String s = "Hello World";
              String b = "the quick brown fox jumps over the lazy dog";
              SendMail sm = new SendMail(t,f,s,b);     
         }//end of main
    }//end of class
    could someone please help me im stuck-up with this. thanx!

    i need it ASAP
    i am a beginner in java and jsp
    Need to knw how can I parse the addresss field
    Below
    is the code
    <code>
    package
    public class EMailBean {
    private String smtp,username,password,from,bcc,subject,body,attachments,cc;
         /*setter*/
         public void setSmtp(String str){this.smtp=str;}
         public void setUsername(String str){this.username=str;}
         public void setPassword(String str){this.password=str;}
         public void setFrom(String str){this.from=str;}
         public void setTo(String str){this.to=str;}
         public void setCc(String str){this.cc=str;}
         public void setBcc(String str){this.bcc=str;}
         public void setSubject(String str){this.subject=str;}
         public void setBody(String str){this.body=str;}
         public void setAttachments(String str){this.attachments=str;}
                                  /*getter*/
         public String getSmtp( ){return this.smtp;}
         public String getUsername( ){return this.username;}
         public String getPassword( ){return this.password;}
         public String getFrom( ){return this.from;}
         public String getTo( ){return this.to;}
         public String getCc( ){return this.cc;}     
         public String getBcc( ){return this.bcc;}
         public String getSubject( ){return this.subject;}
         public String getBody( ){return this.body;}
    public String getAttachments( ){return this.attachments;}
    </code>
    Session session = Session.getDefaultInstance(props, null);
    session.setDebug(true);
    try {
    MimeMessage msg = new MimeMessage(session);
    msg.setFrom(new InternetAddress(mail.getFrom()));
                                  msg.addRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));
                                  msg.addRecipient(Message.RecipientType.TO,new InternetAddress(mail.getTo()));
                             msg.addRecipient(Message.RecipientType.CC, new InternetAddress(mail.getCc()));
                                  msg.addRecipient(Message.RecipientType.CC, new InternetAddress("[email protected]"));
    msg.setSubject(mail.getSubject());
    // Create the message part
    BodyPart messageBodyPart = new MimeBodyPart();
    // Fill the message
    messageBodyPart.setText(mail.getBody());
    Multipart multipart = new MimeMultipart();
    multipart.addBodyPart(messageBodyPart);
    // Part two is attachment
    messageBodyPart = new MimeBodyPart();
    DataSource source = new FileDataSource(mail.getAttachments());
    messageBodyPart.setDataHandler(new DataHandler(source));
    messageBodyPart.setFileName(source.getName());
    multipart.addBodyPart(messageBodyPart);
    msg.setContent(multipart);
    msg.setSentDate(new Date());
    Transport t = session.getTransport("smtp");
    try {
    t.connect(mail.getUsername(), mail.getPassword());
    t.sendMessage(msg, msg.getAllRecipients());
    } finally {
    t.close();
    result = result + "<FONT SIZE='4' COLOR='blue'><B>Success!</B>"+"<FONT SIZE='4' COLOR='black'> "+"<HR><FONT color='green'><B>Mail was successfully sent to </B></FONT>: "+mail.getTo()+"<BR>";
    if (!("".equals(mail.getCc())))
    result = result +"<FONT color='green'><B>CCed To </B></FONT>: "+mail.getCc()+"<BR>";
    if (!("".equals(mail.getBcc())))
    result = result +"<FONT color='green'><B>BCCed To </B></FONT>: "+mail.getBcc() ;
    result = result+"<BR><HR>";
    } catch (MessagingException mex) {
    result = result + "<FONT SIZE='4' COLOR='blue'> <B>Error : </B><BR><HR> "+"<FONT SIZE='3' COLOR='black'>"+mex.toString()+"<BR><HR>";
    } catch (Exception e) {
    result = result + "<FONT SIZE='4' COLOR='blue'> <B>Error : </B><BR><HR> "+"<FONT SIZE='3' COLOR='black'>"+e.toString()+"<BR><HR>";
    e.printStackTrace();
    finally {
    return result;
    }

  • In what jar is: com.sun.activation.registries.MailCapFile located?

    I am attempting to implement JavaMail in an application in an OS400 environment. I simply want to send a text message (no attachements). My code works up to the point of: Transport.send(message); where I get a NoClassDefFound: com/sun/activation/registries/MailCapFile
    Here's the code:
    private void sendEmail(String recipient,String msg){
         String smtpSvr = "xxx.yyyyyyyyy.com";     
         String subject = "Log Transfer Errors";
         String from = "[email protected]";
         Properties p = System.getProperties();
         p.put("mail.smtp.host",smtpSvr);
         Session mailSession = Session.getDefaultInstance(p,null);
         Message message = new MimeMessage(mailSession);
         try {
         message.setRecipients(Message.RecipientType.TO,InternetAddress.parse(recipient));
         message.setFrom(new InternetAddress(from));
         message.setSubject(subject);
         message.setContent(msg,"text/plain");
         Transport.send(message);
         } catch (AddressException e) {
              System.out.println(""+e);
         } catch (MessagingException e) {
              System.out.println(""+e);
         } catch (Exception e) {
              System.out.println(""+e);
    I have JavaMail working fine in a servlet running in WebSphere 5.0 on the same OS400 v5r2.
    Do I need to add another jar file to my CLASSPATH?? Don't know in what jar the:
    com.sun.activation.registries.MailCapFile class is in????

    From its name I would guess that it's in "activation.jar". In fact looking in that file on my AS/400, it IS in activation.jar. You must have missed the instructions that you would need that for JavaMail to work properly. You can get it here:
    http://java.sun.com/products/javabeans/glasgow/jaf.html

  • LinkageError while trying to use war-file bundled jars

    Good day.
    I have a servlet for which I want to use the latest JAX-WS 2.1.4 jars. I compile my servlet, and include in the WEB-INF/lib/ directory those same JAX-WS 2.1.4 jars. According to the classloading scheme under the SJWS v7.0, I can enable my servlet to actually use those jars, rather than the functional equivalent, but older, versions the container would provide, by setting delegate="false" in the servlet's sun-web.xml file.
    http://docs.sun.com/app/docs/doc/819-2634/6n4tl5ko9?l=en&a=view
    When I deploy this servlet, and a client makes a request of it, however, I'm getting an odd exception:
    java.lang.LinkageError: JAXB 2.0 API jar is being loaded (from jar:file:/sun/webserver7/lib/webserv-jwsdp.jar!/javax/xml/bind/annotation/XmlSchema.class), but this RI (from jar:file:/sun/webserver7/https-msoa5/web-app/msoa5/tManager/WEB-INF/lib/jaxb-impl.jar!/com/su
    n/xml/bind/v2/model/impl/ModelBuilder.class) requires JAXB 2.1 API jar.
    at com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBuilder.java:173)
    at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
    at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
    at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
    at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
    at javax.xml.bind.ContextFinder.find(ContextFinder.java:368)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
    at com.sun.xml.ws.spi.ProviderImpl$2.run(ProviderImpl.java:220)
    at com.sun.xml.ws.spi.ProviderImpl$2.run(ProviderImpl.java:218)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.xml.ws.spi.ProviderImpl.getEPRJaxbContext(ProviderImpl.java:217)
    at com.sun.xml.ws.spi.ProviderImpl.<clinit>(ProviderImpl.java:88)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:36)
    at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:95)
    at javax.xml.ws.spi.Provider.provider(Provider.java:76)
    at javax.xml.ws.Service.<init>(Service.java:57)
    at com.sun.fast.eventmgr.wsdl.WsdltventManagerV4Service.<init>(WsdltventManagerV4Service.java:46)
    My WEB-INF/lib/ directory contains the jaxb jars, which leaves me puzzled as to why the linkage error. Here is the set of jars in the WEB-INF/lib directory:
    sun/webserver7/https-msoa5/web-app/msoa5/EventManager/WEB-INF/lib/
    /sun/webserver7/https-msoa5/web-app/msoa5/EventManager/WEB-INF/lib/FastInfoset.jar
    /sun/webserver7/https-msoa5/web-app/msoa5/EventManager/WEB-INF/lib/activation.jar
    /sun/webserver7/https-msoa5/web-app/msoa5/EventManager/WEB-INF/lib/http.jar
    /sun/webserver7/https-msoa5/web-app/msoa5/EventManager/WEB-INF/lib/jaxb-api.jar
    /sun/webserver7/https-msoa5/web-app/msoa5/EventManager/WEB-INF/lib/jaxb-impl.jar
    /sun/webserver7/https-msoa5/web-app/msoa5/EventManager/WEB-INF/lib/jaxb-xjc.jar
    /sun/webserver7/https-msoa5/web-app/msoa5/EventManager/WEB-INF/lib/jaxws-api.jar
    /sun/webserver7/https-msoa5/web-app/msoa5/EventManager/WEB-INF/lib/jaxws-rt.jar
    /sun/webserver7/https-msoa5/web-app/msoa5/EventManager/WEB-INF/lib/jaxws-tools.jar
    /sun/webserver7/https-msoa5/web-app/msoa5/EventManager/WEB-INF/lib/jsr173_api.jar
    /sun/webserver7/https-msoa5/web-app/msoa5/EventManager/WEB-INF/lib/jsr181-api.jar
    /sun/webserver7/https-msoa5/web-app/msoa5/EventManager/WEB-INF/lib/jsr250-api.jar
    /sun/webserver7/https-msoa5/web-app/msoa5/EventManager/WEB-INF/lib/mimepull.jar
    /sun/webserver7/https-msoa5/web-app/msoa5/EventManager/WEB-INF/lib/resolver.jar
    /sun/webserver7/https-msoa5/web-app/msoa5/EventManager/WEB-INF/lib/saaj-api.jar
    /sun/webserver7/https-msoa5/web-app/msoa5/EventManager/WEB-INF/lib/saaj-impl.jar
    /sun/webserver7/https-msoa5/web-app/msoa5/EventManager/WEB-INF/lib/sjsxp.jar
    /sun/webserver7/https-msoa5/web-app/msoa5/EventManager/WEB-INF/lib/stax-ex.jar
    /sun/webserver7/https-msoa5/web-app/msoa5/EventManager/WEB-INF/lib/streambuffer.jar
    Any suggestions on what the problem might be?
    Thanks.

    Thanks for the reply.
    The jar containing the sought class would be WEB-INF/lib/jaxb-api.jar per this brute force inspection:
    $ for i in $(find WEB-INF/lib/ -name \*.jar); do echo "---$i"; jar tf $i |grep javax/xml/bind/annotation/XmlSchema.class; done
    ---WEB-INF/lib/jaxb-xjc.jar
    ---WEB-INF/lib/streambuffer.jar
    ---WEB-INF/lib/jaxws-tools.jar
    ---WEB-INF/lib/FastInfoset.jar
    ---WEB-INF/lib/jaxb-api.jar
    javax/xml/bind/annotation/XmlSchema.class
    ---WEB-INF/lib/http.jar
    ---WEB-INF/lib/jsr173_api.jar
    ---WEB-INF/lib/jaxb-impl.jar
    ---WEB-INF/lib/activation.jar
    ---WEB-INF/lib/stax-ex.jar
    ---WEB-INF/lib/jsr181-api.jar
    ---WEB-INF/lib/jaxws-api.jar
    ---WEB-INF/lib/saaj-api.jar
    ---WEB-INF/lib/mimepull.jar
    ---WEB-INF/lib/jaxws-rt.jar
    ---WEB-INF/lib/saaj-impl.jar
    ---WEB-INF/lib/sjsxp.jar
    ---WEB-INF/lib/resolver.jar
    ---WEB-INF/lib/jsr250-api.jar

  • Ora 29534 while using loadjava for jar files

    I am trying to load activation/pop3/mail.jar in oracle 9.2.0.1 database.
    command : loadjava -user maxsb/maxsb@q71d -resolve -verbose -genmissing activation.jar
    but its giving me following error :
    resolving: class com/sun/mail/pop3/DefaultFolder
    errors : class com/sun/mail/pop3/DefaultFolder
    ORA-29534: referenced object MAXSB.com/sun/mail/pop3/POP3Store could not be
    resolved
    errors : class com/sun/mail/pop3/POP3Folder
    ORA-29534: referenced object MAXSB.com/sun/mail/pop3/DefaultFolder could not
    be resolved
    errors : class com/sun/mail/pop3/POP3Message
    ORA-29534: referenced object MAXSB.com/sun/mail/pop3/POP3Folder could not be
    resolved.....
    have already gave grant permissions to user..still giving me similar errors at the time of loading jar file nito oracle database.
    pl provide the solution..
    Kets

    Oracle is saying
    Cause: Name resolution determined that the indicated object is referenced but could not be resolved.
    Action: Correct name resolver or address resolution problems in the referenced class, or correct compilation problems in its source.
    -aijaz

  • Error while compiling Web Dynpro program due to missing JAR files

    Hi Experts,
    I am getting error message while compiling Web Dynpro program. The erring lines are as below:
              Message message = new MimeMessage(session);
              try {
                   message.setFrom(new InternetAddress(fromMailId));
                   message.addRecipient(
                        Message.RecipientType.TO,
                        new InternetAddress(toMailId));
                   message.setSubject(mailSubject);
                   message.setText(mailBody);
                   message.setHeader("X-Mailer", "E-Mail");
                   message.setSentDate(new Date());
                   Transport.send(message);
    The error messages are:
    Message.ReceipientType can not be resolved
    The method send(Message) is undefined for the type Transport
    The method setFrom(InternetAddress) is undefined for the type Message
    The method setHeader(String, String) is undefined for the type MessageThe method setSentDate(Date) is undefined for the type Message
    The method setSubject(String) is undefined for the type Message
    The method setText(String) is undefined for the type Message
    Type mismatch: cannot convert from MimeMessage to Message
    Can you please help me in resolving the issue. It seems that some API is missing. I believe if some one can tell me the name of JAR file / API then I will be able to sort out the issue. I will add these JAR file in my program.
    Thanks,
    S

    HI Stuart,
    you are missing the jar files required for sending mail in java
    Installing JavaMail
    You will need the latest version of JavaMail (Version 1.2) available here:
    http://java.sun.com/products/javamail/
    Download and unzip the file, in the newly created top level JavaMail directory you will find a number of jar files,
    these need adding to your classpath.
    To do this in Eclipse, right click on your project in the tree view, select properties, select the libraries tab.
    Now click the 'Add external jars' button, navigate to your JavaMail directory and click on the jars.
    The tutorial also makes use of the Java Activation Framework, which is available here:
    http://java.sun.com/products/javabeans/glasgow/jaf.html
    Instalation of JAF is identical to JavaMail
    activation.jar / mail.jar are 2 distinct names i remember rest you will get above
    P.S: close the question to assist other users narrow the search and find solutions
    Message was edited by:
            Armin Reichert

  • Loadjava dms.jar and soap.jar on Oracle 9i 9.2.0.5.0 error ORA-29534

    Hi all,
    I'm trying to load dbws-callout-utility in a oracle9i Enterprise Edition Realease 9.2.0.5.0 data base.
    To do that, I've follow these instructions "http://www.oracle.com/technology/sample_code/tech/java/jsp/callout_users_guide.htm" step by step:
    - I've set shared_pool_size to 96M (then, even to 150M) in my spfile.
    - I've set java_pool_size to 80M in my spfile.
    - I've tested this changes were well done.
    - Then, I've download oc4j_extended 10.1.2 version, as said the link.
    - manual says that I must load this jar files:
    jssl-1_2.jar, soap.jar, dms.jar, servlet.jar, ejb.jar, mail.jar
    - I've could to load these jars without any error using these commands:
    cd $ORACLE_HOME/lib
    dropjava -u wsuser/pass mail.jar
    dropjava -u wsuser/pass activation.jar
    cd $ORACLE_HOME/oc4j_extended/j2ee/home/lib
    loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass ejb.jar
    cd $ORACLE_HOME/lib
    loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass activation.jar
    loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass mail.jar
    cd ${ORACLE_HOME}/oc4j_extended/j2ee/home/lib
    loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass servlet.jar
    cd ${ORACLE_HOME}/jlib
    loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass jssl-1_2.jar
    but when I try to load dms.jar with this command:
    cd ${ORACLE_HOME}/oc4j_extended/lib
    loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass dms.jar
    loadjava's process hangs just compiling (resolving) this class: "oracle/dms/address/Optic", so I've got to kill process.
    Then, I try to load dms.jar with the same command but without "-resolve" option. This way, I've been able to load all class from
    this jar including the named before "oracle/dms/address/Optic". Then I compile all java class by hand except "oracle/dms/address/Optic"
    because everytime I try to compile (-resolve) this class, it hangs. So this is my first question: why?.
    As I've could to load almost all java class, I said, I'm going to try to load last jar: soap.jar
    cd ${ORACLE_HOME}/oc4j_extended/soap/lib
    loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass soap.jar
    but when this command finish, it shows me these errors:
    errors : class org/apache/soap/messaging/Message
    ORA-29534: el objeto WSUSER.oracle/soap/transport/http/OracleSOAPHTTPConnection al que se hace referencia no se ha podido resolver
    synonym : org/apache/soap/messaging/Message
    The following operations failed
    class oracle/soap/client/ProviderManagerClient: resolution
    class oracle/soap/client/ServiceManagerClient: resolution
    class oracle/soap/server/http/SOAPServlet: resolution
    class oracle/soap/providers/JavaProvider: resolution
    class oracle/soap/providers/ejbprov/EntityEJBProvider: resolution
    class oracle/soap/providers/ejbprov/StatefulEJBProvider: resolution
    class oracle/soap/providers/ejbprov/StatelessEJBProvider: resolution
    class oracle/soap/providers/sp/SpProvider: resolution
    class oracle/soap/transport/http/OracleSOAPHTTPConnection$1: resolution
    class oracle/soap/transport/http/OracleSOAPHTTPConnection: resolution
    class org/apache/soap/rpc/Call: resolution
    class org/apache/soap/rpc/RPCMessage: resolution
    class org/apache/soap/rpc/Response: resolution
    class org/apache/soap/messaging/Message: resolution
    exiting : Failures occurred during processing
    but this has no sense, because this class oracle/soap/transport/http/OracleSOAPHTTPConnection do exists in the jar file and it can be loaded.
    so I don't understand..... I try to load class by class to see dependencies or whatever using this command:
    I choose this class to begin:
    loadjava -resolve -verbose -synonym -grant PUBLIC -user wsuser/pass org/apache/soap/rpc/Call.class
    it shows me:
    creating : class org/apache/soap/rpc/Call
    loading : class org/apache/soap/rpc/Call
    granting : execute on class org/apache/soap/rpc/Call to PUBLIC
    resolving: class org/apache/soap/rpc/Call
    errors : class org/apache/soap/rpc/Call
    ORA-29534: el objeto WSARR.oracle/soap/transport/http/OracleSOAPHTTPConnection al que se hace referencia no se ha podido resolver
    synonym : org/apache/soap/rpc/Call
    The following operations failed
    class org/apache/soap/rpc/Call: resolution
    exiting : Failures occurred during processing
    so I try to load the class which it had could not find:
    loadjava -resolve -verbose -synonym -grant PUBLIC -user wsarr/wsarr oracle/soap/transport/http/OracleSOAPHTTPConnection.class
    it shows me:
    creating : class oracle/soap/transport/http/OracleSOAPHTTPConnection
    loading : class oracle/soap/transport/http/OracleSOAPHTTPConnection
    granting : execute on class oracle/soap/transport/http/OracleSOAPHTTPConnection to PUBLIC
    resolving: class oracle/soap/transport/http/OracleSOAPHTTPConnection
    errors : class oracle/soap/transport/http/OracleSOAPHTTPConnection
    ORA-29545: clase especificada incorrectamente: at offset 445 of oracle.soap.transport.http.OracleSOAPHTTPConnection.getHTTPConnection expecting a class-oracle.security.ssl.OracleSSLCredential but encountered a class-oracle.security.ssl.OracleSSLCredential.
    synonym : oracle/soap/transport/http/OracleSOAPHTTPConnection
    The following operations failed
    class oracle/soap/transport/http/OracleSOAPHTTPConnection: resolution
    exiting : Failures occurred during processing
    o_o ...... but this could be endless!!!!!
    Is there someone in this planet who had could to load this jars files without errors?????? :´(
    Please, I need help!!!! it's urgent!
    Thanks in advance!
    María

    The error messages you are getting means that the JAR you loaded into the database is invalid.
    ORA-29534:     referenced object string.string could not be resolved
    Cause:     Name resolution determined that the indicated object is referenced but could not be resolved.
    Action:     Correct name resolver or address resolution problems in the referenced class, or correct compilation problems in its source.
    Oracle extracts all classes from the jar file by the time you load the jar file and processes each class individually. I suggest you to run this query against the user_objects or dba_objects view to determine the status of your classes
    select DBMS_JAVA.LONGNAME(OBJECT_NAME) as OBJECT_NAME
    ,STATUS
    from USER_OBJECTS
    where OBJECT_TYPE like 'JAVA%'
    On the other hand, I see you are at 9.2.0.5.0, in order for you to avoid hitting known bugs, I suggest you to apply, if possible, the latest 9.2.0.8.0 + July CPU patch
    ~ Madrid

  • Error in deploying .jar file from JDeveloper 10.1.3.5

    Hello,
    I want to deploy .jar file in a machine, instead of having to install JDeveloper to run the application (it contains: Web Services and Data Base).
    I have followed the following steps in JDeveloper to create the .jar file:
    1) Right click over the project: New... --> General (All Technologies option selected) --> Deployment Profiles --> JAR File
    2) I have selected "Include Manifest File" option specifying the application's main class
    3) In JAR Deployment Profile Properties window: File Groups --> Project Output --> Contributors are selected: "Project Output Directory" and "Project Dependencies"
    4) With the previous steps, JDeveloper generates a .deploy file. It is created in Resources folder. From this folder, I have selected the .deploy file and right click and I have selected "Deploy to JAR file"
    The .jar is created succesfully. In this point, I try to execute with the command:
    java -jar NAME_OF_THE_DIRECTORY_WHERE_THE FILEIS_DEPLOYED\NameFile.jar
    and I have the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceFactory
    at project.proxy.AccountClient.<init><AccountClient.java>
    at project.proxy.AccountClient.main<init><AccountClient.java>
    The Manifest File content is:
    Manifest-Version: 1.0
    Created-By: Oracle JDeveloper 10.1.3.5.0
    Main-Class: project.proxy.AccountClient
    I have tested with differents variables to create the .jar file, but always the error is the same. And I haven't found information to solve it. For this reason, I appreciate any help.
    Thank you and regards.
    Edited by: user1634407 on 31-mar-2010 8:27
    Edited by: user1634407 on 31-mar-2010 8:47

    If you are just building a client that access a Web service you need a JAR and not a WAR.
    Ok!
    One thing to try is look at the command line that JDeveloper uses to run your client (it's in the log window) - specifically look at the classpath used.
    Then try and run the same thing from a command line and see if it works.
    Nowadays, the application is running with a .BAT file, it contains the statement released from the JDeveloper console, and it is working perfectlly.
    I try to do the same from a command line, and it works too.
    Assuming it is - you can either use that, or you'll need to make sure that your JAR includes all the mentioned jars that were in the class path - this is done through the library type file group.
    To create the .JAR file I have choosen the following options (JAR Deployment Profile Properties):
    1) Include Manifest File --> I have selected the class that contains the main class (from the Browse option)
    2) I left the default File Groups (Project Output) --> it has: Project Output Directory + Project Dependencies
    3) As you said me, I have created a new File Group (type: Libraries) --> and here, I have selected all the possible Contributors. These match those specified in the project (Oracle XML Parser v2, J2EE, JAX-RPC Client, Commons Logging 1.0.3, Ojdbc14.jar).
    4) Deployment to JAR File successfully.
    The resulting MANIFEST.MF is:
    Manifest-Version: 1.0
    Created-By: Oracle JDeveloper 10.1.3.5.0
    Main-Class: project.proxy.Execution
    It hasn't definied "Class-Path", althought to especified a new File Group with the libraries... Is it an error?
    If I extract the .JAR file, I see all libraries, and I have two folders: one with .class files of my project and other one is META-INF with MANIFEST.MF file.
    5) From command line I executed:
    C:\jdevstudio10135\jdk\bin > java -jar C:\jdevstudio10135\jdev\mywork\project\project\deploy\NameFile.jar
    And the result is an error:
    Exception in thread "main": java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceFactory
    I think the error is because it can not find the library ServiceFactory, but it is especified inside JAX-RPC Client library. What is wrong?
    *6)* I have tried too to insert in "JAR Deployment Profile Properties" (in JAR options) an additional Manifest File to merge into MANIFEST.MF, to include "Class-Path" with all libraries's project (the same JAR from the statement released from the JDeveloper console), but I think that it is a limit, because if I insert all libraries the "Class-Path" doesn't inserted in MANIFEST.MF. The maxim is:
    Class-Path: C:\jdevstudio10135\jdev\mywork\project\project\classes C:\jdevstudio10135\lib\xmlparserv2.jar C:\jdevstudio10135\lib\xml.jar C:\jdevstudio10135\j2ee\home\lib\activation.jar C:\jdevstudio10135\j2ee\home\lib\ejb.jar C:\jdevstudio10135\j2ee\home\lib\jms.jar C:\jdevstudio10135\j2ee\home\lib\jta.jar C:\jdevstudio10135\j2ee\home\lib\mail.jar C:\jdevstudio10135\j2ee\home\lib\servlet.jar C:\jdevstudio10135\webservices\lib\jaxrpc-api.jar
    The following libraries afther the previous one aren't allowed to include because I think that is exceeding the maximum size.
    I have tested to create various MANIFEST.MF with different PATHs libraries, but it isn't work to include in the MANIFEST.MF file all libraries...
    (C:\jdevstudio10135\webservices\lib\wsclient.jar
    C:\jdevstudio10135\webservices\lib\wsserver.jar
    C:\jdevstudio10135\webservices\lib\wssecurity.jar
    C:\jdevstudio10135\webservices\lib\wsdl.jar
    C:\jdevstudio10135\webservices\lib\orasaaj.jar
    C:\jdevstudio10135\webservices\lib\saaj-api.jar
    C:\jdevstudio10135\webservices\lib\orawsdl.jar
    C:\jdevstudio10135\webservices\lib\orawsrm.jar
    C:\jdevstudio10135\webservices\lib\jaxr_api.jar
    C:\jdevstudio10135\webservices\lib\orajaxr.jar
    C:\jdevstudio10135\webservices\lib\relaxngDatatype.jar
    C:\jdevstudio10135\webservices\lib\jaxb-impl.jar
    C:\jdevstudio10135\webservices\lib\jaxb-libs.jar
    C:\jdevstudio10135\webservices\lib\xsdlib.jar
    C:\jdevstudio10135\webservices\lib\mdds.jar
    C:\jdevstudio10135\jlib\jaxen.jar
    C:\jdevstudio10135\jlib\oraclepki.jar
    C:\jdevstudio10135\jlib\ojpse.jar
    C:\jdevstudio10135\jlib\osdt_core.jar
    C:\jdevstudio10135\jlib\osdt_cert.jar
    C:\jdevstudio10135\jlib\osdt_xmlsec.jar
    C:\jdevstudio10135\jlib\osdt_wss.jar
    C:\jdevstudio10135\jlib\osdt_saml.jar
    C:\jdevstudio10135\jlib\repository.jar
    C:\jdevstudio10135\jlib\ojmisc.jar
    C:\jdevstudio10135\j2ee\home\lib\http_client.jar
    C:\jdevstudio10135\j2ee\home\jazncore.jar
    C:\jdevstudio10135\j2ee\home\oc4jclient.jar
    C:\jdevstudio10135\rdbms\jlib\xdb.jar
    C:\jdevstudio10135\diagnostics\lib\ojdl2.jar
    C:\jdevstudio10135\jakarta-taglibs\commons-logging-1.0.3\commons-logging-api.jar
    C:\jdevstudio10135\jakarta-taglibs\commons-logging-1.0.3\commons-logging.jar
    C:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14.jar
    C:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14_g.jar
    C:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14dms.jar
    C:\oracle\product\10.2.0\client_1\jdbc\lib\ojdbc14dms_g.jar)
    With this .MF file (or including only "C:\jdevstudio10135\jdev\mywork\project\project\classes") I have solved the other problem (not found the libraries), but it still not working, the error is a little different:
    Exception in thread "main": java.lang.NoClassDefFoundError: project/proxy/Execution
    The path where the main class is: C:\jdevstudio10135\jdev\mywork\project\project\classes\project\proxy\Execution.class
    I have tried to insert directlly the following paths in "Main Class" option of "Include Manifest File":
    C:\jdevstudio10135\jdev\mywork\project\project\classes\project\proxy\Execution
    C:\\jdevstudio10135\\jdev\\mywork\\project\\project\\classes\\project\\proxy\\Execution
    And with these values, the error is the same: Exception in thread "main": java.lang.NoClassDefFoundError
    I am not sure if the error is a bug of JDeveloper 10.1.3.5 or it is something that I don't correctly. Any idea?
    Thank you again and regards.
    Edited by: user12085357 on 08-abr-2010 1:31
    Edited by: user12085357 on 08-abr-2010 1:38
    Edited by: user12085357 on 08-abr-2010 6:58

  • Jar file could not find main class.. I cant see why?

    I have read loads of tutorials on this and it should be very straight forward but i STILL cant make a working jar file of my program.. please see if you can see anything wrong with what im doing..
    my program is one .java file that compiles perfectly, and is runnable both through eclipse and by using the command prompt.. i made a jar file using both eclipse and the command prompt, and neither worked.. every time i run it by double clicking it i get the error "could not find main class, program will exit". here is the contents of my jar:
    CorePackage\IPEmailer.class
    CorePackage\IPEmailer$1.class
    CorePackage\IPEmailer$SMTPAuthenticator.class
    META-INF\MANIFEST.MF
    the MANIFEST.MF file contains:
    Manifest-Version: 1.0
    Class-path: .
    Created-By: 1.6.0_02 (Sun Microsystems Inc.)
    Main-Class: CorePackage.IPEmailer
    (yes there is a blank line at the end)
    the class mentioned in 'Main-Class' has a main method that looks like this:
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        new IPEmailer();
    }the program uses 2 external jar files:
    activation.jar
    mail.jar
    and reads a file called:
    ipemailer.ini
    and writes a file called:
    ip.txt
    the program has no GUI and is intended to run 'silently' in the background
    please help me understand what is wrong with this

    package CorePackage;
    import javax.mail.*;
    import javax.mail.Authenticator;
    import javax.mail.PasswordAuthentication;
    import javax.mail.internet.*;
    import java.util.*;
    import java.io.*;
    import java.net.*;
    public class IPEmailer implements Runnable{
          * @param args
         String recipientsinput[]={""};
         String subject;
         String body;
         String server;
         String user;
         String pass;
         String from;
         String urlString = "http://www.whatismyip.org";
         String currentIP;
         String ipFromFile;
         boolean webFailed;
         long interval = 900000; //15 mins
         long oldInterval;
         Thread t = new Thread(this);
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              new IPEmailer();
         public IPEmailer(){
                         ..........etccould the problem be that the class is a thread? i cant see why it would be, but ive never made a jar where the main class also 'implements runnable'

Maybe you are looking for

  • Photoshop Latency Issues? when saving....1.5min to open 5.5 min to save same file.

    I am struggling to optimize my computer for Photoshop. An example file opens in 85 seconds. Same file saves in 340 seconds. PhotoShop CS6 (13.0.1) File is 21000 x 21000 - 50 layers (5.8gb .psb saved) Why so big? - 5k.com/C.jpg When I open image, I se

  • How to get the all instances in which I acted on any of the activity?

    Hi all, Consider that in a Process there are three Activities named 1. Create Proposal Role : Initiator 2. Routed to Primary Owner Approval Role : Primary Owner 3. Routed to Manager Approval Role : Manager Suppose I'm a Participant having access to P

  • FR configurations Fails

    Hi ALL, We have a problem in configuring FR. I have attached the config.log at the end The following is the architecture: Hyperion Version : 9.2.1 DBTIER: Node A: Unix ( No Essbase) MTTIER: Node B: Windows -HFM Mid Tier - Microsoft IIS Web Server Nod

  • Custom metadata dropdown lists

    My company recently purchased Lightroom to catalog our enormous collection of photographs. We need a way to attach industry specific metadata to our photos in order to retrieve them easier and faster. I have found a couple of free plugins but I haven

  • Source system activate error

    Hi, I have created new source system for R/3 quality , when i am activating then getting following error. Kindly suggest how to resolve this error. Thanks in advance. BI unknown in source system     RSAR     8      BI IDoc type ZSDB018 is not the sam