Linking with package when creating jvm
Hi,
I use jni to access java method wich parse xml documents with jdom. Everything works fine when I use only java. But with jni, when I create the jvm, and try accessing my java methods, there's some errors. Typically, the jvm created cannot recognize my imports ("import org.jdom.*").
Does anyone know how to link with different package when I create the jvm in c side.
Thanks for help,
javaFriendly
Onlu the compiler takes any notice of import statements. Are you taking about the compiler or the jvm.(Used to run the program)
In either case it sounds like you classpath is not being set correctly if you cannot find other packages.
Similar Messages
-
Problem with FQDN when creating Web Dynpro App
Hi @ all,
when create a WDA the url is set like this: HTTP://SAPVM1:8000/sap/bc/webdynpro/sap/z_wda_sample.
I defined the icm/host_name_full and the SAPLOCALHOSTFULL correct*, but it did not work. I have also restarted the system more than one time. I searched a lot, but found no solution here on sdn.
*correct means : sapvm1.mydomain.de
Even if I try to start a default wda example the wrong FQDN is set. But if I start the wda at the SICF (test service) it works, the FQDN is set right.
thx in advance.
TimoHi,
it seems that the httpurlloc table was the problem. The host entry in this table was no FQDN, I changed it into FQDN and it works. Now the generated url of the web dynpro applications is correct.
Maybe this helps somebody else.
See also
http://help.sap.com/saphelp_nw70/helpdata/en/42/d547ab30b6473ce10000000a114e5d/frameset.htm
Timo -
Problems with encoding when creating link in mail
A user inputs some text in a field at a webpage.
From this I build a mail that has a link that looks like this:
http://www.domain.com/a/controller/action/?name=[INPUT VALUE]
My problem is that when I try to get the value in the receiving action, using params.name, it does not so good. The real problem is about odd characters like our swedish �,�,� for example.
What I have tried to do when building the link is to use URLEncoder.encode([INPUT VALUE], 'UTF-8') and then using URLDecoder.decode(params.name, 'UTF-8') but it does not work at all. Is there any other way I should attack this problem?def name = "Mattias Sands�ter";
def email = params.email;
name = URLEncoder.encode(name, 'UTF-8');
println(name)
def message = http://domain.com/a/b/download/?name=" + name
MailSender.sendMail(email, "Subject", message);{code}
{code}def download = {
println(params.name)
println("download after decode" + URLDecoder.decode(params.name, 'UTF-8')){code}
The first println looks fine, it says Mattias+Sands%C3%A4er
The second println looks horrible, Mattias Sands��ter
The third looks the same.
Then I send this to my gsp(jsp) page and wants to put this in a standard textfield, but it of course looks like Mattias Sands��ter there too.
This is on a linux-server, on my local computer, everything works as expected.
Whatever it its, something happens to the name-variable when it is clicked on in the e-mail. It looks good in the e-mail, get pasted in the address-field in the browser correctly, but when retreiving the variable with params.name it is screwed
Edited by: sandsater on Jul 8, 2008 8:44 AM -
Problem with package that create mail with PDF attachment
Hola,
I've this problem when I use the Oracle Package called "demo_mail",
that I have download from this forum en september.
The code of the Package, I post bottom, now I
write the records of the Package,
that I believe is the core of the problem:
demo_mail.begin_attachment( conn => conn,
mime_type => 'application/pdf',
inline => TRUE, filename => ''|| VC_NOMEFILE ||'',
transfer_enc => 'base64');
The mime_type is correct?
Why when I open the attachment of the mail, it say me that file type
is not correct or the file has been damneged? I need help!
Thank's
*********************************************************The steps that I've done:
1. PACKAGE demo_mail
2. PACKAGE BODY demo_mail
3. procedure P_SPEDMAILSERVATTA (that call package) this
Cannot write the code, because this the result. :(((
thank's
CREATE OR REPLACE PACKAGE demo_mail IS
-- Customize the SMTP host, port and your domain name below.
smtp_host VARCHAR2(256) := 'XXX.YYYY.IT';
smtp_port PLS_INTEGER := 25;
smtp_domain VARCHAR2(256) := 'YYYY.it';
-- Customize the signature that will appear in the email's MIME header.
-- Useful for versioning.
MAILER_ID CONSTANT VARCHAR2(256) := 'Mailer by Oracle UTL_SMTP';
--------------------- End Customizable Section ---------------------
-- A unique string that demarcates boundaries of parts in a multi-part email
-- The string should not appear inside the body of any part of the email.
-- Customize this if needed or generate this randomly dynamically.
BOUNDARY CONSTANT VARCHAR2(256) := '-----7D81B75CCC90D2974F7A1CBD';
FIRST_BOUNDARY CONSTANT VARCHAR2(256) := '--' || BOUNDARY || utl_tcp.CRLF;
LAST_BOUNDARY CONSTANT VARCHAR2(256) := '--' || BOUNDARY || '--' ||
utl_tcp.CRLF;
-- A MIME type that denotes multi-part email (MIME) messages.
MULTIPART_MIME_TYPE CONSTANT VARCHAR2(256) := 'multipart/mixed; boundary="'||
BOUNDARY || '"';
MAX_BASE64_LINE_WIDTH CONSTANT PLS_INTEGER := 76 / 4 * 3;
-- A simple email API for sending email in plain text in a single call.
-- The format of an email address is one of these:
-- someone@some-domain
-- "Someone at some domain" <someone@some-domain>
-- Someone at some domain <someone@some-domain>
-- The recipients is a list of email addresses separated by
-- either a "," or a ";"
PROCEDURE mail(sender IN VARCHAR2,
recipients IN VARCHAR2,
subject IN VARCHAR2,
message IN VARCHAR2);
-- Extended email API to send email in HTML or plain text with no size limit.
-- First, begin the email by begin_mail(). Then, call write_text() repeatedly
-- to send email in ASCII piece-by-piece. Or, call write_mb_text() to send
-- email in non-ASCII or multi-byte character set. End the email with
-- end_mail().
FUNCTION begin_mail(sender IN VARCHAR2,
recipients IN VARCHAR2,
subject IN VARCHAR2,
mime_type IN VARCHAR2 DEFAULT 'text/plain',
priority IN PLS_INTEGER DEFAULT NULL)
RETURN utl_smtp.connection;
-- Write email body in ASCII
PROCEDURE write_text(conn IN OUT NOCOPY utl_smtp.connection,
message IN VARCHAR2);
-- Write email body in non-ASCII (including multi-byte). The email body
-- will be sent in the database character set.
PROCEDURE write_mb_text(conn IN OUT NOCOPY utl_smtp.connection,
message IN VARCHAR2);
-- Write email body in binary
PROCEDURE write_raw(conn IN OUT NOCOPY utl_smtp.connection,
message IN RAW);
-- APIs to send email with attachments. Attachments are sent by sending
-- emails in "multipart/mixed" MIME format. Specify that MIME format when
-- beginning an email with begin_mail().
-- Send a single text attachment.
PROCEDURE attach_text(conn IN OUT NOCOPY utl_smtp.connection,
data IN VARCHAR2,
mime_type IN VARCHAR2 DEFAULT 'text/plain',
inline IN BOOLEAN DEFAULT TRUE,
filename IN VARCHAR2 DEFAULT NULL,
last IN BOOLEAN DEFAULT FALSE);
-- Send a binary attachment. The attachment will be encoded in Base-64
-- encoding format.
PROCEDURE attach_base64(conn IN OUT NOCOPY utl_smtp.connection,
data IN RAW,
mime_type IN VARCHAR2 DEFAULT 'application/octet',
inline IN BOOLEAN DEFAULT TRUE,
filename IN VARCHAR2 DEFAULT NULL,
last IN BOOLEAN DEFAULT FALSE);
-- Send an attachment with no size limit. First, begin the attachment
-- with begin_attachment(). Then, call write_text repeatedly to send
-- the attachment piece-by-piece. If the attachment is text-based but
-- in non-ASCII or multi-byte character set, use write_mb_text() instead.
-- To send binary attachment, the binary content should first be
-- encoded in Base-64 encoding format using the demo package for 8i,
-- or the native one in 9i. End the attachment with end_attachment.
PROCEDURE begin_attachment(conn IN OUT NOCOPY utl_smtp.connection,
mime_type IN VARCHAR2 DEFAULT 'text/plain',
inline IN BOOLEAN DEFAULT TRUE,
filename IN VARCHAR2 DEFAULT NULL,
transfer_enc IN VARCHAR2 DEFAULT NULL);
-- End the attachment.
PROCEDURE end_attachment(conn IN OUT NOCOPY utl_smtp.connection,
last IN BOOLEAN DEFAULT FALSE);
-- End the email.
PROCEDURE end_mail(conn IN OUT NOCOPY utl_smtp.connection);
-- Extended email API to send multiple emails in a session for better
-- performance. First, begin an email session with begin_session.
-- Then, begin each email with a session by calling begin_mail_in_session
-- instead of begin_mail. End the email with end_mail_in_session instead
-- of end_mail. End the email session by end_session.
FUNCTION begin_session RETURN utl_smtp.connection;
-- Begin an email in a session.
PROCEDURE begin_mail_in_session(conn IN OUT NOCOPY utl_smtp.connection,
sender IN VARCHAR2,
recipients IN VARCHAR2,
subject IN VARCHAR2,
mime_type IN VARCHAR2 DEFAULT 'text/plain',
priority IN PLS_INTEGER DEFAULT NULL);
-- End an email in a session.
PROCEDURE end_mail_in_session(conn IN OUT NOCOPY utl_smtp.connection);
-- End an email session.
PROCEDURE end_session(conn IN OUT NOCOPY utl_smtp.connection);
END;
CREATE OR REPLACE PACKAGE BODY demo_mail IS
-- Return the next email address in the list of email addresses, separated
-- by either a "," or a ";". The format of mailbox may be in one of these:
-- someone@some-domain
-- "Someone at some domain" <someone@some-domain>
-- Someone at some domain <someone@some-domain>
FUNCTION get_address(addr_list IN OUT VARCHAR2) RETURN VARCHAR2 IS
addr VARCHAR2(256);
i pls_integer;
FUNCTION lookup_unquoted_char(str IN VARCHAR2,
chrs IN VARCHAR2) RETURN pls_integer AS
c VARCHAR2(5);
i pls_integer;
len pls_integer;
inside_quote BOOLEAN;
BEGIN
inside_quote := false;
i := 1;
len := length(str);
WHILE (i <= len) LOOP
c := substr(str, i, 1);
IF (inside_quote) THEN
IF (c = '"') THEN
inside_quote := false;
ELSIF (c = '\') THEN
i := i + 1; -- Skip the quote character
END IF;
GOTO next_char;
END IF;
IF (c = '"') THEN
inside_quote := true;
GOTO next_char;
END IF;
IF (instr(chrs, c) >= 1) THEN
RETURN i;
END IF;
<<next_char>>
i := i + 1;
END LOOP;
RETURN 0;
END;
BEGIN
addr_list := ltrim(addr_list);
i := lookup_unquoted_char(addr_list, ',;');
IF (i >= 1) THEN
addr := substr(addr_list, 1, i - 1);
addr_list := substr(addr_list, i + 1);
ELSE
addr := addr_list;
addr_list := '';
END IF;
i := lookup_unquoted_char(addr, '<');
IF (i >= 1) THEN
addr := substr(addr, i + 1);
i := instr(addr, '>');
IF (i >= 1) THEN
addr := substr(addr, 1, i - 1);
END IF;
END IF;
RETURN addr;
END;
-- Write a MIME header
PROCEDURE write_mime_header(conn IN OUT NOCOPY utl_smtp.connection,
name IN VARCHAR2,
value IN VARCHAR2) IS
BEGIN
utl_smtp.write_data(conn, name || ': ' || value || utl_tcp.CRLF);
END;
-- Mark a message-part boundary. Set <last> to TRUE for the last boundary.
PROCEDURE write_boundary(conn IN OUT NOCOPY utl_smtp.connection,
last IN BOOLEAN DEFAULT FALSE) AS
BEGIN
IF (last) THEN
utl_smtp.write_data(conn, LAST_BOUNDARY);
ELSE
utl_smtp.write_data(conn, FIRST_BOUNDARY);
END IF;
END;
PROCEDURE mail(sender IN VARCHAR2,
recipients IN VARCHAR2,
subject IN VARCHAR2,
message IN VARCHAR2) IS
conn utl_smtp.connection;
BEGIN
conn := begin_mail(sender, recipients, subject);
write_text(conn, message);
end_mail(conn);
END;
FUNCTION begin_mail(sender IN VARCHAR2,
recipients IN VARCHAR2,
subject IN VARCHAR2,
mime_type IN VARCHAR2 DEFAULT 'text/plain',
priority IN PLS_INTEGER DEFAULT NULL)
RETURN utl_smtp.connection IS
conn utl_smtp.connection;
BEGIN
conn := begin_session;
begin_mail_in_session(conn, sender, recipients, subject, mime_type,
priority);
RETURN conn;
END;
PROCEDURE write_text(conn IN OUT NOCOPY utl_smtp.connection,
message IN VARCHAR2) IS
BEGIN
utl_smtp.write_data(conn, message);
END;
PROCEDURE write_mb_text(conn IN OUT NOCOPY utl_smtp.connection,
message IN VARCHAR2) IS
BEGIN
utl_smtp.write_raw_data(conn, utl_raw.cast_to_raw(message));
END;
PROCEDURE write_raw(conn IN OUT NOCOPY utl_smtp.connection,
message IN RAW) IS
BEGIN
utl_smtp.write_raw_data(conn, message);
END;
PROCEDURE attach_text(conn IN OUT NOCOPY utl_smtp.connection,
data IN VARCHAR2,
mime_type IN VARCHAR2 DEFAULT 'text/plain',
inline IN BOOLEAN DEFAULT TRUE,
filename IN VARCHAR2 DEFAULT NULL,
last IN BOOLEAN DEFAULT FALSE) IS
BEGIN
begin_attachment(conn, mime_type, inline, filename);
write_text(conn, data);
end_attachment(conn, last);
END;
PROCEDURE attach_base64(conn IN OUT NOCOPY utl_smtp.connection,
data IN RAW,
mime_type IN VARCHAR2 DEFAULT 'application/octet',
inline IN BOOLEAN DEFAULT TRUE,
filename IN VARCHAR2 DEFAULT NULL,
last IN BOOLEAN DEFAULT FALSE) IS
i PLS_INTEGER;
len PLS_INTEGER;
BEGIN
begin_attachment(conn, mime_type, inline, filename, 'base64');
-- Split the Base64-encoded attachment into multiple lines
i := 1;
len := utl_raw.length(data);
WHILE (i < len) LOOP
IF (i + MAX_BASE64_LINE_WIDTH < len) THEN
-- After upgrade to Oracle 9i, replace demo_base64.encode with the
-- native utl_encode.base64_encode for better performance:
-- utl_smtp.write_raw_data(conn,
-- utl_encode.base64_encode(utl_raw.substr(data, i,
-- MAX_BASE64_LINE_WIDTH)));
utl_smtp.write_raw_data(conn,
utl_encode.base64_encode(utl_raw.substr(data, i,
MAX_BASE64_LINE_WIDTH)));
ELSE
-- After upgrade to Oracle 9i, replace demo_base64.encode with the
-- native utl_encode.base64_encode for better performance:
-- utl_smtp.write_raw_data(conn,
-- utl_encode.base64_encode(utl_raw.substr(data, i)));
utl_smtp.write_raw_data(conn,
utl_encode.base64_encode(utl_raw.substr(data, i)));
END IF;
utl_smtp.write_data(conn, utl_tcp.CRLF);
i := i + MAX_BASE64_LINE_WIDTH;
END LOOP;
end_attachment(conn, last);
END;
PROCEDURE begin_attachment(conn IN OUT NOCOPY utl_smtp.connection,
mime_type IN VARCHAR2 DEFAULT 'text/plain',
inline IN BOOLEAN DEFAULT TRUE,
filename IN VARCHAR2 DEFAULT NULL,
transfer_enc IN VARCHAR2 DEFAULT NULL) IS
BEGIN
write_boundary(conn);
write_mime_header(conn, 'Content-Type', mime_type);
IF (filename IS NOT NULL) THEN
IF (inline) THEN
write_mime_header(conn, 'Content-Disposition',
'inline; filename="'||filename||'"');
ELSE
write_mime_header(conn, 'Content-Disposition',
'attachment; filename="'||filename||'"');
END IF;
END IF;
IF (transfer_enc IS NOT NULL) THEN
write_mime_header(conn, 'Content-Transfer-Encoding', transfer_enc);
END IF;
utl_smtp.write_data(conn, utl_tcp.CRLF);
END;
PROCEDURE end_attachment(conn IN OUT NOCOPY utl_smtp.connection,
last IN BOOLEAN DEFAULT FALSE) IS
BEGIN
utl_smtp.write_data(conn, utl_tcp.CRLF);
IF (last) THEN
write_boundary(conn, last);
END IF;
END;
PROCEDURE end_mail(conn IN OUT NOCOPY utl_smtp.connection) IS
BEGIN
end_mail_in_session(conn);
end_session(conn);
END;
FUNCTION begin_session RETURN utl_smtp.connection IS
conn utl_smtp.connection;
BEGIN
-- open SMTP connection
conn := utl_smtp.open_connection(smtp_host, smtp_port);
utl_smtp.helo(conn, smtp_domain);
RETURN conn;
END;
PROCEDURE begin_mail_in_session(conn IN OUT NOCOPY utl_smtp.connection,
sender IN VARCHAR2,
recipients IN VARCHAR2,
subject IN VARCHAR2,
mime_type IN VARCHAR2 DEFAULT 'text/plain',
priority IN PLS_INTEGER DEFAULT NULL) IS
my_recipients VARCHAR2(32767) := recipients;
my_sender VARCHAR2(32767) := sender;
BEGIN
-- Specify sender's address (our server allows bogus address
-- as long as it is a full email address ([email protected]).
utl_smtp.mail(conn, get_address(my_sender));
-- Specify recipient(s) of the email.
WHILE (my_recipients IS NOT NULL) LOOP
utl_smtp.rcpt(conn, get_address(my_recipients));
END LOOP;
-- Start body of email
utl_smtp.open_data(conn);
-- Set "From" MIME header
write_mime_header(conn, 'From', sender);
-- Set "To" MIME header
write_mime_header(conn, 'To', recipients);
-- Set "Subject" MIME header
write_mime_header(conn, 'Subject', subject);
-- Set "Content-Type" MIME header
write_mime_header(conn, 'Content-Type', mime_type);
-- Set "X-Mailer" MIME header
write_mime_header(conn, 'X-Mailer', MAILER_ID);
-- Set priority:
-- High Normal Low
-- 1 2 3 4 5
IF (priority IS NOT NULL) THEN
write_mime_header(conn, 'X-Priority', priority);
END IF;
-- Send an empty line to denotes end of MIME headers and
-- beginning of message body.
utl_smtp.write_data(conn, utl_tcp.CRLF);
IF (mime_type LIKE 'multipart/mixed%') THEN
write_text(conn, 'This is a multi-part message in MIME format.' ||
utl_tcp.crlf);
END IF;
END;
PROCEDURE end_mail_in_session(conn IN OUT NOCOPY utl_smtp.connection) IS
BEGIN
utl_smtp.close_data(conn);
END;
PROCEDURE end_session(conn IN OUT NOCOPY utl_smtp.connection) IS
BEGIN
utl_smtp.quit(conn);
END;
END;
PROMPT **********************************************************
PROMPT CREAZIONE PROCEDURA P_SPEDMAILSERVATTA
PROMPT **********************************************************
create or replace procedure P_SPEDMAILSERVATTA( VC_DESCDENOAZIE IN VARCHAR2,
VC_DESCINDIEMAI IN VARCHAR2,
VC_NUMEBOLL IN VARCHAR2,
VC_PATHFILE IN VARCHAR2,
VC_NOMEFILE IN VARCHAR2,
VC_DESCINDIEMAIMITT IN VARCHAR2)
IS
conn utl_smtp.connection;
req utl_http.req;
resp utl_http.resp;
data RAW(200);
BEGIN
conn := demo_mail.begin_mail(
sender => 'SIAG srl <'|| VC_DESCINDIEMAIMITT ||'>',
recipients => ''|| VC_DESCDENOAZIE ||' '||'<'|| VC_DESCINDIEMAI ||'>'||'',
subject => 'Invio Bollettino n.'|| VC_NUMEBOLL ||'',
mime_type => demo_mail.MULTIPART_MIME_TYPE);
demo_mail.attach_text(
conn => conn,
data => 'Spett.le <b>'|| VC_DESCDENOAZIE ||'</b> <br> in allegato Le invio il Bollettino n. '|| VC_NUMEBOLL ||'.<br> <br> Distinti Saluti <br><br> <hr align="left" width="20%"> ',
mime_type => 'text/html');
demo_mail.begin_attachment(
conn => conn,
mime_type => 'application/pdf',
inline => TRUE,
filename => ''|| VC_NOMEFILE ||'',
transfer_enc => 'base64');
-- In writing Base-64 encoded text following the MIME format below,
-- the MIME format requires that a long piece of data must be splitted
-- into multiple lines and each line of encoded data cannot exceed
-- 80 characters, including the new-line characters. Also, when
-- splitting the original data into pieces, the length of each chunk
-- of data before encoding must be a multiple of 3, except for the
-- last chunk. The constant demo_mail.MAX_BASE64_LINE_WIDTH
-- (76 / 4 * 3 = 57) is the maximum length (in bytes) of each chunk
-- of data before encoding.
req := utl_http.begin_request('http://localhost/'|| VC_PATHFILE ||'/'|| VC_NOMEFILE ||'');
resp := utl_http.get_response(req);
BEGIN
LOOP
utl_http.read_raw(resp, data, demo_mail.MAX_BASE64_LINE_WIDTH);
demo_mail.write_raw(
conn => conn,
message => utl_encode.base64_encode(data));
END LOOP;
EXCEPTION
WHEN utl_http.end_of_body THEN
utl_http.end_response(resp);
END;
demo_mail.end_attachment( conn => conn );
demo_mail.end_mail( conn => conn );
END;
Message was edited by:
mosquito70
Message was edited by:
mosquito70Hola, I've this problem when I use the Oracle Package called "demo_mail",
that I have download from this forum en september.
The code of the Package, I post bottom, now I
write the records of the Package,
that I believe is the core of the problem:
demo_mail.begin_attachment( conn => conn,
mime_type => 'application/pdf',
inline => TRUE, filename => ''|| VC_NOMEFILE ||'',
transfer_enc => 'base64');
The mime_type is correct?
Why when I open the attachment of the mail, it say me that file type
is not correct or the file has been damneged? I need help!
Thank's
The steps that I've done:
1. PACKAGE demo_mail
2. PACKAGE BODY demo_mail
3. procedure P_SPEDMAILSERVATTA (that call package)
I cannot post the code :(( -
Problem with pixelation when creating a pdf
Hi,
A client sent me an InDesign file and a PDF of what that file made. I was asked to make some text edits. I finish and export to pdf. When viewing my new pdf at 100% the images are pixelated really bad. The original pdf they are high quality images at 100%. I didn't mess with the images at all. I don't know what I am doing wrong.
Any help would be appreciated.
Extra info
ID CS6
Images are jpegs
High quality prin settings
Compress jpegs (maximum quality)
Do not downsampleInDesign creates low resolution previews of placed graphics (to enable quicker screen draws).
When you opened the file you should have been alerted that the document contained missing links.
During the work time on the file, the links panel would have shown similair to
InDesign probably also alerted when you exported to pdf.
If you have instructed InDesign to disable warnings, you should consider turning them back on from the Preferences panel
Edit > Preferences > General -
Using 3rd Party packages when creating jar - program doesn't run
I am using the xerces and xom packages for xml etc in my program.
It works fine when run from a command prompt, but as soon as I package it into a jar I get the java.lang.NoClassDefFound error for the nu.xom.Builder class (one of the 3rd party classes.)
Reading through these forums has yielded several suggestions, none of which work.
I am probably making some massive stupid mistake, but cannot see it...
My manifest:
Manifest-Version: 1.0
Created-By: 1.6.0 (Sun Microsystems Inc.)
Main-Class: be.bavardage.vocab.VocabGUI
Class-Path: serializer.jar xercesImpl.jar xercesSamples.jar xml-apis.jar xom-1.1.jar
using the jar comand line prompt:
jar cfm vocab.jar MANIFEST.MF be\bavardage\vocab\*.classCan anyone give me any indication as to what I am doing wrong...bavardage,
I too am reading forum messages to try to do just what you originally wanted to do. I have 3rd party JARs and I have always first extracted them and then turned around and JAR'ed them up into my single Remote.jar (actually I'm so new to Java that I don't yet change things that aren't broken and this was working when I got it)
jar xf jakarta-oro-2.0.5.jar
jar xf jasperreports-1.2.1.jar
jar xf iReport.jar
jar cmf mainClassSpec Remote.jar *.class org/ net/ it/I am reading the forums for a way to NOT do this. My reason is because I want to make the application Java Web Start (JAWS) capable. By zipping all the JARs up into one I end up with a JAR over 6 MB! I am also adding internationalization and I really need to keep the ListResourceBundle classes in a separate JAR so I can keep adding languages and not cause the entire 6 MB file to be downloaded each time.
Using Java Web Start is the real motivating force here. I need to keep all JARs separate so that when there are code changes or new languages only one small JAR will be downloaded again by JAWS not the huge iReport.jar file at 4,218KB nor the somewhat smaller jasperreports...jar at 1,225KB (at 64KB jakarta-oro...jar is hardly worth mentioning) .
I will watch this thread to see if you or anyone else later comes up with the information to reference external JARs (while in a Java Web Start environment).
So to put it in a question format, can anyone provide some information about referencing external JARs in a normal environment and will it work in a JAWS environment (I do know the technique for specifing and downloading multiple JARs in a JNLP file)?
Hopi(ng) -
Error with JNDI when creating new data source
Hi :
This weekend, while adding new applications to the production environment we ran into a problem where the JNDI tree of the new managed servers was unreachable.
The error message we saw was:
<1364066840022> <BEA-149231> <Unable to set the activation state to true for the application 'EOI'.
weblogic.application.ModuleException:
at weblogic.jdbc.module.JDBCModule.activate(JDBCModule.java:349)
at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:107)
at weblogic.application.internal.flow.DeploymentCallbackFlow$2.next(DeploymentCallbackFlow.java:411)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:74)
at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:66)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:16)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:162)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:42)
at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:187)
at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
weblogic.common.ResourceException: is already bound
at weblogic.jdbc.common.internal.RmiDataSource.start(RmiDataSource.java:387)
at weblogic.jdbc.common.internal.DataSourceManager.createAndStartDataSource(DataSourceManager.java:136)
at weblogic.jdbc.common.internal.DataSourceManager.createAndStartDataSource(DataSourceManager.java:97)
at weblogic.jdbc.module.JDBCModule.activate(JDBCModule.java:346)
at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:107)
at weblogic.application.internal.flow.DeploymentCallbackFlow$2.next(DeploymentCallbackFlow.java:411)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:74)
at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:66)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:16)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:162)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(DeploymentAdapter.java:42)
at weblogic.management.deploy.internal.DeploymentAdapter.prepare(DeploymentAdapter.java:187)
at weblogic.management.deploy.internal.AppTransition$1.transitionApp(AppTransition.java:21)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(ConfiguredDeployments.java:165)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:122)
at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
We traced the issue to a new data source that was added were we found that along with the the expected jndi name entry in the jdbc xml file, there were two blank entries:
<jndi-name>weblogic.jdbc.DataSource.EOI</jndi-name>
<jndi-name></jndi-name>
<jndi-name></jndi-name>
The data source was deleted, consoles restarted, the data source recreated and the issue occured again. To get by the issue we had to manually remove the blank tags from the xml file.
We created 2 new data sources, and it only happened on the one. The same data source each time. Additionally, this issue did not occur when these changes were made in our lower (development, qa) regions.
The version is the same in all three regions.
WebLogic Version:
WebLogic Server Temporary Patch for 9324911 Wed Feb 03 22:38:01 PST 2010
WebLogic Server 10.3 Fri Jul 25 16:30:05 EDT 2008 1137967
Is this a known issue? And if so, is there a way to avoid it, other than to start constantly checking the newly created XML files?
Thank you
tedYes, this is a common issue and documented in Oracle Docs:
WebLogic Server: Getting "weblogic.common.ResourceException: is already bound" exception with JDBC JNDI name (Doc ID 1154250.1)
The only fix is that you need to remove the empty value entries.
Cheers!!
AJ -
Problem with dnsextd when creating Wide-Area-Bonjour
Hello,
I've been struggling for some time trying to create a WAB test environment but without success and would appreciate some help.
Im using a mac mini (later 2014) running Yosemite to run bind (9.10) and ISC for a testing zone with DDNS enabled. This setup is running perfectly with or without TSIG (both ways run perfectly).
When I try to include dnsextd in this setup for LLQ is where the problem start. No more DDNS updates. When I run dnsextd in debug mode, it shows the following message:
"Rejecting Update Request with 2 additions but no lease".
The dhcp logs report RCODE 5 (from dnsextd), which means REFUSED.
Any ideias?
I see a lot of website (including DNS-SD.org) with very simple cookbooks explaining how to create the WAB environment, but I cant make it work. Even if I configure the zone keys in dnsextd, it wont work. The error change to a new one (dnsextd responds without TSIG, which is not accepted by the DHCP server) and it wont work also.
Any idea of fix would be appreciated.thanks for the quick reply AndrewTJ - I did notice the typo after posting and corrected however the problems remains. below is the contents of my up.com.dns file - i can see nothing out of place but cannot get a resolution
; Database file up.com.dns for up.com zone.
; Zone version: 22
@ IN SOA dns1.up.com. hostmaster.up.com. (
22 ; serial number
900 ; refresh
600 ; retry
86400 ; expire
3600 ) ; default TTL
; Zone NS records
@ NS dns1.up.com.
; Zone records
_http._tcp.up.com. PTR website._http._tcp.up.com.
website._http._tcp.up.com. TXT ( "txt path=/" )
SRV 0 0 80 dns1.up.com.
_services._dns-sd._udp.up.com. PTR _http._tcp.up.com.
b._dns-sd._udp.up.com. PTR @
lb._dns-sd._udp.up.com. PTR @
dns1.up.com. A 192.168.1.153
Any ideas? -
Prob with BAPI_GOODSMVT_CREATE when creating wrt Reservation Number
Hi to all,
I have to create Goods Issue with reference to a reservation.I am using the BAPI BAPI_GOODSMVT_CREATE .
But when I am running the BAPI, It is giving the Error 'For reservation 0000001395 0001, no movements can be posted'.
I have pased all the parameters as per the Documentation of the FM, But still I am not able to create Goods Issue. Can any One help me How to achieve this.
GOODSMVT_HEADER
PSTNG_DATE 10.08.2009
DOC_DATE 10.08.2009
REF_DOC_NO 1394
GOODSMVT_CODE-GM_CODE = 03
GOODSMVT_ITEM
MATERIAL MAT1
PLANT 2001
STGE_LOC 0001
MOVE_TYPE 201
ENTRY_QNT 2
ENTRY_UOM EA
ENTRY_UOM_ISO EA
RESERV_NO 1394
RES_ITEM 0001
RES_TYPE X
Can any one help me whether the data I have Provided is Correct or not.If not Plese help me in Succesfully creating the Goods Issue.
Thanks and Regards
Meshack Appikatla.Hi,
If you want to do Goods Issue against Reservation, try below mentioned:
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = wa_header
goodsmvt_code = c_mvt_code "Movement code-03
IMPORTING
materialdocument = v_matdoc
TABLES
goodsmvt_item = it_items
return = it_return.
where :
wa_header-pstng_date = sy-datum. "Posting Date
wa_header-doc_date = sy-datum. "Document Date
wa_header-ref_doc_no = <Reservation Number >. "Reference Doc number
In item data:
wa_items-material = < Material Number >. "Material Number
wa_items-plant = <Plant>. "Plant
wa_items-stge_loc = <Storage Location > "Storage Location
wa_items-move_type =261. "Movement Type - '261'
wa_items-orderid = <Order Number from Reservation RESB-AUFNR>
wa_items-reserv_no = <Reservation Number RESB-RSNUM>
wa_items-res_item = <Reservation Item No RESB-RSPOS>
wa_items-res_type = < Record Type RESB-RSART >
wa_items-entry_qnt = quantity
append wa_items to it_items
Hope it helps.
Regards
Hiren K.Chitalia -
Header Text pop up not coming up when creating Quotation with reference when created from CJ20N
I have done my configuration in VOTXN and it works.
If I create a quotation with reference with transaction VA21 the pop up comes up and the header texts are copied.
But if I do the same from transaction CJ20N (it also executes transaction VA21) the pop up windows does not come up and the text is not copied.
If someone can please tell me why this is happening?
Regards,
CarlosHi carlos,
with reference to existing quotation you are creating new quotation ?
but Quotation creation from project will done using DP81 ( not by VA21)
can you explain a bit ?
thanks
santosh -
Issue with Idoc when creating invoice taking wrong payment term
Hi All,
My Requirement is invoices created through B2B interface should hold the payment term of purchasing party instead of invoicing party
400021 is Invoicing party having payment term 2000 i.e. 20 days
414478 is the Purchasing party having the payment term 1000 ie 10 days
So invoice should hold the payment term 10 days instead of 20 days
I have an IDOC which is creating Invoice, I am trying to reprocess the IDOC to see the issue but could not able to achieve the solution.
Please help me out which approach should i follow to achieve the solution of this issue.
Thanks,
VBHi,
Try using E1EDK18 segment. Put "Number of days" ,Qualifier and check if this achievs the desired result or not? If yes then you have to use an user exit to put the number of days in the IDOC.
Cheers, -
Error -1116 when creating a Sales Order via DI API
Hi All,
We have an developed EDI AddOn that creates Sales Orders in SBO 2007 PL13, in one of our clients.
This AddOn is responsible for the creation up to 100 orders each day on SBO.
However, sometimes (3 to 4%) during the Sales Order creation, the system return an error -1116 when the Sales Order is created - via oSalesOrder.Add() method.
The problem is that the order is created anyway, although this error is raised.
I've searched in the forums and it seems the solution is somehow related with SBO transactions.
However, the AddOn only created the Sales Order, nothing more.
Does any body know a solution for this problem?
Regards,
Manuel DiasHi,
see this links,
Error -1116 when creating delivery note
Could not commit transaction, ReturnCode:-1116
Regards,
siva -
Service Desk: Can't find Support Team when creat.message in satellite syste
Hi all,
strange thing:
In service desk I customized the partner determination rule for the support team with the rule AC13200137.
(In the rule pretty much everything is filled with * )
a) when creating a message via transaction NOTIF_CREATE within solman itself, the support team can be determined without any problems.
b) when creating a message in a satellite system via ->Help ->Create Support Message, the message gets created in the solution manager, but the support team could not be determined.
In the action log for "when message is created, find
support team responsible" the protocol is red.
Details of the log:
- green: Date and time stamp
- green: Processing CRM_DNO_PARTNER_1 is started
- red: Rule container does not exist
- red: Actim could not be successfully executed
Any idea why this is acting differently ?
Thanks
Christianhi,
It might be because of the buffer synchronization problem , you can try executing the program
HRBCI_ATTRIBUTES_BUFFER_UPDATE
in se 38 and see whether the responsiblites that you created are getting updated.Its because of the master data change and some time it take a longer time to get updated in the database .
Goodluck ,hope this is gets resolved
from,
Varghese -
Authorization when creating contract account
Dear gurus,
I am now have a problem with authorization when creating Contract Account for Business Partner with the scenario: each user only have right to create Contract Account for some BP Number Range that I determine in their Role. Is that possible to do this scenario?
Pls help me,
Thanks a lotHi,
May be you can set the same in the User Authorization roles where in you can restrict the user to create Contract account for certain BP only. May be you can work along with your Basis consultant to solve this issue or you can also try for validation rules if it works for this scenario.
regards,
radhika -
I created a word document with hyperlinks. When my default browser is Chrome the hyper links work. When the default browser is Safari, the hyperlinks bring to pages that just lines and lines of symbols. I need these links to work in both browsers. Any ideas?
version 10.6.8
Maybe you are looking for
-
i do remember my pass code but my phone is disabled, i don't want to restore my phone what do i do?
-
Kindly confirm on the following features of Iphone 4s..and advice me accordingly. Confirm on - Scratch-resistant glass, oleophobic coating,Adobe Flash HTML,Radio Stereo FM,Java MIDP emulator,Scratch-resistant glass back panel,Audio/video player and e
-
Regular expressions and content filters
I'm having difficulty dropping unwanted mail that contain chinese characters. I have a content filter that looks for the gb2312 charset but it fails to match properly. Sample header: Content-Type: text/html; charset="gb2312" Filter: header("Content-t
-
Would like to place in a an area where I can put widgets
Hi, I would like to place in a Master-B Page an area on the right where I can put widgets. I have used the rectangle tool to create the area with an image background but it does not extend to the bottom of the page if I scroll down. How can I do th
-
can someone tell me a good IDE for developing servlets and Jsps,