Win a copy of Rust Web Development this week in the Other Languages forum!

pino astarita

Greenhorn
+ Follow
since Nov 14, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by pino astarita

ok , if i create an enterprise java project deploying an ear with a war inside it's ok.. why?
8 years ago
Hi, i've write a web application and deployed on weblogic 12 but the console administration don't give me an error but not see the servlet in the war, this is my sources:

>>>>>>>>>>>>>>>>>>>>> servlet code:

package com.test.Hello;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class HelloTestServlet extends HttpServlet {
private static final long serialVersionUID = 1L;

public HelloTestServlet() {
super();

}


protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
System.out.println("called sevlet!");
}

protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
System.out.println("called sevlet!");
}

}

>>>>>>>>>>>>>>>>>>>> my web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">


<servlet>
<servlet-name>HelloTestServlet</servlet-name>
<servlet-class>com.test.Hello.HelloTestServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>HelloTestServlet</servlet-name>
<url-pattern>/HelloTestServlet</url-pattern>
</servlet-mapping>



<display-name>Nuovo</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>

>>>>>>>>>>>>>>>>>> at least weblogic.xml:
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-web-app
xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.4/weblogic-web-app.xsd">
<wls:weblogic-version>12.1.1</wls:weblogic-version>
<wls:context-root>TestAll</wls:context-root>
<wls:servlet-descriptor>
<wls:servlet-name>HelloTestServlet</wls:servlet-name>
</wls:servlet-descriptor>
</wls:weblogic-web-app>


the structure of archive war seem correct:

ROOT
|____ META-INF
|_____WEB-INF
|________ classes
|________ lib (empty)
|________ web.xml
|________weblogic.xml

please help me! THANKS!

8 years ago
Hi Marc,

the propose to use the word 'pattern' correctly can be ambiguos but i would refer to the question about to tempt to solve the problem of readiblity of a software for this i've used the word 'pattern'.
Chaining different work together in the way i've described help to sintetize a worflow ,better, more unit of work related, in a better way.
Aniway would be an experimental code only this but i thing that i've proposed it incorrect way.

Aniway, Thanks for you attention! ;-) by!
12 years ago
ok but is the same if i precompile the groovy code ?
13 years ago
Hi, this book:

The Definitive Guide to SOA: BEA AquaLogic Service Bus (Definitive Guide) by Jeff Davies, Ashish Krishna, and David Schorow

contains the examples of how integrate JMS with ESB Aqualogic. Be carefull about the contents there are many errors on the book content however the section dedicated to Jms seem correct.

Excuse me if i can't help directly but i don't have Aqualogic installed and don't remember the procedure however , i repeat you, that these book can help you.

By
13 years ago
how deploying a grails web application on Bea Wls 8 ?
13 years ago
excuse me Peter,

i don'have a real question about these code, i would know what think about the same but i think this forum isn't the correct place!

-> IF I MUST I DELETE THIS TOPIC!

Anywhere the code formatted is located after and show the use of Groovy Closure to apply a new language model pattern, the example declare a closure that call recursivly n closure passed them and i use this to execute n Closure properly:

see these code (Groovy):

13 years ago
see these code (Groovy):

def execute = {
Object[] closures ->
def currentClosure = null;
closures.each() {
currentClosure = it.call(currentClosure)
}
return currentClosure
}



def cache = new ArrayList()
def elementsList = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
def sum = 0;

// ### ACTIVITY: NUMERO ELEMENTI LISTA > 5 ###
def ifElementNumberPassFive = { Object[] closures -> if (elementsList.size() > 5) execute(closures) }

def sumListElements = {
println "sum of element of array"
elementsList.each { sum += it }
println "sum $sum"
sum
}

def storeSumInCache = {
println 'if not present store sum in cache!';
if (!cache.contains(it)) cache.add(it);
it
}

def printSum = { println "stampo risultato somma $it" }

// ### CODE FLOW ###
ifElementNumberPassFive(sumListElements, storeSumInCache, printSum)
13 years ago
hi, i want publish an ejb stateless as webservice using weblogic 9.2 and jdk 1.5. i've tried it using the target ant <jwsc> and annotations as @WebService. It's all ok but become published ALL of methods of the ejb (ejbCreate(),ejbRemove() ecc.) but i don't wont public them!
How can select wich method to publish? I can't use the annotation @WebMethod(exclude=true) since it is not available for jdk 1.5 (only for jdk 1.6).

thanks for answer
14 years ago
Hi,

I've the same problem's but actually i don't have resolved it, if you have can say me in which way ? Thank's a lot

Giuseppe
Hi, i've problems deploying a simple jsf application on weblogic 8.1; thi is the code:

----- web-inf.xml --
<?xml version="1.0"?>

<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<filter>
<filter-name>adfFaces</filter-name>
<filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
</filter>
<filter>
<filter-name>adfBindings</filter-name>
<filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
</filter>
<filter>
<filter-name>ADFBindingFilter</filter-name>
<filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>adfFaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>

<filter-mapping>
<filter-name>adfBindings</filter-name>
<url-pattern>*.jspx</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>ADFBindingFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>

<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>

<servlet>
<servlet-name>resources</servlet-name>
<servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>resources</servlet-name>
<url-pattern>/adf/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>

----- faces-config.xml ------
<?xml version="1.0" encoding="windows-1252"?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config xmlns="http://java.sun.com/JSF/Configuration">
<application>
<default-render-kit-id>
oracle.adf.core
</default-render-kit-id>
</application>
<navigation-rule>
<from-view-id>/index.jsp</from-view-id>
<navigation-case>
<from-outcome>login</from-outcome>
<to-view-id>/index.jsp</to-view-id>
</navigation-case>
</navigation-rule>

<managed-bean>
<managed-bean-name>user</managed-bean-name>
<managed-bean-class>com.corejsf.UserBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
</faces-config>

--------------- welcome.jsp
<html>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

<f:view>
<head>
<title>A Simple JavaServer Faces Application</title>
</head>
<body>
<h:form>
<h3>
Welcome to JavaServer Faces,
<h:outputText value="#{user.name}"/>!
</h3>
</h:form>
</body>
</f:view>
</html>

------ ecc.
I've many library also this:

adf-controller.jar
adf-faces-impl.jar
adf-faces-api.jar

Ok , when i start the server the console show this message error:


WARNING: The AdfFacesFilter has not been installed. ADF Faces requires this
filter for proper execution.
<16-nov-2006 15.36.09 CET> <Error> <HTTP> <BEA-101020> <[ServletContext(id=31649
197,name=JSF_1,context-path=/JSF_1)] Servlet failed with Exception
java.lang.NullPointerException
at oracle.adf.model.BindingRequestHandler.endRequest(BindingRequestHandl
er.java:226)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.j
ava:171)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:27)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
cherImpl.java:305)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImp

How can install this filter class?

Thanks for reply!!
15 years ago
OK , i've put all library needed in the CLASSPATH but finally i receive thi exception:

<15-nov-2006 17.03.47 CET> <Error> <HTTP> <BEA-101216> <Servlet: "Faces Servlet"
failed to preload on startup in Web application: "JSF_EX1-EX1-context-root".
javax.servlet.ServletException
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:884)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
Impl.java:848)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:787)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
ervletContext.java:3252)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
ServletContext.java:3197)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp
pServletContext.java:3174)
at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java
:688)
at weblogic.servlet.internal.WebService.preloadResources(WebService.java
:483)
at weblogic.servlet.internal.ServletInitService.resume(ServletInitServic
e.java:30)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)
at weblogic.Server.main(Server.java:32)
>
<15-nov-2006 17.03.47 CET> <Warning> <HTTP> <BEA-101162> <User defined listener
org.apache.myfaces.webapp.StartupServletContextListener failed: java.lang.NoClas
sDefFoundError: javax/servlet/jsp/el/ELException.>
<15-nov-2006 17.03.48 CET> <Notice> <WebLogicServer> <BEA-000329> <Started WebLo
gic Admin Server "myserver" for domain "firstDomain" running in Production Mode>



i've seen on internet that the problem can happen because all ServletContextListener are loaded after the servlet 'javax.faces.webapp.FacesServlet' and i've applied a solution that don't running!
15 years ago
JSF
Ok, but j've do it but don't run!! There are many exception raised in the console :

AVVERTENZA: ServletContextListener not yet called
<15-nov-2006 9.28.43 CET> <Error> <HTTP> <BEA-101216> <Servlet: "Faces Servlet"
failed to preload on startup in Web application: "webapp1".
javax.servlet.ServletException: javax/servlet/jsp/el/ELException
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:884)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
Impl.java:848)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:787)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
ervletContext.java:3252)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
ServletContext.java:3197)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp
pServletContext.java:3174)
at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java
:688)
at weblogic.servlet.internal.WebService.preloadResources(WebService.java
:483)
at weblogic.servlet.internal.ServletInitService.resume(ServletInitServic
e.java:30)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)
at weblogic.Server.main(Server.java:32)
>
<15-nov-2006 9.28.43 CET> <Error> <HTTP> <BEA-101165> <Could not load user defin
ed filter: oracle.adf.model.servlet.ADFBindingFilter.
java.lang.ClassNotFoundException: oracle.adf.model.servlet.ADFBindingFilter
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass
Loader.java:198)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAw
areClassLoader.java:62)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:223)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAw
areClassLoader.java:41)
at weblogic.servlet.internal.WebAppServletContext.loadClass(WebAppServle
tContext.java:5574)
at weblogic.servlet.internal.WebAppServletContext.registerFilter(WebAppS
ervletContext.java:2901)
at weblogic.servlet.internal.WebAppServletContext.initFilters(WebAppServ...

why? THANKS FOR REPLY ..
15 years ago
JSF
Ok, but j've do it but don't run!! There are many exception raised in the console:

AVVERTENZA: ServletContextListener not yet called
<15-nov-2006 9.28.43 CET> <Error> <HTTP> <BEA-101216> <Servlet: "Faces Servlet"
failed to preload on startup in Web application: "webapp1".
javax.servlet.ServletException: javax/servlet/jsp/el/ELException
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:884)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
Impl.java:848)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:787)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
ervletContext.java:3252)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
ServletContext.java:3197)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp
pServletContext.java:3174)
at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java
:688)
at weblogic.servlet.internal.WebService.preloadResources(WebService.java
:483)
at weblogic.servlet.internal.ServletInitService.resume(ServletInitServic
e.java:30)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)
at weblogic.Server.main(Server.java:32)
>
<15-nov-2006 9.28.43 CET> <Error> <HTTP> <BEA-101165> <Could not load user defin
ed filter: oracle.adf.model.servlet.ADFBindingFilter.
java.lang.ClassNotFoundException: oracle.adf.model.servlet.ADFBindingFilter
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass
Loader.java:198)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAw
areClassLoader.java:62)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:223)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAw
areClassLoader.java:41)
at weblogic.servlet.internal.WebAppServletContext.loadClass(WebAppServle
tContext.java:5574)
at weblogic.servlet.internal.WebAppServletContext.registerFilter(WebAppS
ervletContext.java:2901)
at weblogic.servlet.internal.WebAppServletContext.initFilters(WebAppServ...

why? THANKS FOR REPLY ..
15 years ago
JSF
Hi, jsf run in weblogic 8.1 ? I'm some problem to understand this because i've build an application but the log give me two exception:

1. a servlet exception (generic)
2.<14-nov-2006 8.59.14 CET> <Warning> <HTTP> <BEA-101162> <User defined listener o
rg.apache.myfaces.webapp.StartupServletContextListener failed: java.lang.NoClass
DefFoundError: javax/servlet/jsp/el/ELException.>

Thanks for help..
15 years ago
JSF