JDK 1.5 and TimeZone/sun.util.calendar.ZoneInfo issue

Hi -
I am working on a client/server application. The server code is being ported to JDK 1.5, but we need to support clients that are still running JDK 1.3. One of the issues we are facing is that the defaultTimeZone
in JDK 1.5 has been changed to sun.util.calendar.ZoneInfo whereas
the default in 1.3 is SimpleTimeZone.
Does any one have an idea of how to convert an object that is of
type sun.util.calendar.ZoneInfo to SimpleTimeZone?
Many thanks for any inputs.

http://forum.java.sun.com/thread.jspa?threadID=678742&messageID=3959360#3959360

Similar Messages

  • Sun.util.calendar.ZoneInfo error

    I am getting the following error when I try to run a servlet that is supposed to get the current time and convert it automatically to GMT.
    Error invoking servlet
    sun.util.calendar.ZoneInfo:
    sun.util.calendar.ZoneInfo
    Here is the code:
    java.util.Date today;
    String result;
    SimpleTimeZone tz = (SimpleTimeZone)TimeZone.getTimeZone("EST");
    Calendar cal = Calendar.getInstance();
    int offset = -5;
    if (tz.useDaylightTime() && (tz.inDaylightTime(cal.getTime())))
    offset = -4;
    tz = new SimpleTimeZone(offset, "GMT");
    TimeZone.setDefault(tz);
    DateFormat formatter = new SimpleDateFormat("yyyyMMddHHmmss z");
    formatter.setTimeZone(tz);
    today = new java.util.Date();
    result = formatter.format(today);
    Any help would be much appreciated.

    Don't use the sun.* classes, use the Calendar and related classes for this.

  • GregorianCalendar calling sun.util.calendar.ZoneInfo.getOffsets() - cache

    Hello,
    I'm performance optimizing my application and have noticed that when performing GregorianCalendar operations, that class calls the sun.util.calendar.ZoneInfo.getOffsets() method inside some of the methods. This getOffsets method takes measurable amount of time to execute.
    I was wondering whether this value could be cached somewhere or passed into the GregorianCalendar operations. Since I'm running on an application server, the time zone is not going to change during the application's runtime, so it should be able to cache all zone-related information.
    Does anyone know how to prevent this method from being called with each operation? It seems like it should be cached.

    bumping this up....
    I'm surprised nobody else has encountered this. If you use a lot of calendar objects, this actually can become a bottleneck.
    It seems like this could and should be cached if it's called with the default Locale setting.

  • Uninstall SUN JDK 1.6_14 and install SUN JDK 1.6_18 for Weblogic

    My GridControl server has all of a sudden gone wild in consuming 100% of the cpu. The process was java.exe in the Middleware folder. Somebody suggested to verify the JDK and I indeed have an older version than the one recommended.
    Does anybody know where it is documented on how to uninstall and then reinstall SUN JDK 1.6_18 and have Weblogic still work afterward? (Win 2008 32 bit)
    I'd hate to reinstall the entire Gridcontrol 11g because I have the wrong jdk.
    Thanks.

    Hi,
    Uninstalling SUN JDK 1.6_14 from your Box is optional step....Most of the Servers are flexible enough ...they provide us the facility to change the JDK at any point of time...Without reinstalling the Product from the scrap....
    You can directly install SUN JDK 1.6_18 in your WebLogic Server Box. Then you need to make a small change in the *"<DOMAIN_HOME>\bin\setDomainEnv.cmd"* file ...to change the JAVA_HOME variable value...That's all.
    Next time whenever you will start your WebLogic Servers it will pick up the SUN JDK 1.6_18 version only.
    I am pasting few lines from *"setDomainEnv.cmd"*
    @REM *************************************************************************
    set WL_HOME=C:\bea103\wlserver_10.3
    for %%i in ("%WL_HOME%") do set WL_HOME=%%~fsi
    set BEA_JAVA_HOME=C:\bea103\jrockit_160_05
    <b><font color=red>set SUN_JAVA_HOME=C:\all_Jdks\JDK 1.6_18</font></b>
    set JAVA_OPTIONS=%JAVA_OPTIONS% -Dwhat.is.your.name=Jay_SenSharma
    if "%JAVA_VENDOR%"=="BEA" (
         set JAVA_HOME=%BEA_JAVA_HOME%
    ) else (
         if "%JAVA_VENDOR%"=="Sun" (
              set JAVA_HOME=%SUN_JAVA_HOME%
         ) else (
              set JAVA_VENDOR=Sun
              set JAVA_HOME=C:\bea103\jdk160_05
    @REM We need to reset the value of JAVA_HOME to get it shortened AND
    @REM we can not shorten it above because immediate variable expansion will blank it
    set JAVA_HOME=%JAVA_HOME%
    Thanks
    Jay SenSharma
    http://weblogic-wonders.com/weblogic (WebLogic Wonders Are here)

  • [Upgrading to 2.1.0.63.73] JDK 1.6 and Oracle 10 server XP 32 issue

    Hi,
    I wonder if I will still be able to use Oracle 10 server if I install JDK 1.6 (mandatory to upgrade SqlDeveloper) ?
    Here is the output of java -version in the Oracle server directory
    D:\oracle\product\10.2.0\db_1\jdk\bin>java -version
    java version "1.4.2_08"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
    And in the Sqldeveloper directory
    D:\oracle\product\10.2.0\db_1\sqldeveloper\jdk\jre\bin>java -version
    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
    Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
    Is it sure to trust the install to place java 1.6 in the sqldeveloper\jdk\bin directory?
    Many thanks if you can help

    If you're worried about messing up other software, why not download the SQL Developer bundled with the JDK? It resides inside the SQLDeveloper folder and to my knowledge it won't interfere with any of your other JDK installs.
    You'll want to put newer installs of SQL Developer in their own folder, and not in the existing SQL Developer Folder.
    Edited by: DylanB123 on Mar 23, 2010 11:39 AM

  • Java.util.Calendar returning wrong Date object

    Example: This was my scenario last night. A server in California has date/time of 'Mon Aug 18'. Current time in Indiana is 'Sun Aug 17'. I use Calendar.getInstance(TimeZone.getTimeZone("America/Indiana/Indianapolis")) to return a Calendar instance. I then call the getTime() method on that instance. It should return a Date object relating to that particular time zone. It will not. It defaults back to the server time. When I print out the Calendar instance everything is good, correct date, correct time,etc. WHY WON'T THE getTime() return the correct java.util.Date???
    Following is the output was run today so the dates happened to be the same so focus on the Time. Output includes Server time, new Calendar values, and the Date returned by calendar instance getTime(). See that the Calendar is getting the correct Time.
    SERVER DATE=Mon Aug 18 15:52:13 CEST 2003
    CALENDAR INSTANCE=java.util.GregorianCalendar[time=1061214732975,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="America/Indiana/Indianapolis",offset=-18000000,dstSavings=0,useDaylight=false,transitions=35,lastRule=null],firstDayOfWeek=2,minimalDaysInFirstWeek=1,ERA=1,YEAR=2003,MONTH=7,WEEK_OF_YEAR=34,WEEK_OF_MONTH=4,DAY_OF_MONTH=18,DAY_OF_YEAR=230,DAY_OF_WEEK=2,DAY_OF_WEEK_IN_MONTH=3,AM_PM=0,HOUR=8,HOUR_OF_DAY=8,MINUTE=52,SECOND=12,MILLISECOND=975,ZONE_OFFSET=-18000000,DST_OFFSET=0]
    Date from getTime()=Mon Aug 18 15:52:12 CEST 2003

    I got it worked with using DateFormat.parse !
    The trick is to instantiate a new Date object as a result
    of parsing out of 'localized' date string.
    with below code :
    Calendar localCal = new GregorianCalendar(TimeZone.getTimeZone("America/Los_Angeles"));
    localCal.set(Calendar.DATE, 25);
    localCal.set(Calendar.MONTH, 7);
    localCal.set(Calendar.YEAR, 2003);
    localCal.set(Calendar.HOUR_OF_DAY,6);
    localCal.set(Calendar.MINUTE, 38);
    localCal.set(Calendar.SECOND, 11);
    Calendar sinCal = new GregorianCalendar(TimeZone.getTimeZone("Asia/Singapore"));
    sinCal.setTimeInMillis(localCal.getTimeInMillis());
    int date = sinCal.get(Calendar.DATE);
    int month = sinCal.get(Calendar.MONTH);
    int year = sinCal.get(Calendar.YEAR);
    int hour = sinCal.get(Calendar.HOUR_OF_DAY);
    int min = sinCal.get(Calendar.MINUTE);
    int sec = sinCal.get(Calendar.SECOND);
    String sinTimeString = date + "/" + month + "/" + year + " " + hour + ":" + min + ":" + sec;
    System.out.println("VIDSUtil.hostToLocalTime : time string now in SIN time : " + sinTimeString);
    java.util.Date sinTime = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss").parse(sinTimeString);
    System.out.println("time in SIN using Date.toString(): " + sinTime.toString());
    It prints out :
    VIDSUtil.hostToLocalTime : time string now in SIN time : 25/7/2003 21:38:11
    time in SIN using Date.toString(): Fri Jul 25 21:38:11 PDT 2003
    (Ignore the PDT, because Date.toString() defaults where the JVM is running)

  • Migrate customer defined calendar to Sun Java Calendar

    I am planning to build a XML formated file from my in house build calendar system and use Sun Java Calendar import functionality to import the data to Sun Calendar system.
    following is an sample of an entry by XML
    <EVENT>
         <UID>0000000000000000000000000000000042dd782200002d760000024c000001b8</UID>
         <DTSTAMP>20050725T194431Z</DTSTAMP>
         <SUMMARY>Somthing</SUMMARY>
         <START>20050721T220000Z</START>
         <END>20050721T230000Z</END>
         <CREATED>20050719T220106Z</CREATED>
         <LAST-MOD>20050719T222513Z</LAST-MOD>
         <PRIORITY>5</PRIORITY>
         <SEQUENCE>0</SEQUENCE>
         <DESC>This is a dummy entry 2</DESC>
         <CLASS>PUBLIC</CLASS>
         <LOCATION>401 B</LOCATION>
         <ORGANIZER CN="cal Z (cal)" X-NSCP-ORGANIZER-UID="cal" X-S1CS-EMAIL="[email protected]">cal</ORGANIZER>
         <STATUS>CONFIRMED</STATUS>
         <TRANSP>OPAQUE</TRANSP>
         <X-NSCP-ORIGINAL-DTSTART>20050722T220000Z</X-NSCP-ORIGINAL-DTSTART>
         <X-NSCP-LANGUAGE>en</X-NSCP-LANGUAGE>
         <X-NSCP-DTSTART-TZID>America/Chicago</X-NSCP-DTSTART-TZID>
         <X-NSCP-TOMBSTONE>0</X-NSCP-TOMBSTONE>
         <X-NSCP-ONGOING>0</X-NSCP-ONGOING>
         <X-NSCP-ORGANIZER-EMAIL>[email protected]</X-NSCP-ORGANIZER-EMAIL>
         <X-NSCP-GSE-COMPONENT-STATE X-NSCP-GSE-COMMENT="PUBLISH-COMPLETED">65538</X-NSCP-GSE-COMPONENT-STATE>
    </EVENT>
    Can anybody tell me how can I get a UID?
    What's <X-NSCP-GSE-COMPONENT-STATE X-NSCP-GSE-COMMENT="PUBLISH-COMPLETED">
    What's <DTSTAMP>20050725T194431Z</DTSTAMP>
    Thanks a lot!
    Cal

    Look at RFC2446 it defnes the iCal format.
    On page 58 it states:
    the "DTSTAMP" property specifies the date/time that iCalendar object was created.
    lance

  • Why not Deprecate java.util.Date and java.util.Calendar

    With the introduction of java.time, why did you not flag java.util.Date and java.util.Calendar. These classes have been a bane to every Java developer and should never be used again with the introduction of Java 1.8.

    Adding the @Deprecated annotation would only just provide a warning about an old API and recommendation to the developer(s) to no longer use it. Doing so would not break any existing library out there; in fact quite a number of constructors and methods on the Date class have already been flagged deprecated.
    The new java.time package is far superior to Date/Calendar.

  • Ktoolbar does not recognize "java.util.Calendar"

    Hi!
    Although http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXRPC4.html says that java.util.Calendar is supported, ktoolbar errors out with
    error: Found unknown simple type: java.util.Calendar
    What's wrong? WSDL not compatible with Java ME?
    any help/hint is very much appreciated,
    regards Florian

    To be honest, I am a bit lost.
    I am beginning / trying to develop a mobile app using WTK / Java ME which uses a web service; the WSDL is here: http://www.pegel-mainz.de/WSDL/v3.0/iLON100.WSDL
    Running ktoolbar's stub generator with a local copy of this file, I get the error above, but with a simple MIDlet which just says "Hi", everything builds and runs fine.
    Funny thing, at least for me - or make that "irritating":
    There is no "Stub" in the generated files. The one class which at least extends "java.rmi.Remote" is "MainSoapPort", but that is only an interface.
    But in all tutorials/docs so far I find these Stub-classes to instantiate the service!
    I guess I am doing something fundamentally wrong.
    Any advice/hint/help/link?
    It's very much appreciated (as I'm lost atm)
    regards,
    Florian

  • Java.sql.Date vs java.util.Date vs. java.util.Calendar

    All I want to do is create a java.sql.Date subclass which has the Date(String) constructor, some checks for values and a few other additional methods and that avoids deprecation warnings/errors.
    I am trying to write a wrapper for the java.sql.Date class that would allow a user to create a Date object using the methods:
    Date date1 = new Date(2003, 10, 7);ORDate date2 = new Date("2003-10-07");I am creating classes that mimic MySQL (and eventually other databases) column types in order to allow for data checking since MySQL does not force checks or throw errors as, say, Oracle can be set up to do. All the types EXCEPT the Date, Datetime, Timestamp and Time types for MySQL map nicely to and from java.sql.* objects through wrappers of one sort or another.
    Unfortunately, java.sql.Date, java.sql.Timestamp, java.sql.Time are not so friendly and very confusing.
    One of my problems is that new java.sql.Date(int,int,int); and new java.util.Date(int,int,int); are both deprecated, so if I use them, I get deprecation warnings (errors) on compile.
    Example:
    public class Date extends java.sql.Date implements RangedColumn {
      public static final String RANGE = "FROM '1000-01-01' to '8099-12-31'";
      public static final String TYPE = "DATE";
       * Minimum date allowed by <strong>MySQL</strong>. NOTE: This is a MySQL
       * limitation. Java allows dates from '0000-01-01' while MySQL only supports
       * dates from '1000-01-01'.
      public static final Date MIN_DATE = new Date(1000 + 1900,1,1);
       * Maximum date allowed by <strong>Java</strong>. NOTE: This is a Java limitation, not a MySQL
       * limitation. MySQL allows dates up to '9999-12-31' while Java only supports
       * dates to '8099-12-31'.
      public static final Date MAX_DATE = new Date(8099 + 1900,12,31);
      protected int _precision = 0;
      private java.sql.Date _date = null;
      public Date(int year, int month, int date) {
        // Deprecated, so I get deprecation warnings from the next line:
        super(year,month,date);
        if(! isWithinRange(this))
          throw new ValueOutOfRangeException((RangedColumn)this, "" + this);
      public Date(String s) {
        super(0l);
        // Start Cut-and-paste from java.sql.Date.valueOf(String s)
        int year;
        int month;
        int day;
        int firstDash;
        int secondDash;
        if (s == null) throw new java.lang.IllegalArgumentException();
        firstDash = s.indexOf('-');
        secondDash = s.indexOf('-', firstDash+1);
        if ((firstDash > 0) & (secondDash > 0) & (secondDash < s.length()-1)) {
          year = Integer.parseInt(s.substring(0, firstDash)) - 1900;
          month = Integer.parseInt(s.substring(firstDash+1, secondDash)) - 1;
          day = Integer.parseInt(s.substring(secondDash+1));
        } else {
          throw new java.lang.IllegalArgumentException();
        // End Cut-and-paste from java.sql.Date.valueOf(String s)
        // Next three lines are deprecated, causing warnings.
        this.setYear(year);
        this.setMonth(month);
        this.setDate(day);
        if(! isWithinRange(this))
          throw new ValueOutOfRangeException((RangedColumn)this, "" + this);
      public static boolean isWithinRange(Date date) {
        if(date.before(MIN_DATE))
          return false;
        if(date.after(MAX_DATE))
          return false;
        return true;
      public String getRange() { return RANGE; }
      public int getPrecision() { return _precision; }
      public String getType() { return TYPE; }
    }This works well, but it's deprecated. I don't see how I can use a java.util.Calendar object in stead without either essentially re-writing java.sql.Date almost entirely or losing the ability to be able to use java.sql.PreparedStatement.get[set]Date(int pos, java.sql.Date date);
    So at this point, I am at a loss.
    The deprecation documentation for constructor new Date(int,int,int)says "instead use the constructor Date(long date)", which I can't do unless I do a bunch of expensive String -> [Calendar/Date] -> Milliseconds conversions, and then I can't use "super()", so I'm back to re-writing the class again.
    I can't use setters like java.sql.Date.setYear(int) or java.util.setMonth(int) because they are deprecated too: "replaced by Calendar.set(Calendar.DAY_OF_MONTH, int date)". Well GREAT, I can't go from a Date object to a Calendar object, so how am I supposed to use the "Calendar.set(...)" method!?!? From where I'm sitting, this whole Date deprecation thing seems like a step backward not forward, especially in the java.sql.* realm.
    To prove my point, the non-deprecated method java.sql.Date.valueOf(String) USES the DEPRECATED constructor java.util.Date(int,int,int).
    So, how do I create a java.sql.Date subclass which has the Date(String) constructor that avoids deprecation warnings/errors?
    That's all I really want.
    HELP!

    I appreciate your help, but what I was hoping to accomplish was to have two constructors for my java.sql.Date subclass, one that took (int,int,int) and one that took ("yyyy-MM-dd"). From what I gather from your answers, you don't think it's possible. I would have to have a static instantiator method like:public static java.sql.Date createDate (int year, int month, int date) { ... } OR public static java.sql.Date createDate (String dateString) { ... }Is that correct?
    If it is, I have to go back to the drawing board since it breaks my constructor paradigm for all of my 20 or so other MySQL column objects and, well, that's not acceptable, so I might just keep my deprecations for now.
    -G

  • How do I change the default timezone for user calendars?

    The default timezone for new calendars is "America/New_York." How
    do I change the default timezone to my local timezone?
    To change the default timezone, perform the following steps:
    <P>
    <OL>
    <LI>Go to the bin/data/default_user_prefs.xml
    file.
    <P>
    <LI>In this file, change the values for the
    "icsTimeZone" and
    "ceSingleCalendarTZID"
    parameters. The default settings will appear something as follows:
    <P>
    <P>
    Changing these two parameters will change the timezone in the Calendar user
    interface.
    <P>
    <LI>In addition, go to the
    bin/config/ics.conf file.
    <P>
    <LI>In this file, change the value for
    calstore.default.timezoneID
    <P>
    Changing this value will enable the server to pick up the new timezones.
    </OL>
    <P>
    <B>Please note:</B> The values you enter for the above parameters must be valid
    timezones defined in the
    bin/data/timezone.ics
    file.
    <B>Related Technote:</B>
    <P>
    20000330-7: iCS 2.x: How do you change the
    default timezone in JavaScript?<BR>
    see article 4322

    Colin,
    You may substitute any text you like for the "Placeholder Text", as it is called, in Pages. Click on the existing placeholder text and type something more to your liking. Do this in as many places as your particular template of interest demands. Then, Format > Advanced > Define as Placeholder Text. Lastly, File > Save as Template.
    Now that you have defined a Custom Template to your liking, you can go to Pages Preferences and under the General tab's first section, define the new custom template as your default for each new document.
    Regards,
    Jerry

  • Urgent Solution needed--Problem in JSP compilation with JDK 1.5 and JDK 1.6

    Hi,
    I m using JDK 1.5 and Tomcat 5.0 the problem is that after starting server when I m going to access my application at that time instead of displaying HomePage it directly display the blank page on screen.
    After analyzing tomcat log I have found that there was a problem with JSP page compilation.
    The exception logged in Tomcat Log is given below
    An error occurred at line: 1 in the generated java file
    The type Collection is not generic; it cannot be parameterized with arguments <? extends E>
    Stacktrace:
    *     at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)*
    *     at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)*
    *     at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)*
    *     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)*
    *     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)*
    *     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)*
    *     at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)*
    *     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)*
    *     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)*
    *     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)*
    *     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)*
    *     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)*
    *     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)*
    *     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)*
    *     at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:447)*
    *     at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)*
    *     at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)*
    *     at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:424)*
    *     at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:343)*
    *     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)*
    *     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)*
    *     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)*
    *     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)*
    *     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)*
    *     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)*
    *     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)*
    *     at java.lang.Thread.run(Thread.java:619)*
    After getting this kind of error I have analyzed my code furhter then I came to know that there was problem with static include tag.
    In my jsp page I have used following line which is the main cause of error
    <%@ include file="top.jsp" %>If I ommit this line then it is working properly.
    Instead of static include I have used jsp:include also.
    Still I m getting same problem.
    We have to migrated from JDK 1.5 to 1.6 and Tomcat 5.0.28 to 6.0.14, still same problem is there.
    We have tried a lot but didnt get success to overcome this problem.
    If anybody having any solution then ur each reply will be appreciated.
    Thanks in advance..........!!!!!!!
    Edited by: JBOSS2000 on Jan 15, 2008 9:29 AM

    Hi "mshanu" and "amit" Thanks for ur replies Here I m posting the code of "top.jsp"........!!!!
    <%@ page errorPage="errordisplay.jsp"%>
    <table cellpadding="0"
           cellspacing="0"  height=50 width=780>
           <tbody>
             <tr class="header">
               <td class="logo"><IMG SRC="assets/Logo.gif" BORDER=0 ALIGN=top></td>
               <td align="right"><span class="applicationtitle"><%@ include file="/contents/logo.htm" %></span><br>
               <span class="companyname"><%@ include file="/contents/companyname.htm" %></span></td>
             </tr>
            </tbody>
    </table>To include top.jsp I have tried
    <jsp:include page="top.jsp" flush="true">
    </jsp:include>
             AND       
    <%@ include file="top.jsp"%>but none of this worked.
    If I remove the include then It is working properly.
    But I need inluded file too so that I am wondoring for the solution.
    This problem seems very wiered to me. I dont know why it is happening.
    This problem is started only when I used the TOMCAT 6.14.
    Is it the bug of TOMCAT 6.14 or What somebody Plz help.
    I got stuck here.........!!!!!!!!!!
    It doesn't seem any problem with top.jsp. As per my thinking the problem is there in include due to that it doesn't compile the JSP page in Tomcat 6.0.
    Earlier I am having same code running on the Tomcat 5.0.28 and JDK 1.5.0.
    But problem occured when I have used Tomcat 6.x...!!

  • Question about Sun Java Calendar Server 7

    You downloadable forum, at [http://www.sun.com/software/products/calendar_srvr/get_it.jsp|http://www.sun.com/software/products/calendar_srvr/get_it.jsp],
    leaves one with two questions.
    -What databases are needed/supported by this MessageBoard System for backend storage?
    -What are the licensing details? May the MessageBoard/Communications Suite 7
    be installed and used in a commercial environment, free?
    -May Sun Java Calendar Server 7 be downloaded without the Communications suite?
    -Can it be run off an Apache Tomcat Server with J2SE,J2EE codebases?

    Although... at the top of this forum it says
    This is a forum for new Java developers to get acquainted with the technologies and tools associated with the Java Platform.It doesn't actually say anything about programming, not there nor in what follows. So it isn't surprising that the OP thought this was a suitable forum to ask about that server, which looks as if it might be a "tool associated with the Java platform".

  • WSDK 5.0, JDK 1.4 and JSSE

    WSDK 5.0 (Web Services Development Kit, by IBM) sample applications show how to set up the environment if using JDK 1.4 and JSSE as a seperate package, however JSSE is now integrated into JDK 1.4 and therefore setting up the environment is different. Eventhough I'm setting the protocol:
    System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol")
    I'm still getting:
    org.uddi4j.transport.TransportException: no protocol
    Please if anyone could point me to a sample application that sets up the environment based on JDK 1.4 or let me know what else I need to do to set up the environment, I would really appreciate it.
    thanks
    Kareem

    You can get it done at:
    http://www.thesoftwareobjects.com

  • Sun one calendar channel showing unnecessary information.

    hi all,
    sun one calendar claims that an allday event does not conflict with the events in that day, and it is true as long as i am viewing the application. but when i am on the portal server, the sun one calendar channel displays conflict between the all day event and any other event in that day . how do i solve this problems as it is irritating my clients which are too influential to ignore.
    regards
    kimi

    I found the solution to this problem , i edited the calendar provider and removed the tag that shows the conflict.

Maybe you are looking for

  • CONVERSION OF 1 TABLE TO ACCOMODATE MORE FIELDS USING TEMP VARIABLE IN STORE PROC

    USE [FacetsXR] GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[frdmrpt].[pr_pha_BiometricsSummary]') AND type in (N'P', N'PC')) DROP PROCEDURE [frdmrpt].[pr_pha_BiometricsSummary] GO CREATE PROCEDURE [frdmrpt].[pr_pha_Biometric

  • Create vendor in ERP R/3 with internal number range

    HI, When I create a new vendor from MDM in R/3 with internal number range ADRMAS is processed OK but CREMDM is in status 51 because of missing address data. According to sap note  1052964 (se below) ADRMAS must be the first IDOC and it should contain

  • In which table does INCO2(Incoterms (Part 2) stored.

    In which table does INCO2(Incoterms (Part 2) stored. One can see in po header . Incoterms (Part 2) Additional information for the primary Incoterm. Example If the primary Incoterm is, for example, FOB ("Free on Board"), then the second field provides

  • Optimal quality of previews

    I originally set the preview quality to maximum and limited to 2560x2560. That because I read that Aperture would use previews only to comunicate to ilife and for Apple TV. In reality I very soon stopped to use the slideshows of Aperture in AppleTV (

  • Ensuring consistency of photos in SmartForms

    Hi. I have some doubts... I´m using SAP 4.70  version First, How can I insert a picture on SmartForms without using transaction SE78? When I put the photos in SmartForms, I want to set a specific size of these photos, but not yet found a solution to