WLS 7.0 - util jars being accessed from the war file
Some of classes in the warfile (servlets) need access to some of the util jars in my ear file. I really don't want to put them in the war file/WEB-INF/lib directory and in the ear file. Is there any way to do this without putting them in the classpath.
Any info would be appreciated.
Thanks,
Ian
Ian,
Examine the following link on packaging utility classes and the Weblogic classloader
architecture
This link should provide (hopefully :-) ) the answer to your question
http://e-docs.bea.com/wls/docs70/programming/classloading.html
Chuck Nelson
DRE
BEA Technical Support
Similar Messages
-
Special characters being read from the unicode file for greek language
Hi All,
I have a report which would upload a unicode file and then update the vendor master data accordingly.
The file contains greek characters too.
when the file is being read in the code, some special characters are being added up to the vendor number which is the first entry. The special characters are not included in the file , but are added up only to the first vendor number and not any other vendor numbers.
The logic that is being used is as follows :
TRY.
IF unicode IS INITIAL.
IF codepage IS INITIAL.
*--> For backward compatibility where this FM might be called from
* other dependent objects (FMs/dynamic subroutines)
* which donot have access to user's input w.r.t Unicode parameters
OPEN DATASET filename FOR INPUT
IN LEGACY TEXT MODE
MESSAGE msg
REPLACEMENT CHARACTER repl_char
IGNORING CONVERSION ERRORS
FILTER filter.
ELSE.
*--> System in non-unicode and Unicode Environment (Phases I and II)
OPEN DATASET filename FOR INPUT
IN LEGACY TEXT MODE CODE PAGE codepage MESSAGE msg
REPLACEMENT CHARACTER repl_char
IGNORING CONVERSION ERRORS
FILTER filter.
ENDIF.
ELSE.
*--> Extract File in Unicode format - Phase III
OPEN DATASET filename FOR INPUT IN TEXT MODE ENCODING UTF-8
MESSAGE msg
FILTER filter.
ENDIF.
IF sy-subrc NE 0.
MESSAGE e001(zuni) WITH filename sy-subrc
RAISING file_open_error.
ENDIF.
the unicode parameters used are : codepage = 8000.
An early reply is most appreciated.
Regards,
Manu.Please check SAP notes for Eastern European Characters in Unicode system. and may be below code helps you
DATA:
ltp_bom TYPE sychar01,
ltp_encoding TYPE sychar01,
ltp_codepage TYPE cpcodepage.
Processing --------------------------------------------------------- *
TRY.
CALL METHOD cl_abap_file_utilities=>check_utf8
EXPORTING
file_name = itp_filename
max_kb = -1
all_if_7bit_ascii = abap_true
IMPORTING
bom = ltp_bom
encoding = ltp_encoding.
CATCH cx_sy_file_open .
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING file_open_error.
CATCH cx_sy_file_authority .
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING file_authority_error.
CATCH cx_sy_file_io .
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING file_io_error.
ENDTRY.
CASE ltp_encoding.
WHEN cl_abap_file_utilities=>encoding_utf8
OR cl_abap_file_utilities=>encoding_7bit_ascii.
CASE ltp_bom.
WHEN cl_abap_file_utilities=>no_bom.
OPEN DATASET itp_filename FOR INPUT IN TEXT MODE
ENCODING UTF-8.
WHEN cl_abap_file_utilities=>bom_utf8.
OPEN DATASET itp_filename FOR INPUT IN TEXT MODE
ENCODING UTF-8
SKIPPING BYTE-ORDER MARK.
WHEN cl_abap_file_utilities=>bom_utf16_be.
ltp_codepage = '4102'.
OPEN DATASET itp_filename FOR INPUT IN LEGACY BINARY MODE
BIG ENDIAN CODE PAGE ltp_codepage.
WHEN cl_abap_file_utilities=>bom_utf16_le.
ltp_codepage = '4103'.
OPEN DATASET itp_filename FOR INPUT IN LEGACY BINARY MODE
LITTLE ENDIAN CODE PAGE ltp_codepage.
WHEN OTHERS.
OPEN DATASET itp_filename FOR INPUT IN TEXT MODE
ENCODING UTF-8.
ENDCASE.
WHEN OTHERS.
OPEN DATASET itp_filename FOR INPUT IN LEGACY TEXT MODE.
ENDCASE.
Edited by: Nilesh Shete on May 7, 2010 5:29 PM -
How do I setup my Time Capsule (3rd Generation) to be accessed from the internet while I'm traveling? It is installed on my home network behind my TWC broadband router.
Ok.. since the TWC modem is also a router.. all configuration takes place on this box.. NONE whatsoever takes place on the TC.
There is no airport utility 7.7.3 but there is a firmware of that number for the latest AC model TC..
Is it tall like this.
Then it is Gen5.
otherwise it will have a firmware.. 7.6.4 or earlier and the airport utility must be 6.3 or earlier.
Open the Airport utility and give us a screenshot of the summary page.
That will also help us determine that you have the TC, which version and how it is setup.
You might want to press the edit and also give us the Internet and Network tab as they should be set correctly as well.
I have created a DDNS through DYN.com although I am not sure how to implement this into the TC.
You do not do anything in the TC.. set it up in the Ubee router.
Port forward 548 to the TC in the Ubee router.
And make sure the TC has a static IP in the Ubee router.
Overall if you find this too hard I strongly recommend you buy a product designed for remote access .. eg WD MyCloud.. they are cheap and easy peasy to setup for remote access.. by PC or Mac and since it is built outside of Apple you not bound up in Apple limitations built into all their equipment to prevent you using it the way you want.. rather than apple want you too.. eg BTMM and iCloud being the only way apple provide for access to the TC and only when it is the main router of the network.
You are fighting hard because Apple made this hard.. not easy. -
iDVD 7.1.2: I am making music instrument instructional DVDs, and I want to include several audio loops that the viewer access from the main menu to play along with
Export the slideshow out of iMovie via the File ➙ Share ➙ File menu option as a 480p Quicktime movie.
Open iDVD, select a theme and drag the exported QT movie file into the open iDVD window being careful to avoid any drop zones.
Follow this workflow to help assure the best quality video DVD:
Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image menu option. This will separate the encoding process from the burn process.
To check the encoding mount the disk image, launch DVD Player and play it. If it plays OK with DVD Player the encoding is good.
Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality. Always use top quality media: Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
OT -
How To Access a jar file present outside the war file through a jnlp
Aoa
I m new to this forum
I m having problem with my jnlp file
i want to know is there any way to access a jar file through jnlp.The problem is that my jnlp file is present in the war file
and i want to know how to acess a jar file through this jnlp.The scenerio is as below
I m using ear file on jboss.Its hirerchy is as
-PAN-war.war
-launch.jnlp
-PAN-app-client.jar
my jnlp file is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8080/" href="PAN/launch.jnlp">
<information>
<title>PanEmirates</title>
<vendor>M Fazal Ur Rehman</vendor>
<description>PanEmirates</description>
<description kind="short">PanEmirates</description>
<homepage href=""/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.5+"/>
<jar href="PAN-app-client.jar" download="eager"/>
<jar href="lib/javafxrt.jar" main="true" download="eager" />
<jar href="lib/Filters.jar" download="eager"/>
<jar href="lib/javafx-netbeans-fxuserlib.jar" download="eager"/>
<jar href="lib/swing-layout-1.0.3.jar" download="eager"/>
</resources>
<application-desc main-class="net.java.javafx.FXShell">
<argument>pan.Main</argument>
</application-desc>
</jnlp>
when i run launch.jnlp file it says unable to download resource http://localhost:8080/PAN/PAN-app-client.jar
how to access this jar file
Any help or comment would be highly appreciated
Regards
M Fazal Ur RehmanExcellent question. I don't see any client-jar in your EAR file structure. So I am assuming you are writing a separate client application which will talk to the ejbs deployed as part of this EAR. You need to do the following:
Write another EAR file with the following structure:
ear:
META-INF/application.xml
util.jar
client.jar
client.jar should have a META-INF/MANIFEST.MF and that should contain Class-Path:util.jar and value for Main-Class attribute.
Now deploy this new ear to your application server and execute it using Application Client Container that comes with your app server.
If you don't want to write another EAR file, then bundle th client.jar in your original EAR file.
Points to note are:
you have to repackage util.jar again inside this ear file.
For portability reason, you should use Class-Path manifest entry in client.jar. Refer to http://java.sun.com/j2ee/verified/packaging.html and J2EE platform spec section #8.2.
Hope this helps,
Sahoo -
Why can I not adjust the volume on a video when accessed from the lock screen
Why can I not adjust the volume of a video in my pictures folder, when accessed from the new lock screen option?
There is no way to access videos directly from the lock screen.
What exactly is being attempted here? -
Touch smart web apps wer being eleted from the printer
I have the HP eprnt 3100 series.
I went to print something and I got up to retrieve it from the printer and a message popped up that my touch smart web apps wer being eleted from the printerand the the message was gone as fast as it appeared, Now nothing will print from my computer!!!!!!!!Well, generally to remove apps now it is done from the computer accessing the ePrintCenter website. I would go there first and make sure the printer is still enrolled/enabled. If something was removed from there, it would remove the access at the printer. Here is the link, and help/tips section on the right side of the page may offer some help:
https://h30495.www3.hp.com/c/46250/US/en/
007OHMSS
I was a support engineer for HP.
If the advice resolved the situation, please mark it as a solution. Thank you. -
OK, I'm about tearing my hair out in clumps now!
I get the above error when trying to compile a simple SOAP web service onto Tomcat 6.0.16.
I've trawled the forums and Google and have tried the following: -
1. I've re-installed the SDK and RE at rc 1.6.0_07 in case I missed the bug update on 18th July.
2. Even though I shouldn't have to do this in 1.6.0_07 I've also tried: -
a. Making an endorsed directory under TOMCAT_HOME and copying the JAX-WS 2.1 jar files in from NETBEANS\java2\modules\ext\jaxws21\api.
b. Making an endorsed directory under JAVA_HOME\lib and copying the JAX-WS 2.1 jar files in from NETBEANS\java2\modules\ext\jaxws21\api.
However, every time I stop Tomcat and do an undeploy/redeply on the web service I still get the "JAXB 2.0 API is being loaded from the bootstrap ..." error.
What am I missing / doing wrong?
Setup: -
Win XP SP2
Netbeans 6.5 Beta
Java version 1.6.0_07rcDear Juraj
When a finally find what I have been searching occured a mistake in a program and the program had to be cancelled. It happened when we expected it the least. I do not know why have you getting angry. I did not tak� your calculator. Even touched it. No metter how big pitfalls are we have to do our our best to succeed.
Best wishes
Chose Carreras -
Accessing my own class members from the JSP file
Hi,
I have created a class by name simple.java.and the package structure is like sridhar.source.useful.In this package i placed my file simple.java.
Now i import this file with the import statement in JSP like
<%@ import = "sridhar.source.useful.*" %>
Now from the JSP file i want to execute some of the methods in simple.java.
I tried this one by importing the simple.java in my JSP file,but i am getting some errors:
variables that i have declared in Java files are not defined.
The JSP is not importing the class simple.java
I am executing my JSP in weblogic6.1(webserver is IPlanet)
shall i need to set any classpath for this in the weblogic shell script??
pls clarify me if any configuration is to be made or not??
regards
NaiduFor JSP with IPlanet/weblogic and imported custom classes:
Put your class / package in the correct folder. $path is any path you want....
Ex: package foo, class foorbar must be
$path/foo/foobar.class
All classes must be .class, not .jar.
Weblogic/IPlanet must be configured to have the CLASSPATH
$path/
(do not include foo/foobar!)
The JSP has
<%@ import "foo.*" %>
Your class may now be used just like the other imported classes. Say you have an object Foobar with a constructor, you can just say
Foobar myFoo = new Foobar();
I do this with my classes, so if you have any questions, just ask. -
Non-static variable cant accessed from the static context..your suggestion
Once again stuck in my own thinking, As per my knowledge there is a general error in java.
i.e. 'Non-static variable cant accessed from static context....'
Now the thing is that, When we are declaring any variables(non-static) and trying to access it within the same method, Its working perfectly fine.
i.e.
public class trial{
���������� public static void main(String ar[]){ ////static context
������������ int counter=0; ///Non static variable
������������ for(;counter<10;) {
�������������� counter++;
�������������� System.out.println("Value of counter = " + counter) ; ///working fine
�������������� }
���������� }
Now the question is that if we are trying to declare a variable out-side the method (Non-static) , Then we defenately face the error' Non-static varialble can't accessed from the static context', BUT here within the static context we declared the non-static variable and accessed it perfectly.
Please give your valuable suggestions.
Thanks,
JeffOnce again stuck in my own thinking, As per my
knowledge there is a general error in java.
i.e. 'Non-static variable cant accessed from static
context....'
Now the thing is that, When we are declaring any
variables(non-static) and trying to access it within
the same method, Its working perfectly fine.
i.e.
public class trial{
���������� public static void
main(String ar[]){ ////static context
������������ int counter=0; ///Non
static variable
������������ for(;counter<10;) {
�������������� counter++;
��������������
System.out.println("Value
of counter = " + counter) ; ///working fine
�������������� }
���������� }
w the question is that if we are trying to declare a
variable out-side the method (Non-static) , Then we
defenately face the error' Non-static varialble can't
accessed from the static context', BUT here within
the static context we declared the non-static
variable and accessed it perfectly.
Please give your valuable suggestions.
Thanks,
JeffHi,
You are declaring a variable inside a static method,
that means you are opening a static scope... i.e. static block internally...
whatever the variable you declare inside a static block... will be static by default, even if you didn't add static while declaring...
But if you put ... it will be considered as redundant by compiler.
More over, static context does not get "this" pointer...
that's the reason we refer to any non-static variables declared outside of any methods... by creating an object... this gives "this" pointer to static method controller. -
How do I turn off the Camera access from the lock screen
how do I turn off the Camera access from the lock screen ?
Only by hiding the camera via Restrictions. Settings>General>Restrictions. That hides the camera when unlocked unless you go to Restrictions and unset that Restriction. That is not way currently from just preventing camera access only from the lock screen
-
Referencing utility classes from a war file
How do you reference a utility class from a war file? I tried adding the class to the deployment plan descriptor, however I still get a ClassNotFoundException.
Thanks,
WillTo use the utility classes from a war you have to place them under the web-inf/classes directory.
webApplication(WAR directory)--->WEB-INF--> classes (put your utility classes in this directory) -
Workflow task details are being retrieved from the server
Hi,
Using an approval workflow. when the task has been assigned to the person he is getting an email but when clicking on the edit this task button ,the pop window with the
"workflow task details are being retrieved from the server"
error is getting. SharePoint site 2007 and Microsoft Outlook is 2010.I have a similar issue with my version of SharePoint.
SharePoint 2010 Enterprise.
Outlook 2013 with MS Exchange
Document approval workflow.
When you open the document approval email that comes from SharePoint and click on "Open this task" the popup window flashes across "workflow tasks details are being retrieved from the server ".
I've tried the regedit fix and the hive fix and resetting IE that some of the other people have said that works and it doesn't.
When I go the site, and connect the task list to Outlook, I can complete the task that way.
I also created a new approval workflow in SharePoint designer and it behaves the same way.
Anything else I should try?
== Steve Morley MedIT, Dalhousie University -
hi, I need the program of access from the office, so i'm going to but the Microsoft office 365 university, will i have to but any other program to use the access from my mac? or to open any database that I will have did from any other computer (not mac)?
There has never been a Mac version of Access. Microsoft never created one, realising that it was very inferior to the FileMaker Pro database application.
So if you must run Access you will have to run Windows on your mac. -
Good Morning,
We are getting this error
Outlook Web Access is currently unavailable. If the problem continues, contact technical support for your organization and tell them the following: No Client Access servers
of the appropriate version can be accessed from the Internet
We installed a new Exchange 2007 CAS on Windows 2008R2. Got rid of old CAS on Exchange 2007. Now seeing this error. Does anyone have an idea??Hi,
If the issue persists, I recommend you install Exchange 2007 SP3 RU7 and check the result. Also, ensure that Exchange 2010 SP2 RU1 or later version is installed. Old Exchange version may lead to the CAS-to-CAS proxy incompatibility.
What's more, here are some helpful blogs for your reference.
Exchange 2010 SP2 RU1 and CAS-to-CAS Proxy Incompatibility
http://blogs.technet.com/b/exchange/archive/2012/02/17/exchange-2010-sp2-ru1-and-cas-to-cas-proxy-incompatibility.aspx
OWA Coexistence With Legacy Versions
http://blogs.technet.com/b/sjimmie/archive/2010/07/09/owa-coexistence-with-legacy-versions.aspx
Hope this can be helpful to you.
Best regards,
Amy Wang
TechNet Community Support
Maybe you are looking for
-
My iPod Classic will no longer allow me to create podcast playlists. It create music playlists. I've restored it twice. What is the problem?
-
My computer is running super slow. I can correct the problem briefly by zapping the PRAM but is resumes as a problem after a few hours. I have good time machine (capusle) backup daily. I have done a disk verify and there doesn't appear to be anyth
-
Deploying WAR file with jdev 11g in weblogic 10.0
Hello, I´m Facing a problem deploying a simple aplication in Weblogic with jdev 11g here´s the Error Message : 2009-05-06 13:52:41.781: Writing WAR file to C:\JDeveloper\mywork\Application3\Project1\deploy\webapp1.war 2009-05-06 13:52:41.781: Wrote W
-
My Site access error in Sharepoint 2013
I am configuring My Site as new Web Application (Port 8080). When I access My site from the portal, I get an error http://ghqsp13:8080/ Root Element is missing. /App_GlobalResources/dms.en-US.resx I tried the below link. No Luck http://spchickadee.wo
-
hello all, I found a similar thread, but it didn't exactly answer my question: https://supportforums.cisco.com/discussion/12114056/flex-connect-user-acl-aps-locally-switched Should I configure a regular ACL, or Airespace ACL on ISE, to support FlexCo