Jump to content
Changes to the Jaspersoft community edition download ×

Login Problem


ktrinad

Recommended Posts

By: YSutarko - ysutarko

Login Problem

2006-07-11 00:17

Hi,

1. downloaded JasperIntelligence-1.0.1-bin

2. installed mysql-essential-5.0.22-win32.msi

3. extracted the jasperserver.war and modify the context.xml so it can connect to mysql using user jasperadmin / jasperadmin

4. tried to run ji-import.bat --import-path=ji-catalog --import-file=ji-catalog.xml but encountered this problem :

ExportImportCommand: START
import dirname value=ji-catalog
import filename value=ji-catalog.xml
ExportImportCommand: - running PROD Env mode
ExportImportCommand: caught exception, exception: Error registering bean with name 'olapConnectionService' defined in class path resource [applicationContext-for-export.xml]: Unexpected failure during bean definition parsing; nested exception is java.lang.UnsupportedClassVersionError: com/tonbeller/jpivot/olap/model/OlapModel (Unsupported major.minor version 49.0)
org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'olapConnectionService' defined in class path resource [applicationContext-for-export.xml]: Unexpected failure during bean definition parsing; nested exception is java.lang.UnsupportedClassVersionError: com/tonbeller/jpivot/olap/model/OlapModel (Unsupported major.minor version 49.0)
java.lang.UnsupportedClassVersionError: com/tonbeller/jpivot/olap/model/OlapModel (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:108)
at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:65)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:565)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:531)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseDefaultElement(DefaultXmlBeanDefinitionParser.java:397)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitions(DefaultXmlBeanDefinitionParser.java:371)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.registerBeanDefinitions(DefaultXmlBeanDefinitionParser.java:206)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:388)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:259)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:209)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:184)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:128)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:144)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:81)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:279)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:87)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:72)
at com.jaspersoft.jasperserver.util.ExportImportCommand.setUpRepositoryConnections(ExportImportCommand.java:671)
at com.jaspersoft.jasperserver.util.ExportImportCommand.runImport(ExportImportCommand.java:187)
at com.jaspersoft.jasperserver.util.ExportImportCommand.main(ExportImportCommand.java:106)
[JPivot] 11 Jul 2006 14:04:36,315 ERROR [session ] com.jaspersoft.jasperserver.util.ImportResource#process: ERROR: caught exception unmarshalling catalog, file=ji-catalog/ji-catalog.xml, exception: null
java.lang.NullPointerException
at com.jaspersoft.jasperserver.util.ImportResource.getAllRoles(ImportResource.java:1096)
at com.jaspersoft.jasperserver.util.ImportResource.process(ImportResource.java:885)
at com.jaspersoft.jasperserver.util.ImportResource.processUsersRoles(ImportResource.java:252)
at com.jaspersoft.jasperserver.util.ImportResource.process(ImportResource.java:163)
at com.jaspersoft.jasperserver.util.ExportImportCommand.runImport(ExportImportCommand.java:197)
at com.jaspersoft.jasperserver.util.ExportImportCommand.main(ExportImportCommand.java:106)
ExportImportCommand: DONE

 

5. so i tried manually running the scripts like

mysql -u jasperadmin -p
Enter password: ***********
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 27 to server version: 5.0.22-community-nt

Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

mysql> connect foodmart
Connection id: 28
Current database: foodmart

mysql> source FoodMart-MySQL-032006.sql

// ...success executing script

mysql> connect sugarcrm
Connection id: 29
Current database: sugarcrm

mysql> source db-dump-113005.sql

// ...success executing script

mysql> connect jasperserver
Connection id: 31
Current database: jasperserver

mysql> source jasperserverCreate.ddl

// ...success executing script

mysql> source jasperserverCreateDefaultSecurity.ddl

// ...success executing script

 

6. deployed the war to tomcat, and started successfully

 

7. opened http://localhost/jasperserver and asked for user and password and tried these:

- TestUser/newPassword

- NewUser/newPassword

- tomcat/tomcat

- joeuser/joe

 

i also peeked into the jasperserverCreateDefaultSecurity

 

INSERT INTO `JSUser` (`username`,`fullname`,`emailAddress`,`password`,`externallyDefined`,`enabled`) VALUES
('anonymousUser','Anonymous User',NULL,'',0,1);

INSERT INTO `JSUser` (`username`,`fullname`,`emailAddress`,`password`,`externallyDefined`,`enabled`) VALUES
('jasperadmin','Jasper Administrator',NULL,'newPassword',0,1);

 

so i tried also:

- anonymousUser/NULL (blank password)

- jasperadmin/newPassword

 

but it seems i cannot login , always rejected:

Invalid credentials supplied.

Could not login to JasperServer.

 

with the log:

14:15:01,764 WARN LoggerListener,http-80-1:55 - Authentication event AuthenticationFailureBadCredentialsEvent: joeuser; details: org.acegisecurity.ui.WebAuthenticationDetails@fffe3f86: RemoteIpAddress: 128.21.32.104; SessionId: 8F0EB1B802DAF7D2EC2928414E6E949B; exception: Bad credentials
14:15:01,764 WARN JSCommonController,http-80-3:85 - There was a login error

 

is this a bug, or am i missing something? can anyone help? thank you very much..

 

if you want, i can post the full log4j INFO when starting the tomcat instance

 

regards,

yusuf

 

 

By: T Kavanagh - tkavanagh

RE: Login Problem

2006-07-13 09:11

From the first exception stack trace that you included at the top of your post, it looks like there might be a problem with java versions. The released version of the JasperIntelligence application was compiled using java 1.5.xx. However, in our code we do not use any of the 1.5 features in order to be compliant with java 1.4. I am wondering if some java 1.5 code made it into the code base (or perhaps one of the dependent jars has a 1.5 dependency). In the stack trace: (Unsupported major.minor version 49.0) usually indicates a problem like this.

 

Are you running with java 1.4? Is it possible to try under 1.5? (ie. in order to run the ji-import can have the sample data created).

 

Regarding login... The default login that gets created by the jasperCreateDefaultSecurity.sql is jasperadmin/newPassword (note the uppercase in the pass).

 

When the installation runs you are prompted to enter your own password for this user - but it seams this didn't work.

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Yusuf,

 

You are right in that the "invalid credentials" means that the user/pass didn't match. Probably the best thing to do at this point is to actually go into the jasperserver database and take a look at the contents of the "JIUser" table (or "user" table ... we are appending "JI" for the 1.1 release). So something like:

 

mysql -u root -p -h localhost

 

>use jasperserver;

 

>select * from user;

 

Let me know what these look like...

 

-Tony

Link to comment
Share on other sites

  • 9 months later...

I am trying to run JasperServer on RAD 6.0 (jdk 1.4) and getting the following error when using jasperintelligence-1.1.0-bin. I got the same UnsupportedClassVersionError (although for a different class) when using jasperserver-1.2.1-bin.

 

java.lang.UnsupportedClassVersionError: (com/tonbeller/jpivot/olap/model/OlapModel) bad major version at offset=6

at java.lang.ClassLoader.defineClassImpl(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:211)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:147)

at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:516)

at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:467)

at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:372)

at java.lang.ClassLoader.loadClass(ClassLoader.java:560)

 

 

Does anyone know how to fix this problem. I understand that the installation jar's don't use jdk 1.5 features and the jar's can be used as it is in jdk 1.4 but since it is not working, I was wondering if there is a way to use jdk 1.5 compiled jar in jdk 1.4

Link to comment
Share on other sites

I am trying to build JasperServer using Maven. I ran into the following problems:

 

======================================================

first problem

======================================================

1 - Downloading: http://repo1.maven.org/maven2/jasperreports/jasperreports/1.2.2/jas

perreports-1.2.2.jar

[iNFO] ------------------------------------------------------------------------

[ERROR] BUILD ERROR

[iNFO] ------------------------------------------------------------------------

[iNFO] Failed to resolve artifact.

 

Missing:

----------

1) jasperreports:jasperreports:jar:1.2.2

 

Try downloading the file manually from the project website.

 

Then, install it using the command:

mvn install:install-file -DgroupId=jasperreports -DartifactId=jasperreport

s

-Dversion=1.2.2 -Dpackaging=jar -Dfile=/path/to/file

 

Path to dependency:

1) com.jaspersoft.jasperserver.api.metadata:jasperserver-api-metadata:ja

r:0.9.2

2) jasperreports:jasperreports:jar:1.2.2

 

----------

1 required artifact is missing.

 

for artifact:

com.jaspersoft.jasperserver.api.metadata:jasperserver-api-metadata:jar:0.9.2

 

from the specified remote repositories:

Maven Snapshots (http://snapshots.maven.codehaus.org/maven2/),

central (http://repo1.maven.org/maven2),

jasperServer (file://C:/Docume~1/rbhardwaj/Desktop/uim/build/jasperserver-1.2.

1-src/jasperserver-1.2.1/jasperserver-repo)

 

 

======================================================

second problem

======================================================

I bypassed the above problem for the time being by providing v 1.3.2 instead of 1.2.2 (I have cleaned up everything now). After bypassing, maven gives the following error:

 

The plugin 'xdoclet:maven2-xdoclet2-plugin' does not exist

 

Can anyone please help me with fixing this problem

Link to comment
Share on other sites

Try including this in your Maven settings.xml:

 

 

Code:

<pluginRepository>
<id>codehaus-plugins</id>
<url>http://dist.codehaus.org/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>

 

 

 

Sherman

JasperSoft

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...