Can't load JavaMail classes
Hi,
I'm new to Aurora and having trouble getting a set of source files (javamail 1.1.3) to load into jserver properly.
I'm not sure if i should load the mail.jar into Oracle using loadjava first, or simply set the classpath to point to mail.jar?
I tried it both ways
When I try to load the mail.jar file using loadjava the javax package fails to load because of a 'privilege error' yet the com packages load ok.
When I try to load my own class with the mail.jar file in the classpath on a client, it can't find several of the classes needed in the mail.jar archive....
Does the classpath need to be set on the server for mail.jar, or can i load them using loadljava. Not sure what to do...
Thanks,
Bill Wheeler
Ken,
I tried extracting and re-jarring the javamail source files without compression.
Here is what i get when trying to load them using loadjava as 'system':
identical: com/sun/mail/handlers/text_html is unchanged from previously loaded file
identical: com/sun/mail/handlers/multipart_mixed is unchanged from previously loaded file
identical: com/sun/mail/smtp/SMTPOutputStream is unchanged from previously loaded file
loading : javax/mail/event/StoreEvent
creating : javax/mail/event/StoreEvent
Error while creating class javax/mail/event/StoreEvent
ORA-01031: insufficient privileges
Any idea why the com package is loading successfully and the javax is not?
Thanks,
Bill Wheeler
Similar Messages
-
Can i load a class in subdirectoy inside a jar file using applet tag?
hi every one.. thank you for reading ... i am really in dire need for the solution..
my problem is that i have a jar file contianing a package which inturn contains my applet class...
i am trying to access this applet class using a applet tag in html file. this html file is in same directory as the jar file. i am having no problems in windows but when i am doing this in linux apache server i was getting class not found exception. (already checked the file permissions). and when i am successful when using simple package directory instead of jar file . so gist of my quesition is "can i load a class in subdirectoy inside a jar file using applet tag in a html file"?When you tested in Windows were you using Internet Explorer? On Linux you will be using a different browser, usually Mozilla of some version, or Firefox. Note that the HTML tags for applets will be different between the browsers if you are using the object tag. Principally the classid value for the object tag will differ between Firefox and Internet Explorer.
-
Can't load any classes from infobus.jar (WL 6.0 SP1)
Hi,
I am deploying an .ear file, which has one .war file in it. The war file, has
infobus.jar, inside it under \WEB-INF\lib. Whenever in my servlet code I try to
load a class from infobus.jar, I get the following exception :
About to load class javax.infobus.InfoBusDataConsumer<<<<<<<<<<java.lang.ClassNotFoundException: InfoBusDataConsumer
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:178)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:45)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at XDILoginForm.init(XDILoginForm.java:99)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:638)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:581)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:526)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1078)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:1022)
at weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:499)
at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:421)
at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
at weblogic.j2ee.Application.deploy(Application.java:175)
at weblogic.j2ee.J2EEService.deployApplication(J2EEService.java:173)
at weblogic.management.mbeans.custom.Application.setLocalDeployed(Application.java:217)
at weblogic.management.mbeans.custom.Application.setDeployed(Application.java:187)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeSetter(DynamicMBeanImpl.java:1136)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:773)
at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:750)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:256)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:318)
at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:259)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:291)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:173)
at $Proxy7.setDeployed(Unknown Source)
at weblogic.management.console.pages._panels._mbean._application._jspService(_application.java:303)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:213)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1265)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1622)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
But if I put the infobus.jar on system classpath , everything works out fine.
Can somebody tell me, what is going onGseel is right: you try to instantiate an EJB with the BDK.
Enterprise Java Beans are totally different from graphical/GUI beans. EJBs are thought for dealing with business logic like accessing a database, ldap directory and so on. They run on a application server (simply speaking - a java enabled webserver) and do some processing to handle user requests. Enterprise Java Beans usually don't interact directly with the user, they only do the work in the background and forward their results, which are then rendered for the user. Typically they are employed for handling web requests (a user with a browser), but they can also be used for awt/swing applications. Though - let me repeat - they don't appear visually on the screen.
The only similarities between those two bean types are the following: they have getter/setter methods for their properties, they implement Serializeable (or a sub-interface like Externalizable, Remote) and they have a default no-argument constructor.
If you want to run your been you need an application server (your bean is pre-packaged for the Bea Weblogic app-server). If you want to do something graphical, you'll need to search for GUI beans.
dani3l -
JSPServlet can't load taglib class under W2K
Hello,
iAS version: 10g (9.0.4)
platform: w2k
Service Pack: sp4
I've deployed a custom application. When I try to access to the application I get the following error in the application.log:
JSPServlet: Exception: oracle.jsp.parse.JspParseException: line number 18, <%@ taglib uri="/includes/TTT_TagLib.tld" prefix="ttt" %>
Error: Unable to load taghandler class: /includes/TTT_TagLib.tld
The deploy of the same ear under Linux platform with the same iAS version ( 9.0.4 ) is working fine.
Any idea?Hi all,
CLASSPATH in windows is D:\oracle\mtierAS10g\jre;D:\oracle\mtierAS10g\jlib;D:\oracle\mtierAS10g\jre;D:\oracle\mtierAS10g\rdbms\jlib;D:\oracle\mtierAS10g\network\jlib;
CLASSPATH in Linux is equivalent -
LCM Utility.bat can't load plugin class
Utility.bat won't run unless you have SetEnv.bat in the same directory. When running from either C:\Oracle\Middleware\EPMSystem11R1\common\utilities\LCM\11.1.2.0\bin or C:\Oracle\Middleware\user_projects\epmsystem2\bin, I get:
SEVERE: Unable to load the plugin class com.hyperion.expimp.ExportImportManager
I can run an export through the shared services web page just fine. Any ideas?
C:\Oracle\Middleware\user_projects\epmsystem2\bin>"C:\Oracle\Middleware\EPMSyste
m11R1\common\utilities\LCM\11.1.2.0\bin\Utility.bat" C:\HFM-backup\WAHYPWEBDEV1-
MigrationDefinition-ReportingandAnalysis.xml
Oct 11, 2012 11:40:26 AM com.hyperion.hit.registry.DatabaseComponentImpl getData
baseHostName
INFO: Registry DB has been configured with thin driver jdbc:oracle:thin:@WAHYPDB
ADEV1.qg.com:1521:HYPEDEV1.
Oct 11, 2012 11:40:26 AM com.hyperion.css.common.CSSUtils toInt
WARNING: Number format exception has occurred. null. No action required.
Oct 11, 2012 11:40:27 AM oracle.EPMAUDITCLIENT
INFO: Client Enable Status false
Oct 11, 2012 11:40:27 AM oracle.EPMAUDITCLIENT
INFO: Audit Client has been created for the product HUB-11.1.2.0
Oct 11, 2012 11:40:29 AM
INFO: Initializing CMSClient.
Oct 11, 2012 11:40:29 AM
INFO: CMSClient initialized successfully.
Oct 11, 2012 11:40:29 AM
INFO: Checking if application group Reporting and Analysis exists in Registry.
Oct 11, 2012 11:40:29 AM
INFO: Validating user inputs.
Oct 11, 2012 11:40:29 AM
INFO: User input validations done.
Oct 11, 2012 11:40:29 AM
INFO: Checking if application group Reporting and Analysis exists in Registry.
Oct 11, 2012 11:40:29 AM
INFO: Retrieving application id for application with display-name Reporting and
Analysis.
Oct 11, 2012 11:40:29 AM
INFO: Validating user inputs.
Oct 11, 2012 11:40:29 AM
INFO: User input validations done.
Oct 11, 2012 11:40:29 AM
INFO: Application id retrieved successfully from registry - 00000130b2adae56-000
0-6a07-0affa8b4.HAVA for application with display-name Reporting and Analysis
Oct 11, 2012 11:40:29 AM
INFO: Initializing CMSClient.
Oct 11, 2012 11:40:29 AM
INFO: CMSClient initialized successfully.
Migrating artifacts from Reporting and Analysis/Reporting and Analysis To /Repor
ting and Analysis-Reporting and Analysis
Oct 11, 2012 11:40:29 AM oracle.EPMAUDITCLIENT
INFO: Client Enable Status false
Oct 11, 2012 11:40:29 AM oracle.EPMAUDITCLIENT
INFO: Audit Client has been created for the product HAVA-11.1.2.0
Unable to load the plugin class com.hyperion.expimp.ExportImportManager
Oct 11, 2012 11:40:29 AM com.hyperion.lcm.common.manager.ManagerFactory getManag
er:53
SEVERE: Unable to load the plugin class com.hyperion.expimp.ExportImportManager
Unable to load the plugin class com.hyperion.expimp.ExportImportManager
Oct 11, 2012 11:40:29 AM com.hyperion.lcm.common.LCMLogger logMessages:937
SEVERE: Unable to load the plugin class com.hyperion.expimp.ExportImportManager
Migration Status - Completed with failures.A Full trace might help us out:
http://forum.java.sun.com/thread.jspa?threadID=656028 -
Can I load Java classes generated by the Web Service Proxy Wizard?
Hi gurus,
I am very new to Oracle JDeveloper and I have mainly used it to create and debug PL/SQL procedures. My client app is written in PowerBuilder 11 (Sybase), which claims that it will create a datawindow from a web service. Well, it turned out that PB can only handle simple stuff (it works with a very simple wsdl from the internet) but can't handle more complex ones that we need to use. So I am thinking about using JDev to create the web service proxy for the web service and then load it into Oracle as a Java stored procedure so that PowerBuilder can call the procedure. JDev succsfully generated the proxy and a few Java classes. My question is, do I need to load all the classes into the database? If yes, will the reference to the package work? For example, in a JDev generated class (the soap client class), it has package MyJdev.proxy; at the top. Or, will it work if I load all the classes included in package /MyJdev/proxy into the database?
Thank you very much for any help.
BenThanks again, Bruce.
What I meant by SOAPElement is that one genereated Java class has this and this class also has the setter for this like this,
public void setSelection(javax.xml.soap.SOAPElement selection) {
this.selection = selection;
And here is the whole class,
public class CaseSearchByPartyRequest implements java.io.Serializable {
protected java.lang.String schemaVersion;
protected java.util.Calendar messageProducedDateTime;
protected javax.xml.soap.SOAPElement selection;
protected Restriction restriction;
public CaseSearchByPartyRequest() {
public java.lang.String getSchemaVersion() {
return schemaVersion;
public void setSchemaVersion(java.lang.String schemaVersion) {
this.schemaVersion = schemaVersion;
public java.util.Calendar getMessageProducedDateTime() {
return messageProducedDateTime;
public void setMessageProducedDateTime(java.util.Calendar messageProducedDateTime) {
this.messageProducedDateTime = messageProducedDateTime;
public javax.xml.soap.SOAPElement getSelection() {
return selection;
public void setSelection(javax.xml.soap.SOAPElement selection) {
this.selection = selection;
public Restriction getRestriction() {
return restriction;
public void setRestriction(Restriction restriction) {
this.restriction = restriction;
this.selection is the request that I think I need. And here is the static main method of the soap client class genereated.
public static void main(String[] args) {
try {
MyJdev.proxy.SoapClient myPort = new MyJdev.proxy.SoapClient();
System.out.println("calling " + myPort.getEndpoint());
// Add your own code here
} catch (Exception ex) {
ex.printStackTrace();
So, if I need to send the request to the web service, do I need to create the request, correct? I have done it through AQ and Messaging Gateway and works fine by manually creating the request xml in PL/SQL, but now I need to get it to work sychronously from the UI. I believe that I need the request (SOAPElement) because that is the only way that I can supply the parameters. I have not see any setters for the parameters other than some setters for user name and password.
Did I get something wrong here? If I don't supply the "selection", will JDev do it?
Thanks.
Ben -
Content server can not load javax classes in classpath
I have added a jar including javax.* classes to classpath of content server.
I can see the jar in content sever configuration page of classpath.
But those javax.* class can not be loaded into content server.
Content server is throwing java.lang.ClassNotFoundException.
content server is running standalone.
Anyone knows why?
Thanks.
Edited by: lyx on Mar 20, 2012 2:29 PMAnyone has similar issue?
-
Linkage error - can't load a class
Hi,
I would like you to give advice.
I made a movieclip symbol(journal) which calls the Journal
class in a Flash Project File.
I wrote like this on the Linkage Properties window:
Identifier: journal
AS 2.0 class: _journal.Journal
and checked two options(Export for AS and Export in first
frame)
I think the class route is correct. But when I test the
project, it occurs an error ("Symbol = journal, layer = binding,
frame = 1:Line 1: The class or interface '_journal.Journal' could
not be loaded.")
I appreciate if you explain why it happens to me and what the
'binding' of a layer means.Thank you, clbeech.
I use the Project panel of Flash and put the Journal Class in
it. Everything seemed to be perfect before I checked the real
location of the Journal file. I discovered that I was confused the
directories in the Project panel of Flash with the real directories
on Windows. Both are different. Allocating a flash file in the
folder of the Project panel doesn't mean that that file is located
in the real Windows folder. Actually I have several versions of the
project I'm doing so I was confused.
Thanks again, clbeech.
Have a good day. -
Loading a class not on classpath
how can we load a class not on classpath?
uddinr0121 wrote:
try this
private void addArchive(File jarFile) throws IOException {
URL u = jarFile.toURI().toURL();
URLClassLoader sysloader = (URLClassLoader) ClassLoader.getSystemClassLoader();
Class<?> sysclass = URLClassLoader.class;
try {
Method method = sysclass.getDeclaredMethod("addURL", parameters);
method.setAccessible(true);
method.invoke(sysloader, new Object[]{u});
} catch (Throwable t) {
t.printStackTrace();
}this will add the jar file to the classpath after which you should be able to invoke using Class.forName()
hope this helpsThat's a horrible solution, when you can just create a new URLClassLoader and use that to load the class.
Adding it to the system classpath with reflection trickery is not really a clean solution to that. -
Load java class into the database 10g
Hi ,
We have a program which creates pdf files by using bi publisher.for this program we r using some java package to create a directory in unix whenever invoiceprint program runs.
Now i need to load this class into database,so how can i load this class into database.
I got some samples and docs from google but i was confused with those wether i should load from Oracle/applmgr user.
So Could any one please tell me how can i load java class into oracle database.
I am verymuch thankful for your kind help.Its an emergency issue for me.
Thanks,
YMRHi,
http://www.oracle-training.cc/teas_elite_util9.htm
SS -
I keep getting this error message: ITunes was unable to load data class information from Synch Services. Reconnect or try again later. What does that mean? Can I fix it? or do I have to wait for the next update?
See TS2690: iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert.
tt2 -
Hey, when I connect either my ipod or ipad to itunes I get the prompt 'itunes was unable to load data class information from sync services. Reconnect or try again later. Can anyone help me with syncing my devices?? Thanks in advance
I am having the same issue, anyone else ?
-
I'm trying to transfer music to my iPod touch using iTunes, but it won't let me.
It syncs fine now, but then this window pops up and I can't transfer musics.
Is there anyone who can help me?http://support.apple.com/kb/TS2690
iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert -
Load: AcidRainApplet.class can't be instantiated
The error "load: AcidRainApplet.class can't be instantiated" is coming up on this bit of code, any ideas on being rid of it?
// The "AcidRainApplet" class.
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
import java.util.Date;
import javax.swing.*;
public class AcidRainApplet extends Applet implements KeyListener, ActionListener
public AcidRainApplet ()
super ();
int width = 600, height = 450;
int x = width / 2, y = height - 100, w = 27, h = 40;
int count = 0;
boolean playing = true, pause = true;
Font endFont = new Font ("Arial Black", Font.PLAIN, 36);
Font ptFont = new Font ("Westminster", Font.PLAIN, 28);
int points = 0;
int numRain = 80;
int maxRain = 200;
int speed = 5;
ImageIcon imgi = new ImageIcon ("homer.gif");
Image ch = imgi.getImage ();
javax.swing.Timer t;
public void init ()
setBackground (Color.black);
t = new javax.swing.Timer (speed, this);
this.addKeyListener (this);
for (int i = 0 ; i < maxRain ; i++)
rain = new Rain ();
} // init method
public void paint (Graphics g)
super.paint (g);
g.setColor (Color.white);
g.drawString ("" + numRain, width - 20, 15);
if (playing)
g.drawImage (ch, x, y, null);
g.setColor (Color.green);
for (int i = 0 ; i < numRain ; i++)
g.drawLine (rain [i].x, rain [i].y, rain [i].x, rain [i].y - 10);
if (!(pause))
rain [i].y += rain [i].sp;
if (rain [i].y > height)
rain [i].x = (int) (Math.random () * width);
rain [i].y = 0;
rain [i].sp = (int) (Math.random () * 5) + 2;
points++;
else if (rain [i].x >= x && rain [i].x <= x + w && rain [i].y >= y && rain [i].y <= y + h)
playing = false;
else
g.drawString ("PRESS ENTER TO PLAY AGAIN", 180, 400);
g.setFont (endFont);
g.setColor (Color.red);
g.drawString ("GAME OVER", 150, 200);
g.setFont (ptFont);
g.setColor (Color.green);
g.drawString ("Score: " + points, 200, 300);
t.stop ();
if (pause)
g.setColor (Color.green);
g.drawString ("PRESS ENTER", 200, 200);
} // paint method
public void resetVars ()
x = width / 2;
y = height - 100;
count = 0;
playing = true;
pause = true;
points = 0;
maxRain = 200;
speed = 5;
for (int i = 0 ; i < maxRain ; i++)
rain [i] = new Rain ();
public class Rain extends Applet
Rain ()
int x = (int) (Math.random () * width);
int y = 0;
int sp = (int) (Math.random () * 5) + 2;
Rain rain [] = new Rain [maxRain];
public void actionPerformed (ActionEvent e)
repaint ();
public void keyTyped (KeyEvent k)
public void keyPressed (KeyEvent k)
int key = k.getKeyCode ();
if (!(pause))
if (key == k.VK_LEFT && x > 0)
x -= 5;
if (key == k.VK_RIGHT && x + w < width)
x += 5;
if (key == k.VK_DOWN && numRain > 10)
numRain -= 10;
repaint ();
if (key == k.VK_UP && numRain != maxRain)
numRain += 10;
repaint ();
if (key == k.VK_ENTER)
if (pause)
pause = false;
t.start ();
else if (!(playing))
resetVars ();
else
pause = true;
t.stop ();
public void keyReleased (KeyEvent k)
} // AcidRainApplet classIrrespective of the working of your program, I would suggest you remove a lot of weeds and clean the code. That would help you do easier debugging .
Somethings I can quickly tell are,
the constructor in AcidRainApplet not useful, Rain implementing Applet not useful, implements KeyListener, ActionListener can be delegated to another class, usage of inner class can be rethinked of delegation can be given a thought. Following code can be thought of :
class Rain
private int x = 0;
private int y = 0;
private int sp = 0;
Rain ()
reset();
public int getX() {
return x;
public int getY() {
return y;
public void setX(int x) {
this.x = x;
public void setY(int y) {
this.y = y;
public void reset() {
x = (int) (Math.random () * width);
y = 0;
sp = (int) (Math.random () * 5) + 2;
}Good wishes,
Rajesh -
my ipod can't sync with itunes.Keeps saying that itunes was unable to load data class information from sync services
See TS2690: iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert.
tt2
Maybe you are looking for
-
What can I do! I know servers are busy but if its installing right now before the restart it means its finished downloading from apple servers so I don't understand why it has been installing with two minutes remaining for a really long time now :[ I
-
Hyperlink Scripting Solution Needed
Perhaps there is already a way to do this that I am missing that doesn't involve scripting, but I will post here nonetheless. I am in need of a script or extension that takes all the product numbers I have on a page (they can easily be found with GR
-
Custom keyboard shortcut to merge cells in Numbers?
How do I create custom keyboard shortcut to merge cells in Numbers? The instructions on the support site say to open Keyboard in preferences then click the +. I don't see a plus anywhere. On any menu.
-
How to create photo book from Album without cropping
I just came from vocation and try to make a cool photo book out of my "best pictures" selection. Most images are "as is" from camera, so have "standard" aspect ratio: H/W. I also happy about composition and would like to keep all or most of it. I tri
-
One of my toolbars is complete black and taking up space.
there is a blank black space between my toolbars that extends from one side of the screen to the other. It has a white 'leggo' looking shape in the middle of the bar but the rest is blank. I click on it and nothing happens. I want it removed as it's