Sun ONE - compile OK, disaster follows; Eclipse - compile fails

I hope Sylvia won't rap my knuckles with her ruler for posting an "it won't compile" message here, but this one is more than a bit strange.
I was running Sun ONE Studio. It compiles my program w/o errors; then the application runs and crashes my Windows Me computer. Reliably; repeatedly. Hard to make progress when your development cycle is compile, try to test, reboot. What to do?
Maybe the problem's in S1S! Try Eclipse. It won't compile the program. It says:
java.lang.Error: Unresolved compilation problem:
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
     at java.lang.reflect.Constructor.newInstance(Unknown Source)
     at jdb.FileViewer.main(FileViewer.java:120)
Exception in thread "main"
Come to think of it, that's really a compile error detected at run time, isn't it? Didn't know that was possible. Anyway, the offending line is:
  public static void main( String[] args ) {}(I simplified main() a bit trying to track this down.) If I remove main() altogether, it compiles and dies with the expected "can't find main()" error.
Anybody can make any sense of this? (BTW, kudos to Eclipse. This beats trashing my machine. There's nothing but java here - no JNI - so trashing the OS isn't even possible, is it? So much for theory.)

Maybe the problem's in S1S! Try Eclipse. It won't
compile the program. It says:
java.lang.Error: Unresolved compilation problem:
(snipped)
Exception in thread "main" Er... where exactly does Eclipse tell you this? Normally compilation diagnostics show up in the Task View. The above stack trace looks like nothing I have ever seen before when compiling. What Eclipse view is showing this message?
Anybody can make any sense of this? (BTW, kudos to
Eclipse. This beats trashing my machine. There's
nothing but java here - no JNI - so trashing the OS
isn't even possible, is it? So much for theory.)Eclipse uses SWT which is a native library. So theory is still valid, I guess.

Similar Messages

  • Sun One Web Server 6.1 Eclipse Plugin?

    I have Eclipse 3.1 with WST tools and Visual Editor plug-in installed. I am a
    noob to this IDE and web solution. I want ot use Sun One Web Server for my web
    application testing and implementation. I want my Dynamic Web Application
    projects to build and use the Sun One Web Server I have installed and running on
    my machine. The only server options I see are some Generic WebLogic servers and
    JBOSS or Tomcat/Jakarta servers. How do I get the Sun One Web Server to show up
    as an option when building a web application in Eclipse using WST?

    I am look for the same like you did quite ago but I need free Eclipse Plugin for Sun One Web Server 7/8 and let me have ref if you could.

  • Jsf error on Sun ONE v9

    I have a small app developed with jsf 1.1 spec. When I deployed this on Sun ONE V9.0 , the following is the error.
    Can't parse configuration file: jar:file:/C:/Sun/SDK/lib/jsf-impl.jar!/com/sun/faces/jsf-ri-runtime.xml: Error at line 3 column 14: jar:file:/C:/Sun/SDK/lib/jsf-impl.jar!/com/sun/faces/jsf-ri-runtime.xml<Line 3, Column 14>: XML-20149: (Error) Element 'faces-config' used but not declared.
         at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1587)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:413)
         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4236)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4760)
         at com.sun.enterprise.web.WebModule.start(WebModule.java:292)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:833)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:817)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662)
         at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1479)
         at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1143)
         at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:171)
         at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:275)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:954)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:941)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:448)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
         at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:296)
         at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:203)
         at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:285)
         at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:119)
         at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:541)
         at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:585)
         at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:719)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:353)
         at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:336)
         at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:448)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
         at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
         at $Proxy1.invoke(Unknown Source)
         at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
         at com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:133)
         at com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:517)
         at java.lang.Thread.run(Thread.java:619)My faces-config.xml is v1.1. any ideas ?
    Thanks

    Hi Frank,
    A couple of things to cross check.
    1) Check the package structure of the war file. And cross check with the format given by SUN at
    http://docs.sun.com/source/816-7150-10/dwdeploy.html#69868
    2) Give more detail logs, and it is available at <deployed server instance>/logs/server.log.
    3) Deploy the war file without running the verifier, and see what is the output.
    If it wont help send the war file to me.
    Thanks,
    -Parsu

  • Sun ONE Studio Compiler Collection Portal Launched

    A new portal with resources for application developers using the Sun ONE Studio Compiler Collection (C, C++, and Fortran) has been launched.
    Go to http://forte.sun.com/s1scc/
    Technical articles, knowledgebase items, code samples, full documentation, etc., for the C, C++, and Fortran developer.
    Send us your feedback. We'd like to hear what you think.
    <Richard Friedman - Sun ONE Studio Compiler Collection Documentation>

    To all: There are some good articles there focusing
    on fortran and on Open-MP. Go have a look.

  • How to compile and deploy an ejb into Sun ONE app.server 7.0

    I am new to Sun ONE application server. I Have .java files and deployment descriptor files with me. How should proceed. When i tried to use asant it is saying that build.xml not found. I copied build.xml from some other directory to the current directory. Then it is saying that common.xml not found. Please help.
    Regards,
    Nagaraju.

    Hi,
    The build.xml file should be in a directory from where
    you are running the asant command.
    To resolve the common.xml file not found error,
    open your build.xml and check from which location the common.xml file is incuded.
    In the sample application it is four directories above
    the directory where build.xml is located.
    You can copy the common.xml in the current directory and then change the following in your build.xml
    <!ENTITY include SYSTEM "../../../../common.xml">
    to <!ENTITY include SYSTEM "common.xml">
    Hope this helps.
    Get back in case you have more issues

  • Error in Sun One AppServ 7 when debug app in Eclipse

    Hi,
    I'm using Sun One 7 App Server 7 - 2004Q2UR2 and Win 2000 pro. I'm starting my app in Debug mode, connecting the Eclipse 3.0.1 debug to the server and when running the app the server shutdown!
    someone give me a light!
    Tks

    Please make sure that you have either TMP or TEMP (or both) environment variable defined and pointing to valid temporary directory on this system prior to attempting another installation. This could happen if you have one of these variables defined, but containing empty value.

  • Problem in compiling mysql++ libraries on Solaris 8 using Sun C++ compiler

    Hi!
    I am trying to compile the mysql++ libraries on Solaris 8 using the Sun C++ compiler CC 5.3 version.
    but I get an error:
    "../../../../tools/mysql++/lib//resiter.h", line 53: Error: Invalid template parameter default.
    Can anyone let me know what can be the problem and whats the solution for the same.
    Thanks,
    Manik Gupta.

    The name of this forum is 'Java compiler'. Your question has nothing to do with that.

  • Need Examples for asm in sun c compiler

    I am having problem with writting inline assembly level language using asm in sun c compiler. I needed few examples like passing variables to inline asm and getting result from the passed varriable. This is somthing like gnuc asm ( Here we have four argument, we can get the result from the argument what we passed)

    The asm() syntax is not well supported by our compiler.
    The preferred way of doing this is using .il templates to inline assembly
    code.
    http://developers.sun.com/tools/cc/articles/inlining.html

  • Import netscape.ldap.* ; is it not supported in Sun one LDAP server

    import netscape.ldap.*;
    is the above line not supported n Sun One LDAP directory Server
    if that is the case what should i do
    wenever i compile my code the error tat comes up is : package netscap.ladp does not exists
    need help immediately
    my code is as follows
    import netscape.ldap.*;
    import java.util.*;
    * Simple search program to experiment with filters
    public class SearchFilter {
    * Do a subtree search using a specified filter
    * @parm args host, port, authDN, password, baseDN, filter
    public static void main(String[] args) {
    if (args.length != 6) {
    System.out.println("Usage: java FilterSearch " + "<host> <port> " + "<authdn> <password> " + "<baseDN> <filter>");
    System.out.println("Example:");
    System.out.println(" java FilterSearch " + "localhost 389 " + "\"\" \"\" " + "\"o=airius.com\" " + "\"(|(cn=sam*)(cn=b*))\"");
    System.exit(1);
    }

    Couldn't you download the netscape.ldap package (iPlanet LDAP SDK) and put its jars in your app classpath?
    The suggested way to replace netscape.ldap package is to use only JNDI calls, but maybe they can not fulfill all your needs.
    By the way, you can get the source code for that package in Mozilla.org site.
    (Note: if you are using Netscape LDAP SDK for parsing/generating ASN.1 streams including X.509 certificates, try using BouncyCastle instead of netscape.ldap.ber.stream package - I had to modify several classes from Netscape's package that is not meant to handle certificates, but LDAP streams...)

  • Setup MySQL datasource for Sun ONE Studio

    Hello all,
    I've tried to post this message on the Sun ONE studio forum, however, there were compilation errors with JSP pages. As I needed the answer urgently, I decided to get some help here.
    I've successfully made connection to MySQL database during the CMP development. However, when I tried to run it, it said the JNDI Datasource can't be blank and provide username & password if necessary. I went back and gave it a name as jdbc/MySQL, and also provided the username & password. I then reran the app, and I got the following error
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: Unable to get JDBC DataSource for CMP ....
    I've mounted the mysql.jar and hacked some other things to no success. Please help.
    Thanks & regards,
    Thinh

    Hi,
    Try validating your data source using
    http://developer.iplanet.com/tech/tools/dbping_overview.jsp
    Get back in case of any issues

  • Problem with SUN ONE STUDIO Update 4

    Hi,
    I created a simple entity bean with finder methods and business methods.
    But when I am trying to test the entity bean by generating the New EJB Client, and at the time executing the EJB client test client the following error as occured.
    [b][b]Deploying... EAR Unable to deploy theC:/developer/JavaProject/test/test.earApplication
    Deployment Error -- Error while running ejbc -- Fatal Error from EJB Compiler -- -- Error while processing CMP beans.
    Please help me
    Thank you

    Hi ,
    To know the reasons for deployment failure , you
    could run your application using the Sun One verifier tool. Right click your application node and select Sun one verifier under the tools category.
    Please post the results of the verifier tool in case you are not able to resolve the problem.
    -Amol

  • Installation sun one studio ver. 5 fail in mandrake

    I download sun one studio ver.5 in my mandrake linux ver. 9.0 and I have jsdk1.4.1_03. When I tried install it I received this message:
    To install sun one studio 5 you need to log in a superuser or a user with administrator privileges.
    I login in a term with root user and also start X session with root user but received this error also.
    any sugestion??

    I finally solved the problem by modifying the java source code of the installer. It did unnecessary checks for supported distributions and their versions. After removing these checks, SUN ONE Studio 5 installed and ran properly.
    Here is how to do it in short:
    1. Unzip the downloaded binary installation file into some folder. I will refer to this folder as "setuproot".
    2. Starting from the "setuprot" folder, find the file com/ibm/wizard/platform/linux/LinuxRedHatCommands.class.
    3. Decompile this file using the "Jad" Java decompiler. You can find it at http://kpdus.tripod.com/jad.html .
    4. Rename the resulting LinuxRedHatCommands.jad file to LinuxRedHatCommands.java.
    5. Modify LinuxRedHatCommands.java in the following way: Find the method "isValidDistribution()" and replace its whole body with the following line: "return true;" Save the modified file.
    5. Compile the modified java file by executing the following command from the "setuproot" folder: "javac com/ibm//wizard/platform/linux/LinuxRedHatCommands.java"
    6. Now start the installation with the "java run" command from the "setuproot" folder.
    Now it should not complain about insufficient administrative privileges.
    (A properly installed java1.4.1_02 or above SDK is a requirement for both the Studio5 and for the above instructions to work.)
    I still was not able to install the bundled Application Server7, because it's check box was disabled with a comment about my incompatible platform. I guess this will be the next step to resolve...
    Cheers,
    George

  • Sun One studio

    where to find the sun-cmp-mapping.xml in the Sun One studio enterprise 6.. I get the following error while validating:
    CMP Mapping Error in bean empEntity:: The field deptid has an invalid fetch group. Default is not a valid fetch group for managed fields. If your field is not a managed field, it may be treated as one if you have a CMR to this bean which is mapped to the same column as deptid.
    Select a different fetch group.
    I need to change the fetch group for this field, but to no avail.. Please help..

    You need to download the J3D separately, I installed in order:
    J2SE1.4.2, then Sun ONE Studio 4, then J3D1.3, and wrote code in java3d with forte, and everything compiled quite nicely without having to do any tweaking.

  • Creating JAR of an ejb from sun one studio 5.0

    I�ve got the following error when I�m trying to generate the jar of and ejb from sun one studio 5.0. What�s the problem?
    org/w3c/dom/Document.java [0:0] No file named org/w3c/dom/Document.java exists on disk in src.zip.
    Therefore it may not be compiled with an external compiler.
    You may need to check it out from version control or save some changes to it.
    com/ssos/ejb/information/EJBModule_InformationEJB.ejbmodule [0:0] Problem compiling class: "org/w3c/dom/Document" reason: Compile failed
    Called From: com/iplanet/services/util/XMLParser
    Called From: com/iplanet/services/ldap/DSConfigMgr
    Called From: com/iplanet/services/util/I18n
    Called From: com/iplanet/sso/SSOTokenManager
    Called From: com/iplanet/am/sdk/AMCommonUtils
    Called From: com/iplanet/am/sdk/AMException
    Called From: com/iplanet/dpro/session/service/SessionService
    Called From: com/iplanet/services/naming/WebtopNaming
    Called From: com/iplanet/dpro/session/SessionID
    Called From: com/iplanet/dpro/session/Session
    Called From: com/iplanet/am/util/Locale
    Called From: com/iplanet/sso/SSOException
    Called From: com/iplanet/sso/SSOToken
    Called From: com/ssos/ejb/information/LocalInformationEJB
    Errors compiling EJBModule_InformationEJB.

    Hep, we have the same problem. I am still trying to figure out why. I have some idea about the reason but I am testing my founding. It seems to me that the problem shows up when I add my database driver in Runtime/Databases/drivers tree (IBM DB2 driver: db2jcc.jar)
    Like I am saying I am still checking the connection. When I am convinced that indeed that is the problem, I will then try to find out why and what to do to make my life easier.
    clogon

  • Help on Java Message Service on using Sun ONE Application Server 7.0

    I am new to Sun ONE Application Server 7.0. I am failed to compile the JMS sample code. I got following error message when I was compiling the ReadOrder.java and SentOrder.java.
    package javax.jms doesn't exist
    package javax.xml.messaging doesn't exist
    package javax.servlet doesn't exist
    The javac -version returns "1.4.0_02" which is required for this sample code.
    Can someone let me know where is wrong? Thanks

    I'm not sure what the two java source files you refer to come from (maybe the samples shipped with AS7?). But you can find the referred packages here:
    javax.jms -> <AS_HOME>/imq/lib/jms.jar
    javax.xml.messaging -> this package is included in the Java Web Services Developers Pack 1.2 (http://java.sun.com/webservices/webservicespack.html)
    javax.servlet -> this package is also included in the J2EE SDK (j2ee.jar): http://java.sun.com/j2ee/download.html
    So you can go to the two links, download the packages, install them, and add the appropriate jars to your classpath and all should be well.
    Daniel.

Maybe you are looking for