Https-admserv and classpath inheritance
I�ve ported a Solaris application from iPlanet 6.0 to SunONE 6.1. My application requires a certain environment (details below). In iPlanet this was accomplished by adding the classpath to the jvm12.conf file.
In SunOne 6.1, the application server.xml �ignoreclasspath� attribute is set to false. When the server is manually started (./start), the classpath is correctly inherited from the environment. However when starting the server from the Admin Console, it does not inherit the classpath. I�ve tried setting the �ignoreclasspath� attribute in the https-admserv server.xml. That doesn�t work.
-How does https-admserv know about other server environments?
-Is there a better way to inherit the classpath?
Thanks
You can modify the classpath by setting the classpathsuffix in server.xml. Refer to the Administrator's Configuration File Reference at http://docs.sun.com/source/817-1834-10/crsrvrx.html#wp1027439 for more information.
Similar Messages
-
by using ANT, how can set the JDK path and classpath..
jdk version exists in the : C:\Program Files\Java\jdk1.6.0
This is the build.xml that i need to modify!
-Do i need to have a serperate JAVA_HOME variable?
<?xml version="1.0"?>
<!--
Build file for 'Chat Client'
Version: $Revision: 4.10 $ $Date: 2003/05/28 $
Author: Rajat Gupta
-->
<project name="Chat" default="jar" basedir=".">
<!-- ================================================================== -->
<!-- Initialization of all property settings -->
<!-- ================================================================== -->
<target name="init">
<property name="appname" value="chat" />
<property name="src.dir" value="src" />
<property name="lib.dir" value="lib" />
<property name="build.dir" value="Chat" />
<property name="build.compiler" value="classic" />
</target>
<!-- ================================================================== -->
<!-- Makes sure the needed directory structure is in place -->
<!-- ================================================================== -->
<target name="prepare" depends="init">
<mkdir dir="${lib.dir}" />
<mkdir dir="${lib.dir}/META-INF" />
<mkdir dir="${build.dir}" />
</target>
<!-- ================================================================== -->
<!-- Compilation of the web part of the application -->
<!-- ================================================================== -->
<target name="classes" depends="prepare">
<javac srcdir="${src.dir}/oracle/otnsamples/oc4jjms"
destdir="${lib.dir}"
includes="**" />
</target>
<!-- ================================================================== -->
<!-- Compilation of the complete J2EE application (both web and EJB) -->
<!-- ================================================================== -->
<target name="j2ee-meta-inf" depends="classes, prepare">
<copy file="${src.dir}/META-INF/application-client.xml"
tofile="${lib.dir}/META-INF/application-client.xml" />
<copy file="${src.dir}/images/oralogo.gif"
tofile="${lib.dir}/oralogo.gif" />
</target>
<target name="jar" depends="j2ee-meta-inf">
<jar jarfile="${build.dir}/${appname}.jar"
basedir="${lib.dir}" manifest="${src.dir}/META-INF/MANIFEST.MF"/>
<delete dir="${lib.dir}" />
</target>
</project>Message was edited by:
jugp[url ='http://www.jguru.com/forums/home.jsp?topic=Ant']answer here
-
Ears, wars, support jars, and CLASSPATH
I am trying to migrate an application from WLS 5.1 to 6.1. There are 25
EJB jars with an equal number of support jars, most of which are referenced
by multiple EJBs. There are also a large number of jsps, and html pages.
I have tried packaging an ear that contains the 25 ejb jars, a war file
containing the web pages. I have attempted to include the support jars in
the ear as well.
In all attempts, the only way I get class references sastisfied is to
include all the jars on the system CLASSPATH. But this defeats the purpose
of packaging, since none of the components referenced in the system
CLASSPATH will be re-deployable.
The online documents refer to separate class loaders and classpaths for the
war and ejbs, but no detail as to how classes are found by the loaders.
Unless I put all the jars into the CLASSPATH, jsp pages cannot reference the
EJBs, and EJBs are unable to reference other EJBs.Thanks,
Now if I could just get Webgain Visual Cafe to allow me to include the
Classpath entries in the generated manifests for the EJB jars.
"Gregory Gerard" <[email protected]> wrote in message
news:3ba24da1$[email protected]..
You need to mangle all the Manifest files within the EAR and EJB-JARs and
WAR to get the right thing to happen. Check out this PDF on Sun's site:
http://java.sun.com/j2ee/j2ee-1_3-pfd4-spec.pdf
section 8.1.1.2
I don't entirely understand all the restrictions and formatting -- Ihaven't
found an example ear file out there that implements a non-trivial case.
greg
"Carl Lawstuen" <[email protected]> wrote in message
news:3ba21d8e$[email protected]..
I am trying to migrate an application from WLS 5.1 to 6.1. There are
25
EJB jars with an equal number of support jars, most of which arereferenced
by multiple EJBs. There are also a large number of jsps, and htmlpages.
I have tried packaging an ear that contains the 25 ejb jars, a war file
containing the web pages. I have attempted to include the support jarsin
the ear as well.
In all attempts, the only way I get class references sastisfied is to
include all the jars on the system CLASSPATH. But this defeats thepurpose
of packaging, since none of the components referenced in the system
CLASSPATH will be re-deployable.
The online documents refer to separate class loaders and classpaths forthe
war and ejbs, but no detail as to how classes are found by the loaders.
Unless I put all the jars into the CLASSPATH, jsp pages cannot referencethe
EJBs, and EJBs are unable to reference other EJBs. -
Hi,
I have a hard time understanding the package and CLASSPATH. I want to have a solid understanding of it. I read some tutorials online but didn't make me fully understand. How does declaring a package effect the CLASSPATH? Say I have following:
(This is from one of the tutorial- http://home.cogeco.ca/~ve3ll/jatutor4.htm)
C:\myclasses\world\moon\HelloMoon.java
C:\myclasses\world\HelloWorld.java
HelloMoon.java is defined as
package world.moon;
public class HelloMoon {
private String holeName = "rabbit hole";
public String getHoleName() {
return holeName;
public void setHole(String holeName) {
this.holeName = holeName;
public static void main(String[] args){
HelloMoon moon = new HelloMoon();
System.out.println(moon.getHoleName());
HelloWorld is defined as
package world;
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World");
if the CLASSPATH is set : set CLASSPATH=.;C:\myclasses;
Once the CLASSPATH has been set (and compiled .java file); it can be called using the following from any path of directory:
java world.HelloWorld
java world.moon.HelloMoon
But it does not explain the details why it works this way. Also, if I want to run it without using "world" prefix to run HelloWorld, what do I need to set up?
also for the HelloMoon?
When I tried running those classes by going to an appropriate directory, I got the noClassDefFound (using command like "java HelloWorld" or java "HelloMoon").
Thanks in advance...[Javapedia: Classpath|http://wiki.java.net/bin/view/Javapedia/ClassPath]
[How Classes are Found|http://java.sun.com/j2se/1.5.0/docs/tooldocs/findingclasses.html]
[Setting the class path (Windows)|http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html]
[Setting the class path (Solaris/Linux)|http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html]
[Understanding the Java ClassLoader|http://www-106.ibm.com/developerworks/edu/j-dw-javaclass-i.html]
java -cp .;<any other directories or jars> YourClassNameYou get a NoClassDefFoundError message because the JVM (Java Virtual Machine) can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.
javac -classpath .;<any additional jar files or directories> YourClassName.javaYou get a "cannot resolve symbol" message because the compiler can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run. -
Difference between path and classpath
Difference between path and classpath?
PATH - set of paths there executables will be found.
CLASSPATH - set of paths and archives there class files will be found. -
Problem with Class and Classpath
Hello ME Windows Users, now before you place a wry smile on your face, I have a problem with path and classpath. Stop it, I can see you smiling!
By visiting the the last 10 pages of the forum and reading Sun installation notes, some tooldocs and by given some answers by some nice people, I have become an expert in turning off my computer, about 10 times/hr. I still am trying to make my first cup of java.
With the ME computer,
I'm unable to right click on the desktop and go to properties, advanced,
I'm unable to go go start, run, sysedit,
I'm unable to change the ms-dos window of autoexec.bat, it just shuts down.
Now before you tell me, I should of bought a different computer, the only place I can find to modify the path and classpath is in the environment which is in system configuration under tools. Here I have placed numerous configurations, like
C:\java>set path=%path%;c:\j2sdk1.4.2\bin
C:\java>set classpath=%classpath%;.;
;java_dir\bin where ;java_bin is c:\j2sdk1.4.2
.; java_dir\bin; %path% where ;java_bin is c:\j2sdk1.4.2 and the list goes on.
But, I know you are still smiling, the % signs comes up in a dialog box, saying too many, and will not convert the text to the environment to be saved when I close down for the tenth time in the last hour.
Can someone help me before I make a real cup of coffee and accidentally drop it on the ME box.
Have a laugh on me Mik.C:\java>set path=%path%;c:\j2sdk1.4.2\binGood
But it is no good because it has to many % and a dialog box appears, saying you have too many parameters.
Are you saying I have to shutdown again to answer your ?
From the HELP menu-
To confirm startup commands line by line
Click Start, and then click Shut down.
Click Restart, click OK, and then press and hold the CTRL key until the Windows Startup Menu appears.
Enter the number for Step-by-step confirmation, and then press ENTER.
For each command you want to run, press Y.
If the command runs successfully, you are prompted with the next command.
If the command does not run successfully, you receive an error message.
To skip a command, press N.
Mik -
Front-end HTTP Server and Performance with .jspx pages?
This is more of a general question that I'm looking for validation:
If the majority of our website is implemented as .jspx pages, with very few straight HTML pages, is there benefit in deploying to an environment with a separate HTTP front-end web server and back-end Application server (java container)? For example, I'm deploying to Tomcat as both the HTTP server and Java Application server for the .jspx pages; is there a performance advantage in deploying to an Apache HTTP server with a connector to Tomcat if I'm primarily serving up .jspx pages? I'm not as familiar with Oracle AS architecture, so my question is primarily around Tomcat deployment.
thanksThis is more of a general question that I'm looking for validation:
If the majority of our website is implemented as .jspx pages, with very few straight HTML pages, is there benefit in deploying to an environment with a separate HTTP front-end web server and back-end Application server (java container)? For example, I'm deploying to Tomcat as both the HTTP server and Java Application server for the .jspx pages; is there a performance advantage in deploying to an Apache HTTP server with a connector to Tomcat if I'm primarily serving up .jspx pages? I'm not as familiar with Oracle AS architecture, so my question is primarily around Tomcat deployment.
thanks -
How do i set path and classpath in java? why it is needed
ramyabaskar wrote:
How do i set path and classpath in java? why it is neededTypically you do not set these in java.
You set the path in the operating system shell.
You set path so you can launch java by just typing java
instead of having to type the full path to "C:\Program Files\Java\jre6\bin\java.exe".
You pass the desired classpath to java when you launch java with the classpath option or set it in the operating system shell using the CLASSPATH env.var. -
PI 7.0 SOAP message reply HTTP 500 and after the fault message
Hello Everybody,
I have the scenario RFC -> XI -> SOAP in synchronous mode.
I use for the mapping XSLT because I have to put some dynamic data comming from the RFC in the header of envelope.
At level of adapter receiver SOAP , I flag the "do not use envelop"
In normal, that works .
When the is an fonctionnal error in SOAP service, it sends me back an error HTTP 500 and afterwards the fault message in a soap envelop format. In that case, how can I pass over this error to treat the envelop because in adapter, it is stopped and it returns a short dump to the RFC.
Is there somebody who can help me with this problem ?
Thanks in adavance for your answers .
Regards.
Eric.Hi,
In case of a SOAP error while processing the request, the SOAP HTTP server MUST issue an HTTP 500 "Internal Server Error" response and include a SOAP message in the response containing a SOAP Fault element
Thanks,
RamuV -
HTTP Sender and HTTP Receiver .Pls advice urgent
Hi All,
Partner A (http) -- XI -
Partner B(http)
Now Trade Partner do not want to use HTTP client tool.
He wants to send data through URL.
Please make the full sender URL for the details below
for Sender HTTP:
XI system -- sapd0aa
Client -- 100
Port -- 8000
Sender Service -- SS
Sender Interface -- SI
Sender Namespace -- http:
abc
Qos -- EO
In Receiver HTTP Aadapter if I use RFC Destination does it has to be of Type G
RegardsHi Henry,
1. Where sender partner will send his XML if he uses the above URL?
Whatever technology , partner is using to send the data, there are some APIs available for establishing the http connection and then sending the data on this HTTP connection.
2. How the user name and password will be sent in the above URL as XI requires User Name and password.
You can embed in the URL by adding sap-user=xyz&sap-password=abc
Piyush -
HTTPS, DNS and dynamically updating DNS records
Hello to you all, if you are able to help with a DNS problem that I'm having then please accept my thanks and appreciation in advance.
First some background information, I recently moved my server from my studio to my house where a new purpose built studio will soon be erected. At my old studio any requests for myurl.com came in via the IP (whether that be http, https, ftp etc) from the domain registrar and the router would send the request to the relevant port number whether that be 80 for http or 443 for https etc and all was well as this location had a fixed IP address. Unfortunately at my new location whilst I have a much faster connection I do not have a fixed IP. To get around this I have the following set up (not ideal for a business I know but perfectly OK for home hosting); I set up two psuedo nameservers at no-ip.com (ns1myurl.com and ns2myurl.com) which tracks the changes in my IP address and updates its records accordingly, my registrar then sends any requests to these 'nameservers' and no-ip then forwards it on to my server. So far so good.
The problem arises once the requests get to my server, whilst I have DNS set up, I can only recieve requests from a straight request to the server ie myurl.com will display the site without any problem, but if I then put a www in front of that or try to access the https part of my site (which is set up as a seperate site on the same server) then the server throws an error. I have tried to put an alias (CNAME) into the zone but it does not want to resolve the request. I have searched around but to no avail, I am totally new to DNS so am currently on a steep learning curve and fumbling around in the dark.
The first thing that I need to get working is the request to be resolved correctly and then (and this is where the real fun starts!) is to dynamically update the IP in the DNS records as the IP changes. I will probably have to get help in on this as I understand that this requires BIND of which I know nothing about, first though I'd like to get the pages to be served up correctly. Advice, hints, tips or links to tutorials all greatly appreciated. Full set up listed below.
Many thanks, David.
Xserve PPC G5 running 10.5.8 unlimited set up as standalone OD master
Xraid
APC UPS
CradlePoint MBR1200 Gateway router which acts as the DHCP
http://myurl.com and https://myurl.com set up as 2 seperate sites and located on the Xraid
Current DNS setup:
Primary Zone name: myurl.com with nameservers ns1myurl.no-ip.info and ns2myurl.no-ip.info and allow zone transfers in checked
Then
Name
Type
Value
myurl.com
Primary Zone
ns1myurl.no-ip.info
Machine
12.34.56.78 (external IP)
ns2myurl.no-ip.info
Machine
12.34.56.78 (external IP)
myurl.com.
Machine
12.34.56.78 (external IP)
www.myurl.com.
Alias
myurl.com.
With the reverse zone looking thus with allow zone transfers being checked
Name
Type
Value
56.34.12.in-addr.arpa.
Reverse Zone
12.34.56.78
Reverse mapping
myurl.com.Thanks for the reply Camelot, that part though I had already figured out. I now have this working, all I did was change the external IP to the internal one of the server with resolves with the .local machine name and all is working just fine (for now!). As long as I have primary zones set for each site and any alias or services set up on them then everything works well.. The real test will be when my ISP changes the IP, whilst my tests have proved successful the proof will be when they update the address.
Thanks anyway. David. -
How to go about Setting PATH and CLASSPATH?
I have problems compling the helloworldwww in the core programming.the error was:
Exception in thread "main"java.lang.NoSuchMethodError:main
my java programs are in c:\program files\java\bin
My path :
PATH=C:\WINNT\system32;C:\WINNT;c:\program files\java\bin
My classpath
set CLASSPATH=C:\WINNT\system32;C:\WINNT;c:\program files\java\bin.jar;.
is there any error in my paths, if yes how to i go about setting the path and classpath??Im running on winXP.j2sdk1.4.1_02.set CLASSPATH=.;c:\program files\java\bin.jar;c:\program files\java\bin
-
How to set packages and classpath
Hi,
I want to know about packages and classpath. I have these questions
1, If I put a class in a package(work.util) is it necessary to put the java file in the same directory/directory hierarchy as mentioned in the package declaration. I have to compile this class, run it from main method and must be able for other classes to import.
2. If a package have subpackages(work.util.db) do I have to set the classpath to subdirectory also to run that class.
3. If a class is in package is it possible to run the class without prefixing the package name. I need to do this in the text editor so that I can run any program by pressing a hot key.
rgds
Antony Paul1, If I put a class in a package(work.util) is it
necessary to put the java file in the same
directory/directory hierarchy as mentioned in the
package declaration.Strictly speaking, this isn't covered by the spec - it depends on what compiler and ClassLoader you are using. If you're using Sun's JDK, then yes.
2. If a package have subpackages(work.util.db) do I
have to set the classpath to subdirectory also to run
that class. No. You should add the directory above work/util/db to your classpath. You should not add work, or work/util or work/util/db.
E.g., if your Java files are in C:/MyProject/JavaSrc/work/util/db, and the package name is work.util.db, then you should have C:/MyProject/JavaSrc on your classpath (or have "." (dot) on your classpath, and compile and run from that same directory).
3. If a class is in package is it possible to run the
class without prefixing the package name. I need to do
this in the text editor so that I can run any program
by pressing a hot key.If you mean "in order to run work.util.db.Main do I need to type java work.util.db.Main, or just java Main", then you do indeed need the fully qualified class name (otherwise, how would the runtime environment know which class you mean? - there could be any number of classes called Main in any class, and it would have to search every directory and subdirectory on your classpath to find them. -
Problem in setting path and classpath for java in RedHat linux 9
Hi ,
i am not able to set the PATH and CLASSPATH for j2sdk1.4.2_06
I have tried with export PATH=$PATH:/usr/j2sdk1.4.2_06/bin
and export CLASSPATH=$CLASSPATH:/usr/j2sdk1.4.2_06/lib
in terminal
but i want to configure it as permenant way for the jre and jdk
and we should only type java or javac according to the requirement
regards mihir...type those in .bashrc ... save and exit
then at prompt, type 'source .bashrc'
this is the permanent solution ...
bhalo thakun -
Question about HTTP Server and 9iAS
I am kind of new to Oracles 9is products. I installed Oracle 9i Rel. 2 recently and it installed HTTP Server and other stuff as part of that install. I am trying to write a small web application. Is this install good enough to do basic servlet's, jsp's and may be EJB's etc ... or do I need to install 9iAS. I am confused on the fact that I know 9iAS will give me j2ee container, web container, clustering, etc ..., what functionality is included in the 9i databases web server piece.
Also, can anyone point me to a good documentation that explains directory structure of 9i Rel. 2. I am familiar with the database part fairly well(oracle 7 release). However, I am confused as to new web related stuff (Apache, bc4j, etc..) in 9i Rel. 2.
Thanks.Hi,
No, you cannot run EJB's in the Apache installation. For that you might want to download OC4J.
Basic Http pages and Servlets can run but I dont think it is advisable to use it for that. For any kind of development, I would suggest you to use OC4J.
Oracle9i Database is web enabled and you can access the table, etc.. from a browser too. This is the reason Apache is provided with the basic installation. Oracle9i Rel 2 has XML DB in it which again can be accessed from the Web.
For more help on any of these check http://otn.oracle.com/documentation/oracle9i.html
You will be able to get all the related Developer's Guide here.
Hope this helps,
Rajat
Maybe you are looking for
-
Is this possible or allowed??? (concerning back to school promo)
I was wondering if i get the free printer with my macbook, is it possible after i get my rebate to take my unopened printer to an apple store and exchange it for store credit??? anyone know?
-
Having trouble with my Macleans Magazine App in Newsstand
I just recently downloaded an Update to Maclean's Magazine in Newsstand, and now it won't download any new issues. It asks me to submit my Apple ID and password, which I do, but won't give me any of my previous purchases, nor will it let me download
-
I am using a weblink.htm to open a website that works correctly in IE, but Firefox will not open the site. the code is as follows: <pre><nowiki> <script language="javascript"> <!-- Hide form older browsers //* goto href address window.navigate("https
-
Deploying jsf app on glassfish
Hello all, Deploying a JSF app on glassfish I get the followinf error messsage from admin console: Deploying application in domain failed; JSP Compilation Error: org.apache.jasper.JasperException: jsp.error.tld.invalid.signature -- jsp.error.tld.inva
-
Product category comes blank IN BID INVITATION process of SRM
Hi Gurus, We are using the SRM Ssystem to process BID invitation.In this it uses the R3MMEXTRACT to get the product catalog information.The Information is fetched from R/3 using the RFC BBP_CATEGORY_GET_GUID. The data which is fetched from R/3 is