facebook

Weblogic Portal 7.0 and Eclipse.

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #196439 Reply

    naga_iyer
    Member

    Hi,
    i’m trying to configure my Weblogic Portal 7.0 domain to try JSP debugging.
    I installed JDK 1.4 as required by MyEclipseEAI.
    I have had no problems with a usual weblogic domain with Eclipse, but when I configured Portal, and then start running the app. server, I get the following error message: (stack trace attached):
    Any sort of help is appreciated !!

    Thanks,
    Naga

    ####<Jun 24, 2003 11:37:29 AM EDT> <Error> <RDBMSRealm> <WLMNRAMESWAMY> <portalServer> <main> <kernel identity> <> <000000> <An error occured creating a database connection for the realm.> 
    java.sql.SQLException: SQL-server rejected establishment of SQL-connection. PointBase.
        at com.pointbase.dbexcp.dbexcpException.getSQLException(DashOB3242)
        at com.pointbase.net.netJDBCConnection.<init>(DashOB3242)
        at com.pointbase.net.netJDBCDriver.getConnection(DashOB3242)
        at com.pointbase.net.netJDBCDriver.connect(DashOB3242)
        at com.pointbase.jdbc.jdbcUniversalDriver.getConnection(DashOB3242)
        at com.pointbase.jdbc.jdbcUniversalDriver.connect(DashOB3242)
        at java.sql.DriverManager.getConnection(DriverManager.java:512)
        at java.sql.DriverManager.getConnection(DriverManager.java:140)
        at com.bea.p13n.security.realm.RDBMSDelegate.<init>(RDBMSDelegate.java:178)
        at com.bea.p13n.security.realm.RDBMSDelegate$DFactory.getInstance(RDBMSDelegate.java:971)
        at com.bea.p13n.security.realm.internal.Pool.<init>(Pool.java:53)
        at com.bea.p13n.security.realm.RDBMSRealm.createPool(RDBMSRealm.java:153)
        at com.bea.p13n.security.realm.RDBMSRealm.<init>(RDBMSRealm.java:140)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at java.lang.Class.newInstance0(Class.java:308)
        at java.lang.Class.newInstance(Class.java:261)
        at weblogic.security.acl.Realm.getRealm(Realm.java:87)
        at weblogic.security.acl.Realm.getRealm(Realm.java:65)
        at weblogic.security.SecurityService.initializeRealm(SecurityService.java:353)
        at weblogic.security.providers.realmadapter.AuthorizationProviderImpl.initialize(AuthorizationProviderImpl.java:72)
        at weblogic.security.service.SecurityServiceManager.createSecurityProvider(SecurityServiceManager.java:1820)
        at weblogic.security.service.AuthorizationManager.initialize(AuthorizationManager.java:221)
        at weblogic.security.service.AuthorizationManager.<init>(AuthorizationManager.java:140)
        at weblogic.security.service.SecurityServiceManager.doATZ(SecurityServiceManager.java:1558)
        at weblogic.security.service.SecurityServiceManager.initializeRealm(SecurityServiceManager.java:1371)
        at weblogic.security.service.SecurityServiceManager.loadRealm(SecurityServiceManager.java:1315)
        at weblogic.security.service.SecurityServiceManager.initializeRealms(SecurityServiceManager.java:1432)
        at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1157)
        at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:697)
        at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:589)
        at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:277)
        at weblogic.Server.main(Server.java:32)
    ####<Jun 24, 2003 11:37:29 AM EDT> <Emergency> <WebLogicServer> <WLMNRAMESWAMY> <portalServer> <main> <kernel identity> <> <000342> <Unable to initialize the server: Fatal initialization exception
    Throwable: java.lang.IllegalAccessError: Exception[com.bea.p13n.security.realm.RDBMSException: An error occured creating a database connection for the realm.]
    java.lang.IllegalAccessError: Exception[com.bea.p13n.security.realm.RDBMSException: An error occured creating a database connection for the realm.]
        at weblogic.security.acl.Realm.getRealm(Realm.java:94)
        at weblogic.security.acl.Realm.getRealm(Realm.java:65)
        at weblogic.security.SecurityService.initializeRealm(SecurityService.java:353)
        at weblogic.security.providers.realmadapter.AuthorizationProviderImpl.initialize(AuthorizationProviderImpl.java:72)
        at weblogic.security.service.SecurityServiceManager.createSecurityProvider(SecurityServiceManager.java:1820)
        at weblogic.security.service.AuthorizationManager.initialize(AuthorizationManager.java:221)
        at weblogic.security.service.AuthorizationManager.<init>(AuthorizationManager.java:140)
        at weblogic.security.service.SecurityServiceManager.doATZ(SecurityServiceManager.java:1558)
        at weblogic.security.service.SecurityServiceManager.initializeRealm(SecurityServiceManager.java:1371)
        at weblogic.security.service.SecurityServiceManager.loadRealm(SecurityServiceManager.java:1315)
        at weblogic.security.service.SecurityServiceManager.initializeRealms(SecurityServiceManager.java:1432)
        at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1157)
        at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:697)
        at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:589)
        at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:277)
        at weblogic.Server.main(Server.java:32)
    > 

    my weblogic configuration is as shown below:

    (the weblogic server uses Pointbase for the portal database
    [b]Configuration Information:[/b]
    BEA Home Directory:D:\java\bea
    weblogic installation dir:D:\java\bea
    admin user name: system    
    admin password: protojava
    execution domain root: d:\java\bea\domains
    execution domain name:portalDomain
    execution server name: portalServer
    Host name: port number :localhost:7501
    security policy file:d:\java\bea\weblogic700\server\lib\weblogic.policy
    JAAS config: leave blank.
    
    JDK : I use the JDK configured with Weblogic : ie JDK 131_03
    Optional Java VM Args
    -Xms128m -Xmx128m -XX:MaxPermSize=128m -Dcommerce.properties="D:\java\bea\weblogic700\portal\weblogiccommerce.properties" -Dweblogic.ProductionModeEnabled=true -Dweblogic.management.discover=false
    
    
    Launch
    check : this server is running stand-alone
    start weblogic in Debug mode
    
    Prepend to classpath
    weblogic.jar
    D:\java\bea\domains\portalDomain
        \log4j-1.2.3.jar
        \crimson.jar
        \jsse.jar
        \jcert.jar
        \soap.jar
        \soappach.jar
        \xalan.jar
        \xerces.jar
        \velocity-1.1.jar
        \mail.jar
        \util.jar
        \securityrealm.jar
        \patches\CR093112_700sp1.jar
    
    Append to classpath:
    d:\java\bea\weblogic700\portal\lib\
        \portal_system.jar
        \commerce_system.jar
        \p13n_system.jar
        \ext\wlcsparsers.jar
        \ext\HTTPClient.jar
        \jdom.jar
    
    d:\java\bea\weblogic700\server\webservices.jar
                
    d:\java\bea\weblogic700\samples\server\eval\pointbase\lib
        \pbtools42ECF183.jar
        \pbserver42ECF183.jar
        \pbclient42ECF183.jar
    
    d:\java\bea\jdk131_03\tools.jar
    #196440 Reply

    Scott Anderson
    Participant

    I checked Google and there seems to be a documented but with Weblogic / Pointbase that is referenced here:
    http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=3db5afd9%241%40newsgroups.bea.com&rnum=3&prev=/groups%3Fq%3DSQL-server%2Brejected%2Bestablishment%2Bof%2BSQL-connection%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3D3db5afd9%25241%2540newsgroups.bea.com%26rnum%3D3

    Additionally:
    1) you don’t need to add tools.jar to the classpath
    2) You should really use JDK 1.4 to launch WebLogic as that will enable HotSwap debugging of your Java code. If you’re constrained to 1.3.1, that’s ok, just don’t expect debug code replacements to work.
    3) Be careful using prepend to classpath. Prepend really exists for service packs or bug fixes since they will be loaded before anything in weblogic.jar. However, if WebLogic depends on certain releases you can introduce an incompatibility by using prepend. It’s safer to use append to add new functionality.

    –Scott
    MyEclipse Support

    #196443 Reply

    The Pointbase DB server is a little server used by portal to store configuration info. I start mine manually when using eclipse using the following.

    (this is for windows):

    “cd to C:\bea\user_projects\myDomain\bin\win32

    start /MIN antcallnopause pbrun -Dpointbase.args=/win”

    I used Bedrock to build my project so I’m not sure if things will be set up the same without Bedrock. Good luck.

    #196449 Reply

    Scott Anderson
    Participant

    Yeah! MyEclipse users supporting other MyEclipse users.

    Thank you! 🙂

    –Scott
    MyEclipse Support

    #196452 Reply

    No problem – hope that it helps!

    #196464 Reply

    naga_iyer
    Member

    Thanks bedmonston!

    Like you mentioned, the weblogic plug-in installed in eclipse is only responsible for reading the config.xml and starting weblogic services. it does not know about starting pointbase server. however, the scripts that we have “startPortal.cmd” calls batch files internally to start the pointbase server..This was the reason why I could never get portal started inside eclipse while my cmd line script seemed to work perfectly fine!

    I guess I must start writing my own plug-in to work with Weblogic Portal 7.0…OR, I could submit this as an enhancement request to My_eclipse…
    ;)…say wat Scott !;)…
    juss kidding!…

    Is there a plug-in available somewhere to call batch-files within eclipse?!..

    Thanks again!
    -Naga

    #196465 Reply

    Scott Anderson
    Participant

    Is there a plug-in available somewhere to call batch-files within eclipse?!..

    Yep, it’s called Ant. 😉 Really though, a simple Ant script can be used to start pointbase for you (and shut it down). Just remember to call it before you launch WebLogic portal.

    Glad to see you’re up and running. I bet this will prove to be a valuable thread for others configuring the WebLogic portal server so thanks for working through it here.

    –Scott
    MyEclipse Support

    #196766 Reply

    naga_iyer
    Member

    Hi,
    I need some help in configuring Weblogic 7.0 Portal & JSP debugging.
    I was able to configure & run WEblogic Portal withing Eclipse without
    any
    problems.(Note: pointbase must be started before trying to run Portal
    within
    eclipse). Now, I am trying to setup JSP debugging.
    I created a customized web-project with the files.project, .classpath &
    .mymetadata (all shown below).
    If you notice, my web project directory points to a directory
    \”portalApp\”
    inside the wls domain \”portalDomain\”. Unfortunately, WL portal is run
    in
    an exploded EAR/WAR format and does not support deployment of an EAR.
    The application portalApp is not in the \”applications\” directory and
    it is
    present under the \”portalDomain\” directory.

    Ok, with this basic information, here goes my questions/problems:
    1. Does JSP debugging require that I deploy the application every time
    to
    the container?. weblogic 7.0 portal is set up in such a way that it
    does not
    allow deployment. Moreover, the directory to which I can deploy is not
    configurable in Eclipse. It always points to \”<my Domain
    Dir>\\applications\”.
    2. With the existing setup, I tried placing breakpoints in my JSp but
    it
    does not work.
    3. Though my web.xml has all the custom tags defined, the Eclipse IDE
    does
    not seem to recognize any of it.

    Any sort of help is appreciated..Pls let me know if you need more info.

    Thanks/Rgds,
    -Naga
    PS: see project info attached below:
    file: .project

    [?xml version=\"1.0\" encoding=\"UTF-8\"?]
    [projectDescription]
    [name]portalApp[/name]
    [comment][/comment]
    [projects]
    [project]jdev[/project]
    [/projects]
    [buildSpec]
    [buildCommand]
    [name]com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder[/name]
    [arguments]
    [/arguments]
    [/buildCommand]
    [buildCommand]
    [name]org.eclipse.jdt.core.javabuilder[/name]
    [arguments]
    [/arguments]
    [/buildCommand]
    [buildCommand]
    [name]com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator[/name]
    [arguments]
    [/arguments]
    [/buildCommand]
    [buildCommand]
    [name]com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator[/name]
    [arguments]
    [/arguments]
    [/buildCommand]
    [buildCommand]
    [name]de.bb.bje.eclipse.IncrementalJspBuilder[/name]
    [arguments]
    [/arguments]
    [/buildCommand]
    [/buildSpec]
    [natures]
    [nature]com.genuitec.eclipse.j2eedt.core.webnature[/nature]
    [nature]org.eclipse.jdt.core.javanature[/nature]
    [/natures]
    [/projectDescription]

    file: .classpath

    [?xml version=\"1.0\" encoding=\"UTF-8\"?]
    [classpath]
        [classpathentry kind=\"con\"
    path=\"org.eclipse.jdt.launching.JRE_CONTAINER\"/]
        [classpathentry kind=\"con\"
    path=\"com.genuitec.eclipse.j2eedt.core.J2EE13_CONTAINER\"/]
    [classpathentry kind=\"lib\"
    path=\"D:/java/ide/eclipse/plugins/org.junit_3.8.1/junit.jar\"/]
    
        [classpathentry kind=\"src\" path=\"d:/jdev/src\"/]
    
        [classpathentry kind=\"lib\"
    path=\"D:/java/bea/weblogic700/server/lib/weblogic.jar\"/]
        [classpathentry kind=\"lib\"
    path=\"D:/java/bea/weblogic700/portal/lib/p13n/ejb/pipeline.jar\"/]
        [classpathentry kind=\"lib\"
    path=\"D:/java/bea/weblogic700/portal/lib/p13n/web/webflow_servlet.jar\"/]
        [classpathentry kind=\"lib\"
    path=\"D:/java/bea/weblogic700/portal/lib/p13n/ejb/usermgmt.jar\"/]
        [classpathentry kind=\"lib\"
    path=\"D:/java/bea/weblogic700/portal/lib/p13n_system.jar\"/]
        [classpathentry kind=\"lib\"
    path=\"D:/java/bea/weblogic700/portal/lib/portal/ejb/portal.jar\"/]
        [classpathentry kind=\"lib\"
    path=\"D:/java/bea/weblogic700/portal/lib/portal/ejb/portal_util.jar\"/]
        [classpathentry kind=\"lib\"
    path=\"D:/java/bea/weblogic700/portal/lib/p13n/ejb/rules.jar\"/]
        [classpathentry kind=\"lib\"
    path=\"D:/java/bea/weblogic700/portal/lib/p13n/ejb/p13n_util.jar\"/]
        [classpathentry kind=\"lib\"
    path=\"D:/java/bea/domains/portalDomain/beaApps/portalApp/usermgmt.jar\"/]
        [classpathentry kind=\"lib\"
    path=\"D:/java/bea/weblogic700/common/templates/domains/shared/bea/portal/we
    bapps/jars/portal_servlet.jar\"/]
        [classpathentry kind=\"lib\"
    path=\"D:/java/bea/weblogic700/common/templates/domains/shared/bea/portal/ap
    ps/jars/portal_util.jar\"/]
    
        [classpathentry kind=\"lib\"
    path=\"D:/java/jakarta-ant-1.5.1/lib/ant.jar\"/]
        [classpathentry kind=\"lib\" 
    path=\"d:/jdev/configuration/axis.jar\"/]
        [classpathentry kind=\"lib\"
    path=\"d:/jdev/configuration/commons-discovery.jar\"/]
        [classpathentry kind=\"lib\"
    path=\"d:/jdev/configuration/commons-logging.jar\"/]
        [classpathentry kind=\"lib\" 
    path=\"d:/jdev/configuration/jaxrpc.jar\"/]
        [classpathentry kind=\"lib\" 
    path=\"d:/jdev/configuration/saaj.jar\"/]
        [classpathentry kind=\"lib\"
    path=\"d:/jdev/configuration/cryptix32.jar\"/]
        [classpathentry kind=\"lib\"
    path=\"d:/jdev/configuration/cryptix32-pgp.jar\"/]
        [classpathentry kind=\"lib\" 
    path=\"d:/jdev/configuration/jcert.jar\"/]
        [classpathentry kind=\"lib\" 
    path=\"d:/jdev/configuration/jnet.jar\"/]
        [classpathentry kind=\"lib\" 
    path=\"d:/jdev/configuration/jsse.jar\"/]
        [classpathentry kind=\"lib\"
    path=\"d:/jdev/configuration/log4j-1.2.3.jar\"/]
        [classpathentry kind=\"lib\"
    path=\"d:/jdev/configuration/activation.jar\"/]
        [classpathentry kind=\"lib\" 
    path=\"d:/jdev/configuration/mail.jar\"/]
        [classpathentry kind=\"lib\" 
    path=\"d:/jdev/configuration/xalan.jar\"/]
        [classpathentry kind=\"lib\" 
    path=\"d:/jdev/configuration/xerces.jar\"/]
        [classpathentry kind=\"lib\"
    path=\"d:/jdev/configuration/jakarta-regexp-1.2.jar\"/]
        [classpathentry kind=\"lib\"
    path=\"d:/jdev/configuration/sncfclient.jar\"/]
        [classpathentry kind=\"lib\"
    path=\"d:/jdev/configuration/soappatch.jar\"/]
        [classpathentry kind=\"lib\" 
    path=\"d:/jdev/configuration/soap.jar\"/]
        [classpathentry kind=\"lib\"
    path=\"d:/jdev/configuration/velocity-1.1.jar\"/]
    [classpathentry kind=\"lib\" path=\"D:/jdev/configuration/util.jar\"/]
    
        [classpathentry kind=\"output\" path=\"classes\"/]
    [/classpath]

    file: .mymetadata

    [?xml version=\"1.0\" encoding=\"UTF-8\"?]
    [project-module context-root=\"/portalApp\" name=\"portalApp\" 
    type=\"WEB\"]
        [attributes]
            [attribute name=\"webrootdir\" value=\"portalApp\"/]
        [/attributes]
    [/project-module]
    #196768 Reply

    Scott Anderson
    Participant

    Naga,

    Well, you’ve got quite a complex set of issues here. I’ll see if I can help a bit, but we really don’t have any experience with WebLogic’s portal product so I’ll have to hope that some of those nice portal developers that helped out before (you know who you are 🙂 will chime in this time too.

    1. Does JSP debugging require that I deploy the application every time to the container?.

    No, as long as the application is deployed at least once to the container. It doesn’t even have to be with our deployer, as long as you use the WebLogic connector to start the server.

    2. With the existing setup, I tried placing breakpoints in my JSp but
    it does not work.

    It’s probably your descriptor settings. Please review this thread from the Documentation forum: https://www.genuitec.com/forums/topic/jsp-debugging-with-weblogic-7-amp-8-closed/

    3. Though my web.xml has all the custom tags defined, the Eclipse IDE does not seem to recognize any of it.

    It may be a problem with the specification. Have you included the ‘taglib’ statement in all your JSP’s? When you say the IDE doesn’t recognize it are you saying that you’re getting compilation errors? Or that code assist isn’t working in the JSP editor? Any more specifics you can provide will help.

    Moreover, the directory to which I can deploy is not
    configurable in Eclipse. It always points to \”<my Domain
    Dir>\\applications\”.

    Very true, because that’s the proper exploded deployment location for WebLogic server. However you bring up an interesting point that since portal can be configured differently. This might be a good enhancement request for the ‘Enhancements’ forum. How do the other portal developers feel about this? Anyone with good use cases for why the exploded deployment directory should be user selectable?

    –Scott
    MyEclipse Support

    #196790 Reply

    naga_iyer
    Member

    Hi Scott..
    I added all the tag-lib files under web-inf. But I still get errors building the web-project. Here’s the actual problem:

    All my tag-lib definitions are in JSp header files with an extension .jsi (company convention). When I do the build, the JSp compiler does not seem to identify a .jsi included in a .jsp file. hence, the .jsi files are never read.
    Is there a way to add the .jsi extension so that the compiler understands it?

    -Naga

    #196793 Reply

    Scott Anderson
    Participant

    Naga,

    I really don’t know. I know we support .jspf as the include suffix, since this is the one used in the spec, but I’m not sure about others. I’m checking into it with our JSP experts now.

    –Scott
    MyEclipse Support

    #196798 Reply

    naga_iyer
    Member

    Oh Ok!..
    the file plugin.xml in dir :D:\java\ide\MyEclipse\eclipse\plugins\de.bb.bje.eclipse_2.1.1
    has the following entry:

    <editor
                name="MyEclipse JSP Editor"
                icon="icons/solar_jsp.png"
                extensions="jsp,jsf,jspf"
        contributorClass="de.bb.bje.eclipse.editors.ActionContributor"
        class="de.bb.bje.eclipse.editors.BJspEditor"
        id="de.bb.bje.eclipse.editors.BJspEditor">
    </editor>

    Will it work if I add .jsi to the attribute extensions shown above?
    -Naga

    #196799 Reply

    Scott Anderson
    Participant

    Those extensions really just control which types of files the editor will be the default for, they don’t have anything to do with compiler function. If you’d like to use the editor as the default to open your .jsi files, you can configure that from within the workbench by going to Window->Preferences->Workbench->File Associations.

    There’s no need to change the plugin.xml file. Please don’t. 🙂

    –Scott
    MyEclipse Support

    #196801 Reply

    naga_iyer
    Member

    ok .! wont touch it !:)..i’ll wait for you get back on the jsp include file extensions from your JSP experts..:)

    thanks!
    -Naga

    #196813 Reply

    Scott Anderson
    Participant

    Naga,

    We’ve made a test project and named the include files *.jsi, also tried other extensions. As expected it works with any extension for include files. So the problem is of different nature.

    – It is ok and also works to place import statements into static include files
    – the name of include file only matters to choose the default editor in eclipse

    So, basically I don’t know why you’re having problems with your taglib in .jsi includes. However, our testing was done on the GA release candidate, not EA2 so if there was a problem in EA2, it looks like it has been fixed.

    How about upgrading your installation tomorrow and trying out the new version to see if that fixes the problem you’re seeing?

    –Scott
    MyEclipse Support

Viewing 15 posts - 1 through 15 (of 16 total)
Reply To: Weblogic Portal 7.0 and Eclipse.

You must be logged in to post in the forum log in