error deploying uPortal 3.2.4

216 views
Skip to first unread message

Matthew

unread,
Sep 28, 2016, 4:29:39 PM9/28/16
to uPortal Developers
I'm trying to restore uPortal 3.2.4 from a subversion repository my predecessor left. I have downloaded this into /home/testuser/uportal . We're running Ubuntu 16.04.1. 
 I have apache, tomcat, and postgres up and running. However, when I try to use ant to deploy, I get errors.

I don't know what "Artifact ________ is not available or out-of-date" means specifically, but I'm assuming there's a repository I'm not including. Any ideas?

Thanks,

Matt Dukes




testuser@test:~/uportal/TRUNK$ ant initportal
Buildfile: /home/testuser/uportal/TRUNK/build.xml

prodPrompt:

initportal:
     [echo] Initializing uPortal

checkForTomcat:

deploy-ear:

install-parent-pom:
[artifact:install] [INFO] Installing /home/testuser/uportal/TRUNK/pom.xml to /home/testuser/.m2/repository/org/jasig/portal/uportal-parent/3.2.4/uportal-parent-3.2.4.pom
    [touch] Creating /tmp/jasig/uportal-parent.pom-2041976809-marker
     [echo] Artifact '${uportal-impl.pom.build.directory}/${uportal-impl.pom.build.finalName}.${uportal-impl.pom.packaging}' is not available or out-of-date, calling 'mvn install'

mvn:

BUILD FAILED
/home/testuser/uportal/TRUNK/build.xml:125: The following error occurred while executing this line:
/home/testuser/uportal/TRUNK/build.xml:369: The following error occurred while executing this line:
/home/testuser/uportal/TRUNK/build.xml:1017: The following error occurred while executing this line:
/home/testuser/uportal/TRUNK/build.xml:938: The following error occurred while executing this line:
/home/testuser/uportal/TRUNK/build.xml:903: The following error occurred while executing this line:
/home/testuser/uportal/TRUNK/build.xml:906: The following error occurred while executing this line:
/home/testuser/uportal/TRUNK/build.xml:870: The following error occurred while executing this line:
/home/testuser/uportal/TRUNK/build.xml:1058: /home/testuser/uportal/TRUNK/boot does not exist.


In build.xml, I found this:
<!--
| Define the location of the resulting artifact
+-->
<property name="@{project-name}.artifact" value="${@{project-name}.pom.build.directory}/${@{project-name}.pom.build.finalName}.${@{project-name}.pom.packaging}" />

Carlos Alonso Vega

unread,
Sep 28, 2016, 5:29:42 PM9/28/16
to Matthew, uPortal Developers

Hi,
 
 Not sure at all but I could bet on the ant and mvn version you could be using. Try ant 1.7.1 and mvn 2.2.1.  I have a 3.2.4 install and with them I can build it successfuly.

Hope this helps

Carlos
--
You received this message because you are subscribed to the Google Groups "uPortal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uportal-dev...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/uportal-dev/.



Libre de virus. www.avast.com

Drew Wills

unread,
Sep 28, 2016, 6:18:29 PM9/28/16
to Matthew, uPortal Developers
Matt,

Welcome to the community — I’m glad you reached out to us.  I hope I can help.

On Sep 28, 2016, at 1:29 PM, Matthew <mdd...@fsmail.bradley.edu> wrote:

I'm trying to restore uPortal 3.2.4 from a subversion repository my predecessor left. [...]

I won’t spend a lot of time on this section because I suspect it won’t achieve the desired effect, but I feel obligated to say…

  - (1) I wish you weren’t messing with uPortal 3.x.  The 3.2.4 release came out 15-Oct-2010 (almost exactly 6 years ago).  Only some of the people on this list have been around long enough to remember anything about the issues you’re likely to encounter… it will be tough to get good advice.  The dependencies are stale — you’re likely to have (a least a couple) issues just obtaining the things uP 3.2.4 needs to build and run.  There are security vulnerabilities in the libraries included with that version.  Besides, uPortal 4 is just a lot nicer.

  - (2) I wish you weren’t messing with Subversion.  Odds are very high that people in this community have found & fixed some of the issues you will come across.  The primary uPortal sources are hosted in Github.  Git makes it amazingly easy to apply newer changes from the upstream project.  Applying those changes in Subversion is fussy, effort-intensive work.

/home/testuser/uportal/TRUNK/build.xml:1058: /home/testuser/uportal/TRUNK/boot does not exist.

I am curious about this error.  I’m looking at the 3.2 branch…


and there is no boot/ directory.

There is no mention of a “boot” directory in either build.xml or pom.xml.

drew

Matthew

unread,
Sep 29, 2016, 9:49:06 AM9/29/16
to uPortal Developers, mdd...@fsmail.bradley.edu
Drew,

How does one check the version of uPortal they're running? I haven't been able to find this yet, and it's entirely possible that I'm trying to restore from a version other than 3.2.4.

Subversion is what we're using now, but I may be able to convince someone to set up Git if it'll make our lives easier in the future.

I'm not sure if finding out the version is going to help my issue directly, but it'll at least help to get me using the correct set of installation instructions. :)

Thanks,
Matt

Matthew

unread,
Sep 29, 2016, 9:50:45 AM9/29/16
to uPortal Developers, mdd...@fsmail.bradley.edu, los...@unavarra.es
Carlos,

You're right, I was using the most current Maven and Ant. That being said, it's been brought to my attention that I may be using a different version than 3.2.4. I'll investigate this more when I find out.

Thanks,
Matt
--
You received this message because you are subscribed to the Google Groups "uPortal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uportal-dev...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/uportal-dev/.

Matthew

unread,
Sep 30, 2016, 11:09:09 AM9/30/16
to uPortal Developers
I changed my versions of ant and mvn to ant 1.8.2 and 3.3.9 (uPortal 4's minimum requirements). 

I have gotten further, but I am still running into issues. When I run:

ant dbtest

I get a lot of output that indicates successes, but 1 test failure that is stopping the process from continuing:

 [exec] Running org.jasig.portal.events.JacksonPortalEventTest
     [exec] --LoginEvent  at 2016-09-30T14:58:54.313Z for system
     [exec] --LoginEvent  at 2016-09-30T14:58:54.442Z for system
     [exec] --LogoutEvent at 2016-09-30T14:58:54.459Z for system
     [exec] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.259 sec <<< FAILURE! - in org.jasig.portal.events.JacksonPortalEventTest
     [exec] testPortalEventSerialization(org.jasig.portal.events.JacksonPortalEventTest)  Time elapsed: 0.077 sec  <<< FAILURE!

Then more at the end:

 [exec] Failed tests:
     [exec]   JacksonPortalEventTest.testPortalEventSerialization:79->assertEventJsonEquals:164 expected:<..."system","groups":["[Student","Employee]"],"attributes":{"us...> but was:<..."system","groups":["[Employee","Student]"],"attributes":{"us...>
     [exec]
     [exec] Tests run: 458, Failures: 1, Errors: 0, Skipped: 5


The fact that it's looking for [Student","Employee] and finding [Employee","Student] makes me think this test maybe wasn't written properly (but I haven't been able to understand what's being tested yet. 

Is there a way to skip tests? Is it wise to do this?

Also (and forgive me if I posted this before), is there a way to ensure that I don't wipe the database every time I deploy from ant? I haven't actually deployed yet, but I want to know before I blow anything up.

Thanks,

Matt Dukes

Drew Wills

unread,
Sep 30, 2016, 12:13:31 PM9/30/16
to Matthew, uPortal Developers
On Sep 30, 2016, at 8:09 AM, Matthew <mdd...@fsmail.bradley.edu> wrote:

Is there a way to skip tests? Is it wise to do this?

Definitely.  Add…

  -Dmaven.test.skip=true

to any Ant or Maven command to skip the tests.

Also (and forgive me if I posted this before), is there a way to ensure that I don't wipe the database every time I deploy from ant? I haven't actually deployed yet, but I want to know before I blow anything up.

Certainly.  None of these touch the database

  - $ant deploy-ear // Builds & deploys uPortal and all “bundled" web apps
  - $ant deploy-war // Builds & deploys the uPortal web app only

drew


Matthew

unread,
Sep 30, 2016, 5:34:00 PM9/30/16
to uPortal Developers, mdd...@fsmail.bradley.edu
Thanks for the help. This has gotten me further, but I'm still running into trouble.

Ant gets all the way to the Calendar Portlet before it runs into this issue:

[ERROR] Failed to execute goal on project CalendarPortlet: Could not resolve dependencies for project org.jasig.portal.portlets-overlay:CalendarPortlet:war:4.0.15: Failed to collect dependencies at org.jasig.portlet:CalendarPortlet:jar:classes:2.3.4 -> org.osaf:caldav4j:jar:0.7: Failed to read artifact descriptor for org.osaf:caldav4j:jar:0.7: Could not transfer artifact org.osaf:caldav4j:pom:0.7 from/to 3rd-party-embedded (file://${project.basedir}/3rd-party/repository): Repository path /3rd-party/repository does not exist, and cannot be created. -> [Help 1]

I went looking for caldav4j's maven information, and wound up at this page:

This article says to put this into my pom file:
<repositories>
        <repository>
            <id>org.osaf.caldav4j</id>
            <name>org.osaf.caldav4j</name>
            <url>https://caldav4j.googlecode.com/svn/maven/</url>
        </repository>
    </repositories>
Unfortunately, this doesn't seem to have resolved my issue, and the same error you see above occurs. 

I also tried adding the file to my local maven repo using:

mvn install:install-file -Dfile=/home/mddukes/caldav4j-0.7.jar -DgroupId=org.osaf.caldav4j -DartifactId=caldav4j -Dversion=0.7 -Dpackaging=jar

Once again, I get the same error.


I feel like I'm missing something here. Can anyone help?

Thanks,

Matt Dukes

Matthew

unread,
Sep 30, 2016, 5:42:54 PM9/30/16
to uPortal Developers, mdd...@fsmail.bradley.edu
It's also worth noting:

file://${project.basedir}/3rd-party/repository

I don't know what ${project.basedir} is set to, and I haven't been able to find any reference to it. I'm inclined to think maybe it's not set, or set improperly, but it's gotten a few items down the list of items run by ant deploy-ear so I'm not sure about this.

[INFO] Reactor Summary:
[INFO]
[INFO] uPortal Parent ..................................... SUCCESS [  1.670 s]
[INFO] uPortal Search API ................................. SUCCESS [  1.533 s]
[INFO] uPortal WAR ........................................ SUCCESS [ 36.369 s]
[INFO] uPortal Portlets ................................... SUCCESS [  0.790 s]
[INFO] Announcements Portlet .............................. SUCCESS [  3.547 s]
[INFO] Bookmarks Portlet .................................. SUCCESS [  0.969 s]
[INFO] Calendar Portlet ................................... FAILURE [  0.161 s]

Drew Wills

unread,
Sep 30, 2016, 5:43:52 PM9/30/16
to Matthew, uPortal Developers
Mathew,

The uPortal community ran into issues with dependencies for the Calendar portlet a few times over the last 2-3 years.  It’s one of the things I was thinking of when I expressed concern about working with that earlier version of the portal.

We handled the caldav4j 0.7 jar this way (back in June)…



On Sep 30, 2016, at 2:33 PM, Matthew <mdd...@fsmail.bradley.edu> wrote:

I also tried adding the file to my local maven repo using:

mvn install:install-file -Dfile=/home/mddukes/caldav4j-0.7.jar -DgroupId=org.osaf.caldav4j -DartifactId=caldav4j -Dversion=0.7 -Dpackaging=jar

It looks like this didn’t work because the correct groupId would be simply ‘org.osaf’ (not ‘org.osaf.caldav4j’).

I think this approach would work if you run it like this…

  mvn install:install-file -Dfile=/home/mddukes/caldav4j-0.7.jar -DgroupId=org.osaf -DartifactId=caldav4j -Dversion=0.7 -Dpackaging=jar

drew

Drew Wills

unread,
Sep 30, 2016, 5:47:36 PM9/30/16
to Matthew, uPortal Developers
Mathew,

Sorry — I didn’t read the earlier email quite correctly.  It looks like you have the fix I pointed you to.

${project.basedir} is set by the Maven tool.  The value is the directory in which the pom.xml is.

Do you have {uPortal}/uportal-portlets-overlay/CalendarPortlet/3rd-party/repository/org/osaf/caldav4j/0.7/?

drew

Matthew

unread,
Oct 3, 2016, 1:16:59 PM10/3/16
to uPortal Developers, mdd...@fsmail.bradley.edu

It doesn't appear that I have that directory:

mddukes@test:~/mybu/mybu4/TRUNK/uportal-portlets-overlay/CalendarPortlet$ ls -al
total 24
drwxr-xr-x  3 mddukes uucp 4096 Sep 29 09:27 .
drwxr-xr-x 16 mddukes uucp 4096 Sep 29 09:27 ..
-rwxr-xr-x  1 mddukes uucp 8841 Sep 29 09:27 pom.xml
drwxr-xr-x  3 mddukes uucp 4096 Sep 29 09:27 src

However, I did use your advice installing it to my local maven repo, and it seems to have worked (at least, ant deploy-ear doesn't give me any errors for that anymore).

That being said, I have another issue. The installer can't find jakarta-slide-webdavlib:pom:2.2pre1-httpclient-3.0. 

[ERROR] Failed to execute goal on project CalendarPortlet: Could not resolve dependencies for project org.jasig.portal.portlets-overlay:CalendarPortlet:war:4.0.15: Failed to collect dependencies at org.jasig.portlet:CalendarPortlet:jar:classes:2.3.4 -> slide:jakarta-slide-webdavlib:jar:2.2pre1-httpclient-3.0: Failed to read artifact descriptor for slide:jakarta-slide-webdavlib:jar:2.2pre1-httpclient-3.0: Could not transfer artifact slide:jakarta-slide-webdavlib:pom:2.2pre1-httpclient-3.0 from/to 3rd-party-embedded (file://${project.basedir}/3rd-party/repository): Repository path /3rd-party/repository does not exist, and cannot be created. -> [Help 1]

I attempted to add it to my local repository using the file found at:

I used the same mvn install:install-file command you recommended above, but that doesn't appear to be working:

mvn install:install-file -Dfile=/usr/share/maven/repo/jakarta-slide-webdavlib-2.2pre1-httpclient-3.0.jar -DgroupId=slide -DartifactId=jakarta-slide-webdavlid -version=2.2pre1-httpclient-3.0

jakarta-slide-webdav appears to be an abandoned project, and while I did eventually find the version I was looking for, it wasn't in the official repo. Can I substitute a different version?

Thanks,

Matt Dukes

Matthew

unread,
Oct 4, 2016, 9:10:13 AM10/4/16
to uPortal Developers, mdd...@fsmail.bradley.edu
As it turns out, we aren't using the Calendar portlet (we have our own calendar webpage we link to instead).

Is there a way to optionally disable portlets so they won't be installed? 

thanks,

Matt Dukes

Aaron Grant

unread,
Oct 4, 2016, 9:31:15 AM10/4/16
to Matthew, uPortal Developers
Hi Matt,

I'd just comment out the ones I don't use in uportal-ear/pom.xml and uportal-portlet-overlay/pom.xml

Aaron

To unsubscribe from this group and stop receiving emails from it, send an email to uportal-dev+unsubscribe@apereo.org.



--
Aaron Grant
Senior Applications Architect
Oakland University - UTS

Matthew

unread,
Oct 4, 2016, 3:42:53 PM10/4/16
to uPortal Developers, mdd...@fsmail.bradley.edu
Commenting it out has gotten me considerably further in the process (thanks!).

However, I'm still running into issues (presumably with permissions?). When I run:

ant -Dmaven.test.skip=true deploy-ear -e

I get:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] uPortal Parent ..................................... SUCCESS [  1.393 s]
[INFO] uPortal Search API ................................. SUCCESS [  1.603 s]
[INFO] uPortal WAR ........................................ SUCCESS [ 40.585 s]
[INFO] uPortal Portlets ................................... SUCCESS [  0.500 s]
[INFO] Announcements Portlet .............................. SUCCESS [  4.006 s]
[INFO] Bookmarks Portlet .................................. SUCCESS [  1.567 s]
[INFO] CAS Proxy Test Portlet ............................. SUCCESS [  0.561 s]
[INFO] Email Preview Portlet .............................. SUCCESS [  3.622 s]
[INFO] Functional Tests Portlet ........................... SUCCESS [  1.026 s]
[INFO] Jasig Widget Portlets .............................. SUCCESS [  2.046 s]
[INFO] Pluto Test Suite Portlet ........................... SUCCESS [  0.301 s]
[INFO] News Reader Portlet ................................ SUCCESS [  3.038 s]
[INFO] Simple Content Portlet ............................. SUCCESS [  7.179 s]
[INFO] Weather Portlet .................................... SUCCESS [  1.532 s]
[INFO] Web Proxy Portlet .................................. SUCCESS [  1.068 s]
[INFO] uPortal EAR ........................................ SUCCESS [  3.855 s]
[INFO] uPortal Bootstrap Utilities ........................ SUCCESS [  0.298 s]
[INFO] Bootstrap - HSQLDB Dependencies .................... SUCCESS [  0.287 s]
[INFO] Bootstrap - Pluto Assembler Dependencies ........... SUCCESS [  0.193 s]
[INFO] Bootstrap - Ant Tasks Dependencies ................. SUCCESS [  0.256 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:16 min
[INFO] Finished at: 2016-10-04T13:41:35-05:00
[INFO] Final Memory: 83M/302M
[INFO] ------------------------------------------------------------------------
Artifact '/home/mddukes/mybu/mybu4/TRUNK/uportal-ear/target/MyBU.ear' is up-to-date
[INFO] Installing /home/mddukes/mybu/mybu4/TRUNK/uportal-ear/target/MyBU.ear to /home/mddukes/.m2/repository/org/jasig/portal/uportal-ear/4.0.15/uportal-ear-4.0.15.ear
   extractWars=true
removeExisting=true
   cleanShared=false
Oct 04, 2016 1:41:39 PM org.jasig.portal.tools.deployer.tomcat.TomcatEarDeployer extractWar
INFO: Extracting EAR entry '/home/mddukes/mybu/mybu4/TRUNK/uportal-ear/target/MyBU.ear!MyBU.war' to '/usr/local/tomcat/webapps/MyBU'

BUILD FAILED
/home/mddukes/mybu/mybu4/TRUNK/build.xml:634: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1405: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1340: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1313: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1316: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1343: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1406: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1374: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1409: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:657: java.io.IOException: Unable to create directory /usr/local/tomcat/webapps/MyBU
        at org.apache.commons.io.FileUtils.forceMkdir(FileUtils.java:2384)
        at org.jasig.portal.tools.deployer.AbstractEarDeployer.extractWar(AbstractEarDeployer.java:313)
        at org.jasig.portal.tools.deployer.tomcat.TomcatEarDeployer.deployWar(TomcatEarDeployer.java:53)
        at org.jasig.portal.tools.deployer.tomcat.TomcatEarDeployer.deployWar(TomcatEarDeployer.java:23)
        at org.jasig.portal.tools.deployer.AbstractEarDeployer.deployEar(AbstractEarDeployer.java:73)
<plus about 50 more lines of stack trace that I'll post if helpful>    

When I create the directory it's asking for, I get this:

BUILD FAILED
/home/mddukes/mybu/mybu4/TRUNK/build.xml:634: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1405: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1340: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1313: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1316: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1343: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1406: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1374: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1409: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:657: java.io.IOException: Unable to delete directory /usr/local/tomcat/webapps/MyBU.
        at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1541)
        at org.jasig.portal.tools.deployer.tomcat.TomcatEarDeployer.deployWar(TomcatEarDeployer.java:47)
        at org.jasig.portal.tools.deployer.tomcat.TomcatEarDeployer.deployWar(TomcatEarDeployer.java:23)
        at org.jasig.portal.tools.deployer.AbstractEarDeployer.deployEar(AbstractEarDeployer.java:73)
        at org.jasig.portal.ant.deploy.TomcatEarDeployerTask.execute(TomcatEarDeployerTask.java:109)
<plus about 50 more lines of stack trace that I'll post if helpful>    

When I chmod the entirety of /usr/local/tomcat/webapps to 777 (not a permanent solution, I know):

/home/mddukes/mybu/mybu4/TRUNK/build.xml:657: java.io.FileNotFoundException: /usr/local/tomcat/shared/lib/pluto-container-api.jar (Permission denied)
        at java.io.FileOutputStream.open0(Native Method)
        at java.io.FileOutputStream.open(FileOutputStream.java:270)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
        at org.jasig.portal.tools.deployer.AbstractEarDeployer.copyAndClose(AbstractEarDeployer.java:280)
        at org.jasig.portal.tools.deployer.tomcat.TomcatEarDeployer.deployJar(TomcatEarDeployer.java:78)
        at org.jasig.portal.tools.deployer.tomcat.TomcatEarDeployer.deployJar(TomcatEarDeployer.java:23)
BUILD FAILED
/home/mddukes/mybu/mybu4/TRUNK/build.xml:634: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1405: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1340: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1313: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1316: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1343: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1406: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1374: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:1409: The following error occurred while executing this line:
/home/mddukes/mybu/mybu4/TRUNK/build.xml:657: java.io.IOException: Unable to delete directory /usr/local/tomcat/webapps/MyBU.
        at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1541)
        at org.jasig.portal.tools.deployer.tomcat.TomcatEarDeployer.deployWar(TomcatEarDeployer.java:47)
        at org.jasig.portal.tools.deployer.tomcat.TomcatEarDeployer.deployWar(TomcatEarDeployer.java:23)
        at org.jasig.portal.tools.deployer.AbstractEarDeployer.deployEar(AbstractEarDeployer.java:73)
        at org.jasig.portal.ant.deploy.TomcatEarDeployerTask.execute(TomcatEarDeployerTask.java:109)
<plus about 50 more lines of stack trace that I'll post if helpful>    


I'm missing something here. I'm not sure what it's trying to do (remove the directory so it can create a new one?), and I don't understand why setting the permissions wouldn't work.
Any ideas?

Thanks,

Matt Dukes


Matthew Dukes

unread,
Oct 4, 2016, 5:26:39 PM10/4/16
to uPortal Developers
You're quite right, I missed that. I have it successfully installed now, but I need to configure Apache to see it in use. I'll write back if I have any more issues. Thanks so much for the help!

Matt Dukes

On Tue, Oct 4, 2016 at 3:45 PM, Aaron Grant <asg...@oakland.edu> wrote:
Well it appears it is writing information to /usr/local/tomcat/share/lib not /usr/local/tomcat/webapps, so this is why your 777 didn't fix the issue.

Do you have a directory share/lib and if so, does it match the user and group that you are compiling the code? 

To unsubscribe from this group and stop receiving emails from it, send an email to uportal-dev+unsubscribe@apereo.org.



--
Aaron Grant
Senior Applications Architect
Oakland University - UTS




--
Matt Dukes
IRT
Bradley University

Matthew

unread,
Oct 6, 2016, 4:48:51 PM10/6/16
to uPortal Developers
Hello again. I'm still having some issues. I'm getting errors in catalina.out from several portlets, the end result being that I can't bring up the portlet in the browser.

I'm not getting the same errors from all of them, so I'll list a few and hopefully be able to find some common threads.

Any help would be greatly appreciated. Thanks!

Matt Dukes

WebProxyPortlet
--------------------------------------
catalina,out shows:

INFO: Deploying web application directory /var/lib/tomcat8/webapps/WebProxyPortlet
Oct 04, 2016 1:02:40 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Oct 04, 2016 1:02:40 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
Oct 04, 2016 1:02:40 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/WebProxyPortlet] startup failed due to previous errors
Oct 04, 2016 1:02:40 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /var/lib/tomcat8/webapps/WebProxyPortlet has finished in 3,570 ms


WebProxyPortlet.log shows this:

 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader.[] 2016-10-06 09:43:49,019
 - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationCo
ntext.xml]
ERROR [localhost-startStop-1] context.ContextLoader.[] 2016-10-06 09:43:49,405 - Con
text initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception
 parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]
; nested exception is java.lang.IllegalStateException: AnnotationTransactionAttribut
eSource is only available on Java 1.5 and higher
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanD
efinitions(XmlBeanDefinitionReader.java:420)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDef
initions(XmlBeanDefinitionReader.java:342)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDef
initions(XmlBeanDefinitionReader.java:310)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.lo
adBeanDefinitions(AbstractBeanDefinitionReader.java:143)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.lo
adBeanDefinitions(AbstractBeanDefinitionReader.java:178)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.lo
adBeanDefinitions(AbstractBeanDefinitionReader.java:149)
        at org.springframework.web.context.support.XmlWebApplicationContext.loadBean
Definitions(XmlWebApplicationContext.java:124)
        at org.springframework.web.context.support.XmlWebApplicationContext.loadBean
Definitions(XmlWebApplicationContext.java:92)
        at org.springframework.context.support.AbstractRefreshableApplicationContext
.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
        at org.springframework.context.support.AbstractApplicationContext.obtainFres
hBeanFactory(AbstractApplicationContext.java:422)
        at org.springframework.context.support.AbstractApplicationContext.refresh(Ab
stractApplicationContext.java:352)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext
(ContextLoader.java:255)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(C
ontextLoader.java:199)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(
ContextLoaderListener.java:45)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.ja
va:4812)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.ja
va:5255)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.jav
a:725)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:10
91)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.jaa:1830)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: AnnotationTransactionAttributeSource is only available on Java 1.5 and higher
        at org.springframework.transaction.config.TxNamespaceUtils.getAnnotationTransactionAttributeSourceClass(TxNamespaceUtils.java:43)
        at org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser$AopAutoProxyConfigurer.configureAutoProxyCreator(AnnotationDrivenBeanDefinitionParser.java:115)
        at org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser.parse(AnnotationDrivenBeanDefinitionParser.java:80)
        at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)
        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1297)
        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1287)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
        ... 26 more
 INFO [localhost-startStop-1] context.ContextLoader.[] 2016-10-06 10:50:56,322 - Root WebApplicationContext: initialization started
 INFO [localhost-startStop-1] support.XmlWebApplicationContext.[] 2016-10-06 10:50:56,355 - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@295f3b39: display name [Root WebApplicationContext]; startup date [Thu Oct 06 10:50:56 CDT 2016]; root of context hierarchy
 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader.[] 2016-10-06 10:50:56,403 - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
ERROR [localhost-startStop-1] context.ContextLoader.[] 2016-10-06 10:50:56,935 - Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.IllegalStateException: AnnotationTransactionAttributeSource is only available on Java 1.5 and higher
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
        at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
        at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
        at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
        at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1091)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1830)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: AnnotationTransactionAttributeSource is only available on Java 1.5 and higher
        at org.springframework.transaction.config.TxNamespaceUtils.getAnnotationTransactionAttributeSourceClass(TxNamespaceUtils.java:43)
        at org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser$AopAutoProxyConfigurer.configureAutoProxyCreator(AnnotationDrivenBeanDefinitionParser.java:115)
        at org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser.parse(AnnotationDrivenBeanDefinitionParser.java:80)
        at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)
        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1297)
        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1287)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
        ... 26 more
 INFO [localhost-startStop-1] context.ContextLoader.[] 2016-10-06 11:28:54,161 - Root WebApplicationContext: initialization started
 INFO [localhost-startStop-1] support.XmlWebApplicationContext.[] 2016-10-06 11:28:54,185 - Refreshing org.springframework.web.context.support.XmlWebApplicationContext@57719ee5: display name [Root WebApplicationContext]; startup date [Thu Oct 06 11:28:54 CDT 2016]; root of context hierarchy
 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader.[] 2016-10-06 11:28:54,242 - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
ERROR [localhost-startStop-1] context.ContextLoader.[] 2016-10-06 11:28:54,890 - Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.IllegalStateException: AnnotationTransactionAttributeSource is only available on Java 1.5 and higher
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
        at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
        at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
        at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
        at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1091)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1830)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: AnnotationTransactionAttributeSource is only available on Java 1.5 and higher
        at org.springframework.transaction.config.TxNamespaceUtils.getAnnotationTransactionAttributeSourceClass(TxNamespaceUtils.java:43)
        at org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser$AopAutoProxyConfigurer.configureAutoProxyCreator(AnnotationDrivenBeanDefinitionParser.java:115)
        at org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser.parse(AnnotationDrivenBeanDefinitionParser.java:80)
        at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)
        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1297)
        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1287)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)


NewsReaderPortlet
--------------------------------------

catalina.out

INFO: Deploying web application directory /var/lib/tomcat8/webapps/NewsReaderPortlet
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
Oct 06, 2016 3:25:39 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
Oct 06, 2016 3:25:39 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/NewsReaderPortlet] startup failed due to previous errors
Oct 06, 2016 3:25:39 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /var/lib/tomcat8/webapps/NewsReaderPortlet has finished in 3,930 ms

newsreader.log

org.springframework.beans.factory.BeanCreationException: Error creating bean with na
me 'org.jasig.portlet.newsreader.adapter.RomeAdapter' defined in ServletContext reso
urce [/WEB-INF/context/applicationContext.xml]: Initialization of bean failed; neste
d exception is java.lang.NoClassDefFoundError: javax/portlet/PortletRequest
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFact
ory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFact
ory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject
(AbstractBeanFactory.java:294)
tSingleton(DefaultSingletonBeanRegistry.java:225)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(A
bstractBeanFactory.java:291)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abs
tractBeanFactory.java:193)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preI
nstantiateSingletons(DefaultListableBeanFactory.java:607)
        at org.springframework.context.support.AbstractApplicationContext.finishBean
FactoryInitialization(AbstractApplicationContext.java:925)
        at org.springframework.context.support.AbstractApplicationContext.refresh(Ab
stractApplicationContext.java:472)
        at org.springframework.web.context.ContextLoader.configureAndRefreshWebAppli
cationContext(ContextLoader.java:388)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(C
ontextLoader.java:293)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(
ContextLoaderListener.java:111)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.ja
va:4812)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1091)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1830)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: javax/portlet/PortletRequest
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
        at java.lang.Class.privateGetPublicMethods(Class.java:2902)
        at java.lang.Class.privateGetPublicMethods(Class.java:2911)
        at java.lang.Class.getMethods(Class.java:1615)
at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1336)
        at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1197)
        at java.beans.Introspector.getBeanInfo(Introspector.java:426)
        at java.beans.Introspector.getBeanInfo(Introspector.java:173)
        at java.beans.Introspector.getBeanInfo(Introspector.java:260)
        at java.beans.Introspector.<init>(Introspector.java:407)
        at java.beans.Introspector.getBeanInfo(Introspector.java:173)
        at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:217)
        at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:142)
        at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:324)
        at org.springframework.beans.BeanWrapperImpl.getPropertyDescriptorInternal(BeanWrapperImpl.java:354)
        at org.springframework.beans.BeanWrapperImpl.isWritableProperty(BeanWrapperImpl.java:430)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1362)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
        ... 24 more
Caused by: java.lang.ClassNotFoundException: javax.portlet.PortletRequest
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1308)
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1142)
        ... 44 more



WeatherPortlet
---------------------------------------------

catalina.out

Oct 04, 2016 1:02:46 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat8/webapps/WeatherPortlet
Oct 04, 2016 1:02:47 PM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Oct 04, 2016 1:02:47 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
Oct 04, 2016 1:02:47 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/WeatherPortlet] startup failed due to previous errors
Oct 04, 2016 1:02:47 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /var/lib/tomcat8/webapps/WeatherPortlet has finished in 1,584 ms


WeatherPortlet.log

INFO  [localhost-startStop-1] o.s.b.f.xml.XmlBeanDefinitionReader 2016-10-06 15:25:4
2,968 - Loading XML bean definitions from ServletContext resource [/WEB-INF/context/
applicationContext.xml]
ERROR [localhost-startStop-1] o.s.web.context.ContextLoader 2016-10-06 15:25:43,001
- Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception
 parsing XML document from ServletContext resource [/WEB-INF/context/applicationCont
ext.xml]; nested exception is java.lang.IllegalStateException: Context namespace ele
ment 'annotation-config' and its parser class [org.springframework.context.annotatio
n.AnnotationConfigBeanDefinitionParser] are only available on JDK 1.5 and higher
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanD
efinitions(XmlBeanDefinitionReader.java:420) ~[spring-beans-2.5.6.SEC02.jar:2.5.6.SE
C02]
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDef
initions(XmlBeanDefinitionReader.java:342) ~[spring-beans-2.5.6.SEC02.jar:2.5.6.SEC0
2]
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDef
initions(XmlBeanDefinitionReader.java:310) ~[spring-beans-2.5.6.SEC02.jar:2.5.6.SEC0
2]
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.lo
adBeanDefinitions(AbstractBeanDefinitionReader.java:143) ~[spring-beans-2.5.6.SEC02.
jar:2.5.6.SEC02]
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.lo
adBeanDefinitions(AbstractBeanDefinitionReader.java:178) ~[spring-beans-2.5.6.SEC02.
jar:2.5.6.SEC02]
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) ~[spring-beans-2.5.6.SEC02.jar:2.5.6.SEC02]
        at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124) ~[spring-web-2.5.6.SEC02.jar:2.5.6.SEC02]
        at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92) ~[spring-web-2.5.6.SEC02.jar:2.5.6.SEC02]
        at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123) ~[spring-context-2.5.6.SEC02.jar:2.5.6.SEC02]
        at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422) ~[spring-context-2.5.6.SEC02.jar:2.5.6.SEC02]
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) ~[spring-context-2.5.6.SEC02.jar:2.5.6.SEC02]
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255) ~[spring-web-2.5.6.SEC02.jar:2.5.6.SEC02]
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199) ~[spring-web-2.5.6.SEC02.jar:2.5.6.SEC02]
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(
ContextLoaderListener.java:45) [spring-web-2.5.6.SEC02.jar:2.5.6.SEC02]
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812) [tomcat8-catalina-8.0.32.jar:8.0.32]
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255) [tomcat8-catalina-8.0.32.jar:8.0.32]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) [tomcat8-catalina-8.0.32.jar:8.0.32]
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) [tomcat8-catalina-8.0.32.jar:8.0.32]
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) [tomcat8-catalina-8.0.32.jar:8.0.32]
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) [tomcat8-catalina-8.0.32.jar:8.0.32]
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1091) [tomcat8-catalina-8.0.32.jar:8.0.32]
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1830) [tomcat8-catalina-8.0.32.jar:8.0.32]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_91]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_91]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_91]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_91]
        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_91]
Caused by: java.lang.IllegalStateException: Context namespace element 'annotation-config' and its parser class [org.springframework.context.annotation.AnnotationConfigBeanDefinitionParser] are only available on JDK 1.5 and higher
        at org.springframework.context.config.ContextNamespaceHandler$1.parse(ContextNamespaceHandler.java:65) ~[spring-context-2.5.6.SEC02.jar:2.5.6.SEC02]
        at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69) ~[spring-beans-2.5.6.SEC02.jar:2.5.6.SEC02]
        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1297) ~[spring-beans-2.5.6.SEC02.jar:2.5.6.SEC02]
        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1287) ~[spring-beans-2.5.6.SEC02.jar:2.5.6.SEC02]
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135) ~[spring-beans-2.5.6.SEC02.jar:2.5.6.SEC02]
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92) ~[spring-beans-2.5.6.SEC02.jar:2.5.6.SEC02]
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507) ~[spring-beans-2.5.6.SEC02.jar:2.5.6.SEC02]
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398) ~[spring-beans-2.5.6.SEC02.jar:2.5.6.SEC02]
        ... 26 common frames omitted






On Tuesday, October 4, 2016 at 4:26:39 PM UTC-5, Matthew wrote:
You're quite right, I missed that. I have it successfully installed now, but I need to configure Apache to see it in use. I'll write back if I have any more issues. Thanks so much for the help!

Matt Dukes
On Tue, Oct 4, 2016 at 3:45 PM, Aaron Grant wrote:
Well it appears it is writing information to /usr/local/tomcat/share/lib not /usr/local/tomcat/webapps, so this is why your 777 didn't fix the issue.

Do you have a directory share/lib and if so, does it match the user and group that you are compiling the code? 

Cris J Holdorph

unread,
Oct 6, 2016, 5:10:58 PM10/6/16
to uport...@apereo.org
I am not certain, but I find this one part very suspect.

"is only available on Java 1.5 and higher"

I know later versions of uPortal required later versions of Java. And
certainly Java 1.5 is VERY old. When you run the tomcat "startup"
program, it will normally print out information about the JVM being used.

For example:

Using CATALINA_BASE: /home/holdorph/projects/up/apache-tomcat-8.0.37
Using CATALINA_HOME: /home/holdorph/projects/up/apache-tomcat-8.0.37
Using CATALINA_TMPDIR: /home/holdorph/projects/up/apache-tomcat-8.0.37/temp
Using JRE_HOME: /usr/local/java
Using CLASSPATH:
/home/holdorph/projects/up/apache-tomcat-8.0.37/bin/bootstrap.jar:/home/holdorph/projects/up/apache-tomcat-8.0.37/bin/tomcat-juli.jar
-XX:InitialHeapSize=1073741824 -XX:MaxHeapSize=2147483648
-XX:+PrintCommandLineFlags -XX:+UseCompressedClassPointers
-XX:+UseCompressedOops -XX:+UseParallelGC

In my case you can see my the Java Home being used by Tomcat is:
"/usr/local/java". If I verify my shell is also set up to point to the
same Java home (JAVA_HOME environment variable and the same
JAVA_HOME/bin in your PATH), then I can run the "java -version" command
to verify the version of that JVM. For example:

holdorph@msu:~/projects/up$ java -version
java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)

I would double check the JAVA your tomcat is using and verify the
version of that JAVA.

---- Cris J H
> <http://org.apache.commons.io>.FileUtils.forceMkdir(FileUtils.java:2384)
> <http://org.apache.commons.io>.FileUtils.deleteDirectory(FileUtils.java:1541)
> at
> org.jasig.portal.tools.deployer.tomcat.TomcatEarDeployer.deployWar(TomcatEarDeployer.java:47)
> at
> org.jasig.portal.tools.deployer.tomcat.TomcatEarDeployer.deployWar(TomcatEarDeployer.java:23)
> at
> org.jasig.portal.tools.deployer.AbstractEarDeployer.deployEar(AbstractEarDeployer.java:73)
> at org.jasig.portal.ant.deploy.To
> <http://org.jasig.portal.ant.deploy.To>mcatEarDeployerTask.execute(TomcatEarDeployerTask.java:109)
> <http://org.apache.commons.io>.FileUtils.deleteDirectory(FileUtils.java:1541)
> at
> org.jasig.portal.tools.deployer.tomcat.TomcatEarDeployer.deployWar(TomcatEarDeployer.java:47)
> at
> org.jasig.portal.tools.deployer.tomcat.TomcatEarDeployer.deployWar(TomcatEarDeployer.java:23)
> at
> org.jasig.portal.tools.deployer.AbstractEarDeployer.deployEar(AbstractEarDeployer.java:73)
> at org.jasig.portal.ant.deploy.To
> <http://org.jasig.portal.ant.deploy.To>mcatEarDeployerTask.execute(TomcatEarDeployerTask.java:109)
>> <https://groups.google.com/a/apereo.org/group/uportal-dev/>.
>
> --
> You received this message because you are subscribed
> to the Google Groups "uPortal Developers" group.
> To unsubscribe from this group and stop receiving
> emails from it, send an email to
> uportal-dev...@apereo.org.
> Visit this group at
> https://groups.google.com/a/apereo.org/group/uportal-dev/
> <https://groups.google.com/a/apereo.org/group/uportal-dev/>.
>
>
>
>
> --
> Aaron Grant
> Senior Applications Architect
> Oakland University - UTS <http://oakland.edu/uts>
>
> --
> You received this message because you are subscribed to the
> Google Groups "uPortal Developers" group.
> To unsubscribe from this group and stop receiving emails
> from it, send an email to uportal-dev...@apereo.org
> <mailto:uportal-dev...@apereo.org>.
> <https://groups.google.com/a/apereo.org/group/uportal-dev/>.
>
>
>
>
> --
> Aaron Grant
> Senior Applications Architect
> Oakland University - UTS <http://oakland.edu/uts>
>
>
>
>
> --
> Matt Dukes
> IRT
> Bradley University
> 309-677-3800
>
> --
> You received this message because you are subscribed to the Google
> Groups "uPortal Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to uportal-dev...@apereo.org
> <mailto:uportal-dev...@apereo.org>.

Matthew

unread,
Oct 6, 2016, 5:14:45 PM10/6/16
to uPortal Developers
That is weird. I am currently running java-8-openjdk-amd64. 

I start tomcat 8 using the command: 

service tomcat8 start

How do I see the information you just talked about?

Thanks,

Matt Dukes
>                         [ERROR] Failed to execute goal...

Cris J Holdorph

unread,
Oct 6, 2016, 5:23:19 PM10/6/16
to uport...@apereo.org
Not sure. I don't run my tomcat with the OS distribution of tomcat. I
use a tomcat I downloaded myself. And I see the output I mention by
using the tomcat "startup.sh" script in the tomcat bin/ directory. You
might want to google/research how the JDK is configured for the OS
distribution you're using. In general you run into all kinds of
difficulties by using container installed tomcats, because they
restrict/hide all of the configuration from you.

---- Cris J H
> <http://org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.ge>
> > ~[spring-beans-2.5.6.SEC02.jar:2.5.6.SE <http://2.5.6.SE>
> > <http://org.jasig.portal.ant.deploy.To
> > <http://org.jasig.portal.ant.deploy.To

Matthew

unread,
Oct 7, 2016, 3:43:23 PM10/7/16
to uPortal Developers

At your suggestion, I switched from tomcat 8 installed via apt-get to a manual install of tomcat 7.0.72. 

I still get errors, and cannot load uPortal, but they are different now:


ERROR [localhost-startStop-2] context.ContextLoader.[] 2016-10-07 10:24:31,733 - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customEditorConfigurer' defined in file [/usr/local/apache-tomcat-7.0.72/webapps/MyBU/WEB-INF/classes/properties/contexts/applicationContext.xml]: Cannot resolve reference to bean 'portalPropertyEditorRegistrar' while setting bean property 'propertyEditorRegistrars' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'portalPropertyEditorRegistrar' defined in file [/usr/local/apache-tomcat-7.0.72/webapps/MyBU/WEB-INF/classes/properties/contexts/applicationContext.xml]: Error converting typed String value for bean property 'propertyEditors'; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Class'; nested exception is java.lang.IllegalArgumentException: Cannot find class [javax.portlet.PortletMode]
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessa
ry(BeanDefinitionValueResolver.java:107)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(Be
anDefinitionValueResolver.java:354)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessa
ry(BeanDefinitionValueResolver.java:154)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyV
alues(AbstractAutowireCapableBeanFactory.java:1360)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(A
bstractAutowireCapableBeanFactory.java:1118)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1109)
        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:667)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:454)
        at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:388)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:293)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1260)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2002)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'portalPropertyEditorRegistrar' defined in file [/usr/local/apache-tomcat-7.0.72/webapps/MyBU/WEB-INF/classes/properties/contexts/applicationContext.xml]: Error converting typed String value for bean property 'propertyEditors'; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Class'; nested exception is java.lang.IllegalArgumentException: Cannot find class [javax.portlet.PortletMode]
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:195)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:378)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:162)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:323)
        ... 30 more
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Class'; nested exception is java.lang.IllegalArgumentException: Cannot find class [javax.portlet.PortletMode]
        at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:463)
        at org.springframework.beans.AbstractPropertyAccessor.convertIfNecessary(AbstractPropertyAccessor.java:107)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:187)
        ... 41 more
Caused by: java.lang.IllegalArgumentException: Cannot find class [javax.portlet.PortletMode]
        at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:294)
        at org.springframework.beans.propertyeditors.ClassEditor.setAsText(ClassEditor.java:63)
        at org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:435)
        at org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:407)
        at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:164)
        at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:93)
        at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:451)
        ... 43 more
Caused by: java.lang.ClassNotFoundException: javax.portlet.PortletMode
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1892)
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735)
        at org.springframework.util.ClassUtils.forName(ClassUtils.java:258)
        at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:291)
        ... 49 more


In /usr/local/apache-tomcat-7.0.72/webapps/MyBU/WEB-INF/classes/properties/contexts/applicationContext.xml - I can see the reference to portalPropertyEditorRegistrar it's referring to, but I don't know what specifically this error is referring to. 

 <property name="propertyEditorRegistrars">
            <list>
                <ref bean="portalPropertyEditorRegistrar"/>
            </list>
        </property>


Any ideas?

Thanks,

Matt Dukes


>     >             error occur...

Matthew

unread,
Oct 7, 2016, 5:53:34 PM10/7/16
to uPortal Developers
I'm not sure if this will help, but I found errors occurring earlier in catalina,out than I originally thought:

Oct 07, 2016 10:23:47 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
Oct 07, 2016 10:23:47 AM org.apache.catalina.session.PersistentManagerBase startInternal
SEVERE: No Store configured, persistence disabled
Oct 07, 2016 10:23:47 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/Announcements] startup failed due to previous errors
Oct 07, 2016 10:23:47 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
SEVERE: The web application [/Announcements] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

Which log file is it referring to in second line of output? I didn't find any for org.apache.catalina.core.StandardContext.

Thanks,

Matt Dukes
...

Matthew Dukes

unread,
Oct 7, 2016, 5:54:48 PM10/7/16
to uPortal Developers
sorry, the directory containing these logs was /usr/local/apache-tomcat-7.0.72/logs

thanks,
Matt Dukes

--
You received this message because you are subscribed to the Google Groups "uPortal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uportal-dev+unsubscribe@apereo.org.

Matthew

unread,
Oct 10, 2016, 1:44:15 PM10/10/16
to uPortal Developers
I'm still having issues with uPortal 4. I changed to Tomcat 7 and moved to Java 1.6 (at holdorph's request).

Now, I am getting the following error in catalina.out:

Oct 10, 2016 10:05:34 AM org.apache.catalina.startup.HostConfig undeploy
INFO: Undeploying context [/MyBU]
Oct 10, 2016 10:05:35 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/local/apache-tomcat-7.0.72/webapps/MyBU
Oct 10, 2016 10:05:35 AM org.apache.catalina.startup.SetContextPropertiesRule begin
WARNING: [SetContextPropertiesRule]{Context} Setting property 'disableURLRewriting' to 'true' did not find a matching property.
Oct 10, 2016 10:05:35 AM org.apache.catalina.loader.WebappClassLoaderBase loadClass
INFO: Illegal access: this web application instance has been stopped already.  Could not load org.apache.log4j.DailyRollingFileAppender.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1777)
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735)
        at org.apache.log4j.helpers.Loader.loadClass(Loader.java:185)
        at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:327)
        at org.apache.log4j.helpers.OptionConverter.instantiateByKey(OptionConverter.java:124)
        at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:785)
        at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
        at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648)
        at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514)
        at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:395)
        at org.apache.log4j.PropertyWatchdog.doOnChange(PropertyConfigurator.java:955)
        at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileWatchdog.java:89)
        at org.apache.log4j.helpers.FileWatchdog.run(FileWatchdog.java:108)


I'm not sure where to go from here, so I'm crawling the logs hoping to find something. Any idea where to look?

Thanks,

Matt Dukes

On Friday, October 7, 2016 at 4:54:48 PM UTC-5, Matthew wrote:
sorry, the directory containing these logs was /usr/local/apache-tomcat-7.0.72/logs

thanks,
Matt Dukes
...

Benito J. Gonzalez

unread,
Oct 10, 2016, 2:06:05 PM10/10/16
to uport...@apereo.org
Hi Matt,

That error looks like you may not have configured Tomcat. Did you follow
the steps in the uPortal manual?

Since I now consult for several uPortal institutions, I have created a
repo with setup scripts to quickly build out a new uPortal instance. It
is not intended for someone new, but you may be able to glean something
useful from reviewing it.

https://github.com/bjagg/uportal-setup-scripts

It has a script specifically to make changes to Tomcat as specificed in
the manual.

Best,
-bjagg
> <http://org.springframework.context.su>pport.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1109)
> at org.springframework.context.su
> <http://org.springframework.context.su>pport.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:667)
> at org.springframework.context.su
> <http://org.springframework.context.su>pport.AbstractApplicationContext.refresh(AbstractApplicationContext.java:454)
> <http://org.springframework.context.su>pport.AbstractRefreshableApplicationContext
>
> >
> > >
> .refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
>
> > > at
> > >
> > org.springframework.context.su
> <http://org.springframework.context.su>pport.AbstractApplicationContext.obtainFres
>
> >
> > > hBeanFactory(AbstractApplicationContext.java:422)
> > > at
> > >
> > org.springframework.context.su
> <http://org.springframework.context.su>pport.AbstractApplicationContext.refresh(Ab
> <http://org.springframework.context.su>pport.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
>
> >
> > > at
> > >
> > org.springframework.context.su
> <http://org.springframework.context.su>pport.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
>
> >
> > > at
> > >
> > org.springframework.context.su
> <http://org.springframework.context.su>pport.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
> <http://org.springframework.context.su>pport.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
>
> >
> > > at
> > >
> > org.springframework.context.su
> <http://org.springframework.context.su>pport.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
>
> >
> > > at
> > >
> > org.springframework.context.su
> <http://org.springframework.context.su>pport.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
> <http://org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.ge>
>
> >
> <http://org.springframework.beans.factory.support.DefaultSingle
> <http://org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.ge>
>
> ...
>
> --
> You received this message because you are subscribed to the Google
> Groups "uPortal Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to uportal-dev...@apereo.org
> <mailto:uportal-dev...@apereo.org>.
Benito J. Gonzalez
Software Developer
Unicon, Inc.
Voice: 480.558.2360
Text: 209.777.2754
Email: bgon...@unicon.net
GitHub: bjagg
GitLab: bjagg
BitBucket: bjagg

Cris J Holdorph

unread,
Oct 11, 2016, 12:03:07 PM10/11/16
to uport...@apereo.org
I was not trying to suggest Java 1.6, I was trying to say you should
determine what was being used, because different versions of uPortal
required different minimum versions of Java. Someone else might better
remember then me, what the best Java (JDK) / Tomcat versions to use with
uPortal 3.2.4 are.

But as was said in another email, the errors you're posting about seem
to now suggest a configuration error. In particular one of the messages
you sent had this error:

"Failed to convert value of type 'java.lang.String' to required type
'java.lang.Class'; nested exception is
java.lang.IllegalArgumentException: Cannot find class
[javax.portlet.PortletMode]"

I recently encountered that error in a new install and it was because I
had forgotten to set the "shared.loader" property in the
catalina.properties file of Tomcat. In the uPortal 4.3 manual this is
documented in the "Configuring Tomcat for uPortal section" on this page:

https://wiki.jasig.org/display/UPM43/Installing+Tomcat

A somewhat simpler article that covers a lot of the same material (for
installing uPortal) can be found here:

https://www.unicon.net/about/articles/build-install-run-uportal-41

---- Cris J H

On 10/10/2016 10:44 AM, Matthew wrote:
> at org.springframework.context.su
> <http://org.springframework.context.su>pport.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1109)
> at org.springframework.context.su
> <http://org.springframework.context.su>pport.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:667)
> at org.springframework.context.su
> <http://org.springframework.context.su>pport.AbstractApplicationContext.refresh(AbstractApplicationContext.java:454)
> > org.springframework.context.su
> <http://org.springframework.context.su>pport.AbstractRefreshableApplicationContext
>
> >
> > >
> .refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
>
> > > at
> > >
> > org.springframework.context.su
> <http://org.springframework.context.su>pport.AbstractApplicationContext.obtainFres
>
> >
> > > hBeanFactory(AbstractApplicationContext.java:422)
> > > at
> > >
> > org.springframework.context.su
> <http://org.springframework.context.su>pport.AbstractApplicationContext.refresh(Ab
>
> >
> > org.springframework.context.su
> <http://org.springframework.context.su>pport.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
>
> >
> > > at
> > >
> > org.springframework.context.su
> <http://org.springframework.context.su>pport.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
>
> >
> > > at
> > >
> > org.springframework.context.su
> <http://org.springframework.context.su>pport.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
> > org.springframework.context.su
> <http://org.springframework.context.su>pport.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
>
> >
> > > at
> > >
> > org.springframework.context.su
> <http://org.springframework.context.su>pport.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
>
> >
> > > at
> > >
> > org.springframework.context.su
> <http://org.springframework.context.su>pport.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
> ...
>
> --
> You received this message because you are subscribed to the Google
> Groups "uPortal Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to uportal-dev...@apereo.org
> <mailto:uportal-dev...@apereo.org>.

Pascal Rigaux

unread,
Oct 11, 2016, 2:06:18 PM10/11/16
to uport...@apereo.org
Cris J Holdorph <hold...@unicon.net> a écrit :

> I was not trying to suggest Java 1.6, I was trying to say you should
> determine what was being used, because different versions of uPortal
> required different minimum versions of Java. Someone else might
> better remember then me, what the best Java (JDK) / Tomcat versions
> to use with uPortal 3.2.4 are.

Working great here with OpenJDK 7 & tomcat 6.

(still having old version for a iChannel app...)

Matthew

unread,
Oct 12, 2016, 2:39:35 PM10/12/16
to uPortal Developers
Let me back up one second here, just so you know what you're dealing with. This isn't a brand new installation of uPortal I'm trying to install. My predecessor, who is no longer here, set up uPortal 4.0 in production and saved a copy into our subversion repository. I'm the first to try getting it back out again. We have a lot of customization in place (though I think it's primarily cosmetic), and some custom channels. Upgrading to a more current version is in our plans, but for right now, this is intended as a backup of our production portal.

So, with that in mind:

I'm using uPortal version 4.0, not 3.2.4. (Though I only mentioned it once when told to check my version after someone told me some property was only in 4+).
I'm also (now) using Java 1.6 and Tomcat 7. The operating system is Ubuntu 16.04. I can list other versions of installed software as needed.


I checked the shared.loader property in catalina.properties, and it matched what was suggested in https://www.unicon.net/about/articles/build-install-run-uportal-41

shared.loader=${catalina.base}/shared/lib/*.jar

I also went through the steps in https://wiki.jasig.org/display/UPM40/Installing+Tomcat and made my settings align with what they suggested. I'd be happy to list any relevant settings off if you think it would help.


As we've already got a version of the portal set up, I don't use the steps in https://www.unicon.net/about/articles/build-install-run-uportal-41 about downloading and deploying the portal. Instead, I use the copy we have set up in our Subversion archive (yes, I want to switch to Git too, but that wasn't what we had installed when I arrived :) ).

I have this downloaded and deployed in 

/usr/local/apache-tomcat-7.0.72/webapps/MyBU .


Since the changes I made to my configuration, I'm not getting the errors I was before. 

catalina.out now shows about 50 iterations of this (the names in brackets change):
-------------------------------------------------------------------
GMS: address=beth-24174, cluster=uPortal.cacheManager, physical address=fe80:0:0:0:250:56ff:fea2:7288
%ens160:33490
-------------------------------------------------------------------
Oct 12, 2016 10:57:03 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more listeners failed to start. Full details will be found in the appropriate containe
r log file
Oct 12, 2016 10:57:03 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/MyBU] startup failed due to previous errors
Oct 12, 2016 10:57:04 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
SEVERE: The web application [/MyBU] registered the JDBC driver [org.postgresql.Driver] but failed to
unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has bee
n forcibly unregistered.
Oct 12, 2016 10:57:04 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
SEVERE: The web application [/MyBU] appears to have started a thread named [FileWatchdog] but has fai
led to stop it. This is very likely to create a memory leak.
Oct 12, 2016 10:57:04 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
SEVERE: The web application [/MyBU] appears to have started a thread named [metrics-meter-tick-thread
-1] but has failed to stop it. This is very likely to create a memory leak.



uportal.log now gives me this error:

ERROR [http-bio-8080-exec-2] context.ContextLoader.[] 2016-10-12 10:57:03,975 - Cont
ext initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with na
me 'versionVerifier' defined in file [/usr/local/apache-tomcat-7.0.72/webapps/MyBU/W
EB-INF/classes/org/jasig/portal/version/VersionVerifier.class]: Invocation of init m
ethod failed; nested exception is javax.persistence.PersistenceException: org.hibern
ate.exception.SQLGrammarException: ERROR: relation "up_version" does not exist
  Position: 120
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFact
(more stack trace follows that I'll post if necessary)



I had run:

ant initdb 

when I first tried to deploy (which worked without error). I'm not sure what "up_version" is or why it wouldn't have been created.

Any ideas? 

Thanks,

Matt Dukes

Drew Wills

unread,
Oct 12, 2016, 2:45:00 PM10/12/16
to Matthew, uPortal Developers

On Oct 12, 2016, at 11:39 AM, Matthew <mdd...@fsmail.bradley.edu> wrote:
I had run:
ant initdb 
when I first tried to deploy (which worked without error). I'm not sure what "up_version" is or why it wouldn't have been created.
Any ideas? 

Are you using the bundled HSQL database?  Is it started?

Can you run $ant dbtest?

drew

Drew Wills

unread,
Oct 12, 2016, 3:13:38 PM10/12/16
to Matthew Dukes, uPortal Developers
Well, “up_version” is a table in the portal database.  I can see it in mine — there are 3 rows.

Do you have it?  (FWIW I don’t imagine this table is special… if you don’t have it, there is some systemic issue that is bigger than this table.)

drew

On Oct 12, 2016, at 11:49 AM, Matthew Dukes <mdd...@fsmail.bradley.edu> wrote:

I'm using postgresql, which is hosted on the same server as the portal. 

I did run ant dbtest (from the directory I deployed from), and it ran successfully. 

Matthew Dukes

unread,
Oct 12, 2016, 3:31:00 PM10/12/16
to Drew Wills, uPortal Developers
This is what I have when I login to the database:

uPortal4=# \d
                    List of relations
 Schema |          Name           |   Type   |   Owner
--------+-------------------------+----------+-----------
 public | admins                  | table    | developer
 public | announcement            | table    | developer
 public | announcement_attachment | table    | developer
 public | audience                | table    | developer
 public | authors                 | table    | developer
 public | bookmark_prefs          | table    | developer
 public | bookmark_store          | table    | developer
 public | hibernate_sequence      | sequence | developer
 public | moderators              | table    | developer
 public | news_configuration      | table    | developer
 public | news_definition         | table    | developer
 public | news_parameter          | table    | developer
 public | news_preference         | table    | developer
 public | news_role               | table    | developer
 public | news_set                | table    | developer
 public | subscription            | table    | developer
 public | topic                   | table    | developer
(17 rows)


Is this where I should be looking? 

Drew Wills

unread,
Oct 12, 2016, 3:33:10 PM10/12/16
to Matthew Dukes, uPortal Developers
I *imagine* it’s where you should be looking.

You do not have any uPortal tables — only some tables for portlets.

drew

Matthew

unread,
Oct 12, 2016, 4:26:41 PM10/12/16
to uPortal Developers, mdd...@fsmail.bradley.edu
OK, well at least I know why the portal isn't running. :)

I checked in /usr/local/apache-tomcat-7.0.72/webapps/MyBU/WEB-INF/classes to see if the file structures looked similar to our production instance. It does, so my guess is that it simply didn't run what it needed to to init the database.

I ran ant initportal again, and it fails with the following error:

 [exec] Running org.jasig.portal.events.JacksonPortalEventTest
     [exec] --LoginEvent  at 2016-10-12T19:37:29.868Z for system
     [exec] --LoginEvent  at 2016-10-12T19:37:29.974Z for system
     [exec] --LogoutEvent at 2016-10-12T19:37:29.983Z for system
     [exec] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.226 sec <<< FAILURE! - in org.jasig.portal.events.JacksonPortalEventTest


Previously, they had me running ant with -Dmaven.test.skip=true in order to skip over the error this causes. However, this is for the Calendar portlet (I think), which had issues. Our portal doesn't use this portlet (we have a different calendar page).  Is there a way to disable the installation of one portlet?

Even if we can, will this cause the ant script to create the uportal database and tables? I'm surprised that it didn't do that first.

Thanks,

Matt Dukes

Drew Wills

unread,
Oct 12, 2016, 4:49:03 PM10/12/16
to Matthew, uPortal Developers

On Oct 12, 2016, at 1:26 PM, Matthew <mdd...@fsmail.bradley.edu> wrote:

Is there a way to disable the installation of one portlet?

Comment-out the portlet in…

  - uportal-portlets-overlay/pom.xml;  and
  - uportal-ear/pom.xml

drew

Matthew

unread,
Oct 13, 2016, 10:39:31 AM10/13/16
to uPortal Developers, mdd...@fsmail.bradley.edu
I've done this. However, I still get this error when I run:
ant initportal

 [exec] Running org.jasig.portal.events.JacksonPortalEventTest
     [exec] --LoginEvent  at 2016-10-13T14:22:37.442Z for system
     [exec] --LoginEvent  at 2016-10-13T14:22:37.528Z for system
     [exec] --LogoutEvent at 2016-10-13T14:22:37.531Z for system
     [exec] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.154 sec <<< FAILURE! - in org.jasig.portal.events.JacksonPortalEventTest

and at the end of the output:

 [exec]
     [exec] Results :
     [exec]
     [exec] Failed tests:
     [exec]   JacksonPortalEventTest.testPortalEventSerialization:79->assertEventJsonEquals:164 expected:<..."system","groups":["[Student","Employee]"],"attributes":{"us...> but was:<..."system","groups":["[Employee","Student]"],"attributes":{"us...>
     [exec]
     [exec] Tests run: 458, Failures: 1, Errors: 0, Skipped: 5
     [exec]
     [exec] [INFO] ------------------------------------------------------------------------
     [exec] [INFO] Reactor Summary:
     [exec] [INFO]
     [exec] [INFO] uPortal Parent ..................................... SUCCESS [  1.476 s]
     [exec] [INFO] uPortal Search API ................................. SUCCESS [  1.526 s]
     [exec] [INFO] uPortal WAR ........................................ FAILURE [01:41 min]
     [exec] [INFO] uPortal Portlets ................................... SKIPPED

I was under the impression that this was a problem with the CalendarPortlet. However, I have that commented out of  uportal-portlets-overlay/pom.xml and uportal-ear/pom.xml

Is there something else I need to uncomment here? Or is this test critical? I'm concerned that it's dying before it gets to the part where it creates the tables for uportal.

thanks,

Matt Dukes

Drew Wills

unread,
Oct 13, 2016, 4:11:25 PM10/13/16
to Matthew, uPortal Developers
Mathew,

I suspect if you look a little higher than this...

On Oct 13, 2016, at 7:39 AM, Matthew <mdd...@fsmail.bradley.edu> wrote:

     [exec] Failed tests:
     [exec]   JacksonPortalEventTest.testPortalEventSerialization:79->assertEventJsonEquals:164 expected:<..."system","groups":["[Student","Employee]"],"attributes":{"us...> but was:<..."system","groups":["[Employee","Student]"],"attributes":{"us...>
     [exec]
     [exec] Tests run: 458, Failures: 1, Errors: 0, Skipped: 5

you may see a much larger (and more detailed) account of the error.

If not, that report may be in uportal-war/target/surefire-reports/.

I don’t think it’s the CalendarPortlet — I think that’s uPortal.

You can try with '-Dmaven.test.skip=true’ to get past it for the present.

drew

Matthew

unread,
Oct 13, 2016, 4:44:49 PM10/13/16
to uPortal Developers, mdd...@fsmail.bradley.edu
Since it was the only test failing, I commented out the testPortalEventSerialization test in JacksonPortalEventTest. I'm not crazy about doing that, but given that I was told it's used with the Calendar portlet (which we don't use), I thought it safe enough.

That got me significantly further into the process, but now it fails here.

     [java] Exception in thread "main" java.lang.RuntimeException: data-import from /home/mddukes/mybu/mybu4/TRUNK/uportal-war/src/main/data/default_entities failed
     [java]     at org.jasig.portal.shell.PortalShellBuildHelperImpl.dataImport(PortalShellBuildHelperImpl.java:305)
     [java]     at org.jasig.portal.shell.PortalShellBuildHelper$dataImport.call(Unknown Source)
     [java]     at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
     [java]     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
     [java]     at upshell_505931628.run(upshell_505931628.groovy:56)
     [java]     at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:257)
     [java]     at groovy.lang.GroovyShell.run(GroovyShell.java:220)
     [java]     at org.jasig.portal.shell.PortalShell.main(PortalShell.java:86)
     [java] Caused by: java.lang.RuntimeException: 1 <{https://source.jasig.org/schemas/uportal/io/portlet-definition}portlet-definition version="4.0"> entities failed to import.
     [java]
     [java]     Per entity exception logs and a full report can be found in /home/mddukes/mybu/mybu4/TRUNK/target/data-import-reports
     [java]
     [java]     at org.jasig.portal.io.xml.JaxbPortalDataHandlerService.importData(JaxbPortalDataHandlerService.java:598)
     [java]     at org.jasig.portal.shell.PortalShellBuildHelperImpl.dataImport(PortalShellBuildHelperImpl.java:296)
     [java]     ... 7 more

BUILD FAILED


I'm attempting to analyze the code that does this, but in the meantime, has anybody seen this issue before (and hopefully, can provide help :) )?

Thanks,

Matt Dukes

Drew Wills

unread,
Oct 13, 2016, 5:17:12 PM10/13/16
to Matthew, uPortal Developers
Don’t neglect to look here…

On Oct 13, 2016, at 1:44 PM, Matthew <mdd...@fsmail.bradley.edu> wrote:

 [java]     Per entity exception logs and a full report can be found in /home/mddukes/mybu/mybu4/TRUNK/target/data-import-reports

It’s normally a reference to a group (of people) or category (of portlets) that doesn’t exist.

drew

Matthew

unread,
Oct 13, 2016, 5:20:36 PM10/13/16
to uPortal Developers, mdd...@fsmail.bradley.edu
Sorry, I didn't see your post until now. 

I uncommented out the test I was having issues with and ran:

ant initportal -Dmaven.test.skip=true

Unfortunately, I'm still experiencing the exact same issue (described in my last post, though I'm not sure how message threading works here).

Thanks,

Matt Dukes

Matthew

unread,
Oct 14, 2016, 10:50:57 AM10/14/16
to uPortal Developers, mdd...@fsmail.bradley.edu
Also, I did see that account of the failed error message. To be honest, since the values it's looking for are transposed (Student, Employee vs Employee, Student) this either looks like an error in the test, or an error in what it's testing. I have trouble believing this would be the case, since I'm the only one experiencing the issue, but I don't know how these values would have been transposed. I'll continue to look through the source code to see if it has anything to do with my other issues.

Matt Dukes

On Thursday, October 13, 2016 at 3:11:25 PM UTC-5, awills wrote:

Matthew

unread,
Oct 20, 2016, 12:26:15 PM10/20/16
to uPortal Developers, mdd...@fsmail.bradley.edu
We've since used a database backup on our production instance of uPortal, and we have the application running. 

However, we have two issues with our installation of uPortal 4.0:

1. The layout is shifted to the right in all cases, leaving approximately 40% of the screen unused. This is the case across color themes and layouts.  I'm guessing this is an issue with our CSS, but I haven't figured out where to begin.

2. I am not able to login as administrator. In conf/tomcat-users.xml , 

<role rolename="manager-gui"/>
<role rolename="admin-gui"/>
<user username="mddukes" password="*********" roles="manager-gui,admin-gui"/>

I looked at our production instance, and was surprised to find we had none of these set, which leads me to believe I'm looking in the wrong place. 

3. I would like the ability to log in as a local admin user. We use CAS for authentication, which always takes us to a separate page for authentication. Can this still be done, and if so, how?

Any help with these issues would be greatly appreciated. 

(Also, I realize these are different issues than the one I originally had, but I didn't want to spam the message board with 300 things that were all mine. If our moderators would prefer I make a new thread, I'll happily do so.)

Thanks!

Matt Dukes

Andrew Petro

unread,
Oct 20, 2016, 12:35:23 PM10/20/16
to uPortal Developers, mdd...@fsmail.bradley.edu
wrt right-shift:

Weird. I sympathize. Alas not my area of expertise. :(

wrt logging in as an administrator:

uPortal is complicated in that local implementations can customize all kinds of stuff. So I can't promise you that your implementation didn't customize to use tomcat-users.xml for this.  But that'd be really strange.


wrt allowing authentication both using CAS and using local user accounts:

Yes, this can be done.

The uPortal 4.0 manual's CAS documentation gives an example of configuring for both local user account authentication and CAS authentication.

wrt message board usage:

Almost all of the value is in communicating at all; I wouldn't stress too much about threads.

I'd consider moving some of this to the user list, though -- these are questions and conversations about adopting uPortal more so than about developing the open source product.

Kind regards,

Andrew
Reply all
Reply to author
Forward
0 new messages