Problem compiling NAS 2.1 AppLogics on iAS 6.0 SP4 on Solaris

I'm currently trying to upgrade our live server from
iAS 6.0 SP2 to iAS 6.0 SP4 (on Solaris 8) and ran into
a problem in recompiling some NAS 2.1 AppLogics on my
SP4 server. I made no modifications to the code or
build.xml which runs fine on SP2. Here's what happens
when I run build :
wwwtest% build
Searching for build.xml ...
Buildfile: /export/home/iplanet/ias6/ias/APPS/TBG/build.xml
compile:
[javac] Compiling 207 source files to /export/home/iplanet/ias6/ias/APPS
[javac] /export/home/iplanet/ias6/ias/APPS/TBG/BaseResource.java:0: The method void setSessionTimeout(int) declared in class com.netscape.server.nas.BaseResource cannot override the method of the same signature declared in interface com.kivasoft.ISession2. They must have the same return type.
[javac] package TBG;
[javac] ^
[javac] 1 error
BUILD FAILED
/export/home/iplanet/ias6/ias/APPS/TBG/build.xml:48: Compile failed, messages should have been provided.
Total time: 26 seconds
Here's my kludged-together build.xml (only the
compile target does anything for this app...)
<?xml version="1.0"?>
<!-- ============================================================== -->
<!-- Ant XML file for TBG application as deployed to -->
<!-- iPlanet Application Server. -->
<!-- -->
<!-- Copyright (c) 2000 Sun Microsystems, Inc. All rights reserved. -->
<!-- ============================================================== -->
<project name="TBG" default="compile" basedir="..">
<!-- App name-dependent settings. -->
<property name="appname" value="TBG"/>
<property name="ear" value="${appname}App.ear"/>
<property name="war" value="${appname}.war"/>
<property name="ejbjar" value="${appname}Ejb.jar"/>
<!-- Package directory structures of interest. -->
<property name="app.pkgprefix" value="TBG"/>
<property name="ias.bin" value="${ias.home}/bin"/>
<!-- change this property to use a compiler other than javac. -->
<property name="build.compiler" value="classic"/>
<!-- Source file location. -->
<property name="src" value="TBG"/>
<property name="src.docroot" value="${src}/docroot"/>
<!-- Destination directory for the build -->
<property name="build" value="TBG"/>
<property name="build.docdir" value="${build}/docs/api"/>
<property name="build.classesdir" value="."/>
<property name="build.classpath" value="${build.classesdir}:${ias.cpath}:${ias.home}/classes/java/nab25.jar"/>
<!-- Destination directory for the assembly targets -->
<property name="assemble" value="../assemble"/>
<property name="assemble.ejbjar" value="${assemble}/jar"/>
<property name="assemble.war" value="${assemble}/war"/>
<property name="assemble.ear" value="${assemble}/ear"/>
<!-- ======================================================= -->
<!-- Compile all classes. -->
<!-- ======================================================= -->
<target name="compile">
<javac srcdir="${src}"
destdir="${build.classesdir}"
     classpath="${build.classpath}"/>
</target>
<!-- ======================================================= -->
<!-- Build iAS-specific EJB stubs and skeletons. -->
<!-- -->
<!-- See build/ejbc-<bean name>.txt files for ejbc results. -->
<!-- ======================================================= -->
<target name="stubs">
<property name="ias.ejbc.cpath" value=".${cpath.seperator}${build.classpath}"/>
<echo message="Started building iAS stubs and skeletons for EJBs" />
<echo message="GreeterEJB" />
<exec dir="${build.classesdir}" executable="${ias.bin}/ejbc">
<arg line="-classpath ${ias.ejbc.cpath} -sl samples.helloworld.ejb.GreeterHome samples.helloworld.ejb.Greeter samples.helloworld.ejb.GreeterEJB"/>
</exec>
<echo message="Finished building iAS stubs and skeletons for EJBs" />
</target>
<!-- ======================================================= -->
<!-- Clean up various files and directories. -->
<!-- ======================================================= -->
<target name="clean_ear">
<delete dir="${assemble.ear}"/>
</target>
<target name="clean_war">
<delete dir="${assemble.war}"/>
</target>
<target name="clean_ejbjar">
<delete dir="${assemble.ejbjar}"/>
</target>
<target name="clean_assemble">
<delete dir="${assemble}"/>
</target>
<target name="clean" depends="clean_assemble">
<delete dir="${build}"/>
</target>
<target name="fixforunix">
<fixcrlf srcdir="${src}"
cr="remove" eof="remove"
includes="**/*.jsp,**/*.html,**/*.tld,**/*.xml,**/*.java,**/*.sh,**/*.sql"
/>
</target>
<!-- ======================================================= -->
<!-- Assemble EJB JAR module. -->
<!-- ======================================================= -->
<target name="ejbjar" depends="clean_ejbjar">
<mkdir dir="${assemble.ejbjar}"/>
<copy todir="${assemble.ejbjar}/${app.pkgprefix}">
<fileset dir="${build.classesdir}/${app.pkgprefix}/" includes="**/*.class" excludes="**/servlet/"/>
</copy>
<mkdir dir="${assemble.ejbjar}/META-INF"/>
<copy file="ejb-jar.xml" tofile="${assemble.ejbjar}/META-INF/ejb-jar.xml"/>
<copy file="ias-ejb-jar.xml" tofile="${assemble.ejbjar}/META-INF/ias-ejb-jar.xml"/>
<jar jarfile="${assemble.ejbjar}/${ejbjar}"
basedir="${assemble.ejbjar}"/>
</target>
<!-- ======================================================= -->
<!-- Assemble WAR module. -->
<!-- ======================================================= -->
<target name="war" depends="clean_war">
<mkdir dir="${assemble.war}"/>
<copy todir="${assemble.war}">
<fileset dir="${src.docroot}" excludes="cvs,annontation"/>
</copy>
<copy todir="${assemble.war}/WEB-INF/classes/${app.pkgprefix}">
<fileset dir="${build.classesdir}/${app.pkgprefix}/" includes="**/servlet/*.class"/>
</copy>
<copy file="web.xml" tofile="${assemble.war}/WEB-INF/web.xml"/>
<copy file="ias-web.xml" tofile="${assemble.war}/WEB-INF/ias-web.xml"/>
<jar jarfile="${assemble.war}/${war}"
basedir="${assemble.war}"/>
</target>
<!-- ======================================================= -->
<!-- Assemble EAR module. -->
<!-- ======================================================= -->
<target name="ear" depends="ejbjar, war, clean_ear">
<mkdir dir="${assemble.ear}"/>
<copy file="${assemble.ejbjar}/${ejbjar}" tofile="${assemble.ear}/${ejbjar}"/>
<copy file="${assemble.war}/${war}" tofile="${assemble.ear}/${war}"/>
<copy file="application.xml" tofile="${assemble.ear}/META-INF/application.xml"/>
<jar jarfile="${assemble.ear}/${ear}"
basedir="${assemble.ear}"/>
<delete file="${assemble.ear}/${ejbjar}" />
<delete file="${assemble.ear}/${war}" />
</target>
<!-- ======================================================= -->
<!-- Create Javadocs. -->
<!-- ======================================================= -->
<target name="javadocs">
<delete dir="${build.docdir}"/>
<mkdir dir="${build.docdir}"/>
<javadoc packagenames="samples.helloworld.*"
sourcepath="${src}"
destdir="${build.docdir}"
author="true"
version="true"
use="true"
windowtitle="iPlanet App Server HelloWorld Sample Application API"
doctitle="iPlanet App Server HelloWorld Sample"
bottom="Copyright &#169; 2000 Sun Microsystems Inc. All Rights Reserved."/>
</target>
<!-- ======================================================= -->
<!-- Install targets. -->
<!-- ======================================================= -->
<target name="install_javadocs">
<delete dir="../docs/api"/>
<mkdir dir="../docs/api"/>
<copy todir="../docs/api">
<fileset dir="${build.docdir}/"/>
</copy>
</target>
<target name="install_ear">
<copy file="${assemble.ear}/${ear}" tofile="../${ear}"/>
<echo message="Copied ${ear} to sample root directory." />
<echo message="Executing iasdeploy to register ${ear}."/>
<exec executable="${ias.bin}/iasdeploy">
<arg line="deployapp -verbose ../${ear}"/>
</exec>
</target>
<target name="deploy" depends="install_ear">
</target>
<target name="core" depends="compile, stubs, ejbjar, war, ear" />
<target name="all" depends="core, javadocs" />
<target name="install" depends="install_javadocs, install_ear" />
</project>

Hi,
Greetings to you. I'm interested to know the following.
1. Are you able to run cxs engine ?. This means, just start the cxs engine
without any errors before invoking any components with app server.
2. Does cxs engine crash after you start and kas keeps restarting the cxs
engine.
Thanks & Regards
Raj

Similar Messages

  • How can I compile BaseResource.java on iAS 6.0 SP4 on Solaris 8?

    I'm trying to upgrade our application server to SP4 but I can't until I am able to compile a couple hundred AppLogics in SP4. I posted about this last week but got no answer. Here's a simple compile that succeeds in SP2 and fails in SP4 :
    wwwtest% /export/home/iplanet/ias6/ias/usr/java/bin/javac -classpath .:/export/home/iplanet/ias6/ias/classes/java/nab25.jar:/export/home/iplanet/ias6/ias/classes/java/kfcjdk11.jar TBG/BaseResource.java
    TBG/BaseResource.java:0: The method void setSessionTimeout(int) declared in class com.netscape.server.nas.BaseResource cannot override the method of the same signature declared in interface com.kivasoft.ISession2. They must have the same return type.
    package TBG;
    ^
    1 error
    Here's the problem. kfcjdk11.jar was changed btwn
    SP2 and SP4 but nab25.jar wasn't. com.kivasoft.ISession2.setSessionTimeout (in kfcjdk11.jar) changed but com.netscape.server.nas.BaseResource (in nab25.jar) wasn't updated to conform to the new interface declaration. The old nab25.jar is included in the SP4 distribution but it's useless. Any recommendations on how to resolve this issue?

    Hi,
    Greetings to you. I'm interested to know the following.
    1. Are you able to run cxs engine ?. This means, just start the cxs engine
    without any errors before invoking any components with app server.
    2. Does cxs engine crash after you start and kas keeps restarting the cxs
    engine.
    Thanks & Regards
    Raj

  • Problem compiling Abstract class

    Hi
    I have writting an abstract class Sort.java and another class BubbleSort.java. I am having problems compiling BubbleSort.java class.
    The following is the error message
    BubbleSort.java:8: missing method body, or declare abstract
         public int doSorting(int[] array);
    ^
    BubbleSort.java:11: return outside method
              return num;
    ^
    The following is the code
    public abstract class Sort
    public abstract int doSorting(int[] array);
    }// End of class
    public class BubbleSort extends Sort
    private int num = 2;
    public int doSorting(int[] array);
    num = num + 2;
    return num;
    } // end of class

    Remove the semi-colon.
    public int doSorting(int[] array); // <------- there

  • Having problems compiling *.java with import javax.servlet.jsp......

    I've been trying to do the tutorials in a book titled Apache Jakarta-Tomcat as part of my introduction to JSP. I'm new to Java but do know the basics. I have on my machine Java 1.3, Java 1.4, Java FrameWorks 2.1 and Jython 2.1 on Win2000 Pro. So enough about my configuration. I have never worked with packages also.
    I downloaded the files from the books site due to the fact I make a lot of typos when hand coding Java (I've become a pretty good debugger of my own code). But everytime I go to compile the *.java I get error messages. So below you will find HelloTag.java and beneath that the error messages that are thrown when I try and compile it. I tested other bits of *.java and have had no problem compiling them. Is there a JSP module I'm missing?
    Am I doing something wrong or am I missing something from my configuration.
    Marijan Madunic
    package chapter2;
    import javax.servlet.jsp.JspException;
    import javax.servlet.jsp.JspTagException;
    import javax.servlet.jsp.tagext.TagSupport;
    public class HelloTag extends TagSupport
    public void HelloTag() {
    // Method called when the closing hello tag is encountered
    public int doEndTag() throws JspException {
    try {
    // We use the pageContext to get a Writer
    // We then print the text string Hello
    pageContext.getOut().print("Hello");
    catch (Exception e) {
    throw new JspTagException(e.getMessage());
    // We want to return SKIP_BODY because this Tag does not support
    // a Tag Body
    return SKIP_BODY;
    public void release() {
    // Call the parent's release to release any resources
    // used by the parent tag.
    // This is just good practice for when you start creating
    // hierarchies of tags.
    super.release();
    D:\Java\JDK 1.3\bin>javac HelloTag.java
    HelloTag.java:3: cannot resolve symbol
    symbol : class JspException
    location: package jsp
    import javax.servlet.jsp.JspException;
    ^
    HelloTag.java:4: cannot resolve symbol
    symbol : class JspTagException
    location: package jsp
    import javax.servlet.jsp.JspTagException;
    ^
    HelloTag.java:5: cannot resolve symbol
    symbol : class TagSupport
    location: package tagext
    import javax.servlet.jsp.tagext.TagSupport;
    ^
    HelloTag.java:7: cannot resolve symbol
    symbol : class TagSupport
    location: class chapter2.HelloTag
    public class HelloTag extends TagSupport
    ^
    HelloTag.java:14: cannot resolve symbol
    symbol : class JspException
    location: class chapter2.HelloTag
    public int doEndTag() throws JspException {
    ^
    HelloTag.java:20: cannot resolve symbol
    symbol : variable pageContext
    location: class chapter2.HelloTag
    pageContext.getOut().print("Hello");
    ^
    HelloTag.java:24: cannot resolve symbol
    symbol : class JspTagException
    location: class chapter2.HelloTag
    throw new JspTagException(e.getMessage());
    ^
    HelloTag.java:28: cannot resolve symbol
    symbol : variable SKIP_BODY
    location: class chapter2.HelloTag
    return SKIP_BODY;
    ^
    HelloTag.java:37: cannot resolve symbol
    symbol : variable super
    location: class chapter2.HelloTag
    super.release();
    ^
    9 errors

    Well, it looks like you've not got the servlet development kit JAR on your classpath. I think it'll probably be called servlet.jar on your system. Add that to the classpath if it's not already there.
    Incidentally, you've bumped into one of the areas Java's slightly lenient - declaring a method that looks like a constructor:
    public HelloTag() { }
    public void HelloTag() { }The first is a constructor, the second is a normal method. I'm assuming you intended to have the former instead of the latter.
    Anyway, hope this helps.

  • Problems compiling Zaptel package [SOLVED-ISH]

    Hey guys, I'm on an Arch64 system and I'm having problems compiling Zaptel (a dependancy for Asterisk).
    Here's the pastebin of the errors I get from the Zaptel makefile: http://pastebin.com/776475
    Here's my analysis so far:
    There's a line in the Makefile for the zaptel driver that goes like this:
    make -C /lib/modules/2.6.17-ARCH/build/ SUBDIRS=/home/woogie/zaptel/src/zaptel-1.2.8 modules
    This line activates the kernel's makefile in order to build modules, but specifies that the source directory for zaptel should be included in the make process.
    Then things go down the proverbial drain - linux/err_kernel_only.h gets included in the build process, which is designed to do one thing only - stop the build process. So I'm not entirely too sure what's going on here. Is there something misconfigured on my system, or is the Zaptel build system flawed somehow, such that I need to compensate for it?

    Further information:
    I've manually run the problematic make command from /lib/modules/2.6.17-ARCH/build on my own. After reading the kernel makefile documentation, I've learned of the V=1 flag to show me exactly what's going on. The failing command is this one:
    gcc -Wp,-MD,/home/cestus/zaptel/src/zaptel-1.2.8/.zaptel.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.1/include -D__
    KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2
    -fomit-frame-pointer -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -fun
    it-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement -Wno-pointer-sign -I. -Iinclude -O4 -g -Wall -DBUILDING_T
    ONEZONE -m64 -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG="/etc/zaptel.conf" -DHOTPLUG_FIRMWARE -I/home/cestus/zaptel/src/zaptel-1.2.8//include
    -I/home/cestus/zaptel/src/zaptel-1.2.8//include/oct6100api -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(zaptel)" -D"KBUIL
    D_MODNAME=KBUILD_STR(zaptel)" -c -o /home/cestus/zaptel/src/zaptel-1.2.8/zaptel.o /home/cestus/zaptel/src/zaptel-1.2.8/zaptel.c
    I've figured out that the bit which causes the failure is "-include include/linux/autoconf.h", because autoconf.h just includes the "err_kernel_only" header automatically, which then slays the build process. And I've also discovered that the Zaptel devs are uber-leet. They've found the magical -O4 level in gcc. You know, the one above 3, where the supported optimization levels in gcc are -O, -Os, -O2 and -O3 

  • Problem compiling Java on XP

    i'm new to java, just went through the tutorial just now..
    tried compilling my program the first time on XP, but the system doesn't recognise the command JAVAC,
    i've installed the java compiler (j2re-1_4_1_01-windows-i586.exe)
    but it still isn't working.. any help?
    thanks!

    then again.. i'm still having problems compiling..
    i managed to install the right sdk, but.. i have to run the command javac from the bin directory.. else the command prompt won't recognise it..
    anyway to get around this?
    also.. because of this.. i can't compile my program.. :(

  • Having problems compiling script

    I am rather new to java an started a couple of days ago and I ran into a problem compiling this script in the command line
    class VariableDemo {
    public static void main (String args[]) {
    int num = 1000;
    System.out.println (num + " is the value of num") ;
    At first I forgot to capitolize the 'S' in System (which is why I was getting errors) but after I had corrected it , I still could not get it to compile in a command prompt
    even after I corrected my mistakes, I still get this error:
    error: cannot read: VariableDemo.java
    1 error
    When I ran it through JCreator it compiled it just fine and found no errors. SO I just want to know if it is some thing that has to do with the command line or is there an error I am not seeing?
    I am running Windows XP Pro with service pack 2 and using JCreator 3.50.010

    Sorry, I am new to this I just called it script out of ignorance, but, yes it is in the same directory. I even Pathed it out again to be sure.

  • Problems compiling program

    hello.
    this is james mcfadden. i'm having problems compiling the Demo.java program. the Demo.java program is shown below along with the MediaPanel.java and MediaTest.java programs. when i compile the Demo.java program i get the following errors. i really need help in getting rid of these errors.
    ----jGRASP exec: javac -g X:\CP4B Project\Demo.java
    Demo.java:297: cannot find symbol
    symbol : class Media
    location: class Demo
    MediaTest media=new Media();
    ^
    Demo.java:301: cannot find symbol
    symbol : class Media
    location: class Demo
    MediaTest media=new Media();
    ^
    Demo.java:305: cannot find symbol
    symbol : class Media
    location: class Demo
    MediaTest media=new Media();
    ^
    3 errors
    ----jGRASP wedge2: exit code for process is 1.
    ----jGRASP: operation complete.
    //Written by:Seamus McFadden
    //Class:CP4B
    //Program Number:1
    //Program Name:Demo.java
    //Description:
    //Supervisor:Gerard McCloskey
    import java.awt.*;//Contains all of the classes for creating user interfaces and for painting graphics and images
    import java.awt.event.*;//Provides interfaces and classes for dealing with different types of events fired by AWT components
    import javax.swing.*;//Provides a set of lightweight components that, to the maximum degree possible, work the same on all platforms
    public class Demo extends JFrame{
        public static void main(String[] args){
            int choice=-1;//a variable of type int that is set to -1
            choice=getChoice();//invokes the method getChoice()
            if(choice!=0){
               getSelected(choice);//invokes the method getSelected(choice)
            }//end if
        }//end main
        public static int getChoice(){
            String choice;//a variable of type string
            int ch;//a variable of type int
            choice=JOptionPane.showInputDialog(null,
                    "1. Product Menu\n" +
                    "2. Member Menu\n" +
                    "3. Rental Menu\n" +
                          "4. Media Menu\n" +
                    "5. Log Off\n\n" +
                    "Enter your choice");//asks the user for some input
            ch=Integer.parseInt(choice);//a class that wraps a value of the primitive type int in an object
            return ch;//a method that returns an integer value
        }//end getChoice
        public static void getSelected(int choice){
            if(choice == 1) {
                   product();
            }//end if
            if(choice==2){
               member();
            }//end if
            if(choice==3){
               rental();
            }//end if
                if(choice==4){
               media();
            }//end if
                if(choice==5){
                   LogOff logoff=new LogOff();
                }//end if
                else{
                   ErrorMessage error=new ErrorMessage();
        }//end getSelected
        public static void product(){
             int productChoice=-1;//a variable of type int that is set to -1
           productChoice=getProductChoice();//invokes the method getChoice()
           if(productChoice!=0){
              getProductSelected(productChoice);//invokes the method getSelected(choice)
           }//end if
           getChoice(); 
        public static void member(){
           int memberChoice=-1;//a variable of type int that is set to -1
           memberChoice=getMemberChoice();//invokes the method getChoice()
           if(memberChoice!=0){
              getMemberSelected(memberChoice);//invokes the method getSelected(choice)
           }//end if
           getChoice(); 
        public static void rental(){
           int rentalChoice=-1;//a variable of type int that is set to -1
           rentalChoice=getRentalChoice();//invokes the method getChoice()
           if(rentalChoice!=0){
              getRentalSelected(rentalChoice);//invokes the method getSelected(choice)
           }//end if
           getChoice();
          public static void media(){
           int mediaChoice=-1;//a variable of type int that is set to -1
           mediaChoice=getMediaChoice();//invokes the method getChoice()
           if(mediaChoice!=0){
              getMediaSelected(mediaChoice);//invokes the method getSelected(choice)
           }//end if
           getChoice(); 
          public static int getProductChoice(){
           String productChoice;//a variable of type string
           int pch;//a variable of type int
           productChoice=JOptionPane.showInputDialog(null,
                   "1. Add product details\n" +
                   "2. View product details\n" +
                   "3. Edit product details\n" +
                         "4. Delete product details\n" +
                   "5. Return to main menu\n\n" +
                   "Enter your choice");//asks the user for some input
           pch=Integer.parseInt(productChoice);//a class that wraps a value of the primitive type int in an object
           return pch;//a method that returns an integer value
        }//end getProductChoice
          public static int getMemberChoice(){
           String memberChoice;//a variable of type string
           int mch;//a variable of type int
           memberChoice=JOptionPane.showInputDialog(null,
                   "1. Add member details\n" +
                   "2. View member details\n" +
                   "3. Edit member details\n" +
                             "4. Delete member details\n" +
                   "5. Return to main menu\n\n" +
                   "Enter your choice");//asks the user for some input
           mch=Integer.parseInt(memberChoice);//a class that wraps a value of the primitive type int in an object
           return mch;//a method that returns an integer value
        }//end getMemberChoice
          public static int getRentalChoice(){
           String rentalChoice;//a variable of type string
           int rch;//a variable of type int
           rentalChoice=JOptionPane.showInputDialog(null,
                   "1. Add rental details\n" +
                   "2. View rental details\n" +
                   "3. Edit rental details\n" +
                             "4. Delete rental details\n" +
                   "5. Return to main menu\n\n" +
                   "Enter your choice");//asks the user for some input
           rch=Integer.parseInt(rentalChoice);//a class that wraps a value of the primitive type int in an object
           return rch;//a method that returns an integer value
        }//end getRentalChoice
          public static int getMediaChoice(){
           String mediaChoice;//a variable of type string
           int mtch;//a variable of type int
           mediaChoice=JOptionPane.showInputDialog(null,
                   "1. Listen to songs\n" +
                             "2. View movie previews\n" +
                             "3. View game previews\n" +
                   "4. Return to main menu\n\n" +
                   "Enter your choice");//asks the user for some input
           mtch=Integer.parseInt(mediaChoice);//a class that wraps a value of the primitive type int in an object
           return mtch;//a method that returns an integer value
        }//end getMediaChoice
          public static void getProductSelected(int productChoice){
           if(productChoice==1){
                  addProducts();
           }//end if
           if(productChoice==2){
              viewProducts();
           }//end if
           if(productChoice==3){
              editProducts();
           }//end if
               if(productChoice==4){
              deleteProducts();
           }//end if
               else{
                   ErrorMessage error=new ErrorMessage();
        }//end getProductSelected
          public static void getMemberSelected(int memberChoice){
           if(memberChoice==1){
                  addMembers();
           }//end if
           if(memberChoice==2){
              viewMembers();
           }//end if
           if(memberChoice==3){
              editMembers();
           }//end if
               if(memberChoice==4){
              deleteMembers();
           }//end if
               else{
                   ErrorMessage error=new ErrorMessage();
        }//end getMemberSelected
          public static void getRentalSelected(int rentalChoice){
           if(rentalChoice==1){
                  addRentals();
           }//end if
           if(rentalChoice==2){
              viewRentals();
           }//end if
           if(rentalChoice==3){
              editRentals();
           }//end if
               if(rentalChoice==4){
              deleteRentals();
           }//end if
               else{
                   ErrorMessage error=new ErrorMessage();
        }//end getRentalSelected
          public static void getMediaSelected(int mediaChoice){
           if(mediaChoice==1){
                  hearSongs();
           }//end if
           if(mediaChoice==2){
              viewMovies();
           }//end if
           if(mediaChoice==3){
              viewGames();
           }//end if
               else{
                   ErrorMessage error=new ErrorMessage();
        }//end getMediaSelected
          public static void addProducts(){
           ProductForm product=new ProductForm();
           product.getInput();
               product.setVisible(true);
          public static void viewProducts(){
           DatabaseTest tt=new DatabaseTest();
               tt.setVisible(true);
          public static void editProducts(){
           ProductForm product=new ProductForm();
               product.getInput();
               product.setVisible(true);
          public static void deleteProducts(){
           ProductForm product=new ProductForm();
               product.setVisible(true);
          public static void addMembers(){
           MemberForm member=new MemberForm();
               member.getInput();
               member.setVisible(true);
          public static void viewMembers(){
           DatabaseTest tt=new DatabaseTest();
               tt.setVisible(true);
          public static void editMembers(){
           MemberForm member=new MemberForm();
               member.getInput();
               member.setVisible(true);
          public static void deleteMembers(){
           MemberForm member=new MemberForm();
               member.setVisible(true);
          public static void addRentals(){
           RentalForm rental=new RentalForm();
               rental.getInput();
               rental.setVisible(true);
          public static void viewRentals(){
           DatabaseTest tt=new DatabaseTest();
               tt.setVisible(true);
          public static void editRentals(){
           RentalForm rental=new RentalForm();
               rental.getInput();
               rental.setVisible(true);
          public static void deleteRentals(){
           RentalForm rental=new RentalForm();
               rental.setVisible(true);
        public static void hearSongs(){
           MediaTest media=new Media(); 
        public static void viewMovies(){
           MediaTest media=new Media();   
        public static void viewGames(){
           MediaTest media=new Media();   
    }//end class Demo
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.io.IOException;
    import java.net.URL;
    import javax.media.CannotRealizeException;
    import javax.media.Manager;
    import javax.media.NoPlayerException;
    import javax.media.Player;
    import javax.swing.JPanel;
    public class MediaPanel extends JPanel{
       public MediaPanel(URL mediaURL){
          setLayout(new BorderLayout());//use a BorderLayout
          //Use lightweight components for Swing compatibility
          Manager.setHint(Manager.LIGHTWEIGHT_RENDERER,true);
          try{
             //create a player to play the media specified in the URL
             Player mediaPlayer=Manager.createRealizedPlayer(mediaURL);
             //get the components for the video and the playback controls
             Component video=mediaPlayer.getVisualComponent();
             Component controls=mediaPlayer.getControlPanelComponent();
             if(video!=null)
                add(video,BorderLayout.CENTER);//add video component
             if(controls!=null)
                add(controls,BorderLayout.SOUTH);//add controls
             mediaPlayer.start();//start playing the media clip
          }//end try
          catch(NoPlayerException noPlayerException){
             System.err.println("No media player found");
          }//end catch
          catch(CannotRealizeException cannotRealizeException){
             System.err.println("Could not realize media player");
          }//end catch
          catch(IOException iOException){
             System.err.println("Error reading from the source");
          }//end catch
       }//end MediaPanel constructor
    }//end class MediaPanel
    import java.io.File;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.swing.JFileChooser;
    import javax.swing.JFrame;
    public class MediaTest{
       //launch the application
       public static void main(String args[]){
          //create a file chooser
          JFileChooser fileChooser=new JFileChooser();
          //show open file dialog
          int result=fileChooser.showOpenDialog(null);
          if(result==JFileChooser.APPROVE_OPTION){//user chose a file
             URL mediaURL=null;
             try{
                //get the file as URL
                mediaURL=fileChooser.getSelectedFile().toURL();
             }//end try
             catch(MalformedURLException malformedURLException){
                System.err.println("Could not create URL for the file");
             }//end catch
             if(mediaURL!=null) {//only display if there is a valid URL
                JFrame mediaTest=new JFrame("Media Tester");
                mediaTest.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                MediaPanel mediaPanel=new MediaPanel(mediaURL);
                mediaTest.add(mediaPanel);
                mediaTest.setSize(300,300);
                mediaTest.setVisible(true);
             }//end inner if
          }//end outer if
       }//end main
    }//end class MediaTest

    hello.
    this is james mcfadden. thanks for the reply. i did what you told me to do, but i am still having trouble trying to use the 2 JMF programs (MediaPanel.java and MediaTest.java) with the Demo.java program. the Demo.java program compiles and runs ok, but when i press 1 (for listening to songs) in the media menu i get a JOptionPane (An Error Message) displayed on screen. how can i fix this problem?
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Demo extends JFrame{
        public static void main(String[] args){
            int choice=-1;//a variable of type int that is set to -1
            choice=getChoice();//invokes the method getChoice()
            if(choice!=0){
               getSelected(choice);//invokes the method getSelected(choice)
            }//end if
        }//end main
        public static int getChoice(){
            String choice;//a variable of type string
            int ch;//a variable of type int
            choice=JOptionPane.showInputDialog(null,
                    "1. Product Menu\n" +
                    "2. Member Menu\n" +
                    "3. Rental Menu\n" +
                          "4. Media Menu\n" +
                    "5. Log Off\n\n" +
                    "Enter your choice");//asks the user for some input
            ch=Integer.parseInt(choice);//a class that wraps a value of the primitive type int in an object
            return ch;//a method that returns an integer value
        }//end getChoice
        public static void getSelected(int choice){
            if(choice == 1) {
                   product();
            }//end if
            if(choice==2){
               member();
            }//end if
            if(choice==3){
               rental();
            }//end if
                if(choice==4){
               media();
            }//end if
                if(choice==5){
                   LogOff logoff=new LogOff();
                }//end if
                else{
                   JOptionPane.showMessageDialog(null,"Error\n\nInvalid options\nPlease choose 1, 2, 3, 4 or 5 on the main menu\nPlease choose 1, 2, 3, 4 or 5 on the product menu\nPlease choose 1, 2, 3, 4 or 5 on the member menu\nPlease choose 1, 2, 3, 4 or 5 on the rental menu\nPlease choose 1, 2, 3 or 4 on the media menu");
                   System.exit(0);
        }//end getSelected
        public static void product(){
             int productChoice=-1;//a variable of type int that is set to -1
           productChoice=getProductChoice();//invokes the method getChoice()
           if(productChoice!=0){
              getProductSelected(productChoice);//invokes the method getSelected(choice)
           }//end if
           getChoice(); 
        public static void member(){
           int memberChoice=-1;//a variable of type int that is set to -1
           memberChoice=getMemberChoice();//invokes the method getChoice()
           if(memberChoice!=0){
              getMemberSelected(memberChoice);//invokes the method getSelected(choice)
           }//end if
           getChoice(); 
        public static void rental(){
           int rentalChoice=-1;//a variable of type int that is set to -1
           rentalChoice=getRentalChoice();//invokes the method getChoice()
           if(rentalChoice!=0){
              getRentalSelected(rentalChoice);//invokes the method getSelected(choice)
           }//end if
           getChoice();
          public static void media(){
           int mediaChoice=-1;//a variable of type int that is set to -1
           mediaChoice=getMediaChoice();//invokes the method getChoice()
           if(mediaChoice!=0){
              getMediaSelected(mediaChoice);//invokes the method getSelected(choice)
           }//end if
           getChoice(); 
          public static int getProductChoice(){
           String productChoice;//a variable of type string
           int pch;//a variable of type int
           productChoice=JOptionPane.showInputDialog(null,
                   "1. Add product details\n" +
                   "2. View product details\n" +
                   "3. Edit product details\n" +
                         "4. Delete product details\n" +
                   "5. Return to main menu\n\n" +
                   "Enter your choice");//asks the user for some input
           pch=Integer.parseInt(productChoice);//a class that wraps a value of the primitive type int in an object
           return pch;//a method that returns an integer value
        }//end getProductChoice
          public static int getMemberChoice(){
           String memberChoice;//a variable of type string
           int mch;//a variable of type int
           memberChoice=JOptionPane.showInputDialog(null,
                   "1. Add member details\n" +
                   "2. View member details\n" +
                   "3. Edit member details\n" +
                             "4. Delete member details\n" +
                   "5. Return to main menu\n\n" +
                   "Enter your choice");//asks the user for some input
           mch=Integer.parseInt(memberChoice);//a class that wraps a value of the primitive type int in an object
           return mch;//a method that returns an integer value
        }//end getMemberChoice
          public static int getRentalChoice(){
           String rentalChoice;//a variable of type string
           int rch;//a variable of type int
           rentalChoice=JOptionPane.showInputDialog(null,
                   "1. Add rental details\n" +
                   "2. View rental details\n" +
                   "3. Edit rental details\n" +
                             "4. Delete rental details\n" +
                   "5. Return to main menu\n\n" +
                   "Enter your choice");//asks the user for some input
           rch=Integer.parseInt(rentalChoice);//a class that wraps a value of the primitive type int in an object
           return rch;//a method that returns an integer value
        }//end getRentalChoice
          public static int getMediaChoice(){
           String mediaChoice;//a variable of type string
           int mtch;//a variable of type int
           mediaChoice=JOptionPane.showInputDialog(null,
                   "1. Listen to songs\n" +
                             "2. View movie previews\n" +
                             "3. View game previews\n" +
                   "4. Return to main menu\n\n" +
                   "Enter your choice");//asks the user for some input
           mtch=Integer.parseInt(mediaChoice);//a class that wraps a value of the primitive type int in an object
           return mtch;//a method that returns an integer value
        }//end getMediaChoice
          public static void getProductSelected(int productChoice){
           if(productChoice==1){
                  addProducts();
           }//end if
           if(productChoice==2){
              viewProducts();
           }//end if
           if(productChoice==3){
              editProducts();
           }//end if
               if(productChoice==4){
              deleteProducts();
           }//end if
               else{
                   JOptionPane.showMessageDialog(null,"Error\n\nInvalid options\nPlease choose 1, 2, 3, 4 or 5 on the main menu\nPlease choose 1, 2, 3, 4 or 5 on the product menu\nPlease choose 1, 2, 3, 4 or 5 on the member menu\nPlease choose 1, 2, 3, 4 or 5 on the rental menu\nPlease choose 1, 2, 3 or 4 on the media menu");
                   System.exit(0);
        }//end getProductSelected
          public static void getMemberSelected(int memberChoice){
           if(memberChoice==1){
                  addMembers();
           }//end if
           if(memberChoice==2){
              viewMembers();
           }//end if
           if(memberChoice==3){
              editMembers();
           }//end if
               if(memberChoice==4){
              deleteMembers();
           }//end if
               else{
                   JOptionPane.showMessageDialog(null,"Error\n\nInvalid options\nPlease choose 1, 2, 3, 4 or 5 on the main menu\nPlease choose 1, 2, 3, 4 or 5 on the product menu\nPlease choose 1, 2, 3, 4 or 5 on the member menu\nPlease choose 1, 2, 3, 4 or 5 on the rental menu\nPlease choose 1, 2, 3 or 4 on the media menu");
                   System.exit(0);
        }//end getMemberSelected
          public static void getRentalSelected(int rentalChoice){
           if(rentalChoice==1){
                  addRentals();
           }//end if
           if(rentalChoice==2){
              viewRentals();
           }//end if
           if(rentalChoice==3){
              editRentals();
           }//end if
               if(rentalChoice==4){
              deleteRentals();
           }//end if
               else{
                   JOptionPane.showMessageDialog(null,"Error\n\nInvalid options\nPlease choose 1, 2, 3, 4 or 5 on the main menu\nPlease choose 1, 2, 3, 4 or 5 on the product menu\nPlease choose 1, 2, 3, 4 or 5 on the member menu\nPlease choose 1, 2, 3, 4 or 5 on the rental menu\nPlease choose 1, 2, 3 or 4 on the media menu");
                   System.exit(0);
        }//end getRentalSelected
          public static void getMediaSelected(int mediaChoice){
           if(mediaChoice==1){
                  hearSongs();
           }//end if
           if(mediaChoice==2){
              viewMovies();
           }//end if
           if(mediaChoice==3){
              viewGames();
           }//end if
               else{
                   JOptionPane.showMessageDialog(null,"Error\n\nInvalid options\nPlease choose 1, 2, 3, 4 or 5 on the main menu\nPlease choose 1, 2, 3, 4 or 5 on the product menu\nPlease choose 1, 2, 3, 4 or 5 on the member menu\nPlease choose 1, 2, 3, 4 or 5 on the rental menu\nPlease choose 1, 2, 3 or 4 on the media menu");
                   System.exit(0);
        }//end getMediaSelected
          public static void addProducts(){
           ProductForm product=new ProductForm();
           product.getInput();
               product.setVisible(true);
          public static void viewProducts(){
           DatabaseTest tt=new DatabaseTest();
               tt.setVisible(true);
          public static void editProducts(){
           ProductForm product=new ProductForm();
               product.getInput();
               product.setVisible(true);
          public static void deleteProducts(){
           ProductForm product=new ProductForm();
               product.setVisible(true);
          public static void addMembers(){
           MemberForm member=new MemberForm();
               member.getInput();
               member.setVisible(true);
          public static void viewMembers(){
           DatabaseTest tt=new DatabaseTest();
               tt.setVisible(true);
          public static void editMembers(){
           MemberForm member=new MemberForm();
               member.getInput();
               member.setVisible(true);
          public static void deleteMembers(){
           MemberForm member=new MemberForm();
               member.setVisible(true);
          public static void addRentals(){
           RentalForm rental=new RentalForm();
               rental.getInput();
               rental.setVisible(true);
          public static void viewRentals(){
           DatabaseTest tt=new DatabaseTest();
               tt.setVisible(true);
          public static void editRentals(){
           RentalForm rental=new RentalForm();
               rental.getInput();
               rental.setVisible(true);
          public static void deleteRentals(){
           RentalForm rental=new RentalForm();
               rental.setVisible(true);
        public static void hearSongs(){
           MediaTest media=new MediaTest(); 
        public static void viewMovies(){
           MediaTest media=new MediaTest();   
        public static void viewGames(){
           MediaTest media=new MediaTest();   
    }//end class Demo
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.io.IOException;
    import java.net.URL;
    import javax.media.CannotRealizeException;
    import javax.media.Manager;
    import javax.media.NoPlayerException;
    import javax.media.Player;
    import javax.swing.JPanel;
    public class MediaPanel extends JPanel{
       public MediaPanel(URL mediaURL){
          setLayout(new BorderLayout());//use a BorderLayout
          //Use lightweight components for Swing compatibility
          Manager.setHint(Manager.LIGHTWEIGHT_RENDERER,true);
          try{
             //create a player to play the media specified in the URL
             Player mediaPlayer=Manager.createRealizedPlayer(mediaURL);
             //get the components for the video and the playback controls
             Component video=mediaPlayer.getVisualComponent();
             Component controls=mediaPlayer.getControlPanelComponent();
             if(video!=null)
                add(video,BorderLayout.CENTER);//add video component
             if(controls!=null)
                add(controls,BorderLayout.SOUTH);//add controls
             mediaPlayer.start();//start playing the media clip
          }//end try
          catch(NoPlayerException noPlayerException){
             System.err.println("No media player found");
          }//end catch
          catch(CannotRealizeException cannotRealizeException){
             System.err.println("Could not realize media player");
          }//end catch
          catch(IOException iOException){
             System.err.println("Error reading from the source");
          }//end catch
       }//end MediaPanel constructor
    }//end class MediaPanel
    import java.io.File;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.swing.JFileChooser;
    import javax.swing.JFrame;
    public class MediaTest{
       //launch the application
       public static void main(String args[]){
          //create a file chooser
          JFileChooser fileChooser=new JFileChooser();
          //show open file dialog
          int result=fileChooser.showOpenDialog(null);
          if(result==JFileChooser.APPROVE_OPTION){//user chose a file
             URL mediaURL=null;
             try{
                //get the file as URL
                mediaURL=fileChooser.getSelectedFile().toURL();
             }//end try
             catch(MalformedURLException malformedURLException){
                System.err.println("Could not create URL for the file");
             }//end catch
             if(mediaURL!=null) {//only display if there is a valid URL
                JFrame mediaTest=new JFrame("Media Tester");
                mediaTest.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                MediaPanel mediaPanel=new MediaPanel(mediaURL);
                mediaTest.add(mediaPanel);
                mediaTest.setSize(300,300);
                mediaTest.setVisible(true);
             }//end inner if
          }//end outer if
       }//end main
    }//end class MediaTest

  • Problems compiling at91 driver for samutils-0.2.1

    Hello All!
    I'm having problems compiling the usb driver for sam7 tools. I am receiving the following errors:
    make -C /lib/modules/2.6.39-ARCH/build SUBDIRS=/home/bailey/Source/sam7utils-0.2.1/driver modules
    make[1]: Entering directory `/usr/src/linux-2.6.39-ARCH'
    CC [M] /home/bailey/Source/sam7utils-0.2.1/driver/at91.o
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c: In function âat91_write_bulk_callbackâ:
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:154:2: error: implicit declaration of function âusb_buffer_freeâ [-Werror=implicit-function-declaration]
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:140:19: warning: variable âdevâ set but not used [-Wunused-but-set-variable]
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c: In function âat91_writeâ:
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:178:2: error: implicit declaration of function âusb_buffer_allocâ [-Werror=implicit-function-declaration]
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:178:6: warning: assignment makes pointer from integer without a cast [enabled by default]
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:192:6: warning: passing argument 6 of âusb_fill_bulk_urbâ from incompatible pointer type [enabled by default]
    include/linux/usb.h:1266:20: note: expected âusb_complete_tâ but argument is of type âvoid (*)(struct urb *, struct pt_regs *)â
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c: In function âat91_probeâ:
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:305:2: error: implicit declaration of function âinfoâ [-Werror=implicit-function-declaration]
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c: In function âat91_disconnectâ:
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:320:2: error: implicit declaration of function âlock_kernelâ [-Werror=implicit-function-declaration]
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:328:2: error: implicit declaration of function âunlock_kernelâ [-Werror=implicit-function-declaration]
    cc1: some warnings being treated as errors
    make[2]: *** [/home/bailey/Source/sam7utils-0.2.1/driver/at91.o] Error 1
    make[1]: *** [_module_/home/bailey/Source/sam7utils-0.2.1/driver] Error 2
    make[1]: Leaving directory `/usr/src/linux-2.6.39-ARCH'
    make: *** [default] Error 2
    output of uname -a
    2.6.39-ARCH #1 SMP PREEMPT Mon Jun 27 22:01:13 CEST 2011 i686 Intel(R) Pentium(R) 4 CPU 1.50GHz GenuineIntel GNU/Linux
    I am running gcc 4.6.1-1 and have installed kernel26headers. If there is any info I'm missing plz let me know.
    Thanks for your help in advance

    Thank you for the reply, I noticed that the post below (its for Ubuntu) shows the gcc version to be 4.0.3
    [link]http://www.makingthings.com/documentati … -sam7utils[/link]
    I poked around the Makefile in /usr/src/linux-2.6.39 and got rid of "-Wall" and "-Wno-implicit-function-declaration"
    it compiled with the following warnings:
    make[1]: Entering directory `/usr/src/linux-2.6.39-ARCH'
    Building modules, stage 2.
    MODPOST 1 modules
    WARNING: "info" [/home/bailey/Source/sam7utils-0.2.1/driver/at91.ko] undefined!
    WARNING: "unlock_kernel" [/home/bailey/Source/sam7utils-0.2.1/driver/at91.ko] undefined!
    WARNING: "lock_kernel" [/home/bailey/Source/sam7utils-0.2.1/driver/at91.ko] undefined!
    WARNING: "usb_buffer_alloc" [/home/bailey/Source/sam7utils-0.2.1/driver/at91.ko] undefined!
    WARNING: "usb_buffer_free" [/home/bailey/Source/sam7utils-0.2.1/driver/at91.ko] undefined!
    CC /home/bailey/Source/sam7utils-0.2.1/driver/at91.mod.o
    LD [M] /home/bailey/Source/sam7utils-0.2.1/driver/at91.ko
    make[1]: Leaving directory `/usr/src/linux-2.6.39-ARCH'
    but when I tried to install, the output was
    insmod: error inserting 'at91.ko': -1 Unknown symbol in module
    Unfortunately, I tried grabbing the package from the AUR, but I ran into the same issues. Seems the only common factor in this process is gcc.
    Thanks for the help

  • Problems compiling with packages

    Hi,
    I wonder if anyone could help me.
    I have had problems compiling using a package. I have altered the classpath in autoexec.bat with:
    SET CLASSPATH=%classpath%;C:\jdk1.3.1_02\classes;.
    the package class files are stored in C:\jdk1.3.1_02\classes\helliker\id3
    and I have imported the class with:
    import helliker.id3.*;
    I am getting the following error:
    C:\My Documents\Uni work\mp3 project\test\Driver.java:1: package helliker.id3 does not exist
    import helliker.id3.*;
    ^
    Can anybody help?
    Thanks,
    Dave

    Perhaps the version of Windows you are using does not use autoexec.bat. For example, in NT and XP, you set Classpath using ControlPanel/System/Advanced/Environment Variables.
    Perhaps there is a typo in your Classpath, for example an extra space.
    On a command line, try this:
    javac -classpath C:\jdk1.3.1_02\classes C:\My Documents\Uni work\mp3 project\test\Driver.java
    If that works, then definitely Classpath is not set as you think it is.

  • Problems compiling 2.3.10 on Solaris 10

    I have a Solaris 10 box that I'm trying to get DBXML 2.3.10 compiled on (I had 2.3.8 working at one point). My buildall line looks like this:
    ./buildall.sh -m gmake -c /opt/csw/gcc4/bin/gcc -x /opt/csw/gcc4/bin/g++ --prefix=/opt/csw/dbxml
    I'm using the blastwave GCC 4.0.2 binaries (although I've tried the Sun compilers as well) and the compile is failing with this message:
    ld: fatal: relocation error: file: SOLARIS/CharacterDataImpl.o section: .rel.eh_frame symbol: .LFB94: relocation against a discarded symbol,
    symbol is part of discarded section: .gnu.linkonce.t._ZN11xercesc_2_730ArrayIndexOutOfBoundsExceptionD1Ev
    collect2: ld returned 1 exit status
    Which results in this error as well:
    ...[snip]...
    mpl.o SOLARIS/ParentNode.o SOLARIS/ProcessingInstructionImpl.o SOLARIS/RangeImpl.o SOLARIS/RefCountedImpl.o SOLARIS/TextImpl.o SOLARIS/TreeWalkerImpl.o SOLARIS/XMLDeclImpl.o -lpthread -lnsl -lsocket -L/usr/lib -L/usr/local/lib -L/usr/ccs/lib -lm -lgen -L/root/src/dbxml-2.3.10/xerces-c-src/lib -lxerces-c
    ld: fatal: library -lxerces-c: not found
    ld: fatal: File processing errors. No output written to /root/src/dbxml-2.3.10/xerces-c-src/lib/libxerces-depdom.so.27.0
    collect2: ld returned 1 exit status
    Has anyone got 2.3.10 to compile on Solaris? If so, what compilers and options did you use?
    Thanks!
    Jon Brisbin
    NPC International, Inc.

    I deleted the directory and started from scratch, this time with the Sun compilers. New buildall line:
    ./buildall.sh -p solaris -c cc -x CC -m gmake --prefix=/opt/csw/dbxml
    I tried several different switches (haven't tried enable-debug yet) and I got a different error now:
    r.o .libs/TestSuiteResultListener.o .libs/TestSuiteRunner.o -R/root/src/dbxml-2.3.10/xerces-c-src/lib -L/root/src/dbxml-2.3.10/xerces-c-src/lib -lxerces-c -lnsl -lsocket -lpthread -lCstd -lCrun -lc
    Undefined first referenced
    symbol in file
    acos .libs/mapmgues.o
    asin .libs/mapmgues.o
    __sincos .libs/mapm_fft.o
    ld: fatal: Symbol referencing errors. No output written to .libs/libxqilla.so.1.0.0
    gmake[1]: *** [libxqilla.la] Error 1
    gmake[1]: Leaving directory `/root/src/dbxml-2.3.10/xqilla/build'
    gmake: *** [all-recursive] Error 1
    It's obviously a link error, and I must just be missing something, I'm just not sure what.
    I'm using the CFLAGS=-fast option (-xarch=amd64 doesn't work for me on the big box, either, because the -b 64 option adds some weird xarch flag that makes my compiler puke, so I'm just trying the 32-bit one).
    I'll delete and start again, this time using GCC 3.4 from /usr/sfw
    Jon Brisbin
    Portal Webmaster
    NPC International, Inc.

  • Slow response time for JSP pages under iAS 6.0 SP4

    Hi,
    I got an application deployed on iplanet app server 6.0 SP4 on solaris
    2.8. Using a single kjs engine and lite sessions. kjs memory size is
    min 256 and max 256 megs. but verbose:gc shows memory is 98% free.
    when i restart the app server, all JSP pages are really rendered fast.
    After a while (1 or 2 days), the time to service the same request to
    JSP pages is getting much longer (even with JSP pages having only
    static content in them). CPU is idle ... It just takes time. KXS log
    shows requet is taking like 2-4 seconds instead of about 150 milli
    secs when the engine is just restarted.
    Now if i call a servlet (which do not dispath to a JSP), the response
    time is ok! Memory is ok. It looks like its related to JSP pages
    only.
    Anyone having an idea what the problem could be? One conig param is
    the JSP page cache in iASAT. Default value is 10. What is a correct
    setting for production? I have 4 different web app deployed in the
    same server instance.
    Tanks a lot for your input
    Andre Paradis

    Andre,
    I have found the answer to my problem and perhaps yours. It seems that I18N (internationalization) in SP4 may have a performance bug in it.
    My soak tests show that with i18N checked in the iAS Admin Tool, testing the fortune cookie sample application with light load (1 request / sec) resulted in a kxs response time initially of 15ms, however this response time increased by roughly 1% per request (i.e after 100 requests the response time had more than doubled).
    Switching I18N off yielded a steady 7ms kxs response time from the fortune cookie application.
    I would add that I turned I18N on AFTER the installation procedure.
    Is this a known issue in SP4? Is there a patch?
    regards,
    Owen

  • Does pass-by-value in an EJB deployment descriptor work in iAS 6.0 sp4?

    I deployed an EJB into iAS 6.0 SP4 with pass-by-value session element set to true but the EJB is still passing by reference. Is this a known problem in SP4? I checked the session descriptor in kregedit for that EJB and I couldn't find any entry that relates to the pass-by-value element.
    Please help.

    Hi Yudong,
    Thanks for the info. Do you know if this is only specific to SP4? The problem seems to be present in SP3 as well.
    Thanks

  • Problems compiling

    Hi all,
    I'm new with JSP, actually I don't know wether it's a TOMCAT ESPECIFIC issue or if your can help me here. I get the following error while executing a simple script (gateway.jgp) on the browser:
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    Stacktrace:
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    I have a simple JSP script:
    gateway.jsp
    <%
    String commando = request.getParameter("comando");
    if (commando.equals("lista")) {
    %>
         <%@ include file="servicosXML/consulta.jsp" %>
    <%
    }else{
    %>
         <%@ page contentType="text/xml;charset=ISO-8859-1" %>
         <resultado>
         commando desconhecido
         </resultado>
    <%
    %>
    servicosXML/consulta.jsp
    <%@ page language="java" import="servicos.BoletaDAO,java.util.*,"%>
    <%
    String subcomando = request.getParameter("subcomando");
    String buffer = new String();
    HashMap map = new HashMap();
    if (subcomando.equals("carteira")) {
         buffer = BoletaDAO.listaCarteira();
    } else if(subcomando.equals("classe")){
         buffer = BoletaDAO.listaClasse();
    } else if(subcomando.equals("grupo")){
         buffer = BoletaDAO.listaGrupo();     
    } else if(subcomando.equals("operacao")){
         map.put("Operador",request.getParameter("Operador"));
         map.put("Dt",request.getParameter("Dt"));
         buffer = BoletaDAO.listaOperacao(map);     
    } else if(subcomando.equals("produto")){
         map.put("CLSId",request.getParameter("CLSId"));
         map.put("Sinal",request.getParameter("Sinal"));
         buffer = BoletaDAO.listaProduto(map);     
    out.print(buffer);
    %>WHATS THE PROBLEM???
    THANKS IN ADVANCE

    Need a bit more on the error message/stack trace.
    Specifically the bit that tells you the root cause of the issue.
    Its good that you tried to keep the stack trace short, unfortunately the bit you removed is the bit that contains the actual error message of interest ;-)

  • Problem compiling on my C:

    Please can someone advise: This is a real pain.
    I have the JRE 1.4.1 and SDK 1.4.1 installed on my Work PC, when I try to compile it gives me the following:
    "javac: invalid flag:
    Usage: javac <options> <source files>
    where possible options include:
    -g Generate all debugging info
    -g:none Generate no debugging info
    -g:{lines,vars,source} Generate only some debugging info
    -nowarn Generate no warnings
    -verbose Output messages about what the compiler is doing
    -deprecation Output source locations where deprecated APIs are used
    -classpath <path> Specify where to find user class files
    -sourcepath <path> Specify where to find input source files
    -bootclasspath <path> Override location of bootstrap class files
    -extdirs <dirs> Override location of installed extensions
    -d <directory> Specify where to place generated class files
    -encoding <encoding> Specify character encoding used by source files
    -source <release> Provide source compatibility with specified release
    -target <release> Generate class files for specific VM version
    -help Print a synopsis of standard options
    Process completed."
    Yet, if I compile the same file from the network server it's fine. I really dont get it. I have tried re-installing my JRE and SDK and I created several test programs to make sure it was not corrupt or something. I have checked the classpath and it looks good, I looked at the following to ensure I got it right. http://java.sun.com/j2se/1.3/docs/tooldocs/win32/classpath.html
    I'm running windows 2000 and I dont have these problems at home where I'm running XP, I have no idea where to look now, any help would be very much appreciated, I'm no Java guru and I have a project I got to get sorted, feel that this is slowing me down as have to compile everything on the server right now. Also I tried copying the class files over from the server to the local c: and it still would not run, the message I get is as follows:
    Exception in thread "main" java.lang.NoClassDefFoundError: check
    please help.

    Hi ya, I just got this answerd by a colleague, it was a new one on me though. the answer was:
    set the path to c:\j2sdk1.4.1\bin
    and the classpath to C:\j2sdk1.4.1\bin;.;
    I did not know about the ;.; on the end.
    I will learn one day.....I hope...
    Sorry for wasting your time dude, and thanks for getting back so quick, your cool !

Maybe you are looking for

  • Problems opening a New Tab in Safari from Bookmark Bar Folder

    When I am in Safari and attempt to Open a link to a new tab from the Bookmark Bar that is part of a Folder on the Bookmark bar it does nothing. I can change the preferences to auto-click for the Bookmark Folders, but then every link loads when I try

  • Button Ghosts when played in a DVD Player

    Hi, I'm new to video and finally have a movie I'm satisfied with. I'm using the brushstroke theme for the dvd and it looks good too, especially when burned and played on my Mac. However, when I play the dvd on my tv or on my wife's PC, the selected m

  • Can't Import TIFF from Nikon Capture NX

    I just adjusted a number of D200 .NEF images with Nikon's Capture NX, and saved them as TIFF. I then opened Aperture to import my work, and strangely, Aperture did not recognize the TIFF files or display them for import selection. I then opened a cou

  • Changing the layout of grub

    Does anyone know if there is a way to change the layout of the Grub menu? For example: removing the help text below the selection menu. I've just been looking all over the internet and can't find anything relevant.

  • Increase in SPAM web form submissions

    Hi, I'm noticing a trend of increased SPAM web form submissions across most  of our BC sites. This has got particularly bad in the past week or so. All SPAM submissions follow a very similar theme. The text is complete 'gobbledygook' basically! The f