Deploying Presto in WebLogic Server 8.1

djleon2001
djleon2001's picture
User offline. Last seen 4 weeks 1 day ago. Offline
Joined: 11/12/2008
Points: 80

Deploying Presto in WebLogic Server 8.1

These instructions are for WebLogic 8.1 SP6 in a Windows environments. Installation with later versions of WebLogic may require different steps and may not be affected by JMX 1.1 compatibility issues.

Before Completing This Task

Install Presto with Tomcat. See Installing Presto Enterprise Edition or Installing Presto Developer Edition for instructions. The Presto Repository must also be empty. If you have published services or mashlets or added users or roles, you must clean the repository before continuing. See Rebuilding the Presto Repository for instructions.

Presto is compatible with WebLogic version 8.1 using the Sun JDK.

Steps:

1. Configure the WebLogic domain for Presto with the Sun JDK.
( Example “myPresto260” domain)

2. Copy the tools.jar file from your JDK installation to the lib folder for WebLogic. This JAR must be in the classpath for Presto to enable Presto to compile Java classes for the Database services that users publish in Presto.

Example :

From : C:\bea\jdk142_11\lib
To: C:\bea\weblogic81\server\lib

3. In the startup scripts for WebLogic, set an environmental variable JAVA_HOME to point to the Java version used to create the WebLogic domain for Presto.

Example :
At: C:\bea816\user_projects\domains\myPresto\startWebLogic.cmd

                           set JAVA_HOME=C:\bea\jdk150_11

4. Increase the JVM memory configuration in the startup script for WebLogic to a recommended minimum of ( It did work fine for me with the Weblogic default values ):
-Xms512m
-Xmx1024m
-XX:PermSize=128M
-XX:MaxPermSize=256M

5. For each of the WAR files listed below, extract the WAR contents to a folder with the name shown below:
Tip: rather than starting the Mashup Server to expand these WARs, use a zip or archive tool instead. This avoids setting some Presto configuration properties to paths in Tomcat which you must later correct.

These WAR files are in the web-apps folder for the Tomcat server identified during Presto installation. The default installed location is: presto-install/server/apache-tomcat-5.5-20/webapps

WAR File / Exploded Folder Name
presto.war / presto
adminserver.war / adminserver
mashboard.war / mashboard
mashlets.war / mashlets
mashupsamples.war / mashupsamples
serviceexplorer.war / serviceexplorer
static.war / static
wires.war / wires
wireshelp.war /wireshelp

6. Copy the exploded folders from the previous step to the weblogic-domain-base/applications folder.
Example of Location :
C:\bea\user_projects\domains\myPresto260\applications

7. If you previously expanded WAR files by starting the Mashup Server, delete the following configuration properties from the presto.config file in the web-apps-home/presto/WEB-INF/classes folder:

mashlets.path

webAppRoot

These properties will be added automatically with the correct paths for WebLogic when you start the Mashup Server.

8. Add a weblogic.xml configuration file to each of the web applications from previous steps (C:\bea\user_projects\domains\myPresto260\applications\[webappName]WEB-INF/ ).

This configuration file should contain the following content:

<?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE weblogic-web-app
    PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN"
    "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">

<weblogic-web-app>
     <url-match-map>
       weblogic.servlet.utils.SimpleApacheURLMatchMap
    </url-match-map>
</weblogic-web-app>

9.For each of the web applications from previous steps , in the web.xml file located at C:\bea\user_projects\domains\myPresto260\applications\[webappName]WEB-INF/

Replace this code:

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

With this :
<?xml version="1.0" encoding="UTF-8" ?>
  <!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>

If the file does not exist , then create a new one and add the next code in it:

<?xml version="1.0" encoding="ISO-8859-1"?>

  <!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>  
<display-name>Presto Service Explorer</display-name>
    <description>
      Presto Service Explorer
    </description>
</web-app>

10. Change port configuration for the Mashup Server and Admin Server in these files:

presto.port = 7001 in presto.config in the presto/WEB-INF/classes folder.

proxy.port = 7001 in adminserver/WEB-INF/classes folder.

Use the appropriate port number for this WebLogic server (7001 is the default).

11.Create an endorsed library folder forPrestofor the following libraries:

xalan-2.7.0.jar
xercesImpl.jar
xml-apis-1.3.03.jar
xml-apis.jar

This endorsed library folder allows the WebLogic instance forPrestoto use more recent libraries thatPrestorequires without affecting any other applications in other WebLogic domains. To create this folder:
Create a new folderpresto_endorsed_libs under the home folder for the WebLogic server instance forPresto.
For example:C:\bea816\user_projects\presto_endorsed_libs
Copy the JAR files listed above from presto/WEB-INF/lib folder to the endorsed library folder created in the previous step.

12. Change the WebLogic startup script to use thePrestoendorsed libraries.

a) Edit the startWebLogic.cmd file in the WebLogic domain home folder.

For example: C:\bea816\user_projects\domains\myPresto\startWebLogic.cmd
b) Add or update the-Djava.endorsed.dirsoption to the JVM command with the Prestoendorsed library folder.

For example:

           %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -Dweblogic.Name=%SERVER_NAME% -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy="%WL_HOME%\server\lib\weblogic.policy" -Djava.endorsed.dirs="c:\bea816\user_projects\presto_endorsed_libs" weblogic.Server

c) Save your changes.

13. If you want to register the sample services or sample mashups shipped with Presto, update port information in presto-install/jbenv.bat, for Windows, or presto-install/jbenv.sh for Linux, OS/X or UNIX.

These scripts set various environmental variables and are called by many Presto scripts. You must change the APPSERVER_PORT environmental variable to 7001 or the appropriate port number for this WebLogic server.

14. If it is not running, start the Presto Repository. See Starting or Stopping the Presto Repository for instructions.

15. Restart the WebLogic server.
You can now access Presto applications using the WebLogic host and port number (7001is the default). See Opening Presto Applications for URLs.

Note : this document was made base on the following general documentation from Presto :

http://www.jackbe.com/prestodocs/v2.5/prestoadmin/wwhelp/wwhimpl/api.htm...

Special thanks to : Russ Perry , Girish , Kishore , Deepak for their great contributions , help and support to generate this guide.

For any general question about Presto you can use http://www.jackbe.com/prestodocs

Javier Leon
Senior Sales Engineer
JackBe, Inc.  |  www.jackbe.com
1 (240) 744-7620

 

5
Your rating: None Average: 5 (2 votes)
igo
igo's picture
User offline. Last seen 34 weeks 5 days ago. Offline
Joined: 09/23/2008
Points: 157

Hello Javier,

I'm having issued while installing. Can you help me out please? I'm getting this output when starting myPresto instance.

.

CLASSPATH=C:\bea\JDK142~1\lib\tools.jar;C:\bea\WEBLOG~1\server\lib\weblogic_sp.j
ar;C:\bea\WEBLOG~1\server\lib\weblogic.jar;C:\bea\WEBLOG~1\common\eval\pointbase
\lib\pbserver44.jar;C:\bea\WEBLOG~1\common\eval\pointbase\lib\pbclient44.jar;C:\
bea\JDK142~1\jre\lib\rt.jar;C:\bea\WEBLOG~1\server\lib\webservices.jar;
.
PATH=C:\bea\WEBLOG~1\server\bin;C:\bea\JDK142~1\jre\bin;C:\bea\JDK142~1\bin;C:\W
INDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\bea\WEBLOG~1\server\bin\o
ci920_8
.
***************************************************
*  To start WebLogic Server, use a username and   *
*  password assigned to an admin-level user.  For *
*  server administration, use the WebLogic Server *
*  console at http:\\[hostname]:[port]\console    *
***************************************************
<Dec 10, 2008 11:28:38 AM CST> <Info> <WebLogicServer> <BEA-000377> <Starting We
bLogic Server with Java HotSpot(TM) Client VM Version 1.4.2_11-b06 from Sun Micr
osystems Inc.>
<Dec 10, 2008 11:28:38 AM CST> <Info> <Configuration Management> <BEA-150016> <T
his server is being started as the administration server.>
<Dec 10, 2008 11:28:38 AM CST> <Info> <Management> <BEA-141107> <Version: WebLog
ic Server 8.1 SP6  Wed Jun 21 08:18:55 PDT 2006 781680
WebLogic XMLX Module 8.1 SP6  Wed Jun 21 08:18:55 PDT 2006 781680 >
<Dec 10, 2008 11:28:39 AM CST> <Notice> <Management> <BEA-140005> <Loading domai
n configuration from configuration repository at C:\bea\user_projects\domains\my
Presto\.\config.xml.>
<Dec 10, 2008 11:28:40 AM CST> <Notice> <Log Management> <BEA-170019> <The serve
r log file C:\bea\user_projects\domains\myPresto\myserver\myserver.log is opened
. All server side log events will be written to this file.>
<Dec 10, 2008 11:28:41 AM CST> <Notice> <Security> <BEA-090082> <Security initia
lizing using security realm myrealm.>
<Dec 10, 2008 11:28:41 AM CST> <Notice> <WebLogicServer> <BEA-000327> <Starting
WebLogic Admin Server "myserver" for domain "myPresto">
<Dec 10, 2008 11:28:44 AM CST> <Warning> <HTTP> <BEA-101248> <[Application: 'C:\
bea\user_projects\domains\myPresto\applications', Module: 'mashlets']: Deploymen
t descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParse
Exception: The content of element type "context-param" must match "(param-name,p
aram-value,description?)". (line 27, column 21).>
<Dec 10, 2008 11:28:44 AM CST> <Warning> <HTTP> <BEA-101248> <[Application: 'C:\
bea\user_projects\domains\myPresto\applications', Module: 'mashlets']: Deploymen
t descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParse
Exception: The content of element type "web-app" must match "(icon?,display-name
?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,s
ervlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-
page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?
,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)". (line 28, column 11).>
<Dec 10, 2008 11:28:44 AM CST> <Warning> <HTTP> <BEA-101248> <[Application: 'C:\
bea\user_projects\domains\myPresto\applications', Module: 'mashupsamples']: Depl
oyment descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAX
ParseException: The content of element type "servlet" must match "(icon?,servlet
-name,display-name?,description?,(servlet-class|jsp-file),init-param*,load-on-st
artup?,run-as?,security-role-ref*)". (line 17, column 12).>
<Dec 10, 2008 11:28:44 AM CST> <Warning> <HTTP> <BEA-101248> <[Application: 'C:\
bea\user_projects\domains\myPresto\applications', Module: 'serviceexplorer']: De
ployment descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.S
AXParseException: cvc-elt.1: Cannot find the declaration of element 'web-app'. (
line 6, column 103).>
<Dec 10, 2008 11:28:44 AM CST> <Warning> <HTTP> <BEA-101248> <[Application: 'C:\
bea\user_projects\domains\myPresto\applications', Module: 'wires']: Deployment d
escriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseExc
eption: The content of element type "context-param" must match "(param-name,para
m-value,description?)". (line 19, column 21).>
<Dec 10, 2008 11:28:44 AM CST> <Warning> <HTTP> <BEA-101248> <[Application: 'C:\
bea\user_projects\domains\myPresto\applications', Module: 'wires']: Deployment d
escriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseExc
eption: The content of element type "context-param" must match "(param-name,para
m-value,description?)". (line 29, column 21).>
<Dec 10, 2008 11:28:44 AM CST> <Warning> <HTTP> <BEA-101248> <[Application: 'C:\
bea\user_projects\domains\myPresto\applications', Module: 'wires']: Deployment d
escriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseExc
eption: The content of element type "context-param" must match "(param-name,para
m-value,description?)". (line 38, column 21).>
node ssl port: 8443
use auth ssl: false
use self ssl: false
.
CLASSPATH=C:\bea\JDK142~1\lib\tools.jar;C:\bea\WEBLOG~1\server\lib\weblogic_sp.j
ar;C:\bea\WEBLOG~1\server\lib\weblogic.jar;C:\bea\WEBLOG~1\common\eval\pointbase
\lib\pbserver44.jar;C:\bea\WEBLOG~1\common\eval\pointbase\lib\pbclient44.jar;C:\
bea\JDK142~1\jre\lib\rt.jar;C:\bea\WEBLOG~1\server\lib\webservices.jar;
.
PATH=C:\bea\WEBLOG~1\server\bin;C:\bea\JDK142~1\jre\bin;C:\bea\JDK142~1\bin;C:\W
INDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\bea\WEBLOG~1\server\bin\o
ci920_8
.
***************************************************
*  To start WebLogic Server, use a username and   *
*  password assigned to an admin-level user.  For *
*  server administration, use the WebLogic Server *
*  console at http:\\[hostname]:[port]\console    *
***************************************************
<Dec 10, 2008 11:28:38 AM CST> <Info> <WebLogicServer> <BEA-000377> <Starting We
bLogic Server with Java HotSpot(TM) Client VM Version 1.4.2_11-b06 from Sun Micr
osystems Inc.>
<Dec 10, 2008 11:28:38 AM CST> <Info> <Configuration Management> <BEA-150016> <T
his server is being started as the administration server.>
<Dec 10, 2008 11:28:38 AM CST> <Info> <Management> <BEA-141107> <Version: WebLog
ic Server 8.1 SP6  Wed Jun 21 08:18:55 PDT 2006 781680
WebLogic XMLX Module 8.1 SP6  Wed Jun 21 08:18:55 PDT 2006 781680 >
<Dec 10, 2008 11:28:39 AM CST> <Notice> <Management> <BEA-140005> <Loading domai
n configuration from configuration repository at C:\bea\user_projects\domains\my
Presto\.\config.xml.>
<Dec 10, 2008 11:28:40 AM CST> <Notice> <Log Management> <BEA-170019> <The serve
r log file C:\bea\user_projects\domains\myPresto\myserver\myserver.log is opened
. All server side log events will be written to this file.>
<Dec 10, 2008 11:28:41 AM CST> <Notice> <Security> <BEA-090082> <Security initia
lizing using security realm myrealm.>
<Dec 10, 2008 11:28:41 AM CST> <Notice> <WebLogicServer> <BEA-000327> <Starting
WebLogic Admin Server "myserver" for domain "myPresto">
<Dec 10, 2008 11:28:44 AM CST> <Warning> <HTTP> <BEA-101248> <[Application: 'C:\
bea\user_projects\domains\myPresto\applications', Module: 'mashlets']: Deploymen
t descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParse
Exception: The content of element type "context-param" must match "(param-name,p
aram-value,description?)". (line 27, column 21).>
<Dec 10, 2008 11:28:44 AM CST> <Warning> <HTTP> <BEA-101248> <[Application: 'C:\
bea\user_projects\domains\myPresto\applications', Module: 'mashlets']: Deploymen
t descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParse
Exception: The content of element type "web-app" must match "(icon?,display-name
?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,s
ervlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-
page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?
,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)". (line 28, column 11).>
<Dec 10, 2008 11:28:44 AM CST> <Warning> <HTTP> <BEA-101248> <[Application: 'C:\
bea\user_projects\domains\myPresto\applications', Module: 'mashupsamples']: Depl
oyment descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAX
ParseException: The content of element type "servlet" must match "(icon?,servlet
-name,display-name?,description?,(servlet-class|jsp-file),init-param*,load-on-st
artup?,run-as?,security-role-ref*)". (line 17, column 12).>
<Dec 10, 2008 11:28:44 AM CST> <Warning> <HTTP> <BEA-101248> <[Application: 'C:\
bea\user_projects\domains\myPresto\applications', Module: 'serviceexplorer']: De
ployment descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.S
AXParseException: cvc-elt.1: Cannot find the declaration of element 'web-app'. (
line 6, column 103).>
<Dec 10, 2008 11:28:44 AM CST> <Warning> <HTTP> <BEA-101248> <[Application: 'C:\
bea\user_projects\domains\myPresto\applications', Module: 'wires']: Deployment d
escriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseExc
eption: The content of element type "context-param" must match "(param-name,para
m-value,description?)". (line 19, column 21).>
<Dec 10, 2008 11:28:44 AM CST> <Warning> <HTTP> <BEA-101248> <[Application: 'C:\
bea\user_projects\domains\myPresto\applications', Module: 'wires']: Deployment d
escriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseExc
eption: The content of element type "context-param" must match "(param-name,para
m-value,description?)". (line 29, column 21).>
<Dec 10, 2008 11:28:44 AM CST> <Warning> <HTTP> <BEA-101248> <[Application: 'C:\
bea\user_projects\domains\myPresto\applications', Module: 'wires']: Deployment d
escriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseExc
eption: The content of element type "context-param" must match "(param-name,para
m-value,description?)". (line 38, column 21).>
node ssl port: 8443
use auth ssl: false
use self ssl: false
<Dec 10, 2008 11:29:21 AM CST> <Warning> <Net> <BEA-000905> <Could not open conn
ection with host: 192.168.0.226 and port: 8282.>
<Dec 10, 2008 11:29:22 AM CST> <Warning> <Net> <BEA-000905> <Could not open conn
ection with host: 192.168.0.226 and port: 8282.>
2008-12-10 11:29:23,155 ERROR [org.springframework.web.context.ContextLoader] -
<Context initialization failed>
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'serverConnector' defined in ServletContext resource [/WEB-INF/classes/ap
plicationContext-management.xml]: Instantiation of bean failed; nested exception
 is java.lang.NoClassDefFoundError: javax/management/remote/JMXConnectorServer
Caused by:
java.lang.NoClassDefFoundError: javax/management/remote/JMXConnectorServer
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:1655)
        at java.lang.Class.getDeclaredMethods(Class.java:1139)
        at java.beans.Introspector$1.run(Introspector.java:1272)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:12
70)
        at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1133)
        at java.beans.Introspector.getBeanInfo(Introspector.java:383)
        at java.beans.Introspector.getBeanInfo(Introspector.java:157)
        at java.beans.Introspector.getBeanInfo(Introspector.java:218)
        at java.beans.Introspector.<init>(Introspector.java:364)
        at java.beans.Introspector.getBeanInfo(Introspector.java:157)
        at org.springframework.beans.CachedIntrospectionResults.<init>(CachedInt
rospectionResults.java:244)
        at org.springframework.beans.CachedIntrospectionResults.forClass(CachedI
ntrospectionResults.java:143)
        at org.springframework.beans.BeanWrapperImpl.setIntrospectionClass(BeanW
rapperImpl.java:236)
        at org.springframework.beans.BeanWrapperImpl.setWrappedInstance(BeanWrap
perImpl.java:194)
        at org.springframework.beans.BeanWrapperImpl.setWrappedInstance(BeanWrap
perImpl.java:177)
        at org.springframework.beans.BeanWrapperImpl.<init>(BeanWrapperImpl.java
:130)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.instantiateBean(AbstractAutowireCapableBeanFactory.java:753)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:717)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:386)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:249)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:155)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:246)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:160)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:285)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:352)
        at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:245)
        at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:188)
        at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:49)
        at weblogic.servlet.internal.WebAppServletContext$FireContextListenerAct
ion.run(WebAppServletContext.java:7110)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
121)
        at weblogic.servlet.internal.WebAppServletContext.notifyCreated(WebAppSe
rvletContext.java:1757)
        at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAp
pServletContext.java:3378)
        at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServl
etContext.java:6262)
        at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:892)
        at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer
.java:2181)
        at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContai
ner.java:2222)
        at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.
activateContainer(SlaveDeployer.java:2521)
        at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(
SlaveDeployer.java:2439)
        at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeplo
yer.java:2156)
        at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(S
laveDeployer.java:2255)
        at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDepl
oyer.java:2150)
        at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
laveDeployer.java:2402)
        at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
veDeployer.java:884)
        at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
oyer.java:592)
        at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
loyer.java:501)
        at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
dler.java:25)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
<Dec 10, 2008 11:29:23 AM CST> <Warning> <Net> <BEA-000905> <Could not open conn
ection with host: 192.168.0.226 and port: 8282.>
<Dec 10, 2008 11:29:23 AM CST> <Warning> <HTTP> <BEA-101162> <User defined liste
ner org.springframework.web.context.ContextLoaderListener failed: org.springfram
ework.beans.factory.BeanCreationException: Error creating bean with name 'server
Connector' defined in ServletContext resource [/WEB-INF/classes/applicationConte
xt-management.xml]: Instantiation of bean failed; nested exception is java.lang.
NoClassDefFoundError: javax/management/remote/JMXConnectorServer.>
<Dec 10, 2008 11:29:23 AM CST> <Warning> <HTTP> <BEA-101162> <User defined liste
ner org.springframework.web.context.ContextLoaderListener failed: org.springfram
ework.beans.factory.BeanCreationException: Error creating bean with name 'server
Connector' defined in ServletContext resource [/WEB-INF/classes/applicationConte
xt-management.xml]: Instantiation of bean failed; nested exception is java.lang.
NoClassDefFoundError: javax/management/remote/JMXConnectorServer.>
<Dec 10, 2008 11:29:24 AM CST> <Warning> <Deployer> <BEA-149004> <Failures were
detected while initiating Deploy task for application _appsdir_presto_dir.>
<Dec 10, 2008 11:29:24 AM CST> <Error> <Deployer> <BEA-149201> <Failed to comple
te the deployment task with ID 2 for the application _appsdir_presto_dir.
weblogic.management.DeploymentException:
Exception:weblogic.management.ApplicationException: start() failed.
        Module: presto  Error: weblogic.management.DeploymentException: Error cr
eating bean with name 'serverConnector' defined in ServletContext resource [/WEB
-INF/classes/applicationContext-management.xml]: Instantiation of bean failed; n
ested exception is java.lang.NoClassDefFoundError: javax/management/remote/JMXCo
nnectorServer - with nested exception:
[java.lang.NoClassDefFoundError: javax/management/remote/JMXConnectorServer]

        at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(
SlaveDeployer.java:2441)
        at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeplo
yer.java:2156)
        at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(S
laveDeployer.java:2255)
        at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDepl
oyer.java:2150)
        at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
laveDeployer.java:2402)
        at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
veDeployer.java:884)
        at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
oyer.java:592)
        at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
loyer.java:501)
        at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
dler.java:25)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
--------------- nested within: ------------------
weblogic.management.ManagementException:  - with nested exception:
[weblogic.management.DeploymentException:
Exception:weblogic.management.ApplicationException: start() failed.
        Module: presto  Error: weblogic.management.DeploymentException: Error cr
eating bean with name 'serverConnector' defined in ServletContext resource [/WEB
-INF/classes/applicationContext-management.xml]: Instantiation of bean failed; n
ested exception is java.lang.NoClassDefFoundError: javax/management/remote/JMXCo
nnectorServer - with nested exception:
[java.lang.NoClassDefFoundError: javax/management/remote/JMXConnectorServer]
]
        at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(S
laveDeployer.java:2414)
        at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
veDeployer.java:884)
        at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDepl
oyer.java:592)
        at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
loyer.java:501)
        at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
dler.java:25)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
>
<Dec 10, 2008 11:29:24 AM CST> <Warning> <Net> <BEA-000905> <Could not open conn
ection with host: 192.168.0.226 and port: 8282.>
2008-12-10 11:29:25,811 ERROR [com.jackbe.presto.jmx.cascade.PrestoMasterAgent-2
88] - <java.io.IOException: com.sun.jdmk.comm.CommunicationException: Socket Clo
sed>
<Dec 10, 2008 11:29:27 AM CST> <Notice> <WebLogicServer> <BEA-000331> <Started W
ebLogic Admin Server "myserver" for domain "myPresto" running in Development Mod
e>
<Dec 10, 2008 11:29:27 AM CST> <Notice> <WebLogicServer> <BEA-000355> <Thread "L
istenThread.Default" listening on port 7001, ip address *.*>
<Dec 10, 2008 11:29:27 AM CST> <Notice> <WebLogicServer> <BEA-000360> <Server st
arted in RUNNING mode>
<Dec 10, 2008 11:29:56 AM CST> <Warning> <Net> <BEA-000905> <Could not open conn
ection with host: 192.168.0.226 and port: 8282.>
<Dec 10, 2008 11:29:58 AM CST> <Warning> <Net> <BEA-000905> <Could not open conn
ection with host: 192.168.0.226 and port: 8282.>
<Dec 10, 2008 11:29:59 AM CST> <Warning> <Net> <BEA-000905> <Could not open conn
ection with host: 192.168.0.226 and port: 8282.>
<Dec 10, 2008 11:30:00 AM CST> <Warning> <Net> <BEA-000905> <Could not open conn
ection with host: 192.168.0.226 and port: 8282.>
2008-12-10 11:30:00,264 ERROR [com.jackbe.presto.jmx.cascade.PrestoMasterAgent-2
88] - <java.io.IOException: com.sun.jdmk.comm.CommunicationException: Socket Clo
sed>

 

So first of all there are warnings of malformed XML which I wouldn't know the readon since I didn't touch those. Those are the ones that don't have the header that should be changed..

Then there are JMX errors. I've already deleted the ones in Presto's folder for WebLogic to grab its own JMX libraries. I've already changed the 0 value to -1 in adminserver. 

What else can I do? I've followed the guide thoroughly.

Thanks in advance,

Rodrigo Garcia

 

djleon2001
djleon2001's picture
User offline. Last seen 4 weeks 1 day ago. Offline
Joined: 11/12/2008
Points: 80

Rodrigo ,

To avoid JMX errors please remove "adminserver" webapp . Presto should be fine without it.

An example of the content of "mashlets" web.xml file is :

 

<?xml version="1.0" encoding="UTF-8" ?>

  <!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>
<display-name>JackBe Presto - Mashup Server</display-name>
<description>JackBe Presto - Enterprise Mashup Server</description>
       

  <context-param>
    <param-name>webAppRootKey</param-name>
    <param-value>presto.root</param-value>
  </context-param>

  <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>
      /WEB-INF/classes/userRepositoryApplicationContext.xml
      /WEB-INF/classes/applicationContext-management.xml
      /WEB-INF/classes/applicationContext.xml
      /WEB-INF/classes/applicationContext-security.xml
    </param-value>
  </context-param>

  <filter>
    <filter-name>Acegi Filter Chain Proxy</filter-name>
    <filter-class>
      org.acegisecurity.util.FilterToBeanProxy
    </filter-class>
    <init-param>
      <param-name>targetClass</param-name>
      <param-value>
        org.acegisecurity.util.FilterChainProxy
      </param-value>
    </init-param>
  </filter>

  <filter-mapping>
    <filter-name>Acegi Filter Chain Proxy</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
  <listener>
    <listener-class>
      org.springframework.web.context.ContextLoaderListener
    </listener-class>
  </listener>

  <servlet>
    <servlet-name>presto</servlet-name>
    <servlet-class>
      org.springframework.web.servlet.DispatcherServlet
    </servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>

  <!-- HP Systinet servlet -->
  <servlet>
    <servlet-name>SystinetProxyServlet</servlet-name>
    <servlet-class>com.jackbe.jbp.services.hp.SystinetProxyServlet</servlet-class>
  </servlet>

  <servlet-mapping>
    <servlet-name>presto</servlet-name>
    <url-pattern>/esd/*</url-pattern>
  </servlet-mapping>

  <servlet-mapping>
    <servlet-name>presto</servlet-name>
    <url-pattern>/edge/*</url-pattern>
  </servlet-mapping>

  <!-- HP Systinet servlet mapping -->
  <servlet-mapping>
    <servlet-name>SystinetProxyServlet</servlet-name>
    <url-pattern>/systinet/metadata</url-pattern>
  </servlet-mapping>
 

  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
  </welcome-file-list>
</web-app>
 

Javier Leon
Senior Sales Engineer
JackBe, Inc.  |  www.jackbe.com
1 (240) 744-7620

 

igo
igo's picture
User offline. Last seen 34 weeks 5 days ago. Offline
Joined: 09/23/2008
Points: 157

Thanks a lot for your help Javier. I'll get back to you as soon as I try out this out.

-igo

djleon2001
djleon2001's picture
User offline. Last seen 4 weeks 1 day ago. Offline
Joined: 11/12/2008
Points: 80

My pleasure !

Javier Leon
Senior Sales Engineer
JackBe, Inc.  |  www.jackbe.com
1 (240) 744-7620