Package com.sun.enterprise.tools.verifier

Examples of com.sun.enterprise.tools.verifier.Result.warning()


                            "Found a persistence unit by name [ {0} ] injected into [ {1} ].",
                            new Object[]{emRefDesc.getUnitName(), itClassName});
                    try {
                        Class c = Class.forName(itClassName, false, getVerifierContext().getClassLoader());
                        if(!(Servlet.class.isAssignableFrom(c))) {
                            result.warning(errMsg);
                        } else if (!(SingleThreadModel.class.isAssignableFrom(c))) {
                            result.warning(errMsg);
                        }
                    } catch(Exception ex) {
                        result.warning(errMsg);
View Full Code Here


                    try {
                        Class c = Class.forName(itClassName, false, getVerifierContext().getClassLoader());
                        if(!(Servlet.class.isAssignableFrom(c))) {
                            result.warning(errMsg);
                        } else if (!(SingleThreadModel.class.isAssignableFrom(c))) {
                            result.warning(errMsg);
                        }
                    } catch(Exception ex) {
                        result.warning(errMsg);
                    }
                }
View Full Code Here

                            result.warning(errMsg);
                        } else if (!(SingleThreadModel.class.isAssignableFrom(c))) {
                            result.warning(errMsg);
                        }
                    } catch(Exception ex) {
                        result.warning(errMsg);
                    }
                }
            }
        }
        return result;
View Full Code Here

                if(EjbSessionDescriptor.STATEFUL.equals(stateType)) {
                    Set<InjectionTarget> injectionTargets = ejbRefDesc.getInjectionTargets();
                    if(injectionTargets != null) {
                        for(InjectionTarget it : injectionTargets) {
                            String itClassName = it.getClassName();
                            result.warning(smh.getLocalString(className + ".warning",
                                    "Found a stateful session bean [ {0} ] injected into [ {1} ].",
                                    new Object[]{ejbDescriptor.getEjbClassName(), itClassName}));
                        }
                    }
                }
View Full Code Here

        ClosureCompilerImpl cc = ClosureCompilerImpl.class.cast(
                getVerifierContext().getClosureCompiler());
        Collection<String> nativeMethods = cc.getNativeMethods();
        if(!nativeMethods.isEmpty()) {
            addWarningDetails(result, compName);
            result.warning(smh.getLocalString(getClass().getName() + ".warning",
                    "Supplied below is the list of method names " +
                    "(in the format <package.classname>.<methodName>) " +
                    "that are defined as native methods and used by the application:\n"));
            for(String m : nativeMethods) {
                result.warning("\n\t" + m);
View Full Code Here

            result.warning(smh.getLocalString(getClass().getName() + ".warning",
                    "Supplied below is the list of method names " +
                    "(in the format <package.classname>.<methodName>) " +
                    "that are defined as native methods and used by the application:\n"));
            for(String m : nativeMethods) {
                result.warning("\n\t" + m);
            }
            result.warning(smh.getLocalString(getClass().getName() + ".suggestion",
                    "Please make sure that they are implemented on all operating systems."));
        }
        return result;
View Full Code Here

                    "(in the format <package.classname>.<methodName>) " +
                    "that are defined as native methods and used by the application:\n"));
            for(String m : nativeMethods) {
                result.warning("\n\t" + m);
            }
            result.warning(smh.getLocalString(getClass().getName() + ".suggestion",
                    "Please make sure that they are implemented on all operating systems."));
        }
        return result;
    }
}
View Full Code Here

                        "PASSED [AS-EJB cmp] : is-one-one-cmp is {0}",
                        new Object[]{new Boolean(oneoneCmp)}));
                }catch(Exception ex){
                    oneWarning = true;
                    addWarningDetails(result, compName);
                    result.warning(smh.getLocalString(getClass().getName()+".warning1",
                        "WARNING [AS-EJB cmp] : is-one-one-cmp Element is not defined"));
                }
               
                try{
//EXCEPTION is thrown here as getOneOneFinders() internally uses queryPArser which is null. Exception as:
View Full Code Here

                    if(finders!=null){
                        testFinders(finders,result);
                    }else{
                        oneWarning = true;
                        addWarningDetails(result, compName);
                        result.warning(smh.getLocalString(getClass().getName()+".warning2",
                            "WARNING [AS-EJB cmp] : one-one-finders Element is not defined"));
                    }
                }catch(Exception ex){
                    oneFailed = true;
                    addErrorDetails(result, compName);
View Full Code Here

            if(entBeanName!=null && entBeanName.length()==0){
                result.addErrorDetails(smh.getLocalString
                                   ("tests.componentNameConstructor",
                                    "For [ {0} ]",
                                    new Object[] {compName.toString()}));
                result.warning(smh.getLocalString
                     (getClass().getName() + ".warning",
                      "WARNING [AS-EJB enterprise-beans] : name should not be empty."));
                return result;
            }else{
                result.addGoodDetails(smh.getLocalString
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.