Cannot Create a Space & log shows, "Package Scanner found duplicates for package 'javax.annotation'"
Asked by Shane Parkinson:

After upgrading to Confluence 6.13, the log file contains the following warning:

```
[org.twdata.pkgscanner.ExportPackageListBuilder] logDuplicateWarning Package Scanner found duplicates for package 'javax.annotation' with different versions. Files: javax.annotation-api-1.3.2.jar and jsr305-3.0.1.jar  '/opt/atlassian/confluence/confluence/WEB-INF/lib/javax.annotation-api-1.3.2.jar'  '/opt/atlassian/confluence/confluence/WEB-INF/lib/jsr305-3.0.1.jar'
```

The next message in the log is:

```
WARN [FelixStartLevel] [extender.internal.support.ExtenderConfiguration] addDefaultDependencyFactories Gemini Blueprint extensions bundle not present, annotation processing disabled.
```

I'm not sure if this is the cause of another post upgrade problem where I can no longer create a space in Confluence. The dialogue that appears contains the error message:

```
"An unknown server error has occurred."?
```

I'm trying to work out if they are related.

When the dialogue appears, with the above error, the only entry that appears in the log file is the hibernate warning below

```
2019-01-08 11:52:22,256 WARN [http-nio-8090-exec-4] [confluence.impl.hibernate.ConfluenceHibernateTransactionManager] doRollback Performing rollback. Transactions:  ->[PluginReadWriteTx]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT (Session #807314389) -- referer: https://xxx.com/index.action | url: /rest/create-dialog/1.0/space-blueprint/dialog/web-items
```

Has anyone seen this error and if so what needs to be done to fix it?


Answers:
author: Shannon S
body: Shane,

These are warning messages, and they don't appear to be related to your issue creating a space.

Can you confirm the name of the log file you're looking into? When you receive an error about creating a space in Confluence, an error is logged in the [Confluence server application logs](https://confluence.atlassian.com/doc/working-with-confluence-logs-108364721.html).

If you need help finding the related error message in the logs, I could go ahead and help you to raise a support ticket so we can have a look at your Support Zip.

Regards,

Shannon

comments: author: Shane Parkinson
body: I fixed the Space Issues by using the fix described in the following forum post, [https://community.atlassian.com/t5/Confluence-questions/Unknown-server-error-when-trying-to-create-a-space/qaq-p/903634](https://community.atlassian.com/t5/Confluence-questions/Unknown-server-error-when-trying-to-create-a-space/qaq-p/903634 "Unknown server error when trying to create a space"), which fixed the issue with the space Dialogue Error when trying to create a new space.

The "Create New Space" dialogue problem was introduced after upgrading from 6.11 to 6.13.

The first error, "logduplicateWarning", shown below, is still being logged into the Atlassian-confluence.log file during startup.

I would have thought this error would have been very obvious during testing as the Confluence installation directory is completely replaced during the automated upgrade option w so I'm rather confused as to why this is appearing when you run the installer.

```
[org.twdata.pkgscanner.ExportPackageListBuilder] logDuplicateWarning Package Scanner found duplicates for package 'javax.annotation' with different versions. Files: javax.annotation-api-1.3.2.jar and jsr305-3.0.1.jar  '/opt/atlassian/confluence/confluence/WEB-INF/lib/javax.annotation-api-1.3.2.jar'  '/opt/atlassian/confluence/confluence/WEB-INF/lib/jsr305-3.0.1.jar'?
```


author: Shane Parkinson
body: I've just restarted the server and on this restart, it doesn't display these warning messages,

```
logDuplicateWarning Package Scanner found duplicates for package
```


author: Shannon S
body: Shane,

Glad to hear you tracked down the issue with creating a space and were able to resolve it.

As for the message about duplicates, I know this kind of thing was a bug in the past, for example:

* [CONFSERVER-54327](https://jira.atlassian.com/browse/CONFSERVER-54327) *Package Scanner found duplicates for package 'javax.transaction.xa'*

From your last reply, you are no longer seeing the message after restart?

Regards,

Shannon


Tags: confluence-server

server